After creating a file system, you need to mount the file system to cloud servers so that they can share the file system.
CIFS file systems cannot be mounted to Linux .
An SFS Capacity-Oriented file system can use either NFS or CIFS. It cannot use both protocols.
In this section, ECSs are used as example servers. Operations on BMSs and containers (CCE) are the same as those on ECSs.
To use SFS Turbo as the storage backend for CCE, see section "Storage" or "Storage (FlexVolume)" in the Cloud Container Engine User Guide. Then complete the deployment on the CCE console.
This constraint only applies to local paths (mount points) and does not affect other files or directories.
Metadata of the local paths (mount points) cannot be modified. Specifically, the following operations cannot be performed on the local paths' metadata:
- touch: Update file access time and modification time.
- rm: Delete files or directories.
- cp: Replicate files or directories.
- mv: Move files or directories.
- rename: Rename files or directories.
- chmod: Modify permissions on files or directories.
- chown: Change file or directory owners.
- chgrp: Change file or directory groups.
- ln: Create hard links.
- link: Create hard links.
- unlink: Delete hard links.
The atime, ctime, and mtime attributes of a local path (root directory of the mount point) are the current time. So each time the root directory attribute is queried, the current time of the server is returned.
If you log in to the ECS as a non-root user, see Mounting a File System to a Linux ECS as a Non-root User.
rpm -qa|grep nfs
dpkg -l nfs-common
If a command output similar to the following is displayed, the NFS software package has been installed and you can go to 4. If no such command output is displayed, go to b.
libnfsidmapnfs-utils
nfsidmapnfs-client
nfs-common
The following commands require that ECSs be connected to the Internet. Or, the installation will fail.
sudo yum -y install nfs-utils
sudo apt-get install nfs-common
zypper install nfs-client
nslookup File system domain name
mkdir Local path
If there is any resource, such as a disk, already mounted on the local path, create a new path. (NFS clients do not refuse repeated mounts. If there are repeated mounts, information of the last successful mount is displayed.)
Table 1 describes the variables.
To mount an SFS Capacity-Oriented file system, run the following command: mount -t nfs -o vers=3,timeo=600,noresvport,nolock Mount point Local path
To mount an SFS Turbo file system, run the following command: mount -t nfs -o vers=3,timeo=600,noresvport,nolock,tcp Mount point Local path
After a client ECS is restarted, it loses the file system mount information. You can configure auto mount in the fstab file to ensure that the ECS automatically mounts the file system when it restarts. For details, see Mounting a File System Automatically.
Parameter | Description |
|---|---|
vers | File system version. Only NFSv3 is supported currently, so the value is fixed to 3. |
timeo | Waiting time before the NFS client retransmits a request. The unit is 0.1 second. The recommended value is 600. |
noresvport | Whether the NFS client uses a new TCP port when a network connection is re-established. For example, during a network switch, the file system may be blocked, and it may take several minutes to re-establish the connection automatically. In more severe cases, you may need to restart the client ECS. It is strongly recommended that you specify noresvport, which ensures that your file system remains uninterrupted after a network reconnection or recovery. |
lock/nolock | Whether to lock files on the server using the NLM protocol. If nolock is selected, the lock is valid for applications on one host. For applications on another host, the lock is invalid. The recommended value is nolock. If this parameter is not specified, lock is selected by default. In this case, other servers cannot write data to the file system. |
Shared Path | The format for an SFS Capacity-Oriented file system is File system domain name:/Path, for example, example.com:/share-xxx. Figure 1 shows an example. For an SFS Turbo Standard, Standard-Enhanced, Performance, or Performance-Enhanced file system, the format is File system IP address:/, for example, 192.168.0.0:/. Figure 2 shows an example. For an SFS Turbo 20 MB/s/TiB, 40 MB/s/TiB, 125 MB/s/TiB, or 250 MB/s/TiB file system, the format is File system domain name:/, for example, xxx.sfsturbo.internal:/. Figure 3 shows an example. Figure 1 shows an example. NOTE:
|
Local path | A local directory on the ECS used to mount the file system, for example, /local_path. |
Figure 1 Mount address of an SFS Capacity-Oriented file system

Figure 2 Shared path of a previous-generation SFS Turbo file system

Figure 3 Shared path of an SFS Turbo HPC file system

For more mounting parameters for performance optimization during file system mounting, see Table 2. Use commas (,) to separate parameters. The following command is an example:
mount -t nfs -o vers=3,timeo=600,nolock,rsize=1048576,wsize=1048576,hard,retrans=3,noresvport,ro,async,noatime,nodiratime Mount point Local path
Parameter | Description |
|---|---|
rsize | Maximum number of bytes that can be read from the server each time. The actual data is less than or equal to the value of this parameter. The value of rsize must be a positive integer that is a multiple of 1024. If the entered value is smaller than 1024, the value is automatically set to 4096. If the entered value is greater than 1048576, the value is automatically set to 1048576. By default, the setting is performed after the negotiation between the server and the client. You are advised to set this parameter to the maximum value 1048576. |
wsize | Maximum number of bytes that can be written to the server each time. The actual data is less than or equal to the value of this parameter. The value of wsize must be a positive integer that is a multiple of 1024. If the entered value is smaller than 1024, the value is automatically set to 4096. If the entered value is greater than 1048576, the value is automatically set to 1048576. By default, the setting is performed after the negotiation between the server and the client. You are advised to set this parameter to the maximum value 1048576. |
soft/hard | soft indicates that a file system is mounted in soft mount mode. In this mode, if an NFS request times out, the client returns an error to the invoking program. hard indicates that a file system is mounted in hard mount mode. In this mode, if the NFS request times out, the client continues to request until the request is successful. The default value is hard. |
retrans | Number of retransmission times before the client returns an error. Recommended value: 1 |
ro/rw |
The default value is rw. If this parameter is not specified, the file system will be mounted as read/write. |
noresvport | Whether the NFS client uses a new TCP port when a network connection is re-established. For example, during a network switch, the file system may be blocked, and it may take several minutes to re-establish the connection automatically. In more severe cases, you may need to restart the client ECS. It is strongly recommended that you specify noresvport, which ensures that your file system remains uninterrupted after a network reconnection or recovery. |
sync/async | sync indicates that data is written to the server immediately. async indicates that data is first written to the cache before being written to the server. Synchronous write requires that an NFS server returns a success message only after all data is written to the server, which brings long latency. The recommended value is async. |
noatime | If you do not need to record the file access time, set this parameter. This prevents overheads caused by access time modification during frequent access. |
nodiratime | If you do not need to record the directory access time, set this parameter. This prevents overheads caused by access time modification during frequent access. |
You are advised to use the default values for the parameters without usage recommendations.
mount -l
If the command output contains the following information, the file system has been mounted:
Mount point on /local_path type nfs (rw,vers=3,timeo=600,nolock,addr=)
If the mounting fails or times out, rectify the fault by referring to Troubleshooting.
The maximum size of a file that can be written to an SFS Capacity-Oriented file system is 240 TB.
The maximum size of a file that can be written to an SFS Turbo file system is 32 TB, and that for an SFS Turbo Enhanced file system is 320 TB.