Date: Thu, 28 Jul 2016 14:59:06 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> To: Andriy Gapon <avg@FreeBSD.org>, Allan Jude <allanjude@FreeBSD.org>, freebsd-current@FreeBSD.org, rwestlun@gmail.com Subject: Re: Boot environments and zfs canmount=noauto Message-ID: <579A019A.4090400@quip.cz> In-Reply-To: <f7ca43c4-1f04-3f4d-e1e0-f1d9e0478c5c@FreeBSD.org> References: <20160728020548.GD26793@gmail.com> <da84ccae-6a71-6338-3a5b-b39a8dc25007@freebsd.org> <5e49ab87-65ff-fe20-1e50-387e3484cc47@FreeBSD.org> <f7ca43c4-1f04-3f4d-e1e0-f1d9e0478c5c@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Andriy Gapon wrote on 07/28/2016 14:44: > > I also would like to add, just in case, that I never set a BE's > mountpoint to '/'. I leave it at its default value like > /pond/ROOT/foobar. When the BE is active it would be mounted at / > anyway. And when it is not active and I want to access it for some > modifications, etc, then I can mount it simply with zfs mount and have > it at a non-interfering location. Ditto for its subordinate datasets. > > I am saying this, because it seems that that is not how the FreeBSD > installer ("zfsboot") configures the default BE that it creates. I am > not sure what sysutils/beadm expects and configures in this regard. I > use my own custom script for doing beadm-like things. beadm works with the following layout NAME USED AVAIL REFER MOUNTPOINT sys 10.8G 3.63G 96K none sys/ROOT 1.45G 3.63G 96K none sys/ROOT/b4pupg_20160516 8K 3.63G 606M / sys/ROOT/b4pupg_20160523 8K 3.63G 621M / sys/ROOT/b4pupg_20160531 8K 3.63G 643M / sys/ROOT/b4pupg_20160616 8K 3.63G 649M / sys/ROOT/b4pupg_20160627 8K 3.63G 655M / sys/ROOT/b4supd_20160523 8K 3.63G 621M / sys/ROOT/b4supd_20160728 8K 3.63G 664M / sys/ROOT/default 1.45G 3.63G 663M / sys/tmp 104K 3.63G 104K /tmp sys/usr 7.42M 3.63G 96K none sys/usr/home 6.72M 3.63G 6.72M /usr/home sys/usr/obj 96K 3.63G 96K /usr/obj sys/usr/ports 428K 3.63G 332K /usr/ports sys/usr/ports/distfiles 96K 3.63G 96K /usr/ports/distfiles sys/usr/src 96K 3.63G 96K /usr/src sys/var 9.31G 3.63G 96K none sys/var/audit 96K 3.63G 96K /var/audit sys/var/log 9.31G 3.63G 9.31G /var/log sys/var/tmp 152K 3.63G 152K /var/tmp Note mountpoint "none" on sys/usr and sys/var. They are not mounted intermediate directories, because /usr and /var should be part of the BE, but some subdirectories should not be part of BE. BEs under sys/ROOT have this properties # zfs get all | grep mount sys mounted no - sys mountpoint none local sys canmount on default sys/ROOT mounted no - sys/ROOT mountpoint none inherited from sys sys/ROOT canmount on default sys/ROOT/b4pupg_20160516 mounted no - sys/ROOT/b4pupg_20160516 mountpoint / local sys/ROOT/b4pupg_20160516 canmount off local sys/ROOT/b4pupg_20160523 mounted no - sys/ROOT/b4pupg_20160523 mountpoint / local sys/ROOT/b4pupg_20160523 canmount off local sys/ROOT/b4pupg_20160531 mounted no - sys/ROOT/b4pupg_20160531 mountpoint / local sys/ROOT/b4pupg_20160531 canmount off local sys/ROOT/b4pupg_20160616 mounted no - sys/ROOT/b4pupg_20160616 mountpoint / local sys/ROOT/b4pupg_20160616 canmount off local sys/ROOT/b4pupg_20160627 mounted no - sys/ROOT/b4pupg_20160627 mountpoint / local sys/ROOT/b4pupg_20160627 canmount off local sys/ROOT/b4supd_20160523 mounted no - sys/ROOT/b4supd_20160523 mountpoint / local sys/ROOT/b4supd_20160523 canmount off local sys/ROOT/b4supd_20160728 mounted no - sys/ROOT/b4supd_20160728 mountpoint / local sys/ROOT/b4supd_20160728 canmount off local sys/ROOT/default mounted yes - sys/ROOT/default mountpoint / local sys/ROOT/default canmount on default Miroslav Lachman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?579A019A.4090400>