Mount NAS

Prev Next

Available in Classic

You can add a large-scale NAS storage to Cloud Hadoop cluster nodes.
For more information about NAS, see the NAS user guide.

To mount NAS on the cluster server:

1. Create NAS volume

To create a NAS volume:

  1. In the Classic environment on the NAVER Cloud Platform console, navigate to i_menu > Services > Storage > NAS > NAS Volume.
  2. Click the [Create NAS volume].
  3. Configure the NAS volume settings and create the NAS volume.
    • For more information on creating NAS volumes, see the Create NAS volume (Classic) guide.
    • You can set ACL (Network Access Control) during the NFS access control configuration step when creating a NAS Volume.
  4. In the settings popup, select a cluster server and use the < > buttons to move it. To add a server from another NAVER Cloud Platform account to a NAS volume, enter a private IP address in the Custom Server IP field and click [Next].
    chadoop-3-11-01_ko

2. Register NAS Volume ACL

Before mounting a NAS Volume, you must first add ACL settings for the relevant cluster.
ACL can be set when creating a NAS Volume or through the NFS access control menu in the console after creating the NAS.

  • When creating a NAS volume
    select a cluster server in the NFS access control settings and move it using the < > buttons, or enter a private IP address to complete the ACL (network access control) configuration. See 1. Create NAS volume.

For more information on creating NAS volumes, see the Create NAS volume (Classic) guide.

  • If you already have a NAS Volume
    To set up ACL if the NAS Volume has already been created:
  1. In the Classic environment on the NAVER Cloud Platform console, navigate to i_menu > Services > Storage > NAS > NAS Volume.
  2. From the NAS Volume list, select the NAS Volume for which you want to set ACL, then click [Volume settings].
  3. Click NFS access control.
  4. In the settings popup, select the cluster server, move it with the < > buttons, and then click [OK].
    • To add a server from another NAVER Cloud Platform account to a NAS volume, enter a private IP address in the Custom Server IP field at the bottom and click [OK].
      chadoop-3-11-02

3. Mount NAS

This guide applies to the basic environment of Cloud Hadoop. (CentOS 6.x or later)
For more information about NAS, see the NAS user guide.

  1. After launching PuTTY, use SSH to access the cluster server where you want to mount the NAS. (See the Connect cluster nodes via SSH guide.)

  2. Use the sudo su - command to convert to the root account.

    $ sudo su -
    
  3. Refer to the following example to install NFS-related packages, run the RPC daemon, and create a mount point.

    $ yum -y install nfs-utils
    $ systemctl start rpcbind.service
    $ mkdir /mnt/nfs_dir
    
    • yum -y install nfs-utils: Installs NFS-related packages (basic).
    • systemctl start rpcbind.service: Runs the RPC daemon.
    • mkdir /mnt/nfs_dir: Creates a mount point (directory) called /mnt/nfs_dir using the mkdir command.
  4. Mount using the volume name received from the NAS console and the mount point created.

    $ mount -t nfs {Mount info} {Mount point}
    $ mount -t nfs 10.250.53.85:/n2536315_test /mnt/nfs_dir
    
  5. Use the df command to check that the NAS has been mounted correctly.

    $ df
    
Note

To automatically mount the NAS when the server boots, add the volume information to /etc/fstab.