Amanda-Users

Re: chg-scsi linu

2002-12-18 04:44:43
Subject: Re: chg-scsi linu
From: Christoph Scheeder <christoph.scheeder AT scheeder DOT de>
To: Axel Haenssen <axel AT princeton DOT edu>
Date: Wed, 18 Dec 2002 10:05:23 +0100
Hi,

Axel Haenssen schrieb:
[....]
if I run:
bash-2.05a$ /usr/lib/amanda/chg-scsi -info
0 5 1 0
bash-2.05a$
looks good, eh?

yes


but if I run:
bash-2.05a$ amcheck DailySet1
Amanda Tape Server Host Check
-----------------------------
Holding disk /home/amanda: 26482476 KB disk space available, that's
plenty
amcheck-server: fatal slot <error>: <error> could not read result from
"/usr/lib/amanda/chg-scsi" (got signal 11)

as far as i recall these are the symptoms of the buggy chg-scsi from 2.4.2....

ERROR: new tape not found in rack
       (expecting a new tape)
NOTE: skipping tape-writable test

The amanda.conf file reads:
runtapes 1              # number of tapes to be used in a single run of
amdump
tpchanger "chg-scsi"    # the tape-changer glue script
tapedev "0"     # the no-rewind tape device to be used
changerfile "/etc/amanda/DailySet1/chg-scsi.conf"

And the chg-scsi.conf fiel reads:
number_configs  1
eject           0       # Tapedrives need an eject command
sleep           90      # Seconds to wait until the tape gets ready
cleanmax        100     # How many times could a cleaning tape get used
changerdev      /dev/sg1
#
# Next comes the data for drive 0
#
config          0
drivenum        0
dev             /dev/nst0
scsitapedev     /dev/sg2
startuse        0       # The slots associated with the drive 0
enduse 4 # statfile /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       /etc/amanda/DailySet1/tape0-clean # The file where the
cleanings are recorded
usagecount      /etc/amanda/DailySet1/totaltime
tapestatus      /etc/amanda/DailySet1/tapestatus # here will some status
infos be stored
#labelfile      /etc/amanda/DailySet1/labelfile # Use this if you have
an barcode reader

So it seems to find the changer but can't use it?????????????
cheers
Axel

Remove all comments from chg-scsi.conf, chg-scsi doesn't like them.
Christoph



<Prev in Thread] Current Thread [Next in Thread>