How to Specify Multiple IP Addresses to Share the NFS File System in the N8000 CLI

Publication Date:  2012-07-18 Views:  210 Downloads:  0
Issue Description
A customer creates NFS file systems for service users and plans to share them to 10.0.1.11, 10.0.1.12, and 10.0.1.13 by using the following command.
share add rw,sync,no_root_squash,fs11 10.0.1.11,10.0.1.12,10.0.1.13
The following error information is displayed:
client : Cient ame or netgroup (@group)
The command fails to be delivered.
Alarm Information
None
Handling Process
Step 1 Run the following command to share the NFS file system to 10.0.1.11:
share add rw,sync,no_root_squash,fs11 10.0.1.11
Check the result and find that the share is added successfully.
Step 2 Run the following commands to add the other two IP addresses as clients:
share add rw,sync,no_root_squash,fs11 10.0.1.12
share add rw,sync,no_root_squash,fs11 10.0.1.13
Check the result and find that the share is added successfully.
Step 3 Run the following command to check the share result:
share show
The following result is displayed:
/vx/fs11 10.0.1.11 (rw,sync,wdelay,no_root_squash)
/vx/fs11 10.0.1.12 (rw,sync,wdelay,no_root_squash)
/vx/fs11 10.0.1.13 (rw,sync,wdelay,no_root_squash)
Root Cause
The cause is that the command format is incorrect. The correct format is as follows:
share add nfsoptions filesystem [client]
?Parameter client is optional and specifies the client of the NFS share. If client is not specified, the NFS share can be accessed by all clients. The share information about the file system displays * in the client location. When creating an NFS share, the system does not check whether the client exists. If an unidentifiable client is specified, an error message is displayed when the user queries the share information of the file system. Parameter client can be:
• Host
Host name, domain name, or IP address
• Host group
In the format of @group. The host name is used to identify member information in the user group.
The value of client can be an IP address but multiple IP addresses. Therefore, this cause of this fault is that the command contains multiple IP addresses.
Suggestions
By default, NFS sharing is open to all IP addresses. To restrict a few IP addresses to share the file systems, run the commands for adding each IP address respectively.

END