From owner-freebsd-current@freebsd.org Thu Jul 28 12:59:11 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B3B1BA5B81 for ; Thu, 28 Jul 2016 12:59:11 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 99A151C94; Thu, 28 Jul 2016 12:59:09 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 9794228428; Thu, 28 Jul 2016 14:59:07 +0200 (CEST) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 51A072840C; Thu, 28 Jul 2016 14:59:06 +0200 (CEST) Message-ID: <579A019A.4090400@quip.cz> Date: Thu, 28 Jul 2016 14:59:06 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32 MIME-Version: 1.0 To: Andriy Gapon , Allan Jude , freebsd-current@FreeBSD.org, rwestlun@gmail.com Subject: Re: Boot environments and zfs canmount=noauto References: <20160728020548.GD26793@gmail.com> <5e49ab87-65ff-fe20-1e50-387e3484cc47@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2016 12:59:11 -0000 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