You can mount an Apsara File Storage NAS file system on an Elastic Compute Service (ECS) instance by using the NAS console. The file system and the ECS instance must reside in the same virtual private cloud (VPC).

Limits

  • Operating system

    If a NAS file system and multiple ECS instances resides in the same VPC, you can mount the file system only on a Linux ECS instance. Linux distributions such as CoreOS, FreeBSD, and Fedora CoreOS do not support the mount feature of the NAS console. Before you can mount your file system on an ECS instance that runs Red Hat Enterprise Linux (RHEL), you must install the Cloud Assistant client by using the RPM Package Manager (RPM) tool. For more information, see Install the client on Linux instances by using the RPM package.

  • Network type
    • ECS instances that reside in the classic network are not supported.
    • Mount targets that reside in the classic network are not supported.
  • Instance status

    The ECS instance must be in the Running state.

Procedure

  1. Log on to the NAS console.
  2. In the left-side navigation pane, choose File System > File System List.
  3. On the File System List page, click the name of the file system that you want to mount on an ECS instance.
  4. On the details page of the file system, click Mounting Use.
  5. The first time you use the mount feature, you must assign service-linked roles to the feature as prompted. For more information, see Service-linked roles of NAS.
  6. On the Mounting Use tab, find the mount target and click Mount in the Actions column.
  7. In the Mount the file system on ECS dialog box, configure the parameters. The following table describes the parameters.
    Parameter Description
    ECS Instances Select the ECS instance on which you want to mount the file system. The drop-down list includes the ECS instances that belong to your Alibaba Cloud account and reside in the same VPC as the mount target.
    Note
    Mount the path The local directory on which you want to mount the file system. The local directory resides on the Linux ECS instance.
    Automatic Mount By default, Automatic Mount is selected. When you restart the ECS instance, you do not need to re-mount the file system.
    Protocol type Select the protocol type of the file system.
    • General-purpose NAS file systems support NFSv3 and NFSv4.0. If you do not need to modify the same NAS file on multiple ECS instances at a time, we recommend that you select NFSv3 to obtain optimal performance.
    • Extreme NAS file systems support only NFSv3.
    NAS Directory The directory of the NAS file system.

    You can enter the root directory / or a subdirectory, for example, /abc).

    Mount Parameters We recommend that you use the default mount parameters. For more information about the parameters, see Parameters.
  8. Click OK.

What to do next

Operation Procedure Description
Unmount a file system
  1. On the Mounting Use tab, find the mount target that you want to unmount and click Unmount.
  2. In the Unmount from ECS dialog box, confirm the information about the ECS instance and click OK.
If an application is accessing the mount directory, the file system may fail to be unmounted. To forcibly unmount the file system, you can select the Forced Unmount option and use SMS verification to forcibly unmount the file system.
Query the mount status of an ECS instance
  1. On the Mounting Use tab, find the mount target to which the ECS instance is mounted and click Query .
  2. In the details section of the ECS instance, click the Refresh button to the right of the instance name to view the details about the ECS instance and the mount configurations.
If you modify the mount configurations for the ECS instance, you must click the Refresh button to the right of the instance name before you can view the mount status of the ECS instance and mount configurations.