Issue:
How to change NFS and AutoFS versions from Version 4 to Version 3 and resolve common networking problems in Flame.
Causes:
Incompatibility between NFS/AutoFS versions.
Solution:
In order to change NFS and AutoFS from V4 to V3, perform the following:
Note: Be aware of the following important information.
- Unless specified, instructions are intended for CentOS workstations.
- If the line does not exist already in the configuration file, add it.
- If the line is commented out, uncomment it by removing the '#'.
- It is possible to run a non-persistant test of V3 by using the command line.
- Example: mount -t nfs -o vers=3 <Server>:</SHARE> /<MOUNTPOINT>
- Edit '/etc/nfsmount.conf' configuration file to define protocol versions mountd will advertise.
- Change both 'Defaultvers' and 'Nfsvers' to version 3.
Before.
/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=4
# 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.
After.
/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=4
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
- Edit '/etc/autofs.conf' configuration file to specify which protocol for autofs to use.
- Change 'mount_nfs_default_protocol' value from version 4 to version 3.
# mount_nfs_default_protocol - set the default protocol that mount.nfs(8)
#mount_nfs_default_protocol = 4
mount_nfs_default_protocol = 3
- Edit '/etc/sysconfig/nfs' configuration file to specify which protocol for mount.nfs to use.
- Change 'MOUNTD_NFS_V3 value from 'no' to 'yes'.
# Define which protocol versions mountd
# will advertise. The values are "no" or "yes"
# with yes being the default
MOUNTD_NFS_V3="yes"
- Edit '/etc/sysconfig/autofs' configuration file.
- Change 'MOUNT_NFS_DEFAULT_PROTOCOL' from version 4 to version 3.
- Append 'OPTIONS="-O vers=3' declaration to end of file.
NOTE: Dash + Uppercase 'O' after OPTIONS. Not zero.
Before.
MOUNT_NFS_DEFAULT_PROTOCOL=4
After.
MOUNT_NFS_DEFAULT_PROTOCOL=3
OPTIONS="-O vers=3"
- Add 'insecure' flag to each share in '/etc/exports' to grant access to a Linux host from macOS client.
/opt/Autodesk *(rw,sync,no_root_squash)
/mnt/StorageMedia *(rw,no_subtree_check,async,no_root_squash)
/usr/autodesk *(rw,sync,no_root_squash)
/opt/Autodesk *(rw,sync,no_root_squash,insecure)
/mnt/StorageMedia *(rw,no_subtree_check,async,no_root_squash,insecure)
/usr/discreet *(rw,sync,no_root_squash,insecure)
- Edit the "/etc/auto_master" configuration file on macOS workstations to define the hosts path if missing:
- /hosts -hosts -nobrowse,hidefromfinder,nosuid
- Edit the "/etc/auto.master" configuration file on CentOS workstations to define the hosts path if missing:
- Restart system services to initiate change.
- systemctl restart nfs
- systemctl restart nfs-lock
- systemctl restart autofs
- systemctl restart rpcbind
- exportfs
- Verify that system services are loaded and do not show errors:
- systemctl status nfs
- systemctl status autofs
Products:
Flare; Lustre; Flame; Flame Assist;