On Mon, 2003-02-10 at 12:01, Benjamin Herbert wrote: > I dont have a changer.conf file. I only have a changer.conf-clean, > changer.conf-access and a changer.conf-slot file. They all contain 0 in > them. >
Benjamin, Think of the 'changerfile' config element as a prefix for a number of changer-related config and status files. I also use chg-zd-mtx, and my changerfile is set to /etc/amanda/Servers/CHANGER, which results in the following files: CHANGER-access CHANGER-barcodes CHANGER-clean CHANGER-slot These are all status files used by the glue script and do not need to be edited. I also have CHANGER.conf in which I placed my local variables, like firstslot, lastslot, cleanslot, etc. You have to create this file, so chg-zd-mtx can find it by sticking '.conf' to the end of the path specified in changerfile. HTH, Eric > > On Mon, Feb 10, 2003 at 11:51:32AM -0500, Joshua Baker-LePain wrote: > > On Mon, 10 Feb 2003 at 10:07am, Benjamin Herbert wrote > > > > > I am trying to use the chg-zd-mtx script to contorl the tape changer on > > > an exabyte LTO tape changer. I am running redhat 7.3. > > > > > > Heres is some of the stuff in my amanda.conf: > > > > > > tpchanger "chg-zd-mtx" # the tape-changer glue script > > > tapedev "/dev/nst0" # the no-rewind tape device to be used > > > rawtapedev "/dev/nst0" # the raw device to be used (ftape only) > > > changerfile "/usr/local/amanda/etc/amanda/test/changer.conf" > > > changerdev "/dev/sg0" > > > > Are you sure about that changerdev? For my Overland changer, the tape > > drive and robotics have separate SCSI IDs. The tape drive is ID 4, and > > the robotics are ID 6. Therefore the tape drive is sg0, and the robotics > > are sg1. > > > > > Here is the command that I run: > > > > > > /usr/local/amanda/libexec/chg-zd-mtx -info > > > > > > > > > Here is the output of the command: > > > > > > [root@XXXXX test]$ /usr/local/amanda/libexec/chg-zd-mtx -info > > > /usr/local/amanda/libexec/chg-zd-mtx: [: : integer expression expected > > > /usr/local/amanda/libexec/chg-zd-mtx: [: -lt: unary operator expected > > > 6 1 > > > > First, can mtx talk to your changer? What's the output of 'mtx -f > > /dev/sg0 status' (or sg1, as above). > > > > If the device is correct, we'll need to see your CHANGER.conf file. > > > > -- > > Joshua Baker-LePain > > Department of Biomedical Engineering > > Duke University
