How to change NFS and AutoFS versions from Version 4 to Version 3 and resolve networking problems in Flame

Autodesk Support

Oct 8, 2023


Products and versions covered


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>
  1. 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
  1. 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
  1. 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"
  1. Edit '/etc/sysconfig/autofs' configuration file.
    1. Change 'MOUNT_NFS_DEFAULT_PROTOCOL' from version 4 to version 3.
    2. 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"
  1. Add 'insecure' flag to each share in '/etc/exports' to grant access to a Linux host from macOS client.
    • Before.
/opt/Autodesk *(rw,sync,no_root_squash)
/mnt/StorageMedia *(rw,no_subtree_check,async,no_root_squash)
/usr/autodesk *(rw,sync,no_root_squash)
  • After.
/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)
  1. Edit the "/etc/auto_master" configuration file on macOS workstations to define the hosts path if missing:
    • /hosts -hosts -nobrowse,hidefromfinder,nosuid
  2. Edit the "/etc/auto.master" configuration file on CentOS workstations to define the hosts path if missing:
    • /hosts    -hosts
  3. Restart system services to initiate change.
    1. systemctl restart nfs
    2. systemctl restart nfs-lock
    3. systemctl restart autofs
    4. systemctl restart rpcbind
    5. exportfs
  4. Verify that system services are loaded and do not show errors:
    1. systemctl status nfs
    2. systemctl status autofs

 

Products:

Flare; Lustre; Flame; Flame Assist;


Was this information helpful?


Need help? Ask the Autodesk Assistant!

The Assistant can help you find answers or contact an agent.


What level of support do you have?

Different subscription plans provide distinct categories of support. Find out the level of support for your plan.

View levels of support