This topic describes how to configure an NFSv4 share on a file gateway.
Procedure
-
Log on to your Linux-based host.
-
Run the following command to mount a file system.
mount -t nfs4 x.x.x.x:/shares local-directoryx.x.x.x:/shares represents the IP address of the file gateway and the share. local-directory represents the local directory of your client.
NoteThe local directory must be an existing directory on the client with read and write permissions.
-
Run the
df -hcommand to verify the mount.If the following or similar information appears, it indicates that the file system is mounted to the local directory.
[root@centos7cb ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 99G 1.6G 92G 2% / devtmpfs 24G 0 24G 0% /dev tmpfs 24G 0 24G 0% /dev/shm tmpfs 24G 424K 24G 1% /run tmpfs 24G 0 24G 0% /sys/fs/cgroup tmpfs 4.8G 0 4.8G 0% /run/user/0 xxx:/xxx 256T 0 256T 0% /local-directory [root@centos7cb ~]#