Creating an NFS server
After verifying that NFS is licensed on your cluster, you can use the vserver nfs create command to create an NFS server on the SVM and specify the NFS versions it supports.
Before you begin
The SVM must have been configured to allow the NFS protocol.
About this task
The SVM can be configured to support one or more versions of NFS. If you are supporting NFSv4 or later:
The NFSv4 user ID mapping domain name must be the same on the NFSv4 server and target clients.
It does not necessarily need to be the same as an LDAP or NIS domain name as long as the NFSv4 server and clients are using the same name.
Target clients must support the NFSv4 numeric ID setting.
For security reasons, you should use LDAP for name services in NFSv4 deployments.
Examples
The following command creates an NFS server on the SVM named vs1 with NFSv3 and NFSv4.0 enabled:
vs1::> vserver nfs create -vserver vs1 -v3 enabled -v4.0 enabled -v4-id-domain my_domain.com
The following commands verify the status and configuration values of the new NFS server named vs1:
vs1::> vserver nfs status -vserver vs1
The NFS server is running on Vserver "vs1".
vs1::> vserver nfs show -vserver vs1
Vserver: vs1
General NFS Access: true
NFS v3: enabled
NFS v4.0: enabled
UDP Protocol: enabled
TCP Protocol: enabled
Default Windows User: -
NFSv4.0 ACL Support: disabled
NFSv4.0 Read Delegation Support: disabled
NFSv4.0 Write Delegation Support: disabled
NFSv4 ID Mapping Domain: my_domain.com
...