Subject: sd disk partition problem
To: None <current-users@NetBSD.org>
From: John R. Shannon <john@johnrshannon.com>
List: current-users
Date: 04/27/2006 05:09:11
I have a computer with three SCSI disks on an Adaptec controller:

ahd0 at pci2 dev 4 function 0
ahd0: interrupting at irq 10
ahd0: aic7902: Ultra320 Wide Channel A, SCSI Id=7, PCI-X 67-100 MHz, 512 
SCBs
scsibus0 at ahd0: 16 targets, 8 luns per target
ahd1 at pci2 dev 4 function 1
ahd1: interrupting at irq 12
ahd1: aic7902: Ultra320 Wide Channel B, SCSI Id=7, PCI-X 67-100 MHz, 512 
SCBs
scsibus1 at ahd1: 16 targets, 8 luns per target
sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST336807LC, 0C01> disk fixed
sd0: 35003 MB, 90774 cyl, 1 head, 789 sec, 512 bytes/sect x 71687372 sectors
sd0: sync (6.25ns offset 63), 16-bit (320.000MB/s) transfers, tagged 
queueing
sd1 at scsibus0 target 1 lun 0: <SEAGATE, ST3146807LC, 0007> disk fixed
sd1: 136 GB, 49855 cyl, 8 head, 718 sec, 512 bytes/sect x 286749488 sectors
sd1: sync (6.25ns offset 63), 16-bit (320.000MB/s) transfers, tagged 
queueing
sd2 at scsibus0 target 2 lun 0: <SEAGATE, ST3146807LC, 0007> disk fixed
sd2: 136 GB, 49855 cyl, 8 head, 718 sec, 512 bytes/sect x 286749488 sectors
sd2: sync (6.25ns offset 63), 16-bit (320.000MB/s) transfers, tagged 
queueing

sd1 and sd2 are identical and have the same disklabel:

san# disklabel sd1
# sd1d:
type: SCSI
disk: green
label: fictitious
flags:
bytes/sector: 512
sectors/track: 718
tracks/cylinder: 8
sectors/cylinder: 5744
cylinders: 49855
total sectors: 286749488
rpm: 10033
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

8 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
  a:  95580160        80     4.2BSD   2048 16384 28544  # (Cyl.      0*- 
  16640*)
  c: 286749408        80     unused      0     0        # (Cyl.      0*- 
  49921*)
  d: 286749488         0     unused      0     0        # (Cyl.      0 - 
  49921*)
  e:  95580160  95580240     4.2BSD   2048 16384 28544  # (Cyl.  16640*- 
  33280*)
  f:  95589088 191160400     4.2BSD   2048 16384 28552  # (Cyl.  33280*- 
  49921*)


I can't create filesystems on sd1a or sd1f while I can create 
filesystems on sd1e, sd2a, sd2e, and sd2f. The results are:

san# newfs sd1a
newfs: /dev/rsd1a: open for read: Device not configured

Same results with dd. The device nodes do exist:

-- san# ls -l /dev/rsd1a
crw-r-----  1 root  operator  13, 8 Apr 26 06:04 /dev/rsd1a

Thoughts?

John R. Shannon, CISSP
john@johnrshannon.com
jshannon@dsci-usa.com
john.r.shannon@us.army.mil
shannonjr@NetBSD.org