Amanda-Users

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

2005-04-11 10:15:03
Subject: Re: Newbie: amlabel: could not load slot "current": changerfile must be specified in amanda.conf
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Mon, 11 Apr 2005 09:57:07 -0400
On Mon, Apr 11, 2005 at 04:07:28PM +1000, Jesus Salvo Jr. wrote:
> 
> Hi,
> 
> I have a StorEdge L7 on an E220R running Solaris9.
> I have configured Solaris9 with sgen and mtx and chg-zd-mtx
> mtx is working
> chg-zd-mtx is also working
> 
> The relevant entries in amanda.conf are:
> 
> changerdev "/dev/scsi/changer/c2t1d0"
> tpchanger "chg-zd-mtx"  # the tape-changer glue script
> tapedev "/dev/rmt/1n"   # the no-rewind tape device to be used
> changerfile "/usr/local/etc/amanda/Daily/chg-zd-mtx"
> tapetype DLT8000                
> 
> The conf file for chg-zd-mtx is:
> /usr/local/etc/amanda/Daily/chg-zd-mtx.conf
> 
> Note that the changerfile entry in amanda.conf does not have the ".conf" 
> suffix, as per the document in the chg-zd-mtx script ... and it is the only 
> way to get chg-zd-mtx working.
> 
> However, when I do amlabel, I get:
> 
> $ amlabel Daily Daily001
> amlabel: could not load slot "current": changerfile must be specified in 
> amanda.conf
> 

You indicate that chg-zd-mtx is "working".  Just to be certain:

Have you exercised the changer script by invoking it directly with all
the possible commands including "current" (if that is a chg-zd-mtx cmd).

Have you exercised the changer script by invoking it with amtape and
all the possible commands including "current".

As I recall you have to edit chg-zd-mtx.conf.  Perhaps some inadvertant
editing change messed it up.  Try running the diff command on the original
source and on your edited script and see if all the changes are those you
intended.

I only played a bit with chg-zd-mtx.  I use the more 'primitive' chg-mtx.
But I see my chg-zd-mtx config file is executable.  Don't recall if it had
to be, but you might check.

Some have reported mysterious problems with chg-zd-mtx that disappeared
when using a POSIX-compatible shell.  On solaris, /bin/sh is a true Bourne
shell, not many of them around any more.  If the changer file has a #!
first line, you might point it to a POSIX shell, bash, ksh, or on Solaris,
/usr/xpg4/bin/sh (actually ksh with perhaps a few tiny mods).

jl
-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)