For When You Can't Have The Real Thing
[ start | index | login ]
start > CentOS > 6 > nfs > Force NFS v3 Mounts

Force NFS v3 Mounts

Created by dave. Last edited by dave, 9 years and 247 days ago. Viewed 6,119 times. #1
[edit] [rdf]
labels
attachments
(2014-07-17)

Problem

My CentOS 6 client is trying to mount everything using NFS v4 and I want it to use v3.

Solution

Change /etc/sysconfig/autofs:

# Turn off v4 protocol support
RPCNFSDARGS="-N 4"

Change /etc/nfsmount.conf:

# Protocol Version [2,3,4]
# This defines the default protocol version which will
# be used to start the negotiation with the server.
Defaultvers=3
#
# Setting this option makes it mandatory the server supports the
# given version. The mount will fail if the given version is
# not support by the server.
Nfsvers=3

Restart or reboot and you should be good to go.

(Note: this is a poor substitute for setting up NFSv4 properly.)

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt