I have this changer working with RedHat 7.2 using the 2.4.2p2 chg-zd-mtx script. The trick to getting it working is getting the configuration file for chg-zd-mtx right. Make sure all the variables mentioned in the script are defined. In my case I have (in /etc/amanda/CONFIG/chg-zd-mtx.conf, replace CONFIG with your configuration name):
firstslot=1 #### 1st tape slot lastslot=7 #### Last tape slot cleanslot=7 #### 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_BEFORE_UNLOAD=1 #### Does your tape driver require a In /etc/amanda/CONFIG/amanda.conf I have: tpchanger "chg-zd-mtx" tapedev "/dev/nst0" changerfile "/etc/amanda/CONFIG/chg-zd-mtx" changerdev "/dev/sg5" Of course, you're tapedev and changerdev may be different. Also, if you've been having problems getting it working you may have stuff in chg-zd-mtx-* that is wrong -- I'd delete them before trying again. Jim On Sun, Mar 24, 2002 at 02:22:47AM -0500, Derrick Miller wrote: > Hi all, > > A couple weeks ago I posted a message asking for help configuring Amanda > 2.4.2p2 to work under Red Hat Linux 7.2 (i386) with an ADIC FastStor DLT > changer. �(It's actually a Dell PowerVault 120T DLT1, but the changer > component is manufactured by ADIC) > > To recap, everything works fine from the command line - mtx and tar work fine > for loading/unloading tapes and doing backups/restores. I just can't get > Amanda to even begin to work with the changer. I've tried both the chg-mtx > and chg-zd-mtx scripts. > > John Jackson pointed me to a new chg-zd-mtx script available at > ftp://gandalf.cc.purdue.edu/pub/amanda/chg-zd-mtx.sh.in-243 (thanks John) but > it also barfs, complaining about "/usr/lib/amanda/chg-zd-mtx: > @AMANDA_TMPDIR@/chg-zd-mtx.status.30913: No such file or directory" I could > be wrong, but from digging through the script, I'm guessing that it requires > a later version of Amanda than 2.4.2p2. > > So, my questions: > > 1) Does anyone have this changer working with Amanda? I would give just > about anything to get my hands on copies of working config and chg-zd-mtx > files. > > 2) If it's not possible to get it working under 2.4.2p2, should I try the > 2.4.3b3 release? Is that version useable in a production environment, and/or > is it any more likely to work for me than 2.4.2p2? > > Any pointers whatsoever would be greatly appreciated, as I've been beating my > head against this for over a month and have made very little progress. > > Thanks, > Derrick Miller
