From owner-freebsd-current@FreeBSD.ORG Tue Jul 29 23:34:56 2008 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 458121065675 for ; Tue, 29 Jul 2008 23:34:56 +0000 (UTC) (envelope-from hartzell@alerce.com) Received: from merlin.alerce.com (merlin.alerce.com [64.62.142.94]) by mx1.freebsd.org (Postfix) with ESMTP id 2C5548FC08 for ; Tue, 29 Jul 2008 23:34:55 +0000 (UTC) (envelope-from hartzell@alerce.com) Received: from merlin.alerce.com (localhost [127.0.0.1]) by merlin.alerce.com (Postfix) with ESMTP id 74F9E33C62 for ; Tue, 29 Jul 2008 16:35:15 -0700 (PDT) Received: from postfix.alerce.com (w092.z064001164.sjc-ca.dsl.cnc.net [64.1.164.92]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by merlin.alerce.com (Postfix) with ESMTP id 3825333C5B for ; Tue, 29 Jul 2008 16:35:15 -0700 (PDT) Received: by postfix.alerce.com (Postfix, from userid 501) id 79A2949566D; Tue, 29 Jul 2008 16:34:54 -0700 (PDT) From: George Hartzell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18575.43294.402445.951004@almost.alerce.com> Date: Tue, 29 Jul 2008 16:34:54 -0700 To: freebsd-current@freebsd.org X-Mailer: VM 7.19 under Emacs 22.1.50.1 X-Virus-Scanned: ClamAV using ClamSMTP X-Mailman-Approved-At: Tue, 29 Jul 2008 23:38:42 +0000 Subject: root on zfs, mirrored /boot, encrypted swap, easy as pie. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hartzell@alerce.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2008 23:34:56 -0000 I mentioned this set of tools in the recent ZFS-patches thread, but I think that it's worth mentioning in a stand alone thread for folks who are interested in playing with a root on zfs configuration. I stumbled across this via google and found it to be *very* useful. I don't know the author..... He has a script that builds a bootable usb drive given a release CD and a script that automagically builds a fancy root on zfs installation (mirrored, raidz, raidz2) that you can run from that bootable usb drive. It takes care of all of the niggly little details that have been discussed here and on freebsd-fs, mirrors a boot partition and takes care of nullfs mounting parts of it to /boot and /rescue. It automatically encrypts swap, sets up all kinds of zfs filesystems and zvols. It includes some nice comments about the why it's doing what it's doing. You'll certainly want to read it and understand what it's up to. You'll probably want to edit the list of filesystems it builds and/or change various options. You also may not want all of the fancy features, but it's easy enough to edit the script. http://yds.coolrat.org/zfsboot.shtml g.