In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article shows you how to use NAS file storage to get good disk performance at a low price. The content is concise and easy to understand. It will definitely make your eyes shine. I hope you can learn something from the detailed introduction of this article.
introduced
Aliyun Network Attached Storage (NAS) is a file storage service for Aliyun ECS instances, HPC and Docker computing nodes. It provides standard file access protocols. Users can use a distributed file system with unlimited capacity and performance expansion, single namespace, multiple shares, high reliability and high availability without any modification to existing applications.
Once a NAS file system instance and mount point is created, the file system can be mounted using standard NFS protocols and accessed using standard Posix interfaces within compute nodes such as ECS, HPC, and Docker. Multiple compute nodes can mount the same file system at the same time, sharing files and directories.
ready
1. Go to the NAS console and click Create File System to purchase NAS in the region corresponding to ECS. Linux can choose NFS. cdn.com/ed1fe42783e47a0bd53c0e0b3c29255f26c966fb.png">
Second, VPC private network Please omit this step classic network, need to create the corresponding permissions in the permission group, and add the corresponding ECS intranet IP, and open the read and write permissions, do not limit the root account.
Third, click Add Mount Point and select the corresponding network and permission group. VPC only needs to use the default one. Classic network also needs one more step RAM authorization, confirm it.
Mount
1. Install nfs protocol software: RHEL/CentOS:
yum install nfs-utils
Ubuntu/Debian:
apt-get install nfs-common
Second, we use NFS4 protocol mount
mount -t nfs4 :
Description:
Mount point domain name: refers to the mount point domain name automatically generated when creating file systems and mount points.
In-file system directory: A directory within a NAS file system, which can be the root directory "/" or any subdirectory of the NAS file system.
Target directory to be mounted on current server: target directory to be mounted on current server. The directory corresponding to the tutorial is: /data directory needs to be created in advance
For example:
apt-get installmkdir /datamount -t nfs4 1b156497f3-cnm15.cn-beijing.nas.aliyuncs.com:/ /data
Third, check the operation df -h to check the mount situation:
root@MF8.BIZ:~# df -hFilesystem Size Used Avail Use% Mounted on/dev/vda1 40G 1.2G 37G 4% /udev 10M 0 10M 0% /devtmpfs 201M 372K 200M 1% /runtmpfs 501M 0 501M 0% /dev/shmtmpfs 5.0M 0 5.0M 0% /run/locktmpfs 501M 0 501M 0% /sys/fs/cgroup1b156497f3-cnm15.cn-beijing.nas.aliyuncs.com:/ 1.0P 0 1.0P 0% /data
In the last line, you can see the NAS directory that is currently mounted.
That's how to use NAS file storage for low prices to get good disk performance. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.