Updated on 2024-03-21 GMT+08:00

Writing to a File System Fails

Symptom

Data fails to be written to the file system mounted to ECSs running the same type of operating system.

Possible Causes

The ECS security group configuration is incorrect. The port used to communicate with the file system is not enabled.

Fault Diagnosis

Check whether the port of the target server is enabled and correctly configure the port on the security group console.

Solution

  1. Log in to the ECS console.

    1. Log in to the management console.
    2. Click in the upper left corner and select your desired region and project.
    3. Under Compute, choose Elastic Cloud Server.

  2. In the navigation pane on the left, choose Elastic Cloud Server. On the page displayed, select the target server. Go to the server details page.
  3. Click the Security Groups tab and select the target security group. Click Manage Rule to go to the security group console.
  4. On the displayed page, click the Inbound Rules tab and click Add Rule. The Add Inbound Rule page is displayed. Add rules as follows:

    After an SFS Turbo file system is created, the system automatically enables the security group port required by the NFS protocol. This ensures that the SFS Turbo file system can be accessed by your servers and prevents file system mounting failures. The inbound ports required by the NFS protocol are ports 111, 445, 2049, 2051, 2052, and 20048. If you need to change the enabled ports, choose Access Control > Security Groups of the VPC console and locate the target security group.

    You are advised to use an independent security group for an SFS Turbo file system to isolate it from service nodes.

    You need to add inbound and outbound rules for the security group of an SFS Capacity-Oriented file system. For details, see section "Adding a Security Group Rule" in the Virtual Private Cloud User Guide. In an SFS Capacity-Oriented file system, the inbound ports required by the NFS protocol are ports 111, 2049, 2051, and 2052. The inbound port required by the DNS server is port 53 and that required by the CIFS protocol is port 445.

  5. Click OK. Access the file system again for verification.