1827859 Members
2812 Online
109969 Solutions
New Discussion

Re: NFS version

 
Tonatiuh
Super Advisor

NFS version

Red Hat Enterprise Linux

How can I know what NFS version and protocol I am using?

5 REPLIES 5
Stuart Browne
Honored Contributor

Re: NFS version

The NFS daemon will use the most recent version it knows of generally.

To double check, you can use 'rpcinfo -p localhost' on the host you wish to check.

It should look something like this:

# rpcinfo -p localhost
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 985 rquotad
100011 2 udp 985 rquotad
100011 1 tcp 988 rquotad
100011 2 tcp 988 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 37374 nlockmgr
100021 3 udp 37374 nlockmgr
100021 4 udp 37374 nlockmgr
100021 1 tcp 38183 nlockmgr
100021 3 tcp 38183 nlockmgr
100021 4 tcp 38183 nlockmgr
100005 1 udp 1004 mountd
100005 1 tcp 1007 mountd
100005 2 udp 1004 mountd
100005 2 tcp 1007 mountd
100005 3 udp 1004 mountd
100005 3 tcp 1007 mountd
One long-haired git at your service...
Tonatiuh
Super Advisor

Re: NFS version

Hi Stuart,

Sorry because I am so newbie, but... how can I know the version and the protocol I am using in the output of that command?
Vipulinux
Respected Contributor

Re: NFS version

Hi
Do a rpm -qa | grep nfs

Cheers
Vitaly Karasik_1
Honored Contributor

Re: NFS version

This output

100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs

says that your nfs server support NFS v2 and NFS v3 (the second column)

Re: NFS version

Hi,

In these lines :
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs

You can see that you have NFS versions 2 and 3.
The one you use depend on the default of the mount command on the NFS client side.
You can force the version in the mount options
("-o nfsvers=3" for example).