This topic describes how to manage mount targets in the Apsara File Storage NAS console. You can create, disable, enable, or delete a mount target. You can also view the list of mount targets or modify the permission group of a mount target.

Create a mount target

If you want to mount a file system on an Elastic Compute Service (ECS) instance, you must create a mount target for the file system. To create a mount target in the NAS console, perform the following steps:
Note
  • You can create up to two mount targets for each General-purpose NAS file system. Each mount target can reside in a virtual private cloud (VPC) or the classic network.
  • You can create only one mount target for each Extreme NAS file system. The mount target must reside in a VPC.
  1. Log on to the NAS console.
  2. In the left-side navigation pane, choose File System > File System List.
  3. Find the file system for which you want to create a mount target, and choose More > Add Mount Target in the Operations column.
  4. In the Add Mount Target dialog box, configure the parameters.
    Mount Target Type: the network type of the mount target. Valid values: VPC and Classic Network.
    • If you want to create a mount target in a VPC, configure the parameters. The following table describes the parameters.
      Note
      • Multiple ECS instances that are attached to different vSwitches in a VPC can use the same mount target that resides in the VPC.
      • When you create a mount target for a file system, the file system is assigned an IP address. We recommend that you select a vSwitch that has a large number of available IP addresses.
      Parameter Description
      VPC Network Select the VPC in which you want to create the mount target. If no VPC is available, create a VPC in the VPC console.

      We recommend that you select the VPC of the ECS instance on which you want to mount the file system. If the mount target and the ECS instance reside in different VPCs, you can use Cloud Enterprise Network (CEN) to establish a connection between the VPCs. Then, you can mount the file system on the ECS instance. For more information, see Mount a file system across VPCs or regions.

      Switch Select a vSwitch that resides in the VPC.
      Permission Group Select a permission group based on your business requirements.

      A permission group named VPC default permission group (all allowed) is automatically created for each Alibaba Cloud account. This permission group allows access from all IP addresses in the VPC to the file system by using the mount target. You can also create a permission group based on your business scenario. For more information, see Create a permission group and add rules for the permission group.

      Open IPv6 Enable the IPv6 feature.

      The Open IPv6 switch takes effect only if the file system resides in a region in which IPv6 is supported and an IPv6 VPC and an IPv6 vSwitch are specified.

    • If you want to create a mount target in the classic network, select a permission group based on your business requirements.
      Notice
      • You can create a mount target in the classic network only in some regions in the Chinese mainland.
      • If you use a mount target in the classic network, you can mount a file system only on an ECS instance. The network type of the ECS instance must be the same as the network type of the mount target. If you want to mount a file system on an ECS instance in the classic network, you must use a mount target that resides in the classic network.
  5. After you configure the preceding parameters, click OK.
After the mount target is created, the following ports can be used to access the Network File System (NFS) service and the Server Message Block (SMB) service:
  • General-purpose NAS file systems
    • NFS ports
      • 2049: allows access to the NFS service.
      • 4001: allows access to the Network Lock Manager (NLM) service
      • 4002: allows access to the Mount service.
      • 111: allows access to the RPC bind service.
    • SMB ports

      445: allows access to the SMB service.

  • Extreme NAS file systems

    Extreme NAS file systems support only the NFS protocol. The following NFS ports are used:

    • File systems that are created before May 20, 2020
      • 2049: allows access to the NFS service.
      • 4001: allows access to the NLM service
      • 4002: allows access to the Mount service.
      • 111: allows access to the RPC bind service.
    • File systems that are created on or after May 20, 2020
      • 2049: allows access to the NFS service, NLM service, and Mount service.
      • 111: allows access to the RPC bind service.

View mount targets

On the File System List page, find the file system whose mount targets you want to view and click Manage in the Actions column to go to the details page of the file system. On the details page, click Mount Targets. In the Mount Target section of the Mount Targets tab, view the mount targets.

View the endpoint of a mount target

On the Mount Targets tab, find the mount target whose endpoint you want to view, and move the pointer over the IP Address of Mount Target icon in the IP Address of Mount Target column. The endpoint of the mount target is displayed.

View the clients on which a file system is mounted

The NAS console allows you to view the clients on which a General-purpose NAS file system is mounted.

Click Client List in the Actions column. The IP address of each client is displayed.
Note The list includes the clients that accessed the file system within the previous minute. If the file system is mounted on a client but the client did not access the file system within the previous minute, the client is not in the list.

Enable or disable a mount target

You can enable or disable the mount target of a General-purpose NAS file system to control access from clients to the mount target.
  • If you want to deny access from clients to the mount target, click Disable in the Actions column.
  • If you want to allow access from clients to the mount target, click Enable in the Actions column.

Delete a mount target

Warning After you delete a mount target, you cannot restore the mount target. Proceed with caution.

If you want to delete a mount target, click Delete in the Actions column.

Change the permission group of a mount target

If you want to change the permission group of a mount target, click Modify Permission Group in the Actions column. For more information, see Manage a permission group.

FAQ

For more information about the FAQ about mount targets, see FAQ about basic management features.