disklabel: autoalloc failed
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: 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.5T0 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.5T0 unused sd3*> :(
Re: disklabel: autoalloc failed
On 2020-06-26, Rupert Gallagher wrote: > Ref. disklabel(8) >> The maximum disk and partition size is 64PB. > > Is that so? Let see... Yes, that is the maximum size for a disklabel > 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: > 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: > #\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0 > > size\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0 > offset\xc2\xa0 fstype [fsize bsize\xc2\xa0\xc2\xa0 cpg] > \xc2\xa0 > c:\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0 > > 4.5T\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0 > 0\xc2\xa0 unused > > $> doas disklabel -E sd3 > sd3> p t > OpenBSD area: 256-4294852800; size: 2.0T; free: 2.0T either use disklabel's "b" command to override the boundaries coming from MBR and use larger ones in the disklabel (enter * for the end to use the whole disk), or use GPT instead of MBR.
Re: disklabel: autoalloc failed
On Fri, Jun 26, 2020 at 05:53:24PM +, Rupert Gallagher wrote: > 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: > 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 Here's our problem. Use the b command to exend the OpenBSD to the whole disk. -Otto > 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.5T0 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.5T0 unused > sd3*> > > :( >
Re: disklabel: autoalloc failed
On Fri, Jun 26, 2020 at 1:43 PM Rupert Gallagher wrote: > 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: > 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.5T0 unused > > $> doas disklabel -E sd3 > sd3> p t > OpenBSD area: 256-4294852800; size: 2.0T; free: 2.0T > ..^^ :( > are you using MBR or GPT? > #size offset fstype [fsize bsize cpg] > c: 4.5T0 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.5T0 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.5T0 unused > sd3*> > > :( > >