Subject: new kernel == no disklabel
To: None <port-vax@netbsd.org>
From: Andrew Gillham <gillham@vaultron.com>
List: port-vax
Date: 08/22/2000 21:46:45
Hello,

Ok, I have a goofy problem with an external IBM disk on my VS3100/M38.
With an older 1.5_ALPHA kernel (dmesg below) my external disk works fine
and has a valid disklabel.  With a fresh new 1.5_ALPHA2 kernel (dmesg
also below) the disklabel is not recognized.  If I attempt to write out
a new disklabel ("disklabel -r -R sd3 mylabel") it succeeds and appears
to be normal, until I reboot.  Then the label is gone.

So does anyone have any idea what changed WRT scsi on the VAX port
since June 29? :-)  I haven't tried checking out the code from July or
anything yet, I was hoping someone would have an idea what is going
wrong here.

The only odd thing I notice is the number of sectors reported by the
kernel don't match my disklabel, but I've tried it with the 2055035
number also.  The actual number should be 4119*5*99 which is what I
am using.

Thanks.

-Andrew

========= working kernel ==========
NetBSD 1.5_ALPHA (POKEY) #0: Thu Jun 29 14:42:58 EDT 2000
    root@vax.vaultron.com:/usr/src/sys/arch/vax/compile/POKEY

VAXstation /m{38,48}
cpu: KA41/42
cpu: Enabling primary cache, secondary cache
total memory = 24448 KB
avail memory = 19552 KB
using 331 buffers containing 1324 KB of memory
mainbus0 (root)
vsbus0 at mainbus0
vsbus0: interrupt mask 8
le0 at vsbus0 csr 0x200e0000 vec 120 ipl 14 maskbit 5 buf 0x4d6000-0x4e5fff
le0: address 08:00:2b:17:bb:8b
le0: 32 receive buffers, 8 transmit buffers
dz0 at vsbus0 csr 0x200a0000 vec 304 ipl 14 maskbit 6
dz0: 4 lines
lkc at dz0 not configured
si0 at vsbus0 csr 0x200c0080 vec 770 ipl 14 maskbit 1
si0: NCR5380, SCSI ID 7
scsibus0 at si0: 8 targets, 8 luns per target
si1 at vsbus0 csr 0x200c0180 vec 774 ipl 14 maskbit 0
si1: NCR5380, SCSI ID 7
scsibus1 at si1: 8 targets, 8 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 2 lun 0: <DEC, RZ23     (C) DEC, 0A18> SCSI1 0/direct fixed
sd0: 100 MB, 776 cyl, 8 head, 33 sec, 512 bytes/sect x 204864 sectors
sd1 at scsibus0 target 3 lun 0: <DEC, RZ23     (C) DEC, 0A18> SCSI1 0/direct fixed
sd1: 100 MB, 776 cyl, 8 head, 33 sec, 512 bytes/sect x 204864 sectors
sd2 at scsibus0 target 5 lun 0: <DEC, RX23     (C) DEC, 0054> SCSI1 0/direct removable
sd2: drive offline
scsibus1: waiting 2 seconds for devices to settle...
sd3 at scsibus1 target 0 lun 0: <IBM, 0663L12, 1012> SCSI2 0/direct fixed
sd3: 1003 MB, 4119 cyl, 5 head, 99 sec, 512 bytes/sect x 2055035 sectors
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs

========== broken kernel ==========

NetBSD 1.5_ALPHA2 (GENERIC) #2: Sun Aug 20 21:42:31 EDT 2000
    root@vax.vaultron.com:/usr/src/sys/arch/vax/compile/GENERIC

VAXstation /m{38,48}
cpu: KA41/42
cpu: Enabling primary cache, secondary cache
total memory = 24448 KB
avail memory = 19768 KB
using 331 buffers containing 1324 KB of memory
mainbus0 (root)
vsbus0 at mainbus0
vsbus0: interrupt mask 8
le0 at vsbus0 csr 0x200e0000 vec 120 ipl 14 maskbit 5 buf 0x4a1000-0x4b0fff
le0: address 08:00:2b:17:bb:8b
le0: 32 receive buffers, 8 transmit buffers
dz0 at vsbus0 csr 0x200a0000 vec 304 ipl 14 maskbit 6
dz0: 4 lines
lkc0 at dz0
si0 at vsbus0 csr 0x200c0080 vec 770 ipl 14 maskbit 1
si0: NCR5380, SCSI ID 7
scsibus0 at si0: 8 targets, 8 luns per target
si1 at vsbus0 csr 0x200c0180 vec 774 ipl 14 maskbit 0
si1: NCR5380, SCSI ID 7
scsibus1 at si1: 8 targets, 8 luns per target
smg0 at vsbus0 csr 0x200f0000 vec 104 ipl 14 maskbit 3
wsdisplay0 at smg0
wsdisplay0: screen 0-7 added (128x57, vt100 emulation)
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 2 lun 0: <DEC, RZ23     (C) DEC, 0A18> SCSI1 0/direct fixed
sd0: 100 MB, 776 cyl, 8 head, 33 sec, 512 bytes/sect x 204864 sectors
sd1 at scsibus0 target 3 lun 0: <DEC, RZ23     (C) DEC, 0A18> SCSI1 0/direct fixed
sd1: 100 MB, 776 cyl, 8 head, 33 sec, 512 bytes/sect x 204864 sectors
sd2 at scsibus0 target 5 lun 0: <DEC, RX23     (C) DEC, 0054> SCSI1 0/direct removable
sd2: drive offline
scsibus1: waiting 2 seconds for devices to settle...
sd3 at scsibus1 target 0 lun 0: <IBM, 0663L12, 1012> SCSI2 0/direct fixed
sd3: 1003 MB, 4119 cyl, 5 head, 99 sec, 512 bytes/sect x 2055035 sectors
boot device: sd0
root device (default sd0a): 
dump device (default sd0b): 
file system (default generic): 
root on sd0a dumps on sd0b
root file system type: ffs
sd3: no disk label
sd3: no disk label
sd3: no disk label
sd3: no disk label

============== working disklabel ================
# /dev/rsd3c:
type: SCSI
disk: ibm1gb
label: 
flags:
bytes/sector: 512
sectors/track: 99
tracks/cylinder: 5
sectors/cylinder: 495
cylinders: 4119
total sectors: 2038905
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# microseconds
track-to-track seek: 0	# microseconds
drivedata: 0 

5 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  c:  2038905        0     unused        0     0         # (Cyl.    0 - 4118)
  e:  2038905        0     4.2BSD      512  4096    16   # (Cyl.    0 - 4118)

============= broken disklabel =============
# /dev/rsd3c:
type: SCSI
disk: 0663L12
label: fictitious
flags:
bytes/sector: 512
sectors/track: 99
tracks/cylinder: 5
sectors/cylinder: 495
cylinders: 4119
total sectors: 2055035
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# microseconds
track-to-track seek: 0	# microseconds
drivedata: 0 

3 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  c:  2055035        0     unused        0     0         # (Cyl.    0 - 4151*)