In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you aws and ubuntu how to add a new hard drive, I hope you will learn something after reading this article, let's discuss it together!
1. Now create a hard disk on the aws website, note that the created Availability Zone must be in the same area as the EC2 virtual machine, because an AZ is equivalent to a data center, in order to ensure speed, it is impossible to put the hard disk and virtual machine in different data centers.
two。 Check the block storage device to see if the new hard drive is attached in the example description.
3. Now let's go to the ubuntu system / dev and see that the sda1,sdf,xvda1,xvdf is all there (notice that the name of the xvdf device viewed here is not the same as that on the aws website)
Df-h is to view mounted hard disk information.
4. Next format our new hard drive sudo mkfs-t ext4 / dev/xvdf
5. Create a new mount point. Sudo mkdir xvdf (note that I created and mounted it under / mnt)
6. Mount it. Sudo mount / dev/xvdf / mnt/xvdf
Df-h to see if it has been mounted.
7. Permanent mount (automatic mount after restart) to edit the / etc/fstab file
Vim / etc/fstab add a line to it
UUID=1aa8107b-bf5f-4777-acea-e4e009cf3ac2 / mnt/xvdb ext4 defaults,discard 00
9. Check the UUID command blkid-s UUID
After reading this article, I believe you have a certain understanding of "how to add a new hard drive to aws and ubuntu". If you want to know more about it, please follow the industry information channel. Thank you for reading!
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.