Date: Wed, 27 Jul 2016 22:18:38 -0400 From: Allan Jude <allanjude@freebsd.org> To: freebsd-current@freebsd.org Subject: Re: Boot environments and zfs canmount=noauto Message-ID: <da84ccae-6a71-6338-3a5b-b39a8dc25007@freebsd.org> In-Reply-To: <20160728020548.GD26793@gmail.com> References: <20160728020548.GD26793@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --swQIpMP0CpKVmJ8eeDTbiTpDwePf2gjrd Content-Type: multipart/mixed; boundary="tUAsGEVHSjuAftcCp88TIrCPLs1H3qGh1" From: Allan Jude <allanjude@freebsd.org> To: freebsd-current@freebsd.org Message-ID: <da84ccae-6a71-6338-3a5b-b39a8dc25007@freebsd.org> Subject: Re: Boot environments and zfs canmount=noauto References: <20160728020548.GD26793@gmail.com> In-Reply-To: <20160728020548.GD26793@gmail.com> --tUAsGEVHSjuAftcCp88TIrCPLs1H3qGh1 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016-07-27 22:05, Randy Westlund wrote: > I'm trying to follow Michael Dexter's post about using bhyve with boot > environments. It involves moving all child datasets under > zroot/ROOT/default, so that you can have entirely independent systems. >=20 > http://callfortesting.org/bhyve-boot-environments/ >=20 >> Let's change the datasets with "canmount on" to "canmount noauto": >> [snip] >> Considering that this setting is harmless to a system with a single >> boot environment, I would not object to it being the default. Hint >> hint.=20 >=20 > When I set all the datasets with canmount=3Don to canmount=3Dnoauto, on= ly > zroot/ROOT/default gets mounted on next boot. It's my understanding > that 'zfs mount -a' doesn't mount datasets with canmount=3Dnoauto, but = if > I leave them with canmount=3Don, they will try to mount regardless of > which BE is active. >=20 > I'm trying this with 11.0-BETA2. Can sometime tell me what I'm missing= ? >=20 You are not missing anything. This is why the default is to have all files that are specific to a BE be in the root dataset, and only files that are global (like home directory, etc) be outside of the BE. In order to do it the way Dexter is proposing, you can set them canmount=3Dnoauto or with mountpoint=3Dlegacy, and then mount them via fs= tab (defined differently in each BE), but that kind of defeats a lot of the purpose of ZFS. --=20 Allan Jude --tUAsGEVHSjuAftcCp88TIrCPLs1H3qGh1-- --swQIpMP0CpKVmJ8eeDTbiTpDwePf2gjrd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJXmWuCAAoJEBmVNT4SmAt+skoQAOJptWsZmCtlZ/fZP9v7f/KG 2wBNJCuk6Va1d27/0+lDwWGJAykaRaHeXHPTPPplRjV9i8kXaX923BU03VUecu0i Kr6OYLbbO2kq0miE9S5nNgevmbSK6ynZATyumMzNfzBm5to2yEYdrSTSS0Sde/M5 DoRj0jzOREEWeq04r4W8YCrvYtFalXic9b3b+sOinrd9Oe2Ne90FjhZXaVXegHrn IHT+DKPqyf2aTXTgtQG9a5l5kq8wiSphbbrpYuSfkELEsRUK00pHvFjYtdnhDYUy u3vxS6/4l6fniXT2BTk3UGCPcym0sA2CrPFeGf5lhb3hTLbh21se9gnfzSlwjdnR oZyvqrk+NbOLXItu8Ei24grREJpMEOIoTGzew021HYol92kkM/6DV+PyPtGeShNd hyBdXAUYDvrpWvSYv4Li33EE5XUxSHTbo6+HiG0NMuZJTWV+lEvdcw9m0wnJH9al DTnDdPG92on4Ir9jIbbVLmaFBdIvZNubhnljZ/O5TfjXYJH2RhTTyfy87x6JYMO2 JpgmLG55VGR5HMB5XtHTLWCN1UmQj0Bd9Ii75LIGB8fj1YliXS3d0W2dZ4x8h8KP T72UDSpbnbp91Oi+jDYvC8DZ6MnxNQJyLeo7Ydvw6AeWYwU+Yh1Noofp7qQjaztZ xcvx2TrsjwgVma467mNn =7nj3 -----END PGP SIGNATURE----- --swQIpMP0CpKVmJ8eeDTbiTpDwePf2gjrd--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?da84ccae-6a71-6338-3a5b-b39a8dc25007>