[clug] tape drive half recognised
Michael James
michael at james.st
Fri Dec 14 05:08:45 GMT 2007
Anyone know the commands I need to provoke and debug SCSI scanning?
I've got a Dell PV132T tape robot
that is only half being recognised on boot.
The changer creates a device (/dev/sg0) and mtx can talk to it.
The drive doesn't and mt can't see it
and it isn't in /proc/scsi/scsi
The box presents 2 units on the same SCSI chain,
the changer mechanism (ID 0)
and the tape drive (ID 1)
Both are present in BIOS and in /proc/scsi/aic7xxx/0
(it's an Adaptec card)
root> cat /proc/scsi/aic7xxx/0
Adaptec AIC7xxx driver version: 6.2.36
Adaptec 3960D Ultra160 SCSI adapter
aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
Allocated SCBs: 4, SG List Length: 128
Serial EEPROM:
0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a
0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a
0xb8f4 0x7c5d 0x2807 0x0010 0xffff 0xffff 0xffff 0xffff
0xffff 0xffff 0xffff 0xffff 0xffff 0xffff 0x0250 0x934e
Target 0 Negotiation Settings
User: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
Goal: 3.300MB/s transfers
Curr: 3.300MB/s transfers
Channel A Target 0 Lun 0 Settings
Commands Queued 32
Commands Active 0
Command Openings 1
Max Tagged Openings 0
Device Queue Frozen Count 0
Target 1 Negotiation Settings
User: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
Goal: 80.000MB/s transfers (40.000MHz, offset 15, 16bit)
Curr: 80.000MB/s transfers (40.000MHz, offset 15, 16bit)
Channel A Target 1 Lun 0 Settings
Commands Queued 13
Commands Active 0
Command Openings 1
Max Tagged Openings 0
Device Queue Frozen Count 0
Target 2 Negotiation Settings
User: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
Targets 2 and up report the same.
This is the relevant part of dmesg
SCSI subsystem initialized
ACPI: PCI interrupt 0000:01:06.0[A] -> GSI 16 (level, low) -> IRQ 16
ACPI: PCI interrupt 0000:01:06.1[B] -> GSI 17 (level, low) -> IRQ 17
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
<Adaptec 3960D Ultra160 SCSI adapter>
aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
(scsi0:A:1): 80.000MB/s transfers (40.000MHz, offset 15, 16bit)
Vendor: DELL Model: PV-132T Rev: 107D
Type: Medium Changer ANSI SCSI revision: 02
(scsi0:A:1:0): parity error detected in Data-in phase. SEQADDR(0x73)
SCSIRATE(0x93)
(scsi0:A:1:0): parity error detected in Data-in phase. SEQADDR(0x73)
SCSIRATE(0x93)
(scsi0:A:1:0): parity error detected in Data-in phase. SEQADDR(0x73)
SCSIRATE(0x93)
(scsi0:A:1:0): parity error detected in Data-in phase. SEQADDR(0x73)
SCSIRATE(0x93)
(scsi0:A:1:0): parity error detected in Data-in phase. SEQADDR(0x73)
SCSIRATE(0x93)
(scsi0:A:1:0): parity error detected in Data-in phase. SEQADDR(0x73)
SCSIRATE(0x93)
scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
<Adaptec 3960D Ultra160 SCSI adapter>
aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
qla1280: Skipping AMI SubSys Vendor ID Chip
Adaptec aacraid driver (1.1-4 Oct 3 2007 20:51:31)
ACPI: PCI interrupt 0000:06:08.1[A] -> GSI 30 (level, low) -> IRQ 19
AAC0: kernel 2.8-1[6098]
AAC0: monitor 2.8-1[6098]
AAC0: bios 2.8-1[6098]
AAC0: serial e21c38d3
scsi2 : percraid
Vendor: DELL Model: PERC Mirror Rev: V1.0
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 143357184 512-byte hdwr sectors (73399 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
SCSI device sda: drive cache: write through
--
There is no perl one line hack
that a page of java won't do more elegantly.
More information about the linux
mailing list