Reese Knowledgebase

How to force NFSv3 via config files instead of mount options

View Kristian Reese's profile on LinkedIn

If you like this article, please +1 or Recommend via FB with the provided buttons above:

Article ID: 161
by: Reese K.
Posted: 06 Mar, 2015
Last updated: 06 Mar, 2015
Views: 9004

How to avoid default NFSv4 in RedHat 6.5

As a whole, Linux can be configured to enforce all NFS mounts to use version 3 instead of defaulting to version 4.  While the easiest solution is to specify nfsvers=3 or vers=3 as a mount option to fstab entries or within an automount config file, there are other options available.


Change Defaultvers=4 to Defaultvers=3 and uncomment out the entry in /etc/nfsmount.conf:

[ NFSMount_Global_Options ]
# This statically named section defines global mount
# options that can be applied on all NFS mount.
# Protocol Version [2,3,4]
# This defines the default protocol version which will
# be used to start the negotiation with the server.
# Defaultvers=4


Change OPTIONS="" to OPTIONS="-O vers=3" in /etc/sysconfig/autofs: (option is towards bottom of config file)

OPTIONS="-O vers=3"

Restart autofs:
/etc/init.d/autofs restart


This article was:   Helpful | Not Helpful
External links

Prev   Next
How to share ssh command line with someone via screen     X11 connection rejected because of wrong authentication