In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Note: the environment is a centos7 virtual machine created in vmware vcenter6.5
Goal: add a 20g hard disk to the existing hard disk
Figure 1 below shows the previous configuration:
Editing
Click OK.
Restart the virtual machine
Open the console
Open the terminal and you can see the 20g hard drive you just added.
Fdisk-l
Create a PV (physical volume)
Pvcreate / dev/sdb
You can see that the PV has been created, and then pvdisplay, and you can see that the name of the VG (volume group) with PV name / dev/sda2 is cl, while the newly created VG name with PV name of / dev/sdb is displayed as none. Therefore, you need to add the created PV to an existing volume group
Vgextend cl / dev/sdb
Extend the newly added disk capacity to the root logical volume root
Lvextend-L + 20g / dev/cl/root
Although it has been added to the root logical volume group at this time, it is not formatted into the corresponding file format at this time, so it cannot be displayed at this time, as shown in the figure
So perform the formatting operation
Xfs_growfs / dev/mapper/cl-rootdf-h
You can see that it has been mounted to the root logical volume.
In addition, new logical volumes can be created (as long as there is new disk capacity)
Lvcreate-L 30g-n test_name cl
Test_name is the name of the logical volume, and cl is the name of the volume group
Then format and mount it.
Mkfs.ext4 / dev/cl/test_name mount / dev/cl/test_name / mnt/ df-h
That's it.
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.