Network File System (NFS) enables computers in networks to share resources over TCP/IP. In a scenario where NFS is applied, the local client directly reads files from and writes files to the remote NFS server.
With NFS, Cloud Storage Gateway allows you to share files. To share files, you must create a share, specify hosts that can access the share, and specify access permissions.
Clients that need to access Cloud Storage Gateway must have NFS installed. Installation methods very depending on the Linux operating system. This topic describes how to install NFS in the Ubuntu and CentOS operating systems. For more information, see the documentation of the target operating system.
Run the following command in the Ubuntu operating system to install NFS:
apt-get install nfs-common
Run the following command in the CentOS operating system to install NFS:
yum install -y nfs-utils
1.Log on to the gateway console.2.Create an NFS share.
On the NFS page, click Create in the upper-right corner, and specify the parameters in the dialog box that appears.
If you set the Enable Remote Sync parameter to Yes, specify the additional parameters, as shown in the following figure:
To specify the Cloud Resource parameter, click Select, and the following dialog box appears:
To specify the Cache Disk Path parameter, click Select, and the following dialog box appears：
1.On the NFS page, find the target share, and click Delete in the Actions column.
2.In the dialog box that appears, click OK to delete the NFS share.
3.If the NFS share has been previously mounted to a client, it takes some time for the mount point to be dismounted from the client after the share is deleted. During this period, if you create an NFS share with the same ID, the mount point will not be dismounted from the client.
Therefore, after you delete an NFS share, run the df -h command on the client to verify that the mount point is no longer valid. Otherwise, the NFS share has not been successfully deleted.