Manage mount targets

更新时间:
复制 MD 格式

Mount targets are VPC endpoints for ECS instances to access NAS file systems.

Prerequisites

A file system is created. For more information, see Create a file system.

Limits

Note

To request additional mount targets, submit a ticket.

  • General-purpose NAS file system

    Each file system supports up to two mount targets.

    Note

    Since November 21, 2022, new classic network mount targets cannot be created for General-purpose NAS file systems. Existing ones remain functional.

  • Extreme NAS file system

    • File systems created before January 19, 2024: one mount target.

    • File systems created on or after January 19, 2024: up to two mount targets.

Create a mount target

Create a mount target for ECS instances to access your NAS file system.

  1. Log on to the NAS console.

  2. In the left-side navigation pane, choose File System > File System List.

  3. In the top navigation bar, select the resource group and region where your file system resides.image

  4. On the File System List page, find the target file system and click Add Mount Target in the Actions column.

  5. In the Add Mount Target dialog box, set the following parameters.

    Note
    • ECS instances on different vSwitches in the same VPC can share one VPC mount target.

    • Each mount target uses one private IP address. Select a vSwitch with available IPs.

    • IPv6 is supported only for Extreme NAS in select regions. Create a VPC with an IPv6 CIDR block before enabling IPv6. For more information, see Create a VPC with an IPv6 CIDR block.

      Click to view regions that support IPv6

      China (Hohhot), China (Chengdu), China (Zhangjiakou), China (Shenzhen), China (Shanghai), China (Hangzhou), China (Beijing), and China (Qingdao).

    Parameter

    Description

    VPC Network

    Select a VPC. If none exists, create one in the VPC console.

    ECS instances in different VPCs within the same account and region can access the file system. Create a mount target per VPC (within quota), or use Cloud Enterprise Network (CEN) for cross-VPC access when the quota is reached. Mount a NAS file system across VPCs in the same region using CEN.

    vSwitch

    Select a vSwitch in the VPC.

    Permission Group

    Select a permission group.

    A default VPC permission group allows all VPC IP addresses to access the file system. Create custom groups in Manage permission groups.

    Enable IPv6

    Enable IPv6.

    The Enable IPv6 switch is available only for Extreme NAS in IPv6-supported regions with an IPv6-enabled VPC and vSwitch. For more information about how to create a VPC with an IPv6 CIDR block, see Create a VPC with an IPv6 CIDR block.

  6. Click OK.

Open ports

After creation, these ports open for NFS and SMB access:

File system type

SMB service port

NFS service port

Protocol type

General-purpose NAS file system

445: SMB service

  • 2049: NFS, NLM lock, and Mount services

  • 111: RPC bind service

TCP

Extreme NAS file system

Not supported

View mount targets

View a list of mount targets

  1. Log on to the NAS console.

  2. In the left-side navigation pane, choose File System > File System List.

  3. In the top navigation bar, select the resource group and region where your file system resides.image

  4. On the File System List page, find the target file system and click Manage in the Actions column.

  5. On the file system details page, click the Mount Targets tab to view the list of mount targets in the Mount Target section.

View mount target domain name

Use one of the following methods:

  • View the domain name on the File Systems page

    On the File System List page, find the file system and click Mount in the Actions column to view the mount target domain name.

    image.png

  • View the domain name on the file system details page

    On the File System List page, click Manage in the Actions column for the target file system. On the file system details page, click the Mount Targets tab. In the Mount Target section, hover over the image.png icon in the Mount Target column to view the mount target address.

    image.png

View mounted clients

Mounted client IP addresses are available only for General-purpose NAS NFS file systems.

  1. Log on to the NAS console.

  2. In the left-side navigation pane, choose File System > File System List.

  3. In the top navigation bar, select the resource group and region where your file system resides.image

  4. On the File System List page, click the destination file system.

  5. On the file system details page, click the Mount Targets tab. In the Mount Target section, select More > Client List in the Actions column to view mounted client IP addresses.

    Click Go to View to open the ECS Instances page and view client details.

    Important

    Only clients that accessed NAS within the last minute are displayed. Idle mounted clients may not appear.

View ECS mount details

View mounted ECS instances with details including ECS ID, IP address, mount path, NAS directory, and protocol type.

  1. Log on to the NAS console.

  2. In the left-side navigation pane, choose File System > File System List.

  3. In the top navigation bar, select the resource group and region where your file system resides.image

  4. On the File System List page, click the target file system.

  5. On the file system details page, click the Mount Targets tab. In the Mount Target section, find the desired mount target and click Mount in the Actions column.

  6. In the Mount panel, find the destination ECS instance and click Query Mount Details in the Actions column to view its basic information, mount path, and NAS directory.

    image.png

Modify a mount target

Modify the permission group of a mount target

  1. Log on to the NAS console.

  2. In the left-side navigation pane, choose File System > File System List.

  3. In the top navigation bar, select the resource group and region where your file system resides.image

  4. On the File System List page, click the destination file system.

  5. On the file system details page, click the Mount Targets tab. In the Mount Target section, find the mount target to modify and click Edit Permission Group in the Actions column.

  6. In the Edit Permission Group dialog box, select a new permission group and click OK.

    For more information about permission groups, see Manage permission groups.

Disable and enable a mount target

Disable or enable General-purpose NAS mount targets.

  1. Log on to the NAS console.

  2. In the left-side navigation pane, choose File System > File System List.

  3. In the top navigation bar, select the resource group and region where your file system resides.image

  4. On the File System List page, click the destination file system.

  5. On the file system details page, click the Mount Targets tab. In the Mount Target section, click the More icon in the Actions column of the mount target, and then select Disable or Enable.

    • Disable: Temporarily prevents any client from accessing the mount target.

    • Enable: Allows clients to access the mount target.

Hibernate a mount target

General-purpose NAS hibernates mount targets with zero storage and no access for two months. Hibernated mount targets release resources and cannot be mounted or accessed. To reactivate:

Note

Supported in all regions except China (Shenzhen) Finance Cloud.

  1. Log on to the NAS console.

  2. In the left-side navigation pane, choose File System > File System List.

  3. In the top navigation bar, select the resource group and region where your file system resides.image

  4. On the File System List page, click the destination file system.

  5. On the file system details page, click the Mount Targets tab. Then, in the Mount Target area, click Expand > Enable in the Actions column for the desired mount target to reactivate it.

    After reactivation, the mount target can be mounted and accessed.

Delete a mount target

Warning
  • Deleted mount targets cannot be restored.

  • Unmount the file system before deleting the mount target to avoid client hangs.

  • Deleting a mount target added by an Alibaba Cloud service (Cloud Shell, Cloud Backup, or PAI) may affect those services.

  1. Log on to the NAS console.

  2. In the left-side navigation pane, choose File System > File System List.

  3. In the top navigation bar, select the resource group and region where your file system resides.image

  4. On the File System List page, click the desired file system.

  5. On the file system details page, click the Mount Targets tab. In the Mount Target section, find the mount target that you want to delete and click Expand > Delete in the Actions column.

Next steps

FAQ

The Basic management FAQ covers file systems, mount targets, and permission groups.