Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 May 2012 07:07:11 +1000
From:      Peter Jeremy <peterjeremy@acm.org>
To:        freebsd-fs@freebsd.org
Subject:   ZFS with multiple boot/root pools
Message-ID:  <20120430210711.GA50280@server.vk2pj.dyndns.org>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120430210711.GA50280>