From owner-freebsd-geom@FreeBSD.ORG Thu Jan 8 20:42:42 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 BE2851065680 for ; Thu, 8 Jan 2009 20:42:42 +0000 (UTC) (envelope-from kgysmits@gmail.com) Received: from mail-bw0-f20.google.com (mail-bw0-f20.google.com [209.85.218.20]) by mx1.freebsd.org (Postfix) with ESMTP id 174B28FC14 for ; Thu, 8 Jan 2009 20:42:41 +0000 (UTC) (envelope-from kgysmits@gmail.com) Received: by bwz13 with SMTP id 13so1496459bwz.19 for ; Thu, 08 Jan 2009 12:42:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=q+sSFIDxIBEF6GfsQ8OdymF98uaCOHSIOGVj3h5QsKA=; b=FWBDF/HoUNto9rVzUvRk1QPVI+5YUl17leul9dmCMFn/MXTBpV3cZzxYi6hOfbH+Lo b3F03W+GSjOTbxKXhbx/A8ceB+atCjlpv8ov0SbCM0wPF2dvEyUspfg3fef+cEREOP6Y JWaZL/rXnUcAkkUNsKAYrTuFqTGv+rsLjzzzA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=TaKmfZv7ds8CIl7aK/S/ZEeeWO6RldRA5VTwsDg/FXlTajIeUEmRffsl83hzPfWNy5 C7887GNTuM7jgv/d0WiTr1jtpomonzhb77s3Gwp73KBrj/WWHthnQoAMIf86xV1XMKob sGkD89pnzl0IfTvI6IPzKAZjs+Rjn8pk5FU5s= Received: by 10.223.108.15 with SMTP id d15mr9447991fap.105.1231447360529; Thu, 08 Jan 2009 12:42:40 -0800 (PST) Received: by 10.223.108.136 with HTTP; Thu, 8 Jan 2009 12:42:40 -0800 (PST) Message-ID: Date: Thu, 8 Jan 2009 21:42:40 +0100 From: "Koen Smits" To: "Brooks Davis" In-Reply-To: <20090108202122.GA72107@lor.one-eyed-alien.net> MIME-Version: 1.0 References: <20090108202122.GA72107@lor.one-eyed-alien.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:42:43 -0000 On Thu, Jan 8, 2009 at 21:21, Brooks Davis wrote: > On Thu, Jan 08, 2009 at 08:35:25PM +0100, Koen Smits wrote: > > Hi, > > > > My new NAS will have the following disk layout: > > ad0 -> 2gb CF > > ad4 -> 1TB WD Green > > ad6 -> 1TB WD Green > > > > 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 > gmirror > > 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 > Well, the theory was that if I lose a disk, the system wouldn't go flat on its face because the swap space suddenly disappeared. So there is no recommended procedure for using GPT partitions for gmirror/gstripe?