From owner-freebsd-geom@FreeBSD.ORG Thu Jan 8 20:37:33 2009 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 1D3EF1065670 for ; Thu, 8 Jan 2009 20:37:33 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id C79238FC13 for ; Thu, 8 Jan 2009 20:37:32 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.3/8.14.3) with ESMTP id n08KLMAS075094; Thu, 8 Jan 2009 14:21:22 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id n08KLMGF075093; Thu, 8 Jan 2009 14:21:22 -0600 (CST) (envelope-from brooks) Date: Thu, 8 Jan 2009 14:21:22 -0600 From: Brooks Davis To: Koen Smits Message-ID: <20090108202122.GA72107@lor.one-eyed-alien.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Thu, 08 Jan 2009 14:21:22 -0600 (CST) Cc: freebsd-geom@freebsd.org Subject: Re: mirror a GPT partition, what label? 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: Thu, 08 Jan 2009 20:37:33 -0000 --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 08, 2009 at 08:35:25PM +0100, Koen Smits wrote: > Hi, >=20 > My new NAS will have the following disk layout: > ad0 -> 2gb CF > ad4 -> 1TB WD Green > ad6 -> 1TB WD Green >=20 > The CF will boot the rig, the 2 1TB disks will be mirrored with ZFS. No > problem there, did it before. > The problem lies in the swap space, which I want to place at the first > gigabyte of the 1TB disks. The disks will use GPT layout. I want to gmirr= or > the first 1GB partition on both disks. How should I accomplish this? Is it > sufficient to label both partitions 'freebsd'? According to man 8 gpart > 'freebsd' should not be used when using GPT. Any insight would be > appreciated. gmirror shouldn't care what the underlying type is though using freebsd may confuse future tools that expect to find a bsdlabel on the partition. That being said, I'd be pretty surprised if mirroring your swap partition did anything other than causing pain and preventing coredumps. You can have quite a number of swap partitions so why not just add both and have twice as much (plus the chance to successfully produce a core dump if you need to debug something). -- Brooks --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFJZmBBXY6L6fI4GtQRAlDPAJ9VYrYj3HNq1pEqTAPKT4Dnm7AZWgCgsoOV f3mcWDMXITe9KwbColrIBrs= =Vxri -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--