From owner-freebsd-geom@FreeBSD.ORG Thu May 5 04:31:09 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 EC0A91065672 for ; Thu, 5 May 2011 04:31:09 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 680128FC15 for ; Thu, 5 May 2011 04:31:08 +0000 (UTC) Received: by bwz12 with SMTP id 12so2215536bwz.13 for ; Wed, 04 May 2011 21:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=66s4zO6tM6YyZ+FHHArrQYF6clryDA8X8u9BKE8TJbU=; b=NBI+cODQyaohFSUGu/bvhDFUk/FM3F8bZtkM2oPB4MVqkQ7PJqKE4TmfdKxbGiFPjU 3vAmU9GxU5ZAaGoK3m0lbIwmjFozJecVjcc2Vm8zNQHrMROnSeymj+D3Op4EbgX8nIbC 6VnEb9Q54lqTcMxYesJqxx0odCyz63hBfyLMc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=W6Vf9G+C0G+uzwege0THiJTOOLzwVNgaOK76tDQ1mHtin/a/rNZPtlsTn11DqOWnW2 s+np6tST6kSAO4T8dTRnS8+XDE4hRnWU7bq55W5ArkwlUkV0lQK6genu7bTKb0x8LtC8 ahwEEPJzxf2cZl53xvn65JYd9yVtVGLKrXxnM= MIME-Version: 1.0 Received: by 10.204.84.142 with SMTP id j14mr227630bkl.20.1304568354301; Wed, 04 May 2011 21:05:54 -0700 (PDT) Received: by 10.204.78.134 with HTTP; Wed, 4 May 2011 21:05:54 -0700 (PDT) In-Reply-To: <4DC1D62C.5070705@phat.za.net> References: <4DC1D62C.5070705@phat.za.net> Date: Wed, 4 May 2011 23:05:54 -0500 Message-ID: From: Scot Hetzel To: Aragon Gouveia Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-geom@freebsd.org Subject: Re: partitioning dilemma 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, 05 May 2011 04:31:10 -0000 On Wed, May 4, 2011 at 5:41 PM, Aragon Gouveia wrote: > Hi, > > Between MBR and GPT, I'm struggling to find the right partitioning scheme= to > meet my requirements. =A0Suggestions on below would be highly appreciated= . > > I have 2 disks. =A0I want 2 independent gmirror volumes, ie. 2 partitions= on > each disk, with one partition from each disk in a gmirror volume. Each > gmirror volume would contain a bootable FreeBSD system (BSD label), and I= 'd > selectively boot between them when testing new releases or other big > changes. > > Then I'd like a 3rd partition on each disk, both of which for swap space. > > Then a 4th partition on each disk which I plan to use as a ZFS mirrored Z= IL. > > Finally, a 5th partition on each disk which would both serve as ZFS L2ARC= . > > My dilemma: > > All documentation and mailing list discussion about GPT seems to indicate > that creating BSD labels inside GPT partitions is a Bad Idea, which would > mean putting two GPT partitions into a gmirror volume is a bad idea. =A0I= s > this still the case? > Use the -l option to gpart to create a label for the partition: gpart add -s 4G -t freebsd-swap -l swap0 ad0 The label would then show up under /dev/gpt (i.e. /dev/gpt/swap0). Scot