Hi there. I'm getting some strange errors from chg-zd-mtx, which is causing 
amdump to fail.

I've got a HP SureStore DAT 24x6 (aka C1557A)

Example:

-- snip --
# su backup -c /usr/sbin/amtape Daily slot 2
amtape: could not rewind [: 2: unary operator expected: no tape onlineamtape: 
changed to slot /usr/lib/amanda/chg-zd-mtx: on [: 2: unary operator expected
#
-- snip --

This causes e.g. amcheck to ignore all tapes except the one which is loaded 
when it runs, and amflush to fail.

Though chg-zd-mtx gives this strange error, it does load the tape in slot 2.

My amanda.conf says:

-- snip --
runtapes     6
tpchanger "chg-zd-mtx"
changerdev "/dev/sg0"
changerfile "HPCHANGER"
tapedev "/dev/nst0"
tapetype HP1557A
-- snip --

And /etc/amanda/Daily/HPCHANGER.conf:

-- snip --
firstslot=1
lastslot=6
AUTOCLEAN=0
havereader=0
-- snip --

I'm using Debian "woody", Amanda 2.4.2p2, mtx 1.2.15, and vanilla Linux 
2.4.18.

Has anyone seen this before? I've tried to debug the script, since it seems 
like it's a simple problem with using un-quoted variables in if statements, 
but I can't seem to figure out how to invoke chg-zd-mtx by hand.

Reply via email to