Date: Fri, 24 Sep 2010 18:52:31 +0100 From: krad <kraduk@gmail.com> To: Torbjorn Granlund <tg@gmplib.org> Cc: freebsd-questions@freebsd.org Subject: Re: Mount order for ZFS, jails, and nullfs Message-ID: <AANLkTimf%2BpcomYORZa3JucKCc9Ju=vZ2Fa%2B0oZxH=D5R@mail.gmail.com> In-Reply-To: <867hibxh6t.fsf@shell.gmplib.org> References: <867hibxh6t.fsf@shell.gmplib.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 24 September 2010 17:03, Torbjorn Granlund <tg@gmplib.org> wrote: > In jails, I'd like a local ZFS /, a read-only nullfs-mounted /usr, and a > local /usr/local. (I'd also have read-only nullfs-mounted /bin, /lib, > /libexec, but let's forget about that for now.) > > This way, I can upgrade the master /usr once, in one place, and have all > jails inherit it. And my dear jail inmates can install anything in > /usr/local (such as their favourite packages/ports). > > I.e., things should look like this: > > /myjail/ zfs > /myjail/usr nullfs ro > /myjail/usr/local zfs > > There is no problem to make this happen by issuing a handful of commands > manually after boot, but I cannot seem to get it to work automatically, > with existing boot mechanism. The problem is that the mount of /usr > will be attempted before ZFS has mounted /myjail, the jail's root. > > ZFS maintains its own mount table. It is possible to disable the > automated mounting in ZFS by specifying the pseudo mountpoint "legacy", > and then--according to the FreeBSD manual--mount it with mount(8). > Unfortunately, FreeBSD's mount seems unable to perform mounts of ZFS > volumes. > > How can I achieve the result I want after a reboot? > > > (The reply "use ezjail!" is not the right one. :-) It does not do what > I want to do. I dislike its symlink forest, and that it creates just > one ZFS filesystem for the entire jail.) > > -- > Torbj=F6rn > _______________________________________________ > 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" > use zfs mount/imount
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimf%2BpcomYORZa3JucKCc9Ju=vZ2Fa%2B0oZxH=D5R>