Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jun 2011 14:56:31 -0400
From:      Kris Moore <kris@pcbsd.org>
To:        "Andrey V. Elsukov" <ae@FreeBSD.org>
Cc:        freebsd-geom@FreeBSD.ORG
Subject:   Re: gpart sizes way off
Message-ID:  <4DFF97DF.5040408@pcbsd.org>
In-Reply-To: <4DFF8DC6.1010701@FreeBSD.org>
References:  <4DFF8611.4090705@pcbsd.org> <4DFF8DC6.1010701@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 06/20/2011 14:13, Andrey V. Elsukov wrote:
> On 20.06.2011 21:40, Kris Moore wrote:
>> Not sure if this has been reported, apologies if I'm late to noticing this.
>>
>> I'm not sure if something has changed in the past few weeks on CURRENT
>> to cause this, or if we are just noticing it for the first time, but
>> when doing installs and using "gpart add" for creating partitions on a
>> 2nd MBR slice, the sizes we are giving it are WAY off what actually is
>> allocated. For example:
>>
>> # gpart add -s 2048M -t freebsd-ufs -i 1 /dev/ada0s2
>> ada0s2a added
>> # gpart add -s 1534M -t freebsd-swap -i 2 /dev/ada0s2
>> ada0s2b added
>> # gpart add -s 2048M -t freebsd-ufs -i 4 /dev/ada0s2
>> ada0s2d added
>> # gpart add -s 97165M -t freebsd-ufs -i 5 /dev/ada0s2
>> gpart: autofill: No space left on device
> Which revision do you use?
This is current from last Friday the 17th.

> Also, please, show the output of `gpart list` and `geom disk list`.
>

Here you go!

# gpart list

Geom name: ada0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 419430399
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: ada0s1
    Mediasize: 52428800000 (48G)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 1048576
    Mode: r0w0e0
    rawtype: 131
    length: 52428800000
    offset: 1048576
    type: linux-data
    index: 1
    end: 102402047
    start: 2048
2. Name: ada0s2
    Mediasize: 107793612800 (100G)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 890241024
    Mode: r0w0e0
    rawtype: 165
    length: 107793612800
    offset: 52429848576
    type: freebsd
    index: 2
    end: 312936447
    start: 102402048
3. Name: ada0s3
    Mediasize: 54524903424 (50G)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 1309671424
    Mode: r0w0e0
    rawtype: 131
    length: 54524903424
    offset: 160223461376
    type: linux-data
    index: 3
    end: 419430399
    start: 312936448
Consumers:
1. Name: ada0
    Mediasize: 214748364800 (200G)
    Sectorsize: 512
    Mode: r0w0e0

Geom name: ada0s2
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 210534399
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ada0s2a
    Mediasize: 3037724672 (2.8G)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 890241024
    Mode: r0w0e0
    rawtype: 7
    length: 3037724672
    offset: 0
    type: freebsd-ufs
    index: 1
    end: 5933055
    start: 0
2. Name: ada0s2b
    Mediasize: 2498756608 (2.3G)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 3927965696
    Mode: r0w0e0
    rawtype: 1
    length: 2498756608
    offset: 3037724672
    type: freebsd-swap
    index: 2
    end: 10813439
    start: 5933056
3. Name: ada0s2d
    Mediasize: 3037724672 (2.8G)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 2131755008
    Mode: r0w0e0
    rawtype: 7
    length: 3037724672
    offset: 5536481280
    type: freebsd-ufs
    index: 4
    end: 16746495
    start: 10813440
Consumers:
1. Name: ada0s2
    Mediasize: 107793612800 (100G)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 890241024
    Mode: r0w0e0


# geom disk list

Geom name: cd0
Providers:
1. Name: cd0
    Mediasize: 729233408 (695M)
    Sectorsize: 2048
    Mode: r0w0e0
    descr: VBOX CD-ROM
    ident: (null)
    fwsectors: 0
    fwheads: 0

Geom name: ada0
Providers:
1. Name: ada0
    Mediasize: 214748364800 (200G)
    Sectorsize: 512
    Mode: r0w0e0
    descr: VBOX HARDDISK
    ident: (null)
    fwsectors: 63
    fwheads: 16


-- 
Kris Moore
PC-BSD Software
iXsystems




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DFF97DF.5040408>