root
for all Linux-based instances (ubuntu
on Ubuntu).telnet
command for verification. The specific protocols and ports as follows:File System Protocol | Port | Check Network Connectivity |
NFS 3.0 | 111, 892,and 2049 | telnet 111,892,and 2049 |
NFS 4.0 | 2049 | telnet 2049 |
CIFS/SMB | 445 | telnet 445 |
ping
.nfs-utils
or nfs-common
has already been installed in the system. The installation method is as follows:sudo yum install nfs-utils
sudo apt-get install nfs-common
mkdir <destination mount directory>
mkdir /localfolder/mkdir /localfolder/test
// You can go to the CFS console > File System > Mount Target Info to obtain the following command. As some old file system versions do not support the noresvport parameter, you are advised to use the version-specific commands provided in the console. After norevsport is configured, a new TCP port can be used for reconnection, which guarantees that the client and file system can stay connected during network recovery. Therefore, the norevsport parameter is recommended.// Some old versions of Linux kernels need to be mounted using vers=4. If an exception occurs when you use vers=4.0, you can change it to vers=4.sudo mount -t nfs -o vers=4.0,noresvport <mount target IP>:/ <destination mount directory>
/
of the file system. It can also be mounted to a subdirectory created in the file system.<mount target IP>:/
and <destination mount directory>
.// You can go to the CFS console > File System > Mount Target Info to obtain the following command. As some old file system versions do not support the noresvport parameter, you are advised to use the version-specific commands provided in the console. After norevsport is configured, a new TCP port can be used for reconnection, which guarantees that the client and file system can stay connected during network recovery. Therefore, the norevsport parameter is recommended.// Some old versions of Linux kernels need to be mounted using vers=4. If an exception occurs when you use vers=4.0, you can change it to vers=4.sudo mount -t nfs -o vers=4.0,noresvport 10.0.24.4:/ /localfolder
// You can go to the CFS console > File System > Mount Target Info to obtain the following command. As some old file system versions do not support the noresvport parameter, you are advised to use the version-specific commands provided in the console. After norevsport is configured, a new TCP port can be used for reconnection, which guarantees that the client and file system can stay connected during network recovery. Therefore, the norevsport parameter is recommended.// Some old versions of Linux kernels need to be mounted using vers=4. If an exception occurs when you use vers=4.0, you can change it to vers=4.sudo mount -t nfs -o vers=4.0,noresvport 10.0.24.4:/subfolder /localfolder
// You can go to the CFS console > File System > Mount Target Info to obtain the following command. As some old file system versions do not support the noresvport parameter, you are advised to use the version-specific commands provided in the console. After norevsport is configured, a new TCP port can be used for reconnection, which guarantees that the client and file system can stay connected during network recovery. Therefore, the norevsport parameter is recommended.// Some old versions of Linux kernels need to be mounted using vers=4. If an exception occurs when you use vers=4.0, you can change it to vers=4.sudo mount -t nfs -o vers=3,nolock,proto=tcp,noresvport <mount target IP>:/<fsid> <destination mount directory>
<mount target IP>:/<FSID>
and <destination mount directory>
.// You can go to the CFS console > File System > Mount Target Info to obtain the following command. As some old file system versions do not support the noresvport parameter, you are advised to use the version-specific commands provided in the console. After norevsport is configured, a new TCP port can be used for reconnection, which guarantees that the client and file system can stay connected during network recovery. Therefore, the norevsport parameter is recommended.// Some old versions of Linux kernels need to be mounted using vers=4. If an exception occurs when you use vers=4.0, you can change it to vers=4.sudo mount -t nfs -o vers=3,nolock,proto=tcp,noresvport 10.0.24.4:/z3r6k95r /localfolder
mount -l
df
command, note that it is possible that an existing mount target is not displayed. In this case, you can check the output of mount -l
to ensure that all mount target information is listed.)df -h
cifs-utils
has already been installed in the system. The installation method is as follows:
CentOS:sudo yum install cifs-utils.x86_64 –y
mkdir <destination mount directory>
mkdir /local/mkdir /local/test
// Parameter description:// vers: supports 2.1 and 3.0. Defaults to 1.0.// uid: owner of the file when the mount is completed. If not specified, uid=0 is used by default.// gid: user group that owns the file when the mount is completed. If not specified, gid=0 is used by default.// The uid and gid parameters are for apps that need to check the file owner during execution. In this case, you need to set uid and gid to the app account.// noperm: The client does not perform permission verification. If a permission is denied, you can add this parameter.// actimeo: file attribute (metadata timestamps) cached by the client// nocase: By default, using version 1.0 on mount is case-sensitive. However, Windows clients are case-insensitive. If you create a file on the Linux CIFS client, and the file name already exists on the Windows client, an exception may occur when you access the file through the Windows client.// An example is as follows:mount -t cifs -o guest,vers=1.0,uid=1000,gid=100,noperm,actimeo=1,nocase //<mount target IP>/<FSID> /<destination mount directory>
<FSID>/
and <destination mount directory>
.mount -t cifs -o guest //10.66.168.75/vj3i1135 /local/test
mount -l
df
command, note that it is possible that an existing mount target is not displayed. In this case, you can check the output of mount -l
to ensure that all mount target information is listed.)df -h
umount <directory name>
umount /local/test
df
command, note that it is possible that an existing mount target is not displayed. In this case, you can check the output of mount -l
to ensure that all mount target information is listed. In addition, you are advised to unmount the file system before restarting/shutting down the client to avoid exceptions.
Was this page helpful?