On Thursday 31 January 2002 11:40 am, Manuel Monteiro wrote:
>Hi,
>
>I'm testing Amanda (version 2.4.3b2) in a linux box (Mandrake
> 8.0 - kernal 2.4.3-20mdk) with an external SCSI HP Surestore
> DAT24x6 (detected as C1557A).
>
>I operate tapes with mtx without problems (version 1.0 -
> versions 1.2.1x don't work, allways exit with 'failed to set sg
> timeout').
>
>In amanda i use chg-scsi tape changer. Here are some problems
> i've found (most probably due to bad configuration!!!!):
>
>    1- I can label one tape (amlabel caup Tape-0 slot 0) but to
> label another i must unload the tape first (i do it with mtx -f
> /dev/nst0 unload). When i try to label the second tape without
> unload the first amlabel exits with 'amlabel: could not load
> slot "4": <error> could not read result from
> "/usr/local/libexec/chg-scsi" (got signal 11)' and i get a core
> dump from chg-scsi.
>
>    2-When i use amcheck i get this:
>
>Amanda Tape Server Host Check
>-----------------------------
>amcheck-server: slot 0: date X        label Tape-0 (first
> labelstr match) NOTE: skipping tape-writable test
>Tape Tape-0 label ok
>NOTE: info dir /usr/adm/amanda/curinfo: does not exist
>NOTE: it will be created on the next run
>NOTE: index dir /usr/adm/amanda/index: does not exist
>Server check took 90.887 seconds
>
>Amanda doen't go thru all slots. Slot 0 is checked if all tapes
> are unloaded or the tape from slot 0 is loaded. If there is a
> tape loaded from slot # then it reports only slot #.
>
>My conf files are bellow. Any hints?
>
>TIA. Best regards,
>
>Manuel Monteiro
>
>
>**** START amanda.conf ****
># amanda.conf
>#
># Version 0.1.1 - 2001Jan30
># Changes in tapetype
>#
># Version 0.1 - 2001Jan29
># First configuration
>#
># Manuel Monteiro
>
>runtapes 1
>tpchanger "chg-scsi"
>tapedev "0"
>changerfile "/usr/local/etc/amanda/caup/chg-scsi.conf"
>tapetype HP-24x6
>
>logdir "/usr/local/etc/amanda/caup.log"
>
>define tapetype HP-24x6 {
>        Comment "HP SureStore DAT24x6 tape drive"
>        length 12000 mbytes
>        filemark 111 kbytes
>        speed 3000 kbytes
>}
>
>define dumptype  disk2 {
>    program "GNUTAR"
>    comment "Local Disk Test"
>    compress client fast
>    index
>    priority high
>}
>
>define interface local {
>    comment "a local disk"
>    use 1000 kbps
>}
>**** END amanda.conf ****
>
>**** START chg-scsi.conf ****
># chg-scsi.conf
>
># Version 0.1.1 - 2002Jan30
># Changes in sleep time
>#
># Version 0.1 - 2002Jan29
># First Configuration
>
># Manuel Monteiro
>
>number_configs  1
>eject           1               # Tapedrives need an eject
> command sleep           20              # Seconds to wait until
> the tape gets ready cleanmax        100             # How many
> times could a cleaning tape get used
>changerdev      /dev/sg0

One possibility just above, which may not be worth the electron 
shuffling to post this, but on my system, with only the tape 
drive, in this case a Python 28849-XXX changer, the changer 
device isn't /dev/sg0, but /dev/sg1 since the drive itself takes 
up the first descriptor, /dev/nst0.

>#
># Next comes the data for drive 0
>#
>config          0
>drivenum        0
>dev             /dev/nst0                               # the
> device that is used for the tapedrive 0
>scsitapedev     /dev/sg0
>startuse        0                                       # The
> slots associated with the drive 0
>enduse          4                                       #
>cleancart       5                                       # the
> slot where the cleaningcartridge for drive 0 is located
>statfile        /usr/local/etc/amanda/caup/tape0-slot   # The
> file where the actual slot is stored
>cleanfile       /usr/local/etc/amanda/caup/tape0-clean  # The
> file where the cleanings are recorded
>usagecount      /usr/local/etc/amanda/caup/totaltime
>tapestatus      /usr/local/etc/amanda/caup/tapestatus
>**** END chg-scsi.conf ****

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
98.4+% setiathome rank, not too shabby for a hillbilly

Reply via email to