From owner-freebsd-fs@FreeBSD.ORG Mon Apr 30 21:07:29 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52C54106566B for ; Mon, 30 Apr 2012 21:07:29 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail17.syd.optusnet.com.au (mail17.syd.optusnet.com.au [211.29.132.198]) by mx1.freebsd.org (Postfix) with ESMTP id DA1658FC0C for ; Mon, 30 Apr 2012 21:07:28 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c220-239-251-180.belrs5.nsw.optusnet.com.au [220.239.251.180]) by mail17.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id q3UL7Kw5028258 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 1 May 2012 07:07:21 +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 q3UL7C2j050448; Tue, 1 May 2012 07:07:12 +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 q3UL7CkK050447; Tue, 1 May 2012 07:07:12 +1000 (EST) (envelope-from peter) Date: Tue, 1 May 2012 07:07:11 +1000 From: Peter Jeremy To: freebsd-fs@freebsd.org Message-ID: <20120430210711.GA50280@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) Subject: 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: Mon, 30 Apr 2012 21:07:29 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I have boot/root on one ZFS pool and for recovery purposes keep a second ZFS boot/root pool in case the first one becomes unbootable. My problem is that: 1) A zpool must be imported to be bootable 2) Most ZFS root filesystems have absolute mountpoints specified 3) /etc/rc.d/zfs automounts all imported ZFS filesytems results in double mounts of various filesystems. Can anyone suggest a way to configure a zpool or set of filesystems so that they will only be mounted if the root filesystem is within the zpool. I looked at the "zfs mount -a" in /etc/rc.d/zfs but there doesn't appear to be a suitable alternative. A variant that mounted all automount filesystems within a specified list of zpools would work but doesn't exist. Any other suggestions? How do other people handle this? --=20 Peter Jeremy --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk+e/v8ACgkQ/opHv/APuIcxzgCfeyI1iBHFlaTFnL+Kfg/RBxsO A/sAn33+kgwe53QIIbtWMN6f6khVb+Mj =hNw9 -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--