Setup NFSv2 on RHEL7.1
Environment
- Red Hat Enterprise Linux 7.1
- NFS Server
Issue
- Run NFS version 2 (NFSv2) on NFS server
- Is NFSv2 supported?
Resolution
RHEL 7.1 can also be used as a NFS server for NFSv2. It's not enabled by default, but enabling it is fairly straightforward:
-
Edit
/etc/sysconfig/nfs, and change theRPCNFSDARGSto the following (uncommenting if necessary):RPCNFSDARGS="-V 2" -
Restart the
nfs-config.service.systemctl restart nfs-config.service -
Restart the
nfs-server.service.systemctl restart nfs-server.service
Root Cause
Beginning with Red Hat Enterprise Linux 7, NFS version 2 (NFSv2) is no longer supported and therefore disabled by default.
Diagnostic Steps
-
Check to see if NFS version 2 (NFSv2) is enabled using
rpcinfo:rpcinfo -l localhost 100003 2Or:
rpcinfo -p | grep -w nfs
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.