Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2013 12:11:17 -0500
From:      "Joseph Mays" <mays@win.net>
To:        <freebsd-questions@freebsd.org>
Subject:   Re: Expand partition size after a raid array increase
Message-ID:  <92B5C18734B84C73AFC29E5DC0FF7C36@Gantry>
In-Reply-To: <F1B875899B5A478EA031A34C858EB2BF@Gantry>
References:  <A0EE4616BD9F4D5091738C526063F12C@Gantry> <F1B875899B5A478EA031A34C858EB2BF@Gantry>

next in thread | previous in thread | raw e-mail | index | archive | help
My apologies. I was originally attaching the results of "gpart show" as =
a screenshot because I was working through an internet kvm module on a =
system several states away that was booted in standalone mode. But the =
mailing list seems to strip off attachments, so I ssh'd into the system =
in normal operation to get output of "gpart show" that I can cut and =
paste here.

root@warehouse:/root # gpart show mfid0
=3D>         34  17578327997  mfid0  GPT  (10T) [CORRUPT]
           34          128      1  freebsd-boot  (64k)
          162   1048576000      2  freebsd-ufs  (500G)
   1048576162  16521363328      4  freebsd-ufs  (7.7T)
  17569939490      8388540      3  freebsd-swap  (4G)
  17578328030            1         - free -  (512B)

-----Original Message-----=20
From: Joseph Mays=20
Sent: Monday, November 11, 2013 3:45 PM=20
To: Joseph Mays=20
Subject: Re: Expand partition size after a raid array increase=20

I have a freebsd box with an LSI Raid controller in it. It had 4 =
3-terabyte=20
drives configured in an 8TB array. I added a 5th drive and built that =
into=20
the array. Of course, the amount of drive space that shows in operation =
in=20
FreeBSD did not change, presumably because I need to resize the =
partition.

I was trying to follow the partition resizing instructions shown here =
---

http://www.unibia.com/unibianet/freebsd/resize-your-existing-freebsd-root=
-partitionslice-safely-without-re-installing

but when I do the =E2=80=9Cgpart show =E2=80=9D I don=E2=80=99t see the =
free space. What I do see is=20
a change in the apparent overall size of the disk and a set of =
parititions=20
that don=E2=80=99t add up to the new size of the disk.

How should I be going about increasing the size of the partition?
From owner-freebsd-questions@FreeBSD.ORG  Wed Nov 13 18:20:28 2013
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 742AFA15
 for <freebsd-questions@freebsd.org>; Wed, 13 Nov 2013 18:20:28 +0000 (UTC)
Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id 3331B2520
 for <freebsd-questions@freebsd.org>; Wed, 13 Nov 2013 18:20:27 +0000 (UTC)
Received: from dan.emsphone.com (dan.emsphone.com [172.17.17.101])
 by email2.allantgroup.com (8.14.5/8.14.5) with ESMTP id rADIDVAq043739
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Wed, 13 Nov 2013 12:13:31 -0600 (CST)
 (envelope-from dan@dan.emsphone.com)
Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1])
 by dan.emsphone.com (8.14.7/8.14.6) with ESMTP id rADIDVsa097019
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Wed, 13 Nov 2013 12:13:31 -0600 (CST)
 (envelope-from dan@dan.emsphone.com)
Received: (from dan@localhost)
 by dan.emsphone.com (8.14.7/8.14.7/Submit) id rADIDVRn097018;
 Wed, 13 Nov 2013 12:13:31 -0600 (CST) (envelope-from dan)
Date: Wed, 13 Nov 2013 12:13:31 -0600
From: Dan Nelson <dnelson@allantgroup.com>
To: Joseph Mays <mays@win.net>
Subject: Re: Expand partition size after a raid array increase
Message-ID: <20131113181331.GL63947@dan.emsphone.com>
References: <A0EE4616BD9F4D5091738C526063F12C@Gantry>
 <F1B875899B5A478EA031A34C858EB2BF@Gantry>
 <92B5C18734B84C73AFC29E5DC0FF7C36@Gantry>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <92B5C18734B84C73AFC29E5DC0FF7C36@Gantry>
X-OS: FreeBSD 9.1-STABLE
User-Agent: Mutt/1.5.22 (2013-10-16)
X-Virus-Scanned: clamav-milter 0.98 at email2.allantgroup.com
X-Virus-Status: Clean
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7
 (email2.allantgroup.com [172.17.19.78]); Wed, 13 Nov 2013 12:13:32 -0600 (CST)
X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,BAYES_00,
 RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
 email2.allantgroup.com
X-Scanned-By: MIMEDefang 2.73
Cc: freebsd-questions@freebsd.org
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.16
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Nov 2013 18:20:28 -0000

In the last episode (Nov 13), Joseph Mays said:
> I have a freebsd box with an LSI Raid controller in it. It had 4
> 3-terabyte drives configured in an 8TB array.  I added a 5th drive and
> built that into the array.  Of course, the amount of drive space that
> shows in operation in FreeBSD did not change, presumably because I need to
> resize the partition.
> 
> I was trying to follow the partition resizing instructions shown here ---
> 
> http://www.unibia.com/unibianet/freebsd/resize-your-existing-freebsd-root-partitionslice-safely-without-re-installing
> 
> but when I do the "gpart show" I don't see the free space. What I do see
> is a change in the apparent overall size of the disk and a set of
> parititions that don't add up to the new size of the disk.
> 
> How should I be going about increasing the size of the partition?
> 
> root@warehouse:/root # gpart show mfid0
> =>         34  17578327997  mfid0  GPT  (10T) [CORRUPT]
>            34          128      1  freebsd-boot  (64k)
>           162   1048576000      2  freebsd-ufs  (500G)
>    1048576162  16521363328      4  freebsd-ufs  (7.7T)
>   17569939490      8388540      3  freebsd-swap  (4G)
>   17578328030            1         - free -  (512B)

Your GPT partition table is showing up as corrupt.  Is there anything in
dmesg about that?  Maybe your device has grown, and you just need to repair
the GPT partition (gpart recover mfid0) to reflect the larger size.  Also,
try running "diskinfo -v mfid0" and see whether that shows the new size.

Note that the instructions you linked to use MBR and BSD disklabels instead
of GPT; neither MBR or BSD store the device size or store metadata at the
end of the device, so if their provider grows, they can immediately take
advantage of the new space.  GPT stores a backup copy on the last sector,
and refers to that location in the primary copy, so you always have to fixup
your GPT every time you resize a device.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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