2.4.0-test8 sees imaginary dual scsi disks on Adaptec 7880

From: sad@valinux.com
Date: Thu Sep 14 2000 - 16:49:28 EST


I tried the 2.4.0-test8 kernel on a new system I have here and I'm
seeing some STRANGE behavior with scsi disk detection when using
the on board Adaptec AIC-78XX controllers. There is only ONE scsi
disk and yet the kernel idents sda and sdb. If I list out the
partitions with fdisk on the two disks, they are identical.

I can umount one partition on sda and then remount the identical
partition from sdb.

The relevent dmesg stuff is:

(scsi0) <Adaptec AIC-7899 Ultra 160/m SCSI host adapter> found at PCI 1/6/0
(scsi0) Wide Channel A, SCSI ID=7, 32/255 SCBs
(scsi0) Downloading sequencer code... 392 instructions downloaded
(scsi1) <Adaptec AIC-7899 Ultra 160/m SCSI host adapter> found at PCI 1/6/1
(scsi1) Wide Channel B, SCSI ID=7, 32/255 SCBs
(scsi1) Downloading sequencer code... 392 instructions downloaded
(scsi2) <Adaptec AIC-7880 Ultra SCSI host adapter> found at PCI 0/1/0
(scsi2) Wide Channel, SCSI ID=7, 16/255 SCBs
(scsi2) Downloading sequencer code... 422 instructions downloaded
scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.2.1/5.2.0
       <Adaptec AIC-7899 Ultra 160/m SCSI host adapter>
scsi1 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.2.1/5.2.0
       <Adaptec AIC-7899 Ultra 160/m SCSI host adapter>
scsi2 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.2.1/5.2.0
       <Adaptec AIC-7880 Ultra SCSI host adapter>
scsi : 3 hosts.
(scsi0:0:0:0) Synchronous at 80.0 Mbyte/sec, offset 63.
  Vendor: QUANTUM Model: ATLAS_V__9_SCA Rev: 0200
  Type: Direct-Access ANSI SCSI revision: 03
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
  Vendor: ESG-SHV Model: SCA HSBP M9 Rev: 0.10
  Type: Processor ANSI SCSI revision: 02
scsi : detected 1 SCSI disk total.
SCSI device sda: hdwr sector= 512 bytes. Sectors= 17930694 [8755 MB] [8.8 GB]
Partition check:
 sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 sda8 >

and then later in the dmesg the following shows up:

ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10c
Non-volatile memory driver v1.1
Detected scsi disk sdb at scsi0, channel 0, id 0, lun 0
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 17930694 [8755 MB] [8.8 GB]
 sdb: sdb1 sdb2 sdb3 sdb4 < sdb5 sdb6 sdb7 sdb8 >
kmem_create: Forcing size word alignment - nfs_fh
VFS: Mounted root (ext2 filesystem) readonly.

Notice the the channel, id, and lun are the same for
sdb as sda from earlier.

The fdisk output is:

Disk /dev/sda: 255 heads, 63 sectors, 1116 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot Start End Blocks Id System
/dev/sda1 1 2 16064+ 83 Linux
/dev/sda2 3 66 514080 83 Linux
/dev/sda3 67 321 2048287+ 83 Linux
/dev/sda4 322 1116 6385837+ 5 Extended
/dev/sda5 322 385 514079+ 83 Linux
/dev/sda6 386 644 2080417 82 Linux swap
/dev/sda7 645 670 208844+ 83 Linux
/dev/sda8 671 1116 3582494+ 83 Linux

Disk /dev/sdb: 255 heads, 63 sectors, 1116 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot Start End Blocks Id System
/dev/sdb1 1 2 16064+ 83 Linux
/dev/sdb2 3 66 514080 83 Linux
/dev/sdb3 67 321 2048287+ 83 Linux
/dev/sdb4 322 1116 6385837+ 5 Extended
/dev/sdb5 322 385 514079+ 83 Linux
/dev/sdb6 386 644 2080417 82 Linux swap
/dev/sdb7 645 670 208844+ 83 Linux
/dev/sdb8 671 1116 3582494+ 83 Linux

/dev/sda7 is /tmp so I tried umounting it and then remounting
/dev/sdb7 as /tmp and it WORKED!?

[root@newsys /root]# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda2 505862 46443 433715 10% /
/dev/sda1 15991 9380 5808 62% /boot
/dev/sda3 2016044 834948 1078684 44% /usr
/dev/sda5 505861 9489 470669 2% /var
/dev/sda8 3559804 55428 3504376 2% /home
/dev/sda7 205501 31 195028 0% /tmp
[root@newsys /root]# umount /tmp
[root@newsys /root]# mount -t ext2 /dev/sdb7 /tmp/
[root@newsys /root]# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda2 505862 46443 433715 10% /
/dev/sda1 15991 9380 5808 62% /boot
/dev/sda3 2016044 834948 1078684 44% /usr
/dev/sda5 505861 9489 470669 2% /var
/dev/sda8 3559804 55428 3504376 2% /home
/dev/sdb7 205501 31 195028 0% /tmp

If I cat out /proc/scsi/scsi I get:

[root@newsys /root]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: QUANTUM Model: ATLAS_V__9_SCA Rev: 0200
  Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 06 Lun: 00
  Vendor: ESG-SHV Model: SCA HSBP M9 Rev: 0.10
  Type: Processor ANSI SCSI revision: 02

What is ESG-SHV???

-- 
Steven A. DuChene	sad@valinux.com
Southeast US Systems Engineer
VA Linux Systems	http://www.valinux.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:24 EST