Purpose
The purpose of this article is to expand the root partition on a Linux system with LVM.
Environment
RedHat, Centos using LVM ( Logical Volume Manager)
Steps
- Create checkpoint of VM
- 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.
- Login to the VM and reread the SCSI channels with the following command:
echo "- - -" > /sys/class/scsi_host/host0/scan
- fdisk /dev/sda
- pvextend
- lvextend
- fesize2fs
- Confirm space is extended
- Remove checkpoint within 48 hours