Updated on 2022-02-22 GMT+08:00

Mounting a File System Fails

Symptom

When running the mount command to mount the file system to the ECSs, the message access denied is displayed.

Possible Causes

  • Cause 1: The file system has been deleted.
  • Cause 2: The ECS on which the mount command is executed and the mounted file system are not in the same VPC.
  • Cause 3: The mount point in the mount command is incorrect.
  • Cause 4: The IP address used for accessing SFS is a virtual IP address.

Fault Diagnosis

Take troubleshooting measures based on possible causes.

Solution

  • Cause 1: The file system has been deleted.
    Log in to the management console and check whether the file system has been deleted.
    • If yes, create a file system or select an existing file system to mount. The ECS to which the file system is to be mounted must reside in the same VPC as the mounted file system.
    • If no, go to Cause 2.
  • Cause 2: The ECS on which the mount command is executed and the mounted file system are not in the same VPC.
    Log in to the management console and check whether the ECS and the file system belong to the same VPC.
    • If yes, go to Cause 3.
    • If no, re-select the file system of the same VPC as the ECS.
  • Cause 3: The mount point in the mount command is incorrect.
    1. Log in to the management console and check whether the mount point is the same as the one in the mount command.
    2. If the mount point in the mount command is incorrectly entered, correct it and run the command again.
  • Cause 4: The IP address used for accessing SFS is a virtual IP address.

    Log in to the ECS, run the ping command and use the IP address of the ECS to access SFS. Check whether the service is reachable. See Figure 1.

    • If yes, the network problem has been resolved. Check other possible causes.
    • If no, the ECS virtual IP address is unable to access SFS due to the network problem. Use the private IP address and run the ping command to access SFS and check whether the service is reachable.
      Figure 1 Running the ping command to access SFS