Last updated：2020-05-09 14:31:12
After a file system is created, you can mount the file system to a compute node. The compute node must be in the same VPC as the file system.
To mount an NFS file system to the KEC instance in the same VPC in a Linux-like system, an NFS client must be installed first.
1. Log in to the KEC instance to install the NFS client.
If you use CentOS, run the following command:
sudo yum install nfs-utils
If you use Ubuntu, run the following command:
sudo apt-get install nfs-common
2. Mount a file system
Command for mounting an NFS3.0 file system:
sudo mount -t nfs -o vers=3,nolock,proto=tcp,noresvport mount target IP address:/share-file system ID /mnt
Command for mounting an NFS4.0 file system:
sudo mount -t nfs -o vers=4,noresvport mount target IP address:/share-file system ID /mnt
3. Unmount a file system
Run the following command in the KEC instance:
umount <mount target directory>
Run the “df” command in the KEC instance to check whether the file system is unmounted.
Did you find the above information helpful?
Please give us your feedback.
Thank you for your feedback.