From owner-freebsd-stable@FreeBSD.ORG Thu Jul 22 03:34:24 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 76DD71065673 for ; Thu, 22 Jul 2010 03:34:24 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 303508FC0A for ; Thu, 22 Jul 2010 03:34:23 +0000 (UTC) Received: by gxk24 with SMTP id 24so5298527gxk.13 for ; Wed, 21 Jul 2010 20:34:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=TIb8q4uxoyl2njvJc7cfFJZD/A85OU6YwVtYtuYzM9M=; b=VUbRpio4b75BEiaZS99bjfKALkCXeh1zhu/z7ZefUHqjzVmmjXxU0/i5yWd/Pnzre9 zYh/D4alKaxSKNndlO+NPHiy/73YfIfehrt7qZmaeygUiGyp8r+TzCNN659DOXJHW779 GgS8UPGtXd55bDWFJo1c4HbYE41H4cs4d3OJo= 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; b=j7s1WNPfKoeFsfN6H3qNwJCPDZYUQoBUzSB3AEtvYI4F0OavaSzk/qIY7M1O331RCs BVtgDeqHNx/vJlYqGRm6AYnuK2XgVCrir2EbNvLvEeRWFWbr4SnmBLNqCWpZ1mWI/fX6 nSQhQUizQWGicOcrUhup2WOBmjnyymGr90Cnw= MIME-Version: 1.0 Received: by 10.224.78.40 with SMTP id i40mr832275qak.340.1279769663307; Wed, 21 Jul 2010 20:34:23 -0700 (PDT) Received: by 10.229.29.71 with HTTP; Wed, 21 Jul 2010 20:34:23 -0700 (PDT) In-Reply-To: <4C47B57F.5020309@langille.org> References: <4C47B57F.5020309@langille.org> Date: Wed, 21 Jul 2010 22:34:23 -0500 Message-ID: From: Adam Vande More To: Dan Langille Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable 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 03:34:24 -0000 On Wed, Jul 21, 2010 at 10:05 PM, Dan Langille wrote: > Why '-b 34'? Randi pointed me to > http://en.wikipedia.org/wiki/GUID_Partition_Table where it explains what > the first 33 LBA are used for. It's not for us to use here. > > Where SOMEVALUE is the number of blocks to use. I plan not to use all the > available blocks but leave a few hundred MB free at the end. That'll allow > for the variance in HDD size. > > Any suggestions/comments? Is there any advantage to using the -l option on > 'gpart add' instead of the glabel above? > You'll want to make sure your partitions are aligned, discussion here(says 4k drives, but info pertinent to all): http://lists.freebsd.org/pipermail/freebsd-hackers/2010-March/031154.html My understanding is that you weren't booting from zfs, just using it as an data file system. In that case, you'd want to use "gpart add -b 512 ..." or some other multiple of 16. Even 1024 would be a good safe number. Also GPT creates partitions not slices. Your resulting partitions with be labeled something like ad0p1, ad0p2, etc. -- Adam Vande More