- Print
- PDF
Mounting NAS
- Print
- PDF
Available in VPC
You can add NAS, which is a large-volume storage, to a Cloud Hadoop cluster node.
Please refer to NAS Guide for more information about NAS.
To mount NAS on a cluster server, proceed with the following steps in order.
1. Create NAS volume
The following describes how to create a NAS volume.
- Please connect to the NAVER Cloud Platform console.
- Click VPC from the Platform menu to switch to the Classic environment.
- Click the Services > Storage > NAS > NAS Volume menus, in that order.
- Click the [Create NAS volume] button.
- Set the NAS volume creation information and Complete the NAS volume creation.
- Please refer to Create NAS volume (VPC) for more information about creating NAS volume.
- When you create a NAS volume, you can set ACL (network access control list) in the NFS access control settings stage.
- Please refer to Create NAS volume (VPC) for more information about creating NAS volume.
2. Add NAS volume to ACL
Before mounting the NAS volume, you should add the ACL settings about the cluster first.
ACL can be set when you create the NAS volume, or through the console's NFS access control menu after creating the NAS.
- When creating a NAS volume
Select a cluster server in the NFS access control settings stage and move with the < > buttons, or manually enter the private IP to complete the ACL (network access control list) settings. Please refer to 1. Create NAS volume above.
Please refer to Create NAS volume (VPC) for more information about creating NAS volume.
- If you already have a NAS volume
The following describes how to set ACL in the case a NAS volume has already been created.
- Please connect to the NAVER Cloud Platform console.
- Click VPC from the Platform menu to switch to the Classic environment.
- Click the Services > Storage > NAS > NAS Volume menus, in that order.
- Select the NAS volume to set ACL from the NAS volume list, and then click the [Set volume] button.
- Click NFS access control.
- Select the cluster server in the setting pop-up window, move it to the < > button, and click the [OK] button.
3. Mount NAS
A guide for the default environment of the Cloud Hadoop is provided. (CentOS 7.x or later)
Please refer to NAS Guide for more information about NAS.
Run PuTTY, and access the cluster server to mount the NAS through SSH. (Refer to Connecting to cluster nodes through SSH)
Use the
sudo su -
command to switch to the root account.$ sudo su -
Refer to the following example to install the NFS-related package, 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
: Install NFS-related package (basic)systemctl start rpcbind.service
: Start the RPC daemonmkdir /mnt/nfs_dir
: Use the mkdir command to create a mount point (directory) called/mnt/nfs_dir
Mount the NAS using the volume name received from the NAS console and the mount point you created.
$ mount -t nfs {mount info} {mount point} $ mount -t nfs 10.250.53.85:/n2536315_test /mnt/nfs_dir
Confirm that the NAS is mounted correctly by using the
df
command.$ df
To mount the NAS automatically when the server boots up, add volume information to /etc/fstab
.