创建 NFS 服务器
验证 NFS 在集群中已得到许可之后,可使用 vserver nfs create 命令在 SVM 上创建 NFS 服务器并指定该服务器支持的 NFS 版本。
开始之前
必须将 SVM 配置为允许 NFS 协议。
关于本任务
可将 SVM 配置为支持一个或多个 NFS 版本。如果支持 NFSv4 或更高版本:
NFSv4 服务器和目标客户端上的 NFSv4 用户标识映射域名必须相同。
只要 NFSv4 服务器和客户端使用相同名称,就不必与 LDAP 或 NIS 域名相同。
目标客户端必须支持 NFSv4 数字标识设置。
为安全起见,应对 NFSv4 部署中的名称服务使用 LDAP。
示例
以下命令在已启用 NFSv3 和 NFSv4.0 的 SVM 上创建一个名为 vs1 的 NFS 服务器:
vs1::> vserver nfs create -vserver vs1 -v3 enabled -v4.0 enabled -v4-id-domain my_domain.com
以下命令验证新 NFS 服务器 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
...
提供反馈