Personal tools
You are here: Home Storage Network Nas4Free Enable NFS v4 on NAS4Free v9.1

Enable NFS v4 on NAS4Free v9.1

By default NAS4Free has NFS 4 support as provided by FreeBSD 9.1 but it is not enabled. This forum post describes how to enable it.

The NFS mountd is run as follows:

/usr/sbin/mountd -r /etc/exports /etc/zfs/exports

with both /etc/exports and /etc/zfs/exports listed. It is assumed that the /etc/exports file will be overwritten by the web UI when configuration changes are made, so changes are added to the /etc/zfs/exports file in the hope that they will be left undisturbed.

The following must be added to the /etc/zfs/exports file:

V4: /

Procedure

 

rc.conf

Add the following three variables to the rc.conf page. From the System menu, select Advanced then move to the rc.conf tab:

Variable Value
nfsv_server_enable YES
nfsv4_server_enable
 YES
nfsuserd_enable  YES

Command scripts

Add the following command script to the Command scripts tab. From the System menu, select Advanced then move to the Command scripts tab:

Command Type
echo "V4: /" >> /etc/zfs/exports
PreInit

Residuals

  • consider exporting just the zfs datasets with a export root of "V4: /mnt/tank"
  • work out how to get IPv6 NFS exports working

Links

Appendices

 

Document Actions