From owner-freebsd-questions@FreeBSD.ORG Tue Oct 23 16:38:05 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0C3F9F24 for ; Tue, 23 Oct 2012 16:38:05 +0000 (UTC) (envelope-from freebsd@johnea.net) Received: from mail.johnea.net (johnea.net [70.167.123.7]) by mx1.freebsd.org (Postfix) with ESMTP id DB9A28FC12 for ; Tue, 23 Oct 2012 16:38:04 +0000 (UTC) Received: from [192.168.100.239] (vhost.johnea.net [192.168.100.239]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.johnea.net (Postfix) with ESMTPSA id 092DE73F188B for ; Tue, 23 Oct 2012 09:38:04 -0700 (PDT) Message-ID: <5086C7EB.9020104@johnea.net> Date: Tue, 23 Oct 2012 09:37:38 -0700 From: freebsd@johnea.net User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: 9.1 and gmirror with GPT? References: <5082EAEE.4040609@johnea.net> <50833F78.1060609@bnrlabs.com> <5085C743.8000508@johnea.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2012 16:38:05 -0000 On 2012-10-22 15:54, Warren Block wrote: > On Mon, 22 Oct 2012, freebsd@johnea.net wrote: > >> On 10/21/2012 07:32 AM, Warren Block wrote: >>> On Sun, 21 Oct 2012, Lucas B. Cohen wrote: >>> >>>> On 2012.10.20 20:17, freebsd@johnea.net wrote: >>>>> Just wondering if 9.1 will bring any improvement to the situation of creating a full disk geom mirror while also using GPT partition table? >>>> >>> At present, MBR partitioning is recommended with gmirror(8). >> >> I've been reading your article on formatting disks in FreeBSD: >> http://www.wonkity.com/~wblock/docs/html/disksetup.html >> >> Do you have any docs on setting up MBR using gpart, to allign for 4K sector size drives? > > This is a copy from the update of the gmirror section I'm planning to commit to the Handbook. For a single drive, replace mirror/gm0 with just the drive name, like ada4. > > # create the MBR and add a FreeBSD slice > gpart create -s MBR mirror/gm0 > gpart add -t freebsd -a 4k mirror/gm0 > > # create the bsdlabel partitions in slice 1 (s1) > gpart create -s BSD mirror/gm0s1 > gpart add -t freebsd-ufs -a 4k -s 2g mirror/gm0s1 > gpart add -t freebsd-swap -a 4k -s 4g mirror/gm0s1 > gpart add -t freebsd-ufs -a 4k -s 2g mirror/gm0s1 > gpart add -t freebsd-ufs -a 4k -s 1g mirror/gm0s1 > gpart add -t freebsd-ufs -a 4k mirror/gm0s1 > > # put bootcode on the MBR and mark the first slice active > gpart bootcode -b /boot/mbr mirror/gm0 > gpart set -a active -i 1 mirror/gm0 > > # put bootcode on the bsdlabel > gpart bootcode -b /boot/boot mirror/gm0s1 That helps a lot Warren! In recent years I've just been creating a swap partition and one big root partition. It just seems as soon as I make all the traditional partitions, one runs out of room. Do you feel there are any major disadvantages of this approach? To create a swap and then a root that fills the rest of the disk, must the swap be created first, like this: gpart add -t freebsd-swap -a 4k -s 4g mirror/gm0s1 gpart add -t freebsd-ufs -a 4k mirror/gm0s1 Is there any other way to tell gpart to create the / partition using all space except 4G? Thank You! johnea