From owner-freebsd-stable@FreeBSD.ORG Thu Jul 22 08:51:15 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 920481065677 for ; Thu, 22 Jul 2010 08:51:15 +0000 (UTC) (envelope-from spork@bway.net) Received: from xena.bway.net (xena.bway.net [216.220.96.26]) by mx1.freebsd.org (Postfix) with ESMTP id 330FA8FC1D for ; Thu, 22 Jul 2010 08:51:14 +0000 (UTC) Received: (qmail 42947 invoked by uid 0); 22 Jul 2010 08:51:12 -0000 Received: from unknown (HELO ?10.3.2.41?) (spork@96.57.144.66) by smtp.bway.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 22 Jul 2010 08:51:12 -0000 Date: Thu, 22 Jul 2010 04:51:11 -0400 (EDT) From: Charles Sprickman X-X-Sender: spork@hotlap.local To: Boris Samorodov In-Reply-To: <52881603@ipt.ru> Message-ID: References: <4C47B57F.5020309@langille.org> <4C47B7DD.3070604@langille.org> <52881603@ipt.ru> User-Agent: Alpine 2.00 (OSX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org, Dan Langille 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 08:51:15 -0000 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? Thanks, Charles >> Or, is this more appropriate? >> glabel label -v disk00 /dev/ad0s1 > > -- > WBR, Boris Samorodov (bsam) > Research Engineer, http://www.ipt.ru Telephone & Internet SP > FreeBSD Committer, http://www.FreeBSD.org The Power To Serve > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >