Date: Fri, 5 Mar 1999 22:23:44 -0700 (MST) From: "Kenneth D. Merry" <ken@plutotech.com> To: zach@uffdaonline.net (Zach Heilig) Cc: scsi@FreeBSD.ORG Subject: Re: 'camcontrol rescan' wierdness Message-ID: <199903060523.WAA04079@panzer.plutotech.com> In-Reply-To: <19990305191914.A26718@znh.org> from Zach Heilig at "Mar 5, 1999 7:19:14 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Zach Heilig wrote... > I had a CD-ROM temporarily attached to one of the SCSI busses in my computer. > All SCSI devices at this point (from boot-up messages): > > [the drives are on the slower narrow scsi controller because one is a > wide drive, and I didn't have a wide cable when I assembled this computer] > > ahc0: <Adaptec 2940 SCSI adapter> rev 0x00 int a irq 10 on pci0.11.0 > ahc0: aic7870 Single Channel A, SCSI Id=7, 16/255 SCBs > ncr0: <ncr 53c875j fast20 wide scsi> rev 0x04 int a irq 10 on pci0.13.0 > > Waiting 2 seconds for SCSI devices to settle > changing root device to da0s1a > da1 at ahc0 bus 0 target 1 lun 0 > da1: <QUANTUM FIREBALL_TM2110S 300X> Fixed Direct Access SCSI-2 device > da1: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled > da1: 2014MB (4124736 512 byte sectors: 255H 63S/T 256C) > da0 at ahc0 bus 0 target 0 lun 0 > da0: <SEAGATE ST15230W SUN4.2G 0738> Fixed Direct Access SCSI-2 device > da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled > da0: 4095MB (8386733 512 byte sectors: 255H 63S/T 522C) > cd1 at ncr0 bus 0 target 5 lun 0 > cd1: <MATSHITA CD-R CW-7502 4.10> Removable CD-ROM SCSI-2 device > cd1: 10.000MB/s transfers (10.000MHz, offset 8) > cd1: Attempt to query device size failed: NOT READY, Medium not present - tray closed > da2 at ncr0 bus 0 target 6 lun 0 > da2: <IOMEGA ZIP 100 J.02> Removable Direct Access SCSI-2 device > da2: 3.300MB/s transfers > da2: Attempt to query device size failed: NOT READY, Medium not present > cd0 at ahc0 bus 0 target 5 lun 0 > cd0: <NEC CD-ROM DRIVE:463 1.05> Removable CD-ROM SCSI-2 device > cd0: 10.000MB/s transfers (10.000MHz, offset 15) > cd0: cd present [195547 x 2048 byte records] > > Later, I removed cd0, and re-scanned both busses: [and noted that external > CDR on ncr0 was powered off (oops!), and rescanned the ncr bus]: > > (cd0:ahc0:0:5:0): lost device > (cd0:ahc0:0:5:0): removing device entry That looks normal, cd0 goes away. > (da3:ahc0:0:1:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 > (da3:ahc0:0:1:1): ILLEGAL REQUEST asc:25,0 > (da3:ahc0:0:1:1): Logical unit not supported sks:c0,1 > (da3:ahc0:0:1:1): fatal error, failed to attach to device > (da3:ahc0:0:1:1): lost device > (da3:ahc0:0:1:1): removing device entry It looks like that disk may have trouble with multi-lun probing. It's hard to say. > (cd1:ncr0:0:5:0): lost device > (cd1:ncr0:0:5:0): removing device entry Yeah, the CD-R was powered off. > cd0 at ncr0 bus 0 target 5 lun 0 > cd0: <MATSHITA CD-R CW-7502 4.10> Removable CD-ROM SCSI-2 device > cd0: 10.000MB/s transfers (10.000MHz, offset 8) > cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed Okay, this is interesting. Did you turn the power back on or something? > (da1:ahc0:0:1:0): SCB 0x53 - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0xb > (da1:ahc0:0:1:0): Queuing a BDR SCB > (da1:ahc0:0:1:0): Bus Device Reset Message Sent > (da1:ahc0:0:1:0): no longer in timeout, status = 353 > Unexpected busfree. LASTPHASE == 0xa0 > SEQADDR == 0x151 > (probe0:ahc0:0:1:2): SCB 0x22 - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0xa > (probe0:ahc0:0:1:2): Queuing a BDR SCB > (probe0:ahc0:0:1:2): Bus Device Reset Message Sent > (probe0:ahc0:0:1:2): no longer in timeout, status = 353 > Unexpected busfree. LASTPHASE == 0xa0 > SEQADDR == 0x151 > (probe0:ahc0:0:1:3): SCB 0x22 - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0xc > (probe0:ahc0:0:1:3): Queuing a BDR SCB > (probe0:ahc0:0:1:3): Bus Device Reset Message Sent > (probe0:ahc0:0:1:3): no longer in timeout, status = 353 > Unexpected busfree. LASTPHASE == 0xa0 > SEQADDR == 0x151 [ ... ] It appears that your Quantum disk is getting confused and responding on multiple LUNs. > and 'camcontrol devlist' now prints out: > < > at scbus-1 target -1 lun -1 (xpt0) > <SEAGATE ST15230W SUN4.2G 0738> at scbus0 target 0 lun 0 (pass0,da0) > <QUANTUM FIREBALL_TM2110S 300X> at scbus0 target 1 lun 0 (pass1,da1) > < > at scbus0 target 1 lun 1 (pass2) > < > at scbus0 target -1 lun -1 () > <MATSHITA CD-R CW-7502 4.10> at scbus1 target 5 lun 0 (cd0,pass3) > <IOMEGA ZIP 100 J.02> at scbus1 target 6 lun 0 (pass4,da2) > < > at scbus1 target -1 lun -1 () > > [note the bogus pass2 entry] Hmm, I suppose that device didn't completely go away. Can you try putting a quirk entry for the Quantum in cam_xpt.c to disable multi-LUN probing? (CAM_QUIRK_NOLUNS) That may fix the problem. The other thing I wonder about is your bus topology. You say you "removed cd0". Where was it on the SCSI chain? How did you remove it? Was the bus still terminated once you removed it? Taking things off an active SCSI bus only works in controlled circumstances. If the device removed was the one terminating the chain, you would be leaving the bus unterminated. Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903060523.WAA04079>