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).
- 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.
- Log on to the NAS console.
- In the left-side navigation pane, choose .
- On the File System List page, click the name of the file system that you want to mount on an ECS instance.
- On the details page of the file system, click Mounting Use.
- 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.
- On the Mounting Use tab, find the mount target and click Mount in the Actions column.
- 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
- If you cannot find the ECS instance from the drop-down list, refresh the page and try again.
- You can select only one ECS instance on which you can mount your file system. If you want to mount a file system on multiple ECS instances, see Mount a NAS file system on multiple ECS instances at the same time.
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.
- Click OK.
What to do next
|Unmount a file system||
||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||
||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.|