On the nfs-server with /etc/exports
I do
With these results:
On the nfs-client:
NFSv3 works.
But NFSv4 does not work:
1. I am not sure if /etc/exports is correct.
2. How can the running NFS-Version of the server be determined?
3. Why does
4. Why does RPC shout Program/version mismatch?
Code:
#cat /etc/exports
V4: / -sec=sys -network xxx.xxx.xxx/24
/FreeBSD/src -sec=sys -ro -alldirs -network xxx.xxx.xxx/24
/FreeBSD/obj -sec=sys -alldirs -network xxx.xxx.xxx/24
Code:
#rpcbind -h xxx.xxx.xxx.95
#mountd -h xxx.xxx.xxx.95 -p 866 -Sl
#nfsuserd
#nfsd -h xxx.xxx.xxx.95 -t
Code:
#sockstat -4l | grep -E 'nfs|mount|rpc'
root nfsd 21769 5 tcp4 xxx.xxx.xxx.95:2049 *:*
root nfsuserd 21768 3 udp4 *:833 *:*
root nfsuserd 21767 3 udp4 *:833 *:*
root nfsuserd 21766 3 udp4 *:833 *:*
root nfsuserd 21765 3 udp4 *:833 *:*
root nfsuserd 21763 3 udp4 *:833 *:*
root mountd 21761 5 udp4 127.0.0.1:866 *:*
root mountd 21761 6 udp4 xxx.xxx.xxx.95:866 *:*
root mountd 21761 7 tcp4 127.0.0.1:866 *:*
root mountd 21761 8 tcp4 xxx.xxx.xxx.95:866 *:*
root rpcbind 21759 6 udp4 127.0.0.1:111 *:*
root rpcbind 21759 7 udp4 xxx.xxx.xxx.95:111 *:*
root rpcbind 21759 8 udp4 *:773 *:*
root rpcbind 21759 9 tcp4 127.0.0.1:111 *:*
root rpcbind 21759 10 tcp4 xxx.xxx.xxx.95:111 *:*
Code:
#showmount -e xxx.xxx.xxx.95
Exports list on xxx.xxx.xxx.95:
/FreeBSD/src xxx.xxx.xxx.0
/FreeBSD/obj xxx.xxx.xxx.0
#mount -t nfs -o nfsv3 xxx.xxx.xxx.95:/FreeBSD/src /FreeBSD/src/
#mount -p | grep src
xxx.xxx.xxx.95:/FreeBSD/src /FreeBSD/src nfs rw 0 0
But NFSv4 does not work:
Code:
#umount /FreeBSD/src/
#mount -t newnfs -o nfsv3 xxx.xxx.xxx.95:/FreeBSD/src /FreeBSD/src/
mount: xxx.xxx.xxx.95:/FreeBSD/src: Operation not supported by device
#mount -t nfs -o nfsv4 xxx.xxx.xxx.95:/FreeBSD/src /FreeBSD/src/
[tcp] xxx.xxx.xxx.95:/FreeBSD/src: NFSPROC_NULL: RPC: Program/version mismatch; low version = 2, high version = 3
[tcp] xxx.xxx.xxx.95:/FreeBSD/src: NFSPROC_NULL: RPC: Program/version mismatch; low version = 2, high version = 3
^C
#freebsd-version
10.0-RELEASE-p9
Code:
#rpcinfo xxx.xxx.xxx.95
program version netid address service owner
100000 4 tcp xxx.xxx.xxx.95.0.111 rpcbind superuser
100000 3 tcp xxx.xxx.xxx.95.0.111 rpcbind superuser
100000 2 tcp xxx.xxx.xxx.95.0.111 rpcbind superuser
100000 4 udp xxx.xxx.xxx.95.0.111 rpcbind superuser
100000 3 udp xxx.xxx.xxx.95.0.111 rpcbind superuser
100000 2 udp xxx.xxx.xxx.95.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.98 mountd superuser
100005 3 udp 0.0.0.0.3.98 mountd superuser
100005 1 tcp 0.0.0.0.3.98 mountd superuser
100005 3 tcp 0.0.0.0.3.98 mountd superuser
100003 2 tcp 0.0.0.0.8.1 nfs superuser
100003 3 tcp 0.0.0.0.8.1 nfs superuser
1. I am not sure if /etc/exports is correct.
2. How can the running NFS-Version of the server be determined?
3. Why does
mount –t newnfs not work?4. Why does RPC shout Program/version mismatch?