Re: zfsboot patch for /usr

2016-03-10 Thread Ultima
No need to ignore the output of zfs list, here is an explanation of zfs list's output, this is in the zfs man page. I think you're confusing used with refer. used The amount of space consumed by this dataset and all its descendents. This is the value that is checked against this

Re: zfsboot patch for /usr

2016-03-10 Thread Roger Marquis
> You don't mkdir it, you create it as a ZFS dataset, and mark it with the > 'canmount=no' property, so it only exists to be a parent, not as an > actual dataset. This is the default in zfboot currently. Thanks to everyone for pointing this out. I'll forget about mkdir then, ignore the output of

Re: zfsboot patch for /usr

2016-03-10 Thread Matthew Seaman
On 10/03/2016 01:02, Freddie Cash wrote: > Set mountpoint=none if you just want to create the parent dataset without > actually using it for storage. Then you can set properties on it, and child > datasets will inherit then. Like pool/usr/local Usually, you want the mountpoint to be one of the inh

Re: zfsboot patch for /usr

2016-03-09 Thread Allan Jude
On 03/09/2016 18:36, Roger Marquis wrote: > Wondering if anyone has example patches for zfsboot (from > usr.sbin/bsdinstall/scripts)? > > We're looking to change some of the default zfs subvolumes, removing /usr in > favor of /usr/local in particular, and have run into a "parent does not exist" >

Re: zfsboot patch for /usr

2016-03-09 Thread Ultima
Zfs automatically creates directories needed to be mounted, it would be a wasted effort making directories for zfs. I don't really understand your issue with an unused /usr dataset, but you can just modify the ZFSBOOT_DATASETS area of the script to get accomplish what you're trying to do. On Wed,

Re: zfsboot patch for /usr

2016-03-09 Thread Freddie Cash
On Mar 9, 2016 4:04 PM, "Miroslav Lachman" <000.f...@quip.cz> wrote: > > Roger Marquis wrote on 03/10/2016 00:36: >> >> Wondering if anyone has example patches for zfsboot (from >> usr.sbin/bsdinstall/scripts)? >> >> We're looking to change some of the default zfs subvolumes, removing /usr in >> fa

Re: zfsboot patch for /usr

2016-03-09 Thread Roger Marquis
> I no nothing about this script but if you want /usr/local as ZFS > filesystem, then you need to create parent (/usr in this case) and you > can use property canmount=off plus different 'mountpoint' (for example > /mnt/usr) to not mount /usr over existing directory on root filesystem. Exactly, bu

Re: zfsboot patch for /usr

2016-03-09 Thread Miroslav Lachman
Roger Marquis wrote on 03/10/2016 00:36: Wondering if anyone has example patches for zfsboot (from usr.sbin/bsdinstall/scripts)? We're looking to change some of the default zfs subvolumes, removing /usr in favor of /usr/local in particular, and have run into a "parent does not exist" issue. It'

zfsboot patch for /usr

2016-03-09 Thread Roger Marquis
Wondering if anyone has example patches for zfsboot (from usr.sbin/bsdinstall/scripts)? We're looking to change some of the default zfs subvolumes, removing /usr in favor of /usr/local in particular, and have run into a "parent does not exist" issue. It's not clear where in the script the /usr pa