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