Ref. disklabel(8)
> The maximum disk and partition size is 64PB.

Is that so? Let see...

OpenBSD 6.7 (GENERIC.MP) #2: Thu Jun  4 09:55:08 MDT 2020

$> doas dmesg | grep sd3
sd3 at scsibus2 targ 2 lun 0: <ATA, ST5000LM000-2AN1, 0001> naa.5000c500c3ad5c90
sd3: 4769307MB, 512 bytes/sector, 9767541168 sectors

$> doas disklabel -p t sd3
# /dev/rsd3c:
type: SCSI
disk: SCSI disk
label: ST5000LM000-2AN1
duid: [omitted]
flags:
bytes/sector: 512
sectors/track: 255
tracks/cylinder: 511
sectors/cylinder: 130305
cylinders: 74959
total sectors: 9767541168 # total bytes: 4.5T
boundstart: 256
boundend: 4294852800
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  c:             4.5T                0  unused

$> doas disklabel -E sd3
sd3> p t
OpenBSD area: 256-4294852800; size: 2.0T; free: 2.0T
..............................^^^^^^^^^^^^^^^^^^^^^^ :(
#                size           offset  fstype [fsize bsize   cpg]
  c:             4.5T                0  unused    

$> echo "/ 4T" >label

$> doas disklabel -w -A -T label sd3
disklabel: autoalloc failed

:(

$> doas disklabel -E sd3
Label editor (enter '?' for help at any prompt)
sd3> p t
OpenBSD area: 256-4294852800; size: 2.0T; free: 2.0T
#                size           offset  fstype [fsize bsize   cpg]
  c:             4.5T                0  unused
sd3> a
partition: [a]
offset: [256]
size: [4294852544]
FS type: [4.2BSD]
sd3*> p t
OpenBSD area: 256-4294852800; size: 2.0T; free: 0.0T
#                size           offset  fstype [fsize bsize   cpg]
  a:             2.0T              256  4.2BSD   8192 65536     1
  c:             4.5T                0  unused
sd3*>

:(

Reply via email to