Mount order for ZFS, jails, and nullfs

2010-09-24 Thread Torbjorn Granlund
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 ja

Re: Mount order for ZFS, jails, and nullfs

2010-09-24 Thread Torbjorn Granlund
krad writes: use zfs mount/umount How? The "zfs mount" command does not work anyting like the mount(8) command but for ZFS volumes. The "zfs mount" mounts a volume using its mountpoint property. But if that's set to "legacy", then zfs mount will hardly work, since it cannot take a mount p

Re: Mount order for ZFS, jails, and nullfs

2010-09-24 Thread krad
On 24 September 2010 17:03, Torbjorn Granlund 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 on

Re: Mount order for ZFS, jails, and nullfs

2010-09-24 Thread krad
On 24 September 2010 18:52, krad wrote: > > > On 24 September 2010 17:03, Torbjorn Granlund 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

Re: Mount order for ZFS, jails, and nullfs

2010-09-24 Thread CyberLeo Kitsana
On 09/24/2010 11:03 AM, Torbjorn Granlund wrote: > ... > Unfortunately, FreeBSD's mount seems unable to perform mounts of ZFS > volumes. Sure, it can: 8< (f84104b2)[r...@akisha ~]# zfs create akisha/mnttmp (f84104b2)[r...@akisha ~]# touch /zfs/akisha/mnttmp/test (f84104b2)[r...@akisha ~]#

Re: Mount order for ZFS, jails, and nullfs

2010-09-25 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Fri Sep 24 11:02:59 2010 > To: freebsd-questions@freebsd.org > From: Torbjorn Granlund > Date: Fri, 24 Sep 2010 18:03:06 +0200 > Subject: Mount order for ZFS, jails, and nullfs > > In jails, I'd like a local ZFS /, a read-only