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

    You can mount a NAS file system only on ECS instances that run Linux. 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 information about how to detach a tag policy from an object, 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.
  • 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.
  4. On the details page of the file system, click Mount Targets.
  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 Mount Targets tab, find the mount target that you want to configure and click Actions in the Actions column.Mount
  7. In the Mount 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 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 at Startup is turned on. 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 ensure 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 Mount.

What to do next

Operation Procedure Description
Unmount a file system
  1. On the Mount Targets tab, find the mount target that you want to configure and click Unmount in the Actions column.
  2. In the Unmount from ECS dialog box, confirm the information about the ECS instance and click Unmount.
If the mount directory is accessed by an application, the file system may fail to be unmounted. To forcibly unmount the file system, select Forced Unmount in the Unmount from ECS dialog box and click OK. Then, enter the SMS verification code as prompted.
Query the mount status of an ECS instance
  1. On the Mount Targets tab, find the mount target whose status you want to view and click Query in the Actions column.
  2. In the details section of the ECS instance, click the Refresh button to the right of the instance name to view the details of the ECS instance and the mount configurations.
After you modify the mount configurations of the ECS instance, click Refresh to the right of the instance name. You can view the mount status of the ECS instance and mount configurations.

FAQ