Subject: terabyte array and negative cylinders
To: None <tech-kern@netbsd.org>
From: Jonathan Kay <jpk@panix.com>
List: tech-kern
Date: 07/02/2003 11:39:53
Hello all,

  I have recently set up a machine with a 3ware Escalade 7500-8 controller
and 7 160GB disks (CompUSA had a really good deal on them :-)  ).  They
run fine when set up as a raid-5 setup: 983GB, roughly 45-50MB/s writes 
and 110+MB/s reads, yay.  However, just make the array over a terabyte, I
thought I'd set them up as a raid-0 stripe set, which the controller bios
recognises as 1.1TB, but when I boot up NetBSD:

/usr/NetBSD 1.6U (GENERIC) #0: Sat Jun 28 17:36:46 UTC 2003
        autobuild@tgm.daemon.org:/autobuild/HEAD/i386/OBJ/autobuild/HEAD/src/sys
/arch/i386/compile/GENERIC
total memory = 511 MB
...
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled
twe0 at pci3 dev 5 function 0: 3ware Escalade
twe0: interrupting at irq 11
ld0 at twe0 unit 1
ld0: 16383 PB, -2037470 cyl, 16 head, 63 sec, 512 bytes/sect x -2053770240 secto
rs

  the negative cylinders don't look promising and I can't do anything
with the drive.  Info from fdisk and disklabel:

# fdisk ld0
fdisk: partition table invalid, no magic in sector 0
Disk: /dev/rld0d
NetBSD disklabel disk geometry:
cylinders: -2037470, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 2241197056

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 2241197056

Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.

---

# disklabel ld0
# /dev/rld0d:
type: ld
disk: unknown
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: -2037470
total sectors: -2053770240
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

4 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
 d: -2053770240         0     unused      0     0         # (Cyl.    0 - 2223409*)
disklabel: boot block size 0
disklabel: super block size 0


I haven't really looked at the code yet, but just thought I'd toss this
out & see what other people thought--I haven't seen any mention of terabyte
arrays & NetBSD on the net anywhere.

Thanks!

Jonathan

--
Times change, today is Wednesday