Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Mar 1999 19:19:14 -0600
From:      Zach Heilig <zach@uffdaonline.net>
To:        scsi@freebsd.org
Subject:   'camcontrol rescan' wierdness
Message-ID:  <19990305191914.A26718@znh.org>

next in thread | raw e-mail | index | archive | help
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
(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
(cd1:ncr0:0:5:0): lost device
(cd1:ncr0:0:5:0): removing device entry
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
(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
(probe0:ahc0:0:1:4): SCB 0x22 - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0xb
(probe0:ahc0:0:1:4): Queuing a BDR SCB
(probe0:ahc0:0:1:4): Bus Device Reset Message Sent
(probe0:ahc0:0:1:4): no longer in timeout, status = 353
Unexpected busfree.  LASTPHASE == 0xa0
SEQADDR == 0x151
(probe0:ahc0:0:1:5): SCB 0x22 - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0x9
(probe0:ahc0:0:1:5): Queuing a BDR SCB
(probe0:ahc0:0:1:5): Bus Device Reset Message Sent
(probe0:ahc0:0:1:5): no longer in timeout, status = 353
Unexpected busfree.  LASTPHASE == 0xa0
SEQADDR == 0x151
(probe0:ahc0:0:1:6): SCB 0x22 - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0x9
(probe0:ahc0:0:1:6): Queuing a BDR SCB
(probe0:ahc0:0:1:6): Bus Device Reset Message Sent
(probe0:ahc0:0:1:6): no longer in timeout, status = 353
Unexpected busfree.  LASTPHASE == 0xa0
SEQADDR == 0x151
(probe0:ahc0:0:1:7): SCB 0x22 - timed out while idle, LASTPHASE == 0x1, SEQADDR == 0x9
(probe0:ahc0:0:1:7): Queuing a BDR SCB
(probe0:ahc0:0:1:7): Bus Device Reset Message Sent
(probe0:ahc0:0:1:7): no longer in timeout, status = 353
Unexpected busfree.  LASTPHASE == 0xa0
SEQADDR == 0x151

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]

-- 
Zach Heilig <zach@uffdaonline.net>


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?19990305191914.A26718>