In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to expand the disk space of Linux under vsphere6.7". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to expand the disk space of Linux under vsphere6.7.
Shut down the virtual machine, click the virtual machine, and then set it (modify the hard disk size directly. Note that if there is a snapshot, delete the snapshot before you can expand the capacity)
After expansion, check the size of the disk space again
Fdisk-l
Increase zoning
1:fdisk / dev/sda
2: judging from this, we should add the partition number to 3 (dev/sda1,dev/sda2... It should be dev/sda3 next)
Type n, add a partition, and get:
3: type p, primary partition, and type 3 (number):
Because the second partition starts at 20480 and the hard drive ends at 51200.
4: default start sector and end sector (type Enter twice) type t, and modify the partition type to 8e:
5: type w, write the partition table, and then restart:
Initialize partition and join volume group
1: volume expansion, adding to LVM group
Pvcreate / dev/sda3 initializes the partition just now
2: view the volume group and add the initialized partition to the virtual volume group
Add a new physical volume to the volume group vg_root sda3 to increase the capacity of the volume group
Vgextend VolGroup / dev/sda3
Expand the size of a logical volume
1: only now can you expand the size of the logical volume
Lvextend-L + 20g / dev/mapper/VolGroup-lv_root
2: finally, use the resizefs2 command to reload the size of the logical volume to take effect
Resize2fs / dev/mapper/VolGroup-lv_root
3: then check the size of the logical volume again
At this point, I believe you have a deeper understanding of "how to expand the disk space of Linux under vsphere6.7". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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
# Author:LiPeijingage_of_oldboy = 56count = 0while count < 3: gess_age = int (input ("guess age:")
© 2024 shulou.com SLNews company. All rights reserved.