Help: FreeNAS 9.3 Release NFS4 don't work for me

Status
Not open for further replies.

HonYin Kok

Cadet
Joined
Dec 22, 2014
Messages
3
After upgrading to FreeNAS 9.3 on iXsystem FreeNAS, I would expect NFS4 client can mount correctly but it didn't work for me. I even goes to the Unix Share (Advanced Mode) and added sys, krb5, kbb5i, krb5p and none of these helps in any way.

# showmount -e zp02.nyq.hetco.com
Export list for zp02.nyq.hetco.com:
/mnt/pool1/backups 10.14.6.0,192.168.16.0
/mnt/pool1/clean 10.14.6.0,192.168.16.0
/mnt/pool1/raw 10.14.6.0,192.168.16.0

# mount -t nfs4 zp02.nyq.hetco.com:/mnt/pool1/clean /mnt/clean
mount.nfs4: Protocol not supported


On the FreeNAS server, I have confirmed I am running the correct version.

# uname -a
FreeBSD zp02.nyq.hetco.com 9.3-RELEASE-p5 FreeBSD 9.3-RELEASE-p5 #0 3b4abc3: Mon Dec 8 15:09:41 PST 2014 root@build3.ixsystems.com:/tank/home/jkh/build/M/FN/objs/os-base/amd64/fusion/jkh/M/FN/FreeBSD/src/sys/FREENAS.amd64 amd64

Questions:
1. Do I need to appped the following to /etc/rc.conf manually to enable NFS4?
nfs_server_enable="YES"
nfsv4_server_enable="YES"
nfsuserd_enable="YES"

2. Do I need to customized sysctl to enable locking? From FreeBSD is tsays the following need to set

vfs.nfsd.issue_delegations
when set non-zero, allows the server to issue Open Delegations to
clients. These delegations permit the client to manipulate the
file locally on the client. Unfortunately, at this time, client
use of delegations is limited, so performance gains may not be
observed. This can only be enabled when the file systems being
exported to NFSv4 clients are not being accessed locally on the
server and, if being accessed via NFS Version 2 or 3 clients,
these clients cannot be using the NLM.

vfs.nfsd.enable_locallocks
can be set to 0 to disable acquisition of local byte range locks.
Disabling local locking can only be done if neither local
accesses to the exported file systems nor the NLM is operating on
them.

The client side NFS on CentOS works fine since I can create NFS share on Linux and mount them successfully.

3. The following is the list of the tunable NFS parameters on my FreeNAS. Any idea where I should go from here to enable NFS4?

# sysctl -a | grep nfs
kern.features.nfscl: 1
kern.features.nfsd: 1
vfs.nfs.downdelayinitial: 12
vfs.nfs.downdelayinterval: 30
vfs.nfs.keytab_enctype: 1
vfs.nfs.skip_wcc_data_onerr: 1
vfs.nfs.nfs3_jukebox_delay: 10
vfs.nfs.reconnects: 0
vfs.nfs.bufpackets: 4
vfs.nfs.debuglevel: 0
vfs.nfs.callback_addr:
vfs.nfs.realign_count: 0
vfs.nfs.realign_test: 0
vfs.nfs.nfs_directio_allow_mmap: 1
vfs.nfs.nfs_keep_dirty_on_error: 0
vfs.nfs.nfs_directio_enable: 0
vfs.nfs.clean_pages_on_close: 1
vfs.nfs.commit_on_close: 0
vfs.nfs.prime_access_cache: 0
vfs.nfs.access_cache_timeout: 60
vfs.nfs.diskless_rootpath:
vfs.nfs.diskless_valid: 0
vfs.nfs.nfs_ip_paranoia: 1
vfs.nfs.defect: 0
vfs.nfs.iodmax: 20
vfs.nfs.iodmin: 0
vfs.nfs.iodmaxidle: 120
vfs.nfsd.disable_checkutf8: 0
vfs.nfsd.server_max_nfsvers: 3
vfs.nfsd.server_min_nfsvers: 2
vfs.nfsd.nfs_privport: 0
vfs.nfsd.async: 0
vfs.nfsd.readdirplus_usevget: -1
vfs.nfsd.enable_stringtouid: 0
vfs.nfsd.enable_locallocks: 0
vfs.nfsd.issue_delegations: 0
vfs.nfsd.commit_miss: 0
vfs.nfsd.commit_blks: 0
vfs.nfsd.mirrormnt: 1
vfs.nfsd.cachetcp: 1
vfs.nfsd.tcpcachetimeo: 43200
vfs.nfsd.udphighwater: 500
vfs.nfsd.tcphighwater: 0
vfs.nfsd.fha.enable: 1
vfs.nfsd.fha.bin_shift: 22
vfs.nfsd.fha.max_nfsds_per_fh: 8
vfs.nfsd.fha.max_reqs_per_nfsd: 0
vfs.nfsd.fha.fhe_stats: No file handle entries.
vfs.nfsd.minthreads: 8
vfs.nfsd.maxthreads: 8
vfs.nfsd.threads: 8
vfs.nfsd.groups: 1
vfs.nfsd.request_space_used: 0
vfs.nfsd.request_space_used_highest: 1400
vfs.nfsd.request_space_high: 47185920
vfs.nfsd.request_space_low: 31457280
vfs.nfsd.request_space_throttled: 0
vfs.nfsd.request_space_throttle_count: 0
vfs.acl_nfs4_old_semantics: 0
debug.dtrace.providers: dtrace dtmalloc nfscl fbt lockstat mac mac_framework opencrypto vnet vfs io sched callout_execute sdt proc priv cbb syscall syscall profile

4. Should I install the latest stable release instead of just the final release? I assume the stable release are version that are well tested and contain bug fixes to the official final release 9.3 since they have the newer timestamp on the file (eg. FreeNAS-9.3-STABLE-201412200530.GUI_Upgrade.txz)
 
Last edited:

HonYin Kok

Cadet
Joined
Dec 22, 2014
Messages
3
The solution is go to services and check enable NFSv4. It also require touch two files in /etc/ and /conf/base/etc directory.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
You don't have to touch those files. You only have to check the box in the NFS settings to enable NFSv4. ;)
 
Status
Not open for further replies.
Top