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 > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Vmware vsphere disk expansion of several methods are, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
Vmware vsphere expands the original disk
1. Increase the disk capacity in vmware vsphere client. (note: it can only be turned up here, not small.)
two。 Restart the virtual machine
3. Check the disk device: fdisk-l (you will see that there is an extra partition sda2,sda3,..., that has not been initialized yet)
4. Partition the expanded disk: fdisk / dev/sda
Enter njournal p, 3 (partition number, configured according to the actual situation), enter,enter, and finally press w to save
5. Check to see if the partition was created successfully: fdisk-l
6. Restarting the virtual machine takes effect. Reboot
7. Create a physical volume. Pvcreate / dev/sda3 sda3 (new partition)
8. Extend the new partition to VG. Vgextend centos / dev/sda3
9. View VG: vgs
10. Use LV to expand disk files: lvextend-L + 20g / dev/mapper/centos-root
11. View LV size: lvs
twelve。 View the disk file: df-h
13. Make the system reread the size: xfs_growfs / dev/mapper/centos-root
Vmware vsphere add a new disk
1. Add a new virtual disk in vmware vsphere client
two。 Partition the newly created disk: fdisk / dev/sdb
Enter njournal p, 3 (partition number, configured according to the actual situation), enter,enter, and finally press w to save
3. Check to see if the partition was created successfully: fdisk-l
4. Restarting the virtual machine takes effect. Reboot
6. Format the partition: mkfs.xfs-f / dev/sdb1 (you can skip this step by creating a new disk)
Restarting the virtual machine takes effect. Reboot
7. Permanent mount
Modify the file of the hard disk mounted by the system, where 0 means that the partition is not checked at boot time
Vim / etc/fstab
Add the following configuration
/ dev/sdb1 / data xfs defaults 0 0
Restarting the virtual machine takes effect. Reboot
View the mount information of the disk: lsblk-f
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.