How to NFSv4 share a ZFS file system on FreeBSD?

Posted by Sandra on Server Fault See other posts from Server Fault or by Sandra
Published on 2012-11-22T16:20:23Z Indexed on 2012/11/22 17:00 UTC
Read the original article Hit count: 167

Filed under:
|
|
|

Using FreeBSD 9, and created a ZFS file system like so

zfs create tank/project1
zfs set sharenfs=on tank/project1

There are many howto's on setting up NFSv3 on FreeBSD on the net, but I can't find any one NFSv4 and when the NFS share is done with ZFS.

E.g. this howto say I have to restart the (NFSv3) by nfsd -u -t -n 4, but I don't even have nfsd.

When I do

# echo /usr/ports/*/*nfs*
/usr/ports/net-mgmt/nfsen /usr/ports/net/nfsshell /usr/ports/net/pcnfsd /usr/ports/net/unfs3 /usr/ports/sysutils/fusefs-chironfs /usr/ports/sysutils/fusefs-funionfs /usr/ports/sysutils/fusefs-unionfs
#

I don't see any NFSv4 servers, which I could install with pkg_add.

Question

How do I install and setup NFSv4, so I can mount the share from e.g. a Linux host?

© Server Fault or respective owner

Related posts about linux

Related posts about freebsd