In the navigation pane of the ZStack Private Cloud UI, choose Hardware > Primary Storage. On the Primary Storage page, click
Add Primary Storage. On the displayed Add
Primary Storage page, set the following parameters:
Zone: By default, the current zone is displayed.
Name: Enter a name for the primary storage.
Description: Optional. Enter a description for the
primary storage.
Type: Select NFS.
URL: Enter the shared directory of the NFS server.
Either an IP address or a domain is supported.
Note:
Format:
NFS_Server_IP:/NFS_Share_folder.
For example, 192.168.0.1:/nfs_root.
You need to set the access permissions of the corresponding
directories on the NFS server in advance.
To ensure security control on the NFS server side, we recommend
that you configure corresponding security rules for access
control.
You can check the shared directory of the NFS server by using
the showmount -e command on NFS server in
advance.
The following system directories cannot be used. Otherwise, the
hosts might fail to work properly.
/
/dev/
/proc/
/sys/
/usr/bin
/bin
Mount Parameter: Optional. Before you specify the
mount parameters, make sure that these parameters are supported by the NFS server.
Note:
The parameters are separated by commas (,). For example,
nfsvers=3,sec=sys,tcp,intr,timeo=5. The preceding example means
that the NFS server version is 3, the standard UNIX
authentication mechanism is used, TCP is used as the
transmission protocol, an NFS call can be interrupted in case of
an exception, and the timeout is 0.5 seconds (5/10).
To specify the mount parameters, you can
refer to the content in the -o option of
mount.
You can set the parameters according to the
mount command on commonly used clients.
If the set parameters conflict with the NFS server side, the
server side shall prevail.
Storage Network: Indicate the storage network
specified for the shared storage. The storage network can be shared by the
management network of the management node.
Note:
If you have an independent storage network, you need to enter
the CIDR of the storage network.
You can use this storage network to check the health status of a
VM instance.
Cluster: Select a cluster to mount the primary
storage.
As shown in Figure 1.Figure 1. Add NFS Primary Storage