Support for nfs4?

Status
Not open for further replies.

Daisuke

Contributor
Joined
Jun 23, 2011
Messages
1,036
I'm trying to mount a FreeNAS share on CentOS 5.7 with nfs4 and I get a program/version mismatch. Does FreeNAS support nfs4?

Code:
# cat /etc/exports
/mnt/nas/unix -quiet -maproot=root:wheel -network 192.168.1.0/24


Can I add this to /etc/exports?
Code:
V4: /mnt/nas
/mnt/nas/unix -quiet -maproot=root:wheel -network 192.168.1.0/24


I'm looking into /etc/rc.conf.local and I don't see anything relevant to nfsv4_server_enable.

Thanks.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Yes, it's version 4.4 I think. I think that error is one of those misleading ones. I've seen it before, try googling for it, I think there's some command argument or setting in fstab that will make it work.
 

Daisuke

Contributor
Joined
Jun 23, 2011
Messages
1,036
I know on FreeBSD forums they mentioned about adding the V4: part, or else it will not work.
I just want to make sure I will not break anything on my NAS. :)

This works with NFS version 3:
Code:
pluto:/mnt/nas/unix  /mnt/nas  nfs  defaults,noatime,tcp,nfsvers=3,rsize=32768,wsize=32768  0 0


This does not, with version 4:
Code:
pluto:/mnt/nas/unix  /mnt/nas  nfs4  defaults,noatime,rsize=32768,wsize=32768  0 0


I get the program/version mismatch error and the share cannot be mounted.
Running an rpcinfo shows what versions are available now on FreeNAS server:
Code:
# rpcinfo -p pluto | grep nfs
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs

Adding the V4 line into /etc/exports will not help as the file is rebuilt at reboot. Can any of the devs confirm if is possible to run NFSv4 on FreeNAS? Thanks.
 
Status
Not open for further replies.
Top