From owner-freebsd-stable@FreeBSD.ORG Thu Jul 22 08:20:32 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 4BEC51065672 for ; Thu, 22 Jul 2010 08:20:32 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 09E998FC16 for ; Thu, 22 Jul 2010 08:20:31 +0000 (UTC) Received: from [178.34.160.12] (helo=alya) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1Obr13-000BWJ-Sg; Thu, 22 Jul 2010 12:20:30 +0400 From: Boris Samorodov To: Dan Langille References: <4C47B57F.5020309@langille.org> <4C47B7DD.3070604@langille.org> Date: Thu, 22 Jul 2010 12:20:28 +0400 In-Reply-To: <4C47B7DD.3070604@langille.org> (Dan Langille's message of "Wed, 21 Jul 2010 23:15:41 -0400") Message-ID: <52881603@ipt.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 08:20:32 -0000 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. > 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