From owner-freebsd-current@FreeBSD.ORG Thu Oct 22 08:09:42 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEEDA1065697 for ; Thu, 22 Oct 2009 08:09:42 +0000 (UTC) (envelope-from ari@ish.com.au) Received: from fish.ish.com.au (eth5921.nsw.adsl.internode.on.net [59.167.240.32]) by mx1.freebsd.org (Postfix) with ESMTP id 86E088FC16 for ; Thu, 22 Oct 2009 08:09:42 +0000 (UTC) Received: from ip-149.ish.com.au ([203.29.62.149]:65468) by fish.ish.com.au with esmtpa (Exim 4.69) (envelope-from ) id 1N0soR-00027D-2j; Thu, 22 Oct 2009 19:14:23 +1100 Message-ID: <4AE01342.4000303@ish.com.au> Date: Thu, 22 Oct 2009 19:09:38 +1100 From: Aristedes Maniatis User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.5pre) Gecko/20091019 Shredder/3.0pre MIME-Version: 1.0 To: Scot Hetzel References: <4ADE995A.8080009@ish.com.au> <1256174188.2309.22.camel@balrog.2hip.net> <4ADFCFF3.1030201@ish.com.au> <790a9fff0910220001m3d7df03j127b51d7d0696271@mail.gmail.com> In-Reply-To: <790a9fff0910220001m3d7df03j127b51d7d0696271@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: gpart, bsdlabel and fdisk X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2009 08:09:43 -0000 On 22/10/09 6:01 PM, Scot Hetzel wrote: > http://wiki.freebsd.org/RootOnZFS > > If anyone notices a problem with them, either let me know or update > the wiki page. That's very helpful, thanks Scot. It raises some questions: * you don't have the instruction to perform "echo 'a 1' | fdisk -f - /dev/ad4" which Robert recommends * Robert recommends GPT as the "easiest way to get ZFS on root working". Your instructions seem to lean more toward MBR "The advantage of using a MBR disk is that you can still dual boot with other Operating Systems.". Are there any downsides of using MBR which should be explained? * I've seen posts here (sorry I don't have one handy) which recommend to not put swap on ZFS. Apart from crash dumps are there any other reasons to prefer one over the other? Your instructions explain both, without giving much of a guide about why you'd choose one. Is a 'native' swap faster than one on ZFS? * you write LOADER_ZFS_SUPPORT=YES to src.conf, while previous instruction in this thread had it written to make.conf * In order to follow http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror will you need to run this from the live CD rather than the first install CD? * At the top of the same page you give instructions for creating boot, swap and zfs partitions. But your instructions give block sizes very specific to your disks. It would be helpful to have something like: gpart add -b 34 -s 128 -t freebsd-boot ad0 (why 34? this is a different magic number to other magic numbers I've seen suggested) gpart add -b 162 -s 8G -t freebsd-swap ad0 (the 8G is more readable than specifying in sectors) or even gpart add -b 162 -s 8G -t freebsd-swap -l swap-ad0 ad0 (the human readable label appears to be a nice feature of GPT) then gpart show ad0 and look for the offset and size following the "free" space. [1] offset=`gpart show ad0 | grep '\- free \-' | awk '{print $1}'` size=`gpart show ad0 | grep '\- free \-' | awk '{print $2}'` gpart add -b $offset -s $size -t freebsd-zfs -l system-ad0 ad0 As a feature request it would be great if gpart supported "-s all" and made "-b" optional so that the next add starts at the beginning of the first free space. Ari [1] That's from Philipp Wuensche's instructions I found. --------------------------> ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A