From owner-freebsd-fs@FreeBSD.ORG Tue May 1 00:39:57 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A0E0106564A for ; Tue, 1 May 2012 00:39:57 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from fallbackmx09.syd.optusnet.com.au (fallbackmx09.syd.optusnet.com.au [211.29.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id CB2CA8FC14 for ; Tue, 1 May 2012 00:39:56 +0000 (UTC) Received: from mail12.syd.optusnet.com.au (mail12.syd.optusnet.com.au [211.29.132.193]) by fallbackmx09.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id q410dnhJ000779 for ; Tue, 1 May 2012 10:39:49 +1000 Received: from server.vk2pj.dyndns.org (c220-239-251-180.belrs5.nsw.optusnet.com.au [220.239.251.180]) by mail12.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id q410dcOO029708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 1 May 2012 10:39:41 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.5/8.14.4) with ESMTP id q410db0X072442; Tue, 1 May 2012 10:39:37 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.5/8.14.5/Submit) id q410dbgi072441; Tue, 1 May 2012 10:39:37 +1000 (EST) (envelope-from peter) Date: Tue, 1 May 2012 10:39:37 +1000 From: Peter Jeremy To: Bryan Drewery Message-ID: <20120501003937.GB53691@server.vk2pj.dyndns.org> References: <20120430210711.GA50280@server.vk2pj.dyndns.org> <4F9F0EC6.1060802@shatow.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <4F9F0EC6.1060802@shatow.net> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@freebsd.org Subject: Re: ZFS with multiple boot/root pools X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2012 00:39:57 -0000 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2012-Apr-30 17:14:30 -0500, Bryan Drewery wrote: >On 04/30/2012 04:07 PM, Peter Jeremy wrote: >> I have boot/root on one ZFS pool and for recovery purposes keep a=20 >> second ZFS boot/root pool in case the first one becomes >> unbootable. =2E.. >'zfs set canmount=3Dnoauto' on all of your non-active datasets. This >will stop 'zfs mount -a' (/etc/rc.d/zfs) from mounting them. That's OK for preventing filesystems on the secondary boot pool from auto-mounting when booting from the primary pool but doesn't handle booting from the secondary pool - a "zfs mount -a" there will automount all the primary filesystems instead of the wanted secondary ones. That said, this does appear to be the closest to a usable workaround at this time. >There's also a port sysutils/beadm for managing multiple boot >environments. I've noted that there's work being done on boot environments. Whilst this is welcome, it is orthogonal to having multiple boot pools. In particular, boot environments don't handle the situation where [gpt]zfsboot refuses to load the kernel. Whilst there have been some improvements to the ZFS bootloader, it is still unable to handle all ZFS fragmentation results - in which case you need an alternative boot pool. --=20 Peter Jeremy --9amGYk9869ThD9tj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk+fMMkACgkQ/opHv/APuIeAzACgi+WljwQzE+PnJFQ+F1PRiypf TAAAn1Icf74ah/7urKGP+cRs4uAU2JPO =X+5E -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--