I went thru the same problems.  Be sure to read all the instructions in chg-zd-mtx and 
CHANGER.TAPES in the docs directory.  You can run the script directly with

/bin/sh -x /usr/lib/amanda/chg-zd-mtx [args]

to see where the syntax errors are.  You'll have to test all the options and be sure 
you get the expected response.  If there's any error and the result is not in the 
format amanda expects, it gets unhappy, as you found out.  BTW, the chg-zd-mtx in 
2.4.4 is much better documented.

Hope this helps.

Ron

-----Original Message-----
From: Scott Rixon [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 23, 2003 5:58 PM
To: [EMAIL PROTECTED]
Subject: HP 24x6


Hi all...

I am having trouble getting ny HP 24x6 autoloader working with Amanda.
It works fine with the mtx and mt commands so I know the drive is
working with Linux ok. I have a RedHat 7.3 box with the Amanda RPM's
that came on the CD.

When I do a amtape daily slot 1
I get this error
amtape: could not rewind [: : integer expression expected: no tape
onlineamtape: changed to slot /usr/lib/amanda/chg-zd-mtx: on [: :
integer expression expected

And when I do a amcheck daily
I get this
Amanda Tape Server Host Check
-----------------------------
Holding disk /dumps/amanda: 4462668 KB disk space available, that's
plenty
amcheck-server: could not get changer info: badly formed result from
changer: "/usr/lib/amanda/chg-zd-mtx: [: : integer expression expected"

The trouble is it doesn't tell me where it error is!!

Amanda Backup Client Hosts Check
--------------------------------
Client check: 1 host checked in 0.085 seconds, 0 problems found

(brought to you by Amanda 2.4.2p2)

I am using the chg-zd-mtx.conf file and this is my changer file. I think
this is where I am missing something..... 

firstslot=1  ### 1st tape slot
lastslot=6   #### Last tape slot
cleanslot=6  #### Slot with cleaner tape

AUTOCLEAN=0  #### Set to '1' or greater to enable

autocleancount=99 #### Number of access before a clean.

havereader=0    #### If you have a barcode reader, set to 1.

offlinestatus=1 #### Set to 0 if 'mt status' gives an
                #### "offline" when drive is offline.
                #### Set to 1 or greater if 'mt status'
                #### doesn't give and offline, rather an
                #### "ONLINE" when drive is online.

OFFLINE_BEFORE_UNLOAD=0

It's driving me mad!! I have been looking back at old posts but I can't
find anything....

Many thanks,

Scott


Reply via email to