Skip to content

ZFS FAQ

Lucas Holt edited this page Aug 22, 2022 · 14 revisions

How do I remount a filesystem in read/write mode? zfs set readonly=off zroot

How do I mount all filesystems? zfs mount -a

NFS

Setup NFS shares

zfs set sharenfs="-maproot=0 -network 192.168.0.0/24" zroot/my/path

service mountd restart

Verify configuration

zfs get sharenfs zroot/my/path

Note that any entries from sharenfs commands get placed in /etc/zfs/exports

Setting up multiple subnets

note the new lines INSIDE the quotes

zfs set sharenfs="-maproot=root -network 10.0.0.0/24

> /path/to/mountpoint -maproot=root -network 192.168.0.0/24

> /path/to/mountpoint -maproot=root -network 172.16.0.0/24" pool0/space