ONTAP Tools for VMware 9.12 NFS v3 Export Rules

If you use ONTAP Tools for VMware 9.12 to provision a new NFS v3 datastore, it will create a rule per host like the below (where we have two ESXi hosts in the VMware Cluster we are provisioning into) in the default export policy:

cluster1::> export-policy rule show -vserver svm2 -instance

Vserver: svm2
Policy Name: default
Rule Index: 1
Access Protocol: nfs
List of ...: 192.168.0.51
RO Access Rule: sys
RW Access Rule: sys
User ID To Which Anonymous Users Are Mapped: 65534
Superuser Security Types: sys
Honor SetUID Bits in SETATTR: true
Allow Creation of Devices: true

Vserver: svm2
Policy Name: default
Rule Index: 2
Access Protocol: nfs
List of ...: 192.168.0.52
RO Access Rule: sys
RW Access Rule: sys
User ID To Which Anonymous Users Are Mapped: 65534
Superuser Security Types: sys
Honor SetUID Bits in SETATTR: true
Allow Creation of Devices: true

And the default export policy is applied the the SVM rootvol (by default) and the newly provisioned volumes.

To create the same rule in the CLI, the command is (in this case we create it for a subnet) (replace highlighted items as required):

export-policy rule create -vserver svm2 -policyname default -ruleindex 3 -protocol nfs -clientmatch 192.168.0.0/24 -rorule sys -rwrule sys -anon 65534 -superuser sys -allow-suid true -allow-dev true

Note: If all your ESXi hosts are in a private subnet, you don't need a rule per host, you can have a rule for that subnet as above.

Export Rule Create by OTV 9.12

Comments