Hi, once again....
I've built a new kernel from source, 2.4.8-26mdk, with built in scsi and sg
support including the option for scanning all luns.
Now during but the changer is detected, as you guessed, at sg1:
[-----------------]
SCSI subsystem driver Revision: 1.00
PCI: Found IRQ 5 for device 00:10.0
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.1
<Adaptec 29160 Ultra160 SCSI adapter>
aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/255 SCBs
Vendor: HP Model: C1557A Rev: U812
Type: Sequential-Access ANSI SCSI revision: 02
(scsi0:A:5): 10.000MB/s transfers (10.000MHz, offset 32)
Vendor: HP Model: C1557A Rev: U812
Type: Medium Changer ANSI SCSI revision: 02
Vendor: IBM Model: DDYS-T09170N Rev: S96H
Type: Direct-Access ANSI SCSI revision: 03
(scsi0:A:6): 40.000MB/s transfers (20.000MHz, offset 63, 16bit)
scsi0:0:6:0: Tagged Queuing enabled. Depth 253
st: Version 20010812, bufsize 32768, wrt 30720, max init. bufs 4, s/g segs
16
Attached scsi tape st0 at scsi0, channel 0, id 5, lun 0
Attached scsi disk sda at scsi0, channel 0, id 6, lun 0
SCSI device sda: 17916240 512-byte hdwr sectors (9173 MB)
/dev/scsi/host0/bus0/target6/lun0: p1 p2
Attached scsi generic sg1 at scsi0, channel 0, id 5, lun 1, type 8
[-----------------]
I've changed chg-scsi.conf to
[-------]
number_configs 1
eject 1 # 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 # the device that is
used for the tapedrive 0
scsitapedev /dev/sg1
startuse 1 # The slots
associated with the drive 0
enduse 5 #
cleancart 6 # 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
[-------]
But i should have some bad configuration somewhere because when i run
amcheck i get
Amanda Tape Server Host Check
-----------------------------
amcheck-server: slot 1: date X label Tape-2 (first labelstr match)
NOTE: skipping tape-writable test
Tape Tape-2 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 26.628 seconds
Amanda don't goes thru all the tapes, it just loaded tape from storage
element 3 (and not slot 1 as mencioned).
During amcheck i get an error at the lcd display in front of the tape drive
stating: SCSI error: Check interface.
I'm completly lost! Help? My debug files are bellow.
TIA. Regards,
Manuel Monteiro
DEGUB FILES:
[----START amcheck.20020205151758.debug----]
amcheck: debug 1 pid 2189 ruid 1 euid 0 start time Tue Feb 5 15:17:58 2002
amcheck-clients: dgram_bind: socket bound to 0.0.0.0.565
changer: got exit: 0 str: 1 5 1 0
changer: got exit: 0 str: 1 /dev/nst0
amcheck: pid 2189 finish time Tue Feb 5 15:18:28 2002
[----END amcheck.20020205151758.debug----]
[----START chg-scsi.20020205151758.debug----]
chg-scsi: debug 1 pid 2192 ruid 1 euid 1 start time Tue Feb 5 15:17:58 2002
chg-scsi: $Id: chg-scsi.c,v 1.37 2002/01/08 01:32:38 martinea Exp $
ARG [0] : /usr/local/libexec/chg-scsi
ARG [1] : -info
Number of configurations: 1
Tapes need eject: Yes
Inv. auto update: No
barcode reader : No
Tapes need sleep: 90 seconds
Cleancycles : 100
Changerdevice : /dev/sg1
Tapeconfig Nr: 0
Drivenumber : 0
Startslot : 1
Endslot : 5
Cleanslot : 6
Devicename : /dev/nst0
changerident : none
SCSITapedev : /dev/sg1
tapeident : none
statfile : /usr/local/etc/amanda/caup/tapestatus
Slotfile : /usr/local/etc/amanda/caup/tape0-slot
Cleanfile : /usr/local/etc/amanda/caup/tape0-clean
Usagecount : /usr/local/etc/amanda/caup/totaltime
DecodeModeSense : Disconnect/Reconnect Pag
e
Buffer Full Ratio 14
Buffer Empty Ratio 0
Bus Inactivity Limit 0
Disconnect Time Limit 5120
Connect Time Limit 0
Maximum Burst Size 0
DTDC 0
DecodeModeSense : Element Address Assignment Page
Medium Transport Element Address 0
Number of Medium Transport Elements 0
First Storage Element Address 2
Number of Storage Elements 6
First Import/Export Element Address 0
Number of ImportExport Elements 0
First Data Transfer Element Address 1
Number of Data Transfer Elements 1
DecodeModeSense : MT can store data cartridges 0
DecodeModeSense : ST can store data cartridges 1
DecodeModeSense : IE can store data cartridges 0
DecodeModeSense : DT can store data cartridges 1
DecodeModeSense : MT to MT 0
DecodeModeSense : MT to ST 0
DecodeModeSense : MT to IE 0
DecodeModeSense : MT to DT 0
DecodeModeSense : ST to MT 0
DecodeModeSense : ST to MT 0
DecodeModeSense : ST to DT 1
DecodeModeSense : IE to MT 0
DecodeModeSense : IE to ST 0
DecodeModeSense : IE to ST 0
DecodeModeSense : IE to ST 0
DecodeModeSense : DT to MT 0
DecodeModeSense : DT to ST 1
DecodeModeSense : DT to IE 0
DecodeModeSense : DT to DT 0
chg-scsi: pid 2192 finish time Tue Feb 5
15:18:08 2002
[----END chg-scsi.20020205151758.debug----]
[----START chg-scsi.20020205151808.debug----]
chg-scsi: debug 1 pid 2193 ruid 1 euid 1 start time Tue Feb 5 15:18:08 2002
chg-scsi: $Id: chg-scsi.c,v 1.37 2002/01/08 01:32:38 martinea Exp $
ARG [0] : /usr/local/libexec/chg-scsi
ARG [1] : -slot
ARG [2] : current
Number of configurations: 1
Tapes need eject: Yes
Inv. auto update: No
barcode reader : No
Tapes need sleep: 90 seconds
Cleancycles : 100
Changerdevice : /dev/sg1
Tapeconfig Nr: 0
Drivenumber : 0
Startslot : 1
Endslot : 5
Cleanslot : 6
Devicename : /dev/nst0
changerident : none
SCSITapedev : /dev/sg1
tapeident : none
statfile : /usr/local/etc/amanda/caup/tapestatus
Slotfile : /usr/local/etc/amanda/caup/tape0-slot
Cleanfile : /usr/local/etc/amanda/caup/tape0-clean
Usagecount : /usr/local/etc/amanda/caup/totaltime
DecodeModeSense : Disconnect/Reconnect Pag
e
Buffer Full Ratio 14
Buffer Empty Ratio 0
Bus Inactivity Limit 0
Disconnect Time Limit 5120
Connect Time Limit 0
Maximum Burst Size 0
DTDC 0
DecodeModeSense : Element Address Assignment Page
Medium Transport Element Address 0
Number of Medium Transport Elements 0
First Storage Element Address 2
Number of Storage Elements 6
First Import/Export Element Address 0
Number of ImportExport Elements 0
First Data Transfer Element Address 1
Number of Data Transfer Elements 1
DecodeModeSense : MT can store data cartridges 0
DecodeModeSense : ST can store data cartridges 1
DecodeModeSense : IE can store data cartridges 0
DecodeModeSense : DT can store data cartridges 1
DecodeModeSense : MT to MT 0
DecodeModeSense : MT to ST 0
DecodeModeSense : MT to IE 0
DecodeModeSense : MT to DT 0
DecodeModeSense : ST to MT 0
DecodeModeSense : ST to MT 0
DecodeModeSense : ST to DT 1
DecodeModeSense : IE to MT 0
DecodeModeSense : IE to ST 0
DecodeModeSense : IE to ST 0
DecodeModeSense : IE to ST 0
DecodeModeSense : DT to MT 0
DecodeModeSense : DT to ST 1
DecodeModeSense : DT to IE 0
DecodeModeSense : DT to DT 0
##### START DecodeSense
GenericRewind : Sense Keys
ErrorCode 70
Valid 0
ASC 20
ASCQ 00
Sense key 05
Illegal Request
chg-scsi: pid 2193 finish time Tue Feb 5 15:18:25 2002
[----END chg-scsi.20020205151808.debug----]
----- Original Message -----
From: "Gene Heskett" <[EMAIL PROTECTED]>
To: "Manuel Monteiro" <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 1:50 PM
Subject: Re: Problems with chg-scsi??
> On Monday 04 February 2002 06:59 am, you wrote:
> >Once again thanks,
> >
> >> And one thing I didn't mention but should since you are
> >> admittedly a newbie, is that if the changer is identified by
> >> the kernel as it boots, the device will be defined in the
> >> /var/log/dmesg file, which contains all the messages the
> >> kernel generates up to about 95% booted.
> >
> >Of course you're right. The changer device is not identified
> > during boot, only the tape device at st0 is present.
> >Any hints?
>
> Yes, when doing the 'make xconfig' to change your kernel, in the scsi
options, have it 'scan all luns'. Most drive devices are at lun=0, but the
changer robots are often at lun=1, and if you don't do that, then the
changer won't be found.
>
> You should get something that resembles this in your /var/log/dmesg file:
>
> Linux version 2.4.17 ([EMAIL PROTECTED]) (gcc version 2.96 20000731
(Red Hat Linux 7.1 2.96-101)) #4 Thu Jan 17 19:32:43 EST 2002
> [...]
> SCSI subsystem driver Revision: 1.00
> scsi0 : AdvanSys SCSI 3.3G: PCI Ultra: IO 0xD000-0xD00F, IRQ 0xB
> Vendor: ARCHIVE Model: 4586XX 28887-XXX Rev: 0420
> Type: Sequential-Access ANSI SCSI revision: 02
> Vendor: ARCHIVE Model: 4586XX 28887-XXX Rev: 0420
> Type: Medium Changer ANSI SCSI revision: 02
> scsi1 : SCSI host adapter emulation for IDE ATAPI devices
> Vendor: CREATIVE Model: CD-RW RW1210E Rev: LCS6
> Type: CD-ROM ANSI SCSI revision: 02
> st: Version 20011103, bufsize 32768, wrt 30720, max init. bufs 4, s/g segs
16
> Attached scsi tape st0 at scsi0, channel 0, id 6, lun 0
> Attached scsi CD-ROM sr0 at scsi1, channel 0, id 0, lun 0
> sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
> Uniform CD-ROM driver Revision: 3.12
> Attached scsi generic sg1 at scsi0, channel 0, id 6, lun 1, type 8
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >
> >I've checked for the sg module wich is present but not loaded.
>
> I've built it into the kernel, and you may have to also in order to get
> the above results.
>
> There is much help available if you subscribe to the
> [EMAIL PROTECTED] mailing list.
>
>
> --
>