From owner-freebsd-questions Wed Jan 5 7:52:37 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id A8CEF153E9 for ; Wed, 5 Jan 2000 07:52:32 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id KAA16641 for freebsd-questions@FreeBSD.ORG; Wed, 5 Jan 2000 10:56:58 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <200001051556.KAA16641@cc942873-a.ewndsr1.nj.home.com> Subject: Diagnosing SCSI Problem To: freebsd-questions@FreeBSD.ORG (FreeBSD Questions) Date: Wed, 5 Jan 2000 10:56:57 -0500 (EST) Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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