Date: Wed, 16 Oct 2013 09:34:57 +0100 From: krad <kraduk@gmail.com> To: Anton Sayetsky <vsjcfm@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: [zfs] root mountpoint Message-ID: <CALfReycJTyxbtYb_-pu0gCAY78AzakJ1fmLZuk7mqdjTX1Rvxg@mail.gmail.com> In-Reply-To: <CAFG2KCJKxvWxw_pxuWQ0YQQ0bs8Vy2PNOyK_7OcSJ%2B1iW_-NPw@mail.gmail.com> References: <CAFG2KCJKxvWxw_pxuWQ0YQQ0bs8Vy2PNOyK_7OcSJ%2B1iW_-NPw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
legacy is better if you want boot environments, or multiple os installations on the pool. Which gets mounted as root is controled by the bootfs property of the pool. You can work it another way, by setting the mountpoint as / and fiddling with the canmount property (solaris 11 uses this in its boot envs) Below is a test installation of a freebsd vm im playing with [root@f10 /home/krad]# zfs list NAME USED AVAIL REFER MOUNTPOINT rpool 5.07G 25.0G 32K /rpool rpool/ROOT 4.00G 25.0G 31K legacy rpool/ROOT/2013101601 1K 27.0G 937M legacy rpool/ROOT/root 937M 26.0G 937M legacy rpool/system 1.07G 25.0G 31K /rpool/system rpool/system/home 39K 25.0G 39K /home rpool/system/obj 18.8M 25.0G 18.8M /usr/obj rpool/system/ports 31K 25.0G 31K /usr/ports rpool/system/src 870M 25.0G 870M /usr/src rpool/system/tmp 35K 25.0G 35K /tmp rpool/system/usr-local 97.7M 25.0G 97.7M /usr/local rpool/system/var 105M 25.0G 105M /var On 15 October 2013 12:31, Anton Sayetsky <vsjcfm@gmail.com> wrote: > Hello, > I decided to install FreeBSD on ZFS root. In almost all guides i saw > the following recommendation: > zpool create -o altroot=/mnt zroot /dev/${device} > zfs create zroot/var > zfs create ... > ... > zfs set mountpoint=legacy zroot > zfs set mountpoint=/var zroot/var > zfs set mountpount=... > ... > reboot > > So we're setting mountpoins for all first-level childs of zroot. > > Why just don't use the following simpler setup, when mountpoint set only > once: > zpool create -o altroot=/mnt zroot /dev${device} > zfs set mountpoint=/ zroot > zfs create zroot/var > zfs create ... > ... > reboot > > I've tested both ways, the second also works perfectly but requires > less commands to enter. Can anybody explain me why I can't see > recommendations to set mountpoint=/ for zroot instead of > mountpoint=legacy? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALfReycJTyxbtYb_-pu0gCAY78AzakJ1fmLZuk7mqdjTX1Rvxg>