From owner-freebsd-stable@FreeBSD.ORG Thu Jul 22 09:45:40 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 023A71065675 for ; Thu, 22 Jul 2010 09:45:40 +0000 (UTC) (envelope-from bsam@ns.kfs.ru) Received: from ns.kfs.ru (kfs.kfs.ru [194.186.81.194]) by mx1.freebsd.org (Postfix) with ESMTP id 9AAA38FC15 for ; Thu, 22 Jul 2010 09:45:39 +0000 (UTC) Received: from bsam by ns.kfs.ru with local (Exim 4.67 (FreeBSD)) (envelope-from ) id 1ObsLQ-000P3x-F1; Thu, 22 Jul 2010 13:45:36 +0400 To: Charles Sprickman References: <4C47B57F.5020309@langille.org> <4C47B7DD.3070604@langille.org> <52881603@ipt.ru> From: Boris Samorodov Date: Thu, 22 Jul 2010 13:45:36 +0400 In-Reply-To: (Charles Sprickman's message of "Thu\, 22 Jul 2010 04\:51\:11 -0400 \(EDT\)") Message-ID: <52875423@serv3.int.kfs.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Boris B. Samorodov" Cc: freebsd-stable@freebsd.org Subject: Re: Using GTP and glabel for ZFS arrays X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2010 09:45:40 -0000 Charles Sprickman writes: > On Thu, 22 Jul 2010, Boris Samorodov wrote: >> On Wed, 21 Jul 2010 23:15:41 -0400 Dan Langille wrote: >>> On 7/21/2010 11:05 PM, Dan Langille wrote (something close to this): >> >>>> First, create a new GUID Partition Table partition scheme on the HDD: >>>> gpart create -s GPT ad0 >>>> >>>> Let's see how much space we have. This output will be used to determine >>>> SOMEVALUE in the next command. >>>> >>>> gpart show >>>> >>>> Create a new partition within that scheme: >>>> gpart add -b 34 -s SOMEVALUE -t freebsd-zfs ad0 >>>> >>>> Now, label the thing: >>>> glabel label -v disk00 /dev/ad0 >> >> That command will destroy secondary GPT. > > I was just reading about GUID partitioning last night and saw that one > of the benefits is that there's a copy of the partition table kept at > the end of the disk. That seems like a pretty neat feature. > > Do you by any chance have a reference I can point to (I was > documenting stuff about GPT in an internal wiki and this is a nice > piece of info to have)? > > Also, how does one access/use the "backup" partition table? http://en.wikipedia.org/wiki/GUID_Partition_Table -- WBR, bsam