Re: Amanda 2.5.0 spanning
2008-06-12 02:10:59
On Wed, Jun 11, 2008 at 04:38:36PM +0100, Johan Booysen wrote:
> I thought that as well and tried to change it to one slot in chg-manual
> (firstslot=1 and lastslot=1), but with the same result.
>
> I've now tried to direct the output from chg-manual to
> /var/log/chg-manual.log instead of to /dev/tty, as per Dustin's
> suggestion, but it doesn't work yet:
>
> -rw------- 1 amanda disk 0 Jun 11 16:25 chg-manual.log
>
> # su -c "amtape daily show" amanda
> changer: got exit: 0 str: 1 2 1
> changer_query: changer return was 2 1
> changer_query: searchable = 0
> amtape: scanning all 2 slots in tape-changer rack:
> changer_find: looking for NULL changer is searchable = 0
> changer: got exit: 0 str: 1 /dev/nst0
> slot 1: date X label daily-6
> changer: got exit: 0 str: /usr/lib/amanda/chg-manual: line 86:
> /var/log/chg-manual.log: Permission denied
> slot /usr/lib/amanda/chg-manual:: tape_rdlabel: tape open: line 86:
> /var/log/chg-manual.log: Permission denied: No such file or directory
>
> I'll try adjusting the log file's permissions, and will try with only
> one slot again.
>
> Thanks for your replies.
Well, some interesting things, even if not solutions, came from
simplifying things. You might consider even avoiding amtape and
running chg-manual directly from the amanda configuration directory.
As a shell script, it could even be run with debug options:
sh -x <path_to>/chg-manual <arguments>
--
Jon H. LaBadie jon AT jgcomp DOT com
JG Computing
12027 Creekbend Drive (703) 787-0884
Reston, VA 20194 (703) 787-0922 (fax)
|
|
|