Solved Mounting ZFS over NFSv4

Hi all,


I'm having difficulties with NFS on FreeBSD. NFS server is running on FreeBSD 11 and I want to share /srv/data folder which is on ZFS partition.


My server side configuration:


/etc/rc.conf
Code:
nfs_server_enable="YES"
nfs_server_flags="-u -t -n 4"
mountd_enable="YES"
mountd_flags="-r"
rpcbind_enable="YES"



/etc/exports
Code:
/srv/data -network=10.0.0.0/24



root@fileserver:~ # showmount -e
Code:
Exports list on localhost:
/srv/data                    10.0.0.0



My client side configuration (FreeBSD 10.3):


/etc/rc.conf
Code:
nfs_client_enable="YES"
nfs_client_flags="-n 4"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"



root@client:~ # showmount -e 10.0.0.10
Code:
Exports list on 10.0.0.10:
/srv/data                    10.0.0.0


When I try mount shared directory, this err message appears:

Code:
NFSPROC_NULL: RPC: Program unavailable

Code:
root@client:~ # mount -t nfs 10.0.0.10:/srv/data /tmp 
[tcp] 10.0.0.10:/srv/data: NFSPROC_NULL: RPC: Program unavailable

Could please anyone help?
Thanks
 
Note that you're not mounting ZFS over NFS. NFS is itself a filesystem and the actual local filesystem is irrelevant.

If you started the daemons by hand make sure to use the correct order, always start rpcbind(8) first, then the rest. The other daemons need to register with rpcbind(8) in order to work. Check with rpcinfo 10.0.0.10 to see if everything registered correctly. You should see something like this:
Code:
root@molly:~ # rpcinfo
   program version netid     address                service    owner
    100000    4    tcp       192.168.10.190.0.111   rpcbind    superuser
    100000    3    tcp       192.168.10.190.0.111   rpcbind    superuser
    100000    2    tcp       192.168.10.190.0.111   rpcbind    superuser
    100000    4    udp       192.168.10.190.0.111   rpcbind    superuser
    100000    3    udp       192.168.10.190.0.111   rpcbind    superuser
    100000    2    udp       192.168.10.190.0.111   rpcbind    superuser
    100000    4    local     /var/run/rpcbind.sock  rpcbind    superuser
    100000    3    local     /var/run/rpcbind.sock  rpcbind    superuser
    100000    2    local     /var/run/rpcbind.sock  rpcbind    superuser
    100005    1    udp       0.0.0.0.3.35           mountd     superuser
    100005    3    udp       0.0.0.0.3.35           mountd     superuser
    100005    1    tcp       0.0.0.0.3.35           mountd     superuser
    100005    3    tcp       0.0.0.0.3.35           mountd     superuser
    100003    2    tcp       0.0.0.0.8.1            nfs        superuser
    100003    3    tcp       0.0.0.0.8.1            nfs        superuser
    100024    1    udp       0.0.0.0.3.213          status     superuser
    100024    1    tcp       0.0.0.0.3.213          status     superuser
    100021    0    udp       192.168.10.190.3.236   nlockmgr   superuser
    100021    0    tcp       192.168.10.190.2.196   nlockmgr   superuser
    100021    1    udp       192.168.10.190.3.236   nlockmgr   superuser
    100021    1    tcp       192.168.10.190.2.196   nlockmgr   superuser
    100021    1    udp       192.168.10.190.3.236   nlockmgr   superuser
    100021    1    tcp       192.168.10.190.2.196   nlockmgr   superuser
    100021    3    udp       192.168.10.190.3.236   nlockmgr   superuser
    100021    3    tcp       192.168.10.190.2.196   nlockmgr   superuser
    100021    4    udp       192.168.10.190.3.236   nlockmgr   superuser
    100021    4    tcp       192.168.10.190.2.196   nlockmgr   superuser
Note that each 'service' is available on both UDP and TCP.
 
Back
Top