From owner-freebsd-geom@FreeBSD.ORG Mon Jun 20 18:56:37 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6490A1065672 for ; Mon, 20 Jun 2011 18:56:37 +0000 (UTC) (envelope-from kris@pcbsd.org) Received: from mail.iXsystems.com (newknight.ixsystems.com [206.40.55.70]) by mx1.freebsd.org (Postfix) with ESMTP id EC6E28FC1A for ; Mon, 20 Jun 2011 18:56:36 +0000 (UTC) Received: from mail.ixsystems.com (localhost [127.0.0.1]) by mail.iXsystems.com (Postfix) with ESMTP id D23FAA6642C; Mon, 20 Jun 2011 11:56:35 -0700 (PDT) Received: from mail.iXsystems.com ([127.0.0.1]) by mail.ixsystems.com (mail.ixsystems.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 78344-05; Mon, 20 Jun 2011 11:56:35 -0700 (PDT) Received: from [192.168.0.186] (75-130-56-30.static.kgpt.tn.charter.com [75.130.56.30]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.iXsystems.com (Postfix) with ESMTPSA id 919EDA66413; Mon, 20 Jun 2011 11:56:34 -0700 (PDT) Message-ID: <4DFF97DF.5040408@pcbsd.org> Date: Mon, 20 Jun 2011 14:56:31 -0400 From: Kris Moore User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110430 Thunderbird/3.1.10 MIME-Version: 1.0 To: "Andrey V. Elsukov" References: <4DFF8611.4090705@pcbsd.org> <4DFF8DC6.1010701@FreeBSD.org> In-Reply-To: <4DFF8DC6.1010701@FreeBSD.org> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-geom@FreeBSD.ORG Subject: Re: gpart sizes way off X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2011 18:56:37 -0000 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