Amanda-Users

Re: Newbie: amlabel: could not load slot "current": changerfile must be specified in amanda.conf

2005-04-11 23:14:01
Subject: Re: Newbie: amlabel: could not load slot "current": changerfile must be specified in amanda.conf
From: "Jesus Salvo Jr." <jesus.salvo AT communicator.com DOT au>
To: amanda-users AT amanda DOT org
Date: Tue, 12 Apr 2005 13:07:51 +1000
On Tuesday 12 April 2005 12:01, Jesus Salvo Jr. wrote:

> bash-2.05$ amtape Daily reset
> amtape: could not reset changer: changerfile must be specified in
> amanda.conf
>
> The debug output in /tmp/amanda says:
>
> bash-2.05$ cat amtape.20050412112910.debug
> amtape: debug 1 pid 1077 ruid 60008 euid 60008: start at Tue Apr 12
> 11:29:10 2005
> changer: got exit: 2 str: <none> changerfile must be specified in
> amanda.conf amtape: could not reset changer: changerfile must be specified
> in amanda.conf amtape: pid 1077 finish time Tue Apr 12 11:29:10 2005
>

I think I know what the problem maybe, though I do not know the solution:

The test that I did with chg-zd-mtx works only if I run it in 
the /usr/local/etc/amanda/Daily directory.

If I do it anywhere else, I get the exact same error as amtape does:

bash-2.05$ pwd
/export/home/amanda
bash-2.05$ /usr/local/libexec/chg-zd-mtx -reset
<none> changerfile must be specified in amanda.conf

bash-2.05$ set | grep PATH
LD_LIBRARY_PATH=:/usr/local/lib
MANPATH=:/usr/local/man
PATH=/usr/bin::/usr/local/bin:/usr/local/sbin:/usr/local/libexec

Based on changer.c, amtape simply exec / calls chg-zd-mtx, so the error is the 
same.

What must I do so that chg-zd-mtx will work from any directory ?
I must have missed a very simple step.


Regards,

John