Skip to main content

Enable or disable NFS for ONTAP SVMs

Contributors netapp-barbe

You can enable or disable NFS versions using System Manager or the CLI. This allows file access for clients using the NFS protocol.

By default, NFSv3 is enabled in all supported versions of ONTAP 9. Beginning with ONTAP 9.9.1, NFSv4.1 and NFSv4.2 are enabled by default; in earlier releases, they are disabled by default.

Beginning with ONTAP 9.19.1, you can independently enable or disable NFSv4.1 and NFSv4.2. Prior to ONTAP 9.19.1, you could only enable or disable NFSv4.1 and NFSv4.2 together. By default, both NFSv4.1 and NFSv4.2 are enabled when a new NFS service is created unless explicitly disabled by the administrator.

Note FPolicy monitoring of NFSv4.2 file access events is not supported. If you configure FPolicy monitoring, you need to disable NFSv4.2 on the SVM. For reference, see Supported file operation and filter combinations that ONTAP FPolicy monitors for NFSv4.
System Manager
Steps
  1. In System Manager, select Cluster > Storage VMs, select the storage VM, select Settings, and then select Actions icon or the Edit icon under NFS.

  2. Select the Enable NFS check box.

  3. Enable or disable an NFS protocol:

    • To enable NFSv3, select the Enable support version 3 check box and consider the following option:

      • Select the Enable 64-bit FSIDs and file identifiers check box to enable support for 64-bit file system IDs and file identifiers for NFSv3.

    • To disable NFSv3, clear the Enable support version 3 check box.

    • To enable NFSv4.0, select the Enable support version 4 check box and consider the following options:

      • Select the Enable ACL check box to allow the use of an access control list.

      • Select the Enable read delegation check box to allow read-only access.

      • Select the Enable write delegation check box to allow write access.

      • Select the Enable 64-bit FSIDs and file identifiers check box to enable support for 64-bit file system IDs and file identifiers. This check box applies to NFSv4.0, NFSv4.1, and NFSv4.2. This is separate from the check box used to control 64-bit support for NFSv3.

    • To disable NFSv4.0, clear the Enable support version 4 check box.

    • To enable NFSv4.1, select the Enable support version 4.1 and 4.2 check box, and then select the Enable support version 4.1 check box. Consider the following options:

      • Select the Enable ACL check box to allow the use of an access control list.

      • Select the Enable read delegation check box to allow read-only access.

      • Select the Enable write delegation check box to allow write access.

      • Select the pNFS check box to allow clients to use parallel NFS (pNFS) for improved performance.

      • Select the Enable 64-bit FSIDs and file identifiers check box to enable support for 64-bit file system IDs and file identifiers. This check box applies to NFSv4.0, NFSv4.1, and NFSv4.2. This is separate from the check box used to control 64-bit support for NFSv3.

    • To disable NFSv4.1, clear the Enable support version 4.1 check box.

    • To enable NFSv4.2, select the Enable support version 4.1 and 4.2 check box, and then select the Enable support version 4.2 check box.Consider the following options:

      • Select the Enable ACL check box to allow the use of an access control list.

      • Select the Enable read delegation check box to allow read-only access.

      • Select the Enable write delegation check box to allow write access.

      • Select the pNFS check box to allow clients to use parallel NFS (pNFS) for improved performance.

      • Select the Enable 64-bit FSIDs and file identifiers check box to enable support for 64-bit file system IDs and file identifiers. This check box applies to NFSv4.0, NFSv4.1, and NFSv4.2. This is separate from the check box used to control 64-bit support for NFSv3.

    • To disable NFSv4.2, clear the Enable support version 4.2 check box.

  4. Optionally, you can specify the V4 ID domain name for the NFS protocol.

  5. Select Save.

CLI
Step
  1. Perform one of the following actions:

    If you want to…​ For version…​ Enter the following command…​

    Enable NFS

    NFSv3

    vserver nfs modify -vserver vserver_name -v3 enabled

    NFSv4.0

    vserver nfs modify -vserver vserver_name -v4.0 enabled

    NFSv4.1

    vserver nfs modify -vserver vserver_name -v4.1 enabled

    NFSv4.2

    vserver nfs modify -vserver vserver_name -v4.2 enabled

    Disable NFS

    NFSv3

    vserver nfs modify -vserver vserver_name -v3 disabled

    NFSv4.0

    vserver nfs modify -vserver vserver_name -v4.0 disabled

    NFSv4.1

    vserver nfs modify -vserver vserver_name -v4.1 disabled

    NFSv4.2

    vserver nfs modify -vserver vserver_name -v4.2 disabled