On Wednesday 20 February 2002 07:27 pm, Josh wrote: >Anyone know what this error means: >backup# /usr/local/libexec/chg-scsi -info >Please specify a number as tape_device [0-9] > >here's my changer.conf: >number_configs 1 >eject 1 # Tapedrives need an eject command >sleep 30 # Seconds to wait until the tape gets ready >cleanmax 100 # How many times could a cleaning tape get > used >changerdev /dev/sch0 >config 0 >drivenum 0 >dev /dev/nst0 >#scsitapedev /dev/st0 >startuse 0 # The slots associated with the drive 0 >enduse 23 # >statfile /usr/local/etc/amanda/DailySet1/tape0-slot # The file >where the actual slot is stored >#cleancart 5 # the slot where the cleaningcartridge for > drive 0 is located >cleanfile /usr/local/etc/amanda/DailySet1/tape0-clean # The file >where the cleanings are recorded >usagecount /usr/local/etc/amanda/DailySet1/totaltime >tapestatus /usr/local/etc/amanda/DailySet1/tapestatus # here will > some status infos be stored >#labelfile /usr/local/etc/amanda/DailySet1/labelfile # Use this > if you have an barcode reader > >Here is part of amanda.conf: >tapedev "/dev/nst0" # the no-rewind tape device to be used
I think this is the problem, in the case of having a changer.conf file, the tapedev specified here is the configuration number in the config file rather than the actual device itself. You have it correctly specified in the changer.conf above, and thats all you need other than the name of the changer.conf file in the amanda.conf file. But I'd move the line " config 0" to the top of the list as I believe the config parsing starts with that statement and goes to the next occurance of "config 1" etc. >runtapes 2 # number of tapes to be used in a single run > of amdump tpchanger "chg-scsi" # the tape-changer glue script > >#changerfile "/usr/adm/amanda/DailySet1/changer-status" >changerfile "/usr/local/etc/amanda/DailySet1/changer.conf" >changerdev "/dev/sch0" And again, this is spec'ed in the changer.conf file, so I don't think its needed here. >tapetype SONY-AIT2 # what kind of tape it is (see tapetypes > below) labelstr "^DailySet1[0-9][0-9]*$" # label constraint > regex: all tapes must match
