Operating System - HP-UX
1748133 Members
3452 Online
108758 Solutions
New Discussion юеВ

Re: how to check NFS version

 
anand.gp
Occasional Advisor

how to check NFS version

Hi,
Please let me know how to check NFS version on HP-UX 11.11 parisc and HP-UX 11.31 itanium servers.
Thanks.
Anand.
6 REPLIES 6
Deepak Kr
Respected Contributor

Re: how to check NFS version

Hi Anand,

Its NFS Version 4 Protocol (NFSv4)
"There is always some scope for improvement"
Anka
Trusted Contributor

Re: how to check NFS version

rpcinfo -p localhost | grep -i nfs

the second column shows which nfs version is supported
anand.gp
Occasional Advisor

Re: how to check NFS version

I am getting following result. So, is it ver.2 or ver.3? Please clarify.

rpcinfo -p localhost | grep -i nfs

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

Thanks.
Anka
Trusted Contributor

Re: how to check NFS version

The both version 2 and version 3 are supported.
Now it depends which version will you prefer when mounting:

#mount -o vers=n: The version of the NFS protocol is used
Dennis Handly
Acclaimed Contributor

Re: how to check NFS version

>is it ver2 or ver3?
rpcinfo -p localhost | grep -i nfs

Yes, the title line says:
program vers proto port service
Dave Olker
HPE Pro

Re: how to check NFS version

Hi Anand,

The rpcinfo command (as previously posted) will show you the versions of NFS supported by a specific server. HP-UX 11.11 supports NFS v2 and v3. At 11.31 we introduced support for NFS v4, however it is disabled by default. If you wish to enable NFS v4 server support you can modify the /etc/default/nfs file as follows:

NFS_SERVER_VERSMAX=4

After making this change you will need to restart the NFS server daemons to activate NFS v4 support:

/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.server start

Then rpcinfo should report NFS v2/3/4 on the 11.31 server.

Regards,

Dave
I work for HPE

[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo