Expanding Linux VM root partition with LVM


The purpose of this article is to expand the root partition on a Linux system with LVM.



RedHat, Centos using LVM ( Logical Volume Manager)



  1. Create checkpoint of VM
  2. Open failover cluster console, select the VM, go to settings and select the HDD. Then click on edit and add the extra space trough the wizard.
  3. Login to the VM and reread the SCSI channels with the following command:

 echo "- - -" > /sys/class/scsi_host/host0/scan

  1. fdisk /dev/sda
  2. pvextend
  3. lvextend
  4. fesize2fs
  5. Confirm space is extended
  6. Remove checkpoint within 48 hours




Was this article helpful?
0 out of 0 found this helpful

Have more questions? Contact our support instantly via Live Chat