Skip to content

Instantly share code, notes, and snippets.

@evanscottgray
Last active January 27, 2017 16:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanscottgray/19e6c3ce68733d1a883d to your computer and use it in GitHub Desktop.
Save evanscottgray/19e6c3ce68733d1a883d to your computer and use it in GitHub Desktop.
created by https://github.com/tr3buchet/gister, zfs and fedora 22 nfs

getting nfs rocking with zfs on fedora 22

we assume that you have a zfs dataset already called media.

# start nfs service (might fail because no rpcbind https://unix.stackexchange.com/questions/184338/nfs-no-longer-mounts-rpc-statd-fails-to-start)
systemctl start nfs
# if failed enable and start it.
systemctl enable rpcbind
systemctl start rpcbind
# get nfs going
systemctl restart nfs
# export that sweet sweet mount (we do it with insecure that way you can have clients connect from unprivileged ports.)
zfs set sharenfs="insecure,rw=@192.168.1.0/24" tank/media
zfs share tank/media
# view your mount in all its glory
showmount -e
# you might need to add firewall exceptions
firewall-cmd --permanent --add-service mountd
firewall-cmd --permanent --add-service rpc-bind
firewall-cmd --permanent --add-service nfs
firewall-cmd --list-all
firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment