Subject: sdXX matching wrong
To: NetBSD Current Users <current-users@netbsd.org>
From: Kevin Sullivan <ksulliva@psc.edu>
List: current-users
Date: 04/07/2000 15:55:03
I'm setting up a news server with 3 SCSI busses using NetBSD/i386 -current.
In the config file I have sd0-7 hardcoded to scsibus0, sd8-15 to scsibus1,
and sd16-23 to scsibus2 (a kernel config snippet is at the end of this
message). But the disks aren't matching correctly; if there is no target N
on a scsibus, disks at that target on a higher scsibus will match in it's
place.  Does anyone know why this might be failing? Here is a dmesg
snippet:

scsibus0 at ncr0: 8 targets, 8 luns per target
scsibus1 at ahc0 channel 0: 8 targets, 8 luns per target
scsibus2 at ahc1 channel 0: 8 targets, 8 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd1 at scsibus0 target 1 lun 0: <SEAGATE, ST34520N, 1281> SCSI2 0/direct fixed
sd2 at scsibus0 target 2 lun 0: <SEAGATE, ST34520N, 1281> SCSI2 0/direct fixed
scsibus1: waiting 2 seconds for devices to settle...
sd0 at scsibus1 target 0 lun 0: <SEAGATE, ST32550N, 0021> SCSI2 0/direct fixed
sd9 at scsibus1 target 1 lun 0: <SEAGATE, ST39173N, 5958> SCSI2 0/direct fixed
scsibus2: waiting 2 seconds for devices to settle...
sd18 at scsibus2 target 2 lun 0: <SEAGATE, ST34555N, 0930> SCSI2 0/direct fixed
sd3 at scsibus2 target 3 lun 0: <SEAGATE, ST34520N, 1487> SCSI2 0/direct fixed

And here is a kernel config snippet:

scsibus0 at ncr0
scsibus1 at ahc0
scsibus2 at ahc1

sd0     at scsibus0 target 0 lun 0      # SCSI disk drives
sd1     at scsibus0 target 1 lun 0      # SCSI disk drives
sd2     at scsibus0 target 2 lun 0      # SCSI disk drives
sd3     at scsibus0 target 3 lun 0      # SCSI disk drives
sd4     at scsibus0 target 4 lun 0      # SCSI disk drives
sd5     at scsibus0 target 5 lun 0      # SCSI disk drives
sd6     at scsibus0 target 6 lun 0      # SCSI disk drives
sd7     at scsibus0 target 7 lun 0      # SCSI disk drives 

sd8     at scsibus1 target 0 lun 0      # SCSI disk drives
sd9     at scsibus1 target 1 lun 0      # SCSI disk drives
sd10    at scsibus1 target 2 lun 0      # SCSI disk drives
sd11    at scsibus1 target 3 lun 0      # SCSI disk drives
sd12    at scsibus1 target 4 lun 0      # SCSI disk drives
sd13    at scsibus1 target 5 lun 0      # SCSI disk drives
sd14    at scsibus1 target 6 lun 0      # SCSI disk drives
sd15    at scsibus1 target 7 lun 0      # SCSI disk drives

sd16    at scsibus2 target 0 lun 0      # SCSI disk drives
sd17    at scsibus2 target 1 lun 0      # SCSI disk drives
sd18    at scsibus2 target 2 lun 0      # SCSI disk drives
sd19    at scsibus2 target 3 lun 0      # SCSI disk drives
sd20    at scsibus2 target 4 lun 0      # SCSI disk drives 
sd21    at scsibus2 target 5 lun 0      # SCSI disk drives
sd22    at scsibus2 target 6 lun 0      # SCSI disk drives
sd23    at scsibus2 target 7 lun 0      # SCSI disk drives

Full dmesg and kernel config available upon request...

	-Kevin