All Products
Search
Document Center

Mount and unmount a NAS file system

Last Updated: Oct 12, 2021

After you create a cluster, you can mount an Apsara File Storage NAS (NAS) file system on the cluster to improve the shared storage capability of the cluster. This topic describes how to mount a NAS file system and unmount it from a cluster in the Elastic High Performance Computing (E-HPC) console.

Prerequisites

  • A file system and mount target are created in the same virtual private cloud (VPC) as the cluster. For more information, see Create a NAS file system and Manage mount targets.

  • The image of the cluster is a public image or a shared image.

    Notice

    If a NAS file system is mounted on a cluster that uses a custom image, the file system does not run as expected.

Background information

NAS is a distributed file system that provides multiple benefits, including shared access, auto scaling, high reliability, and high performance. To improve the throughput capacity, performance, and concurrent access capability of a cluster, you can mount a NAS file system on it. This way, you can perform high-performance computing on a larger scale.

Mount a file system on the cluster

To mount a file system on a cluster, you can turn on the Configure By Directory switch in the Storage section of the Hardware Configurations step when you create the cluster. For more information, see Create a cluster by using the wizard. You can also perform the following steps to mount a file system on an existing cluster.

  1. Log on to the E-HPC console.

  2. In the top navigation bar, select a region.

  3. In the left-side navigation pane, choose Resource Management > Storage.

  4. On the Storage Management page, select the cluster, and click Mount Storage Resource.

  5. In the Mount Storage Resource panel, configure the mount settings.

    Parameter

    Description

    Local Directory

    The on-premises directory of the cluster. The user data, scheduler information, and job data of the cluster are stored in the directory.

    If no on-premises directory exists, E-HPC automatically creates one.

    Storage Instance ID

    The ID of the NAS file system.

    Mount Point Address

    The IP address of the mount target.

    Remote Mounting Directory

    The remote directory of the file system. E-HPC stores all user data, user management data, and job sharing data on a NAS file system. All nodes in the cluster can access the data. This way, the shared storage capability of a cluster is improved.

    If no remote directory exists, E-HPC automatically creates one.

  6. Click OK.

    Note

    After a NAS file system is mounted on a cluster, it takes effect for the compute nodes that are afterward added to the cluster. However, the existing compute nodes need to be reset to apply changes.

Check the mount result

After you add or reset compute nodes in the cluster, the NAS file system is automatically mounted on the compute nodes. To check the mount result, perform the following steps:

  1. In the left-side navigation pane, click Cluster.

  2. On the Cluster page, find the cluster, and click Connect.

  3. In the Connect panel, specify a username, password, and port number.

  4. Click Browse to view the on-premises directories of the file systems that are mounted on the cluster.

    In this topic, an on-premises directory named test is added. The following figure shows the mount result.

    NAS

Unmount a file system from the cluster

You can unmount file systems from your cluster based on your needs.

  1. On the Storage Management page, select the cluster from the Cluster drop-down list.

  2. Select the file system that you want to unmount, and click Dismount Storage Resource.

    Note

    NAS file systems in the /ehpcdata, /home, and /opt directories cannot be unmounted.

  3. In the Dismount Storage Resource message, click OK.