All Products
Search
Document Center

Configure NFS service

Last Updated: Sep 09, 2019

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

Configure NFS services in the gateway console

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.

11

If you set the Enable Remote Sync parameter to Yes, specify the additional parameters, as shown in the following figure:

sync

To specify the Cloud Resource parameter, click Select, and the following dialog box appears:

13

To specify the Cache Disk Path parameter, click Select, and the following dialog box appears:

14

Delete an NFS share

1.On the NFS page, find the target share, and click Delete in the Actions column.

15

2.In the dialog box that appears, click OK to delete the NFS share.

16

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.