Introduction to the experiment

This experiment provides CentOS System ECS One and NAS File service .

NAS be based on POSIX File interface , Natural adaptation to native operating systems , Provide shared access , At the same time, ensure data consistency and lock mutual exclusion . It provides simple extensible file storage for ECS In combination with , Multiple ECS Instances can be accessed at the same time NAS file system , And the storage capacity will automatically grow and shrink as you add and delete files , Provide a common data source for the resulting workloads and applications running on multiple instances or servers .

Through experiments, we can master Linux ECS Instance mounting NFS file system (NFS v3 Protocol mount file system , For best access performance ). stay Linux ECS In the example , install NFS After the client , You can mount it manually NFS file system .

Experiment preparation

1. Create resources

Create resources

On the left side of the page , single click Cloud product resources The drop-down list , View the resources required for this experiment .

Click on the right side of the screen Create resources , Create cloud product resources for the current experiment for free .

explain :

The resource creation process requires 1~3 minute . After the creation of experimental resources , You can go to Cloud product resources List to view the created resource information , for example :IP Address 、 Sub user name, sub user password, etc .

2. To configure ECS example

To configure ECS example

1) Click on top products and services , Enter ECS ECS

2) Get into ECS Console , Click examples , Verify regional information

3) Click Remote Connection , choice Workbench Remote connection , Click login to copy ECS Password and paste , Connect ECS example

4) install NFS client , Please execute the following order :

sudo yum install nfs-utils

Prompt to enter y

Show Complete Express completion 5) Add simultaneous NFS Number of requests , Will be launched at the same time NFS The requested quantity is modified to 128(NFS The client initiated at the same time NFS The number of requests is controlled , The value of this parameter in the default compiled kernel is 2, Seriously affect performance , It is recommended that you modify the parameter value to 128) Please execute the following order :

if (lsmod | grep sunrpc); then
(modinfo sunrpc | grep tcp_max_slot_table_entries) && sysctl -w sunrpc.tcp_max_slot_table_entries=128
(modinfo sunrpc | grep tcp_slot_table_entries) && sysctl -w sunrpc.tcp_slot_table_entries=128
fi
(modinfo sunrpc | grep tcp_max_slot_table_entries) && echo "options sunrpc tcp_max_slot_table_entries=128" >> /etc/modprobe.d/alinas.conf
(modinfo sunrpc | grep tcp_slot_table_entries)

3. Manual mount NFS file system

Manual mount NFS file system

1) Get into NAS Console

2) Get into NAS Management interface

3) Add a mount point

VPC The Internet 、 Switch selection requires mounting ECS Where VPC And switches , You can enter ECS View network information in the management interface

4) mount NFS file system , Recommend to pass NFS v3 Protocol mount file system , For best performance , Use NFS v3 Protocol mount file system :

sudo mount -t nfs -o vers=3,nolock,proto=tcp,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport 31edb4a96b-txx66.cn-shanghai.nas.aliyuncs.com:/ /mnt

31edb4a96b-txx66.cn-shanghai.nas.aliyuncs.com Is the address of the mount point

5) perform

mount -l

command , View mount results , If the returned information contains the following similar information , Indicates that the mount is successful

6) Execute the following command , If there is NFS Mount address of file system , It indicates that the mount is successful :

df -h | grep aliyun

7) After successfully mounting , You can go to ECS Visit NAS file system , Perform a read or write operation . You can put NAS The file system is accessed and used as a common directory , Examples are as follows :

mkdir /mnt/dir1
touch /mnt/file1
ls /mnt

Alibaba cloud award experience : How to use ECS mount NAS More articles on file systems

  1. Alibaba cloud award winning survey results are released , Give 10 Alibaba logo Brooch ...

    4 month 17 Japan , We launched " Alibaba cloud award winning survey ! Gift 10 Alibaba logo Brooch " Activities , Now it is selected by random lottery 10 Lucky classmates , Each person presents an Alibaba Brooch . Now let's welcome the award-winning students ID The announcement is as follows , Please send a private message to the following students ...

  2. Alibaba cloud expands its own instance - Expand partitions and file systems _Linux System disk

    Alibaba cloud bought a server ecs Disk capacity 40g I found that it was used 30g 了   Expand the capacity quickly Get into e'cs example Go to the menu on the left Storage and snapshot Then select the expansion on the right Then pay After success Enter server df -h Find out why it hasn't changed ...

  3. The overall computing power is improved 40% Chip level security | Alibaba cloud released the seventh generation ECS Cloud server

    2  month 8 Japan , Alibaba cloud announced the launch of the seventh generation ECS Cloud Server product family , Based on the latest dragon Architecture , Compared with the previous generation, the overall computing power has improved 40%, The density of container deployment can be increased up to 6 times , Is the best cloud native carrier , In addition, it's fully loaded with security chips , Realization &q ...

  4. Alibaba cloud CentOS7 Server utilization LVM Partition mount disk full record

    1. After entering the server , The first use of fdisk -l To see disk information , You can see the red line , There are two hard disk information , Namely 40G and 300G 2. At the same time, you can also observe the partition information ,40G My hard disk has been divided into one area vda1, size (Bloc ...

  5. Aliyun server CentOS7 How to partition and format / Mount the hard disk

    One . After purchasing the hard disk of the server on Alibaba cloud, it can be operated , First look at the hard disk : Hard disk vda It's the system disk :vdb It is another hard disk purchased in the background of Alibaba cloud . Partition for the first time :fdisk /dev/vdb1 At the prompt, enter :n+ ...

  6. [Linux] Alibaba cloud's free trial experience ( In Alibaba cloud ubuntu I'm going to do personal service )

    As a IT People in the world , Generally, I want to have an independent blog , Or a stand-alone machine . So I've been looking for opportunities , Have a machine that you can control independently , What do you want to do . Of course, it's in the virtual machine or your own PC It can also be realized , But this one is always on ...

  7. Alibaba cloud Open API Automation script —ECS Public network IP Transform the elastic public network IP

    1.OpenAPI Explorer Record the use of Alibaba cloud Open API automation / scripting “ECS Public network IP Transform the elastic public network IP” The implementation of the Whole process . Original blog address :https://www.markedi ...

  8. Alibaba cloud elastic public network IP Those things Alicloud cloud habitat 6 month 1 Japan Elastic public network IP It's an independent public network IP resources , It can be bound to Alibaba cloud VPC VPC Type of ECS、NAT gateway 、 Private network load balancing SLB On , And can dynamically unbind , Implement public IP and ECS、NAT gateway 、SLB The decoupling , Meet the requirements of flexible management . Alibaba cloud elastic public network IP Those things Alicloud cloud habitat 6 month 1 Japan Elastic complex VPC Type of E

    Alibaba cloud elastic public network IP Those things Alicloud cloud habitat 6 month 1 Japan Elastic public network IP It is an independent public gateway . Private network load balancing SLB On , And can dynamically unbind , Implement public IP and ECS.NAT gateway .SLB The decoupling , Meet the requirements of flexible management .

  9. Alibaba cloud releases CloudOps white paper ,ECS New upgrade of automation operation and maintenance Suite

    12 month 10 Japan ,2021 Cloud Architecture and operation and maintenance Summit , Alibaba cloud released the industry's first < Cloud automation operation and maintenance white paper >( abbreviation CloudOps white paper ), And put forward CloudOps Maturity Model . meanwhile , Alibaba cloud also announced ECS ...

  10. Alibaba cloud fortress machine key connection ECS The server

    writing : Tiele and the cat 2017-6 Mid month Fortress remote desktop windows There is no need to elaborate on the system Fortress machine remote ssh Connect linux The system has to say , After all, it's for security. Generally, it's only through key connection , Instead of using a password to connect . First of all, we need to ...

Random recommendation

  1. python install tkinter

    python2 install tkinter sudo apt-get install python-tk python3 install tkinter sudo apt-get install python3-tk

  2. [RabbitMQ+Python Introductory classic ] Rabbit and rabbit nest

    Textual connection : http://blogs.digitar.com/jjww/2009/01/rabbits-and-warrens/ RabbitMQ As an industrial message queue server , In its client manual list P ...

  3. dashboard

    http://www.htmleaf.com/pins/chart-doc/index.html http://www.flotcharts.org/flot/examples/ https://gi ...

  4. 【 machine learning 】BP Neural network realizes handwritten digit recognition

    Recently, with python Write a program to realize handwritten numeral recognition BP neural network ,BP The derivation of is everywhere , But you don't know until you move your hand , It's two different things to be able to deduce theoretically and realize it . About BP Implementation of neural network, there are some codes on the Internet , Unfortunately, there are more or less various problems , I wrote a ...

  5. 【 turn 】Watir, Selenium &amp; WebDriver

    from :http://watirmelon.com/2010/04/10/watir-selenium-webdriver/ Please also see my new ‘Watir-WebDrive ...

  6. mysql Add login user

    One , Create user : command :CREATE USER 'username'@'host' IDENTIFIED BY 'password'; explain :username - The user name you will create , host - finger ...

  7. lnmp HTTP ERROR 500

    http://www.cnblogs.com/thrillerz/p/4725409.html

  8. Windows 10 The historical version of the official version

    1.Windows 10 1507 First edition Windows 10, Code name TH1, Version number 10240, Published on 2015 year 7 month . 2015 year 7 month 29 Japan , Microsoft officially released Windows 10 operating system .Windows 1 ...

  9. Android Audio system AudioFlinger( 3、 ... and )

    http://blog.csdn.net/xuesen_lin/article/details/8805091 1.1.1 PlaybackThread The main body of the loop When one PlaybackThread Into the ...

  10. uvaoj 156Ananagrams(map and vector Use a combination of )

    https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem& ...