Antony Uspensky
2015-Feb-08 20:54 UTC
10.1-RELEASE: bsdinstall on zfs: /var and /usr on zroot/ROOT/default
On Sun, 8 Feb 2015, Raphael Eiselstein wrote:> Hi everyone, > > I recently installed a fresh 10.1-RELEASE (amd64) using bsdinstalls > zfs-setup on two mirrored disks. > > As I wanted to move zroot/usr/home to zroot/home I noticed that > everything from /usr and /var is in the "/" mount (zroot/ROOT/default) > > The "mountpoint" property of zroot/var and zroot/usr seems correct but > in fact it is not mounted there. > > See http://sigsys.de/files/freebsd_101_zfs_root_fail_screenshot.jpg > (sorry, had no networking at this moment, so just a regular screenshot) > > Is this a known bug? > How can this be circumvented? > How can I "fix" this?This is not a bug and you should not fix it: this setup uses boot environments and /var and /usr with content belongs to particular BE. If/when you will fork BE with, say, CURRENT, it will need different files, hierarchies and filesets in /usr and /var. On the other hand, /home, /var/log, /tmp, /var/tmp et cetera live outside of any BE. Good news: booting into single user you may use vi or mc :) A.
Raphael Eiselstein
2015-Feb-08 23:26 UTC
FreeBSD ZFS with Boot Environments (Was: 10.1-RELEASE: bsdinstall on zfs: /var and /usr on zroot/ROOT/default)
On Sun, Feb 08, 2015 at 11:54:12PM +0300, Antony Uspensky wrote:> On Sun, 8 Feb 2015, Raphael Eiselstein wrote: > >As I wanted to move zroot/usr/home to zroot/home I noticed that > >everything from /usr and /var is in the "/" mount (zroot/ROOT/default) > >The "mountpoint" property of zroot/var and zroot/usr seems correct but > >in fact it is not mounted there.> This is not a bug and you should not fix it: > this setup uses boot environments and /var and /usr with contentThis was not obvious (for me). I use ZFS since 8.x with FreeBSD (with manual setup of zroot / gptzfs-bootloader etc) and with Debian wheezy for a while so I'm not "new" to ZFS. Having a BE is cool stuff I guess, but it lacks some documentation (at least in FreeBSD handbook). I found just a side note about "boot environments" in the "FreeBSD handbook": https://www.freebsd.org/doc/handbook/bsdinstall-partitioning.html Is there some "official" documentation about boot environments? Searching the web for 'site:freebsd.org zfs "boot environment"' I found https://forums.freebsd.org/threads/howto-freebsd-zfs-madness.31662/ So is this "official" or mainstream or just a experimental hack or a poc? Regards Raphael -- Raphael Eiselstein <rabe at uugrn.org> PGP 4E63 5307 6F6A 036D 518D 3C4F 75EE EA14 F625 DB4E .........|.........|.........|.........|.........|.........|.........|.. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20150209/54e9eff4/attachment.sig>