I'm thinking it is becuase you don't have cleanslot and autocleancount 
set to something.  I just set mine to "cleanslot=0" and
"autocleancount=99" as I do not use the autoclean feature myself.  All 
the variable cleanslot is doing is asking where the tape "might" be located.  
Since you're not using the autoclean, it will never ask for the cleaning 
tape anyways.

It's been quite a bit since I updated that script, so I'm not 100% sure
of the above.  Also, just to be sure, the MT MTF and MTX are not pulled
from that file.  I'm assuming you have tem set in the actual chg-zd-mtx?


On Fri, 01 Jun 2001, Grant Schofield wrote:

> I seem to be having some problems with my Overland AIT library and
> chnaging tapes.  It appears I am missing some things in changer.conf or
> amanda.conf.  What it comes down to is whenever I try to run something
> like:
>  amlabel -f DailySet1 tape123212 slot 7
> 
> I get the response of:
> labeling tape in slot /usr/local/libexec/chg-zd-mtx: ([: 7: unary
> operator expected):
> rewinding
> amlabel: no tape online
> 
> But if I run the same command again it works because the tape is in the
> drive.  
> 
> Here is my changer.conf:
> firstslot=1
> lastslot=18
> AUTOCLEAN=0
> offlinestatus=1
> havereader=1
> OFFLINE_BEFORE_UNLOAD=0
> MT=/bin/mt
> MTF=-f
> MTX=/usr/local/sbin/mtx
> 
> 
> Here is the output of the above command in changer.debug:
> Fri Jun  1 09:38:54 EDT 2001 Invoked with args '-slot 7'
> STATUS -> currently loaded slot = -1
> LOADSLOT -> load tape from slot 7
>          -> loading tape from slot 7 to /dev/nst0
>          -> status 0, result ''
>          -> readyStatus = SCSI 2 tape drive:
> File number=0, block number=0, partition=0.
> Tape block size 512 bytes. Density code 0x31 (unknown to this mt).
> Soft error count since last status=0
> General status bits on (41010000):
>  BOT ONLINE IM_REP_EN
>          -> rewind 7
> 
> 
> I think it must be something really minor in chg-zd-mtx, but I am lost
> on where to tweak it to work correctly.  Any help you could provide
> would be great.
> 
> Thanks,
> Grant Schofield
> ITA Software


--
   Jason Hollinden

   MH5 Systems Admin

Reply via email to