[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fdisk, disklabel and 2 Tera-Blocks Limit
- To: bugs_(_at_)_openbsd_(_dot_)_org
- Subject: fdisk, disklabel and 2 Tera-Blocks Limit
- From: Jean-Gérard Pailloncy <pailloncy_(_at_)_ifrance_(_dot_)_com>
- Date: Sun, 16 Mar 2003 12:53:32 +0100
I get a new computer:
Rack 19" 3U w/ 9x 5.25 IDE hot swap drive
Hot Swap Redundant power supllies 2x300 W
MotherBoard TYAN Trinity GC-SL
Lan 1 Gb + 10/100
ATI 4 MB
Intel P IV 2,4 Gz
DDR 2x512 MB ECC RegPC 2100
3ware RAID IDE 8 port
9 DD 250 GB IDE 5400 Maxtor
CD, Floppy
I can install and boot my system with the following setup for the 3ware
- 8 independant drives 250 GB:
I boot from the first drive
One OpenBSD partition with fdisk
Two partitions (/, swap) with disklabel
- 500 GB RAID 5 and 5 independant drives:
I boot from the first drive
One OpenBSD partition with fdisk
Two partitions (/, swap) with disklabel
- 1.5 TB RAID 5 and 1 idependant drive (hotspare):
fdisk gives some strange error:
disklabel refuses to setup a partition bigger than 2 tera-block of
512
-------------------------------------------------------
# fdisk sd1
fdisk: BIOS fixup botch (-10720 sectors)
#disklabel sd1
/dev/rsd1c:
type: SCSI
disk SCSI disk
label: Host drive #01
flags:
bytes/sector: 512
sectors/tack: 2
tracks/cylinder: 64
sectors/cylinder: 128
cylinders: 16116287
total sectors: -1353583360
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0
track-to-track seek: 0
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 2097152 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 16383)
b: 2097152 2097152 swap # (Cyl. 16384 - 32767)
c: 2941383936 0 unused 0 0 # (Cyl. 0 - 22979561)
-------------------------------------------------------
The program disklabel cannot manage a partition with more than 2^31
blocks (512). This is a 1 TB limit.
"diskabel -E" allows me to setup the partition but when I exit it quit
saying that the size (-2^31) is not valid.
It is a diff of 2^32, the max of an Int4. I suspect a Signed Int4
overflow.
With disklabel:
1) I try a partition of 1.4 TB, error on size.
2) I try a partition of 1 TB, error on size.
3) I try a partition of 1023 MB, ok.
But even If I install OpenBSD 3.2, fdisk refuse to setup the MBR and
the computer can not boot.
Jean-Gérard Pailloncy
Paris, France
Visit your host, monkey.org