Add ACL to an ZFS share


zfs set acltype=posixacl share/file


zfs set xattr=sa share/file

Change mountpoint

zfs set mountpoint=/path/to/mountpoint share/file

Autoextend pools

It is recommended to use whole disks as components in your pool. In Linux, it will curently make a GPT partition table, and this makes it hard to extend vdevs (pool components) later via the autoexpand feature. Changing the size of a partition device can not be done while the partition is active, so either the pool must be deactivated or the server rebooted. In most cases, this is equally disruptive. To work around this mis-feature, we use a trick from the bug report.

losetup /dev/loop2 /dev/vdb
losetup /dev/loop3 /dev/vdc
zpool create mypool /dev/loop2 /dev/loop3
zpool export mypool
losetup -d /dev/loop2
losetup -d /dev/loop3
zpool import
zpool import mypool