In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to mount the disk under the centos7 CVM system. It is very detailed and has a certain reference value. Friends who are interested must read it!
I. preparation
One centos7 CVM
50g cloud disk
Mount the cloud disk to the CVM
2. Mount the disk
1.1 View new disk
[root@cgsl] # fdisk-l
Find the newly added disk with the number / dev/vdc
1.2 hard disk partition enters fdisk mode
[root@cgsl] # / sbin/fdisk / dev/vdc
Enter n to partition
[root@cgsl] # Command (m for help): n
Select Partition Typ
[root@cgsl] # Select (default p): P
Select the number of partitions
[root@cgsl] # Partition number (1-4, default 1): 1
Enter all the time, and finally enter Q to exit.
Format the partition to format the new partition into the ext3 file system
[root@cgsl] # mkfs-t ext3 / dev/vdc
Mount the hard disk 1. Create a mount point and create a storage directory under the root directory
[root@cgsl] # mkdir / storage
two。 Mount / dev/vdc to / storage
[root@cgsl] # mount / dev/vdc / storage
3. The newly created partition cannot be mounted automatically when it is set to boot, and must be mounted manually every time the machine is rebooted. / etc/fstab file needs to be modified to set auto mount on boot.
# vi / etc/fstab
Add a line / dev/vdc / storage ext3 defaults 1 2 at the end of the file
Pay attention to query your hard disk format and use df-T to query.
The above is all the contents of the article "how to mount a disk in a centos7 CVM system". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow 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.