My normal ZFS filesystem build process may look something like:
zpool create vol1 -o autoexpand=on -o autoreplace=on mirror nvme0n1 nvme1n1 -f
zfs set compression=lz4 vol1
zfs set atime=off vol1
zfs set xattr=sa vol1
zfs set acltype=posixacl vol1
zfs create vol1/data -o mountpoint=/data
ZFS seems to allow setting options at filesystems and pool creation using the -o
flag. However, in many cases, I need to set filesystem parameters at the top level (for inheritance by new filesystems) rather than define locally.
Is there any way to streamline the multiple zfs set parameter=value
lines into a single command line?