Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jan 2000 10:56:57 -0500 (EST)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        freebsd-questions@FreeBSD.ORG (FreeBSD Questions)
Subject:   Diagnosing SCSI Problem
Message-ID:  <200001051556.KAA16641@cc942873-a.ewndsr1.nj.home.com>

next in thread | raw e-mail | index | archive | help
I am having some trouble from a thrown-together server at the
office. The machine is an ol' 486DX2 that I slapped in an ol' AHA-1542
SCSI card and then hooked on a couple of ol' SCSI drives, HDDs and
CDROMs. The details in the dmesg for all of these devices is included
below.

The problem is that I started getting SCSI errors yesterday. At first,
I thought one of the drives was going (da2), but now I wonder if
something on the SCSI card is not flaking out. The first errors I
started seeing were,

(da2:aha0:0:2:0): CCB 0xc26f0398 - timed out
aha0: ahadone - Attempt to free non-active ACCB 0xc26f0564

The machine would boot up, but vinum would have trouble with the plex
that contains this drive and the effected filesystem would not then
mount.

However, the problem has been getting worse. The machine started
spitting out more of the above and hung up last evening. When I got to
the console, to reboot, I had panics in vinum and could not bring it
up without booting into single user mode and deactivating vinum and
taking out all mounts of effected filesystems in fstab.

Now when I boot, I get grief about other devices. Here is the dmesg
from the SCSI probe portion of my last boot,


aha0 at 0x330-0x333 irq 10 drq 5 on isa
aha0: AHA-1542CP FW Rev. D.0 (ID=46) SCSI Host Adapter, SCSI ID 7, 16 CCBs
Waiting 8 seconds for SCSI devices to settle
(probe4:aha0:0:3:5): CCB 0xc26f0398 - timed out
aha0: ahadone - Attempt to free non-active ACCB 0xc26f0564
(da3:aha0:0:3:0): Duplicate Wired Device entry!
(da3:aha0:0:3:0): Second device will not be wired
changing root device to wd0s2a
(da5:aha0:0:3:5): READ CAPACITY. CDB: 25 a0 0 0 0 0 0 0 0 0 
(da5:aha0:0:3:5): ILLEGAL REQUEST asc:25,0
(da5:aha0:0:3:5): Logical unit not supported field replaceable unit: 1
(da5:aha0:0:3:5): fatal error, failed to attach to device
(da5:aha0:0:3:5): lost device
(da5:aha0:0:3:5): removing device entry
da4 at aha0 bus 0 target 6 lun 0
da4: <SEAGATE ST15230N 0638> Fixed Direct Access SCSI-2 device 
da4: 10.000MB/s transfers (10.000MHz, offset 8)
da4: 4095MB (8386733 512 byte sectors: 64H 32S/T 4095C)
da3 at aha0 bus 0 target 3 lun 0
da3: <SEAGATE ST15150N 0017> Fixed Direct Access SCSI-2 device 
da3: 10.000MB/s transfers (10.000MHz, offset 8)
da3: 4095MB (8388315 512 byte sectors: 64H 32S/T 4095C)
cd0 at aha0 bus 0 target 4 lun 0
cd0: <TOSHIBA CD-ROM XM-3601TA 0725> Removable CD-ROM SCSI-2 device 
cd0: 4.032MB/s transfers (4.032MHz, offset 8)
cd0: cd present [322167 x 2048 byte records]
cd1 at aha0 bus 0 target 5 lun 0
cd1: <PLEXTOR CD-ROM PX-4XCE 1.00> Removable CD-ROM SCSI-2 device 
cd1: 5.000MB/s transfers (5.000MHz, offset 8)
cd1: cd present [316662 x 2048 byte records]
(da1:aha0:0:1:0): got CAM status 0x53
(da1:aha0:0:1:0): fatal error, failed to attach to device
(da1:aha0:0:1:0): lost device
(da1:aha0:0:1:0): removing device entry
(da2:aha0:0:2:0): got CAM status 0x53
(da2:aha0:0:2:0): fatal error, failed to attach to device
(da2:aha0:0:2:0): lost device
(da2:aha0:0:2:0): removing device entry

All of these errors make me wonder if this might not be isolated to
da2. I would rather not swap SCSI cards only to find that it is da2
(or one of the other devices) making the trouble. And I also would
rather not remove da2 only to learn I need to swap cards.

Can anyone say with some confidence where my problem lies from the
above info? More info can be provided if that will help. Any help
would be appreciated.

Below is _good_ dmesg output for all of my SCSI devices and following
that is the SCSI portion of the machine's kernel config. Thanks again
for any help.


aha0 at 0x330-0x333 irq 10 drq 5 on isa
aha0: AHA-1542CP FW Rev. D.0 (ID=46) SCSI Host Adapter, SCSI ID 7, 16 CCBs

da1 at aha0 bus 0 target 1 lun 0
da1: <HP C2247-300 0BE4> Fixed Direct Access SCSI-2 device 
da1: 10.000MB/s transfers (10.000MHz, offset 8)
da1: 1003MB (2054864 512 byte sectors: 64H 32S/T 1003C)

da2 at aha0 bus 0 target 2 lun 0
da2: <HP C2490A-300 4140> Fixed Direct Access SCSI-2 device 
da2: 10.000MB/s transfers (10.000MHz, offset 8)
da2: 2033MB (4165272 512 byte sectors: 64H 32S/T 2033C)

da3 at aha0 bus 0 target 3 lun 0
da3: <SEAGATE ST15150N 0017> Fixed Direct Access SCSI-2 device 
da3: 10.000MB/s transfers (10.000MHz, offset 8)
da3: 4095MB (8388315 512 byte sectors: 64H 32S/T 4095C)

da4 at aha0 bus 0 target 6 lun 0
da4: <SEAGATE ST15230N 0638> Fixed Direct Access SCSI-2 device 
da4: 10.000MB/s transfers (10.000MHz, offset 8)
da4: 4095MB (8386733 512 byte sectors: 64H 32S/T 4095C)

cd0 at aha0 bus 0 target 4 lun 0
cd0: <TOSHIBA CD-ROM XM-3601TA 0725> Removable CD-ROM SCSI-2 device 
cd0: 4.032MB/s transfers (4.032MHz, offset 8)
cd0: Attempt to query device size failed: NOT READY, Medium not present

cd1 at aha0 bus 0 target 5 lun 0
cd1: <PLEXTOR CD-ROM PX-4XCE 1.00> Removable CD-ROM SCSI-2 device 
cd1: 5.000MB/s transfers (5.000MHz, offset 8)
cd1: Attempt to query device size failed: NOT READY, Medium not present


Kernel config:

# SCSI Controller
controller      aha0    at isa? port ? cam irq ?
options         SCSI_DELAY=8000 # Be pessimistic about Joe SCSI device
device          pass0   #CAM passthrough driver

# SCSI Devices
controller      scbus0 at aha0
# HDDs
disk            da1 at scbus0 target 1
disk            da2 at scbus0 target 2
disk            da3 at scbus0 target 3
disk            da4 at scbus0 target 6
# CDROMs
disk            cd0 at scbus0 target 4
disk            cd1 at scbus0 target 5

-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001051556.KAA16641>