...
- Increase Diskspace (physically or on the Hypervisor Layer)
- Reboot or rescan for disks
- create a new Partition that is compatible to LVM
- re-read Partition table either via reboot or command "partprobe"
- Initialise a new PV with
pvcreate
- Increase the VG with
vgextend
- Increase the LV with
lvextend
- Increase the Filesystem with
resize2fs
In case of an extension of an existing partition:
Following above example, if sda would have received an additional 200GB instead of integrating a different (sdb) partition.
- Increase Diskspace (physically or on the Hypervisor Layer)
- Reboot or rescan for disks
- Use lsblk to identify which partition got increased
- identify the free space in the partition
- parted /dev/sda print free
- Increase the last partition, if it fits the filesystem. Use:
- parted /dev/sda
- resizepart
- insert which partition should be resized/increased, in the above case, it would be "3" for sda3.
- insert new volume End, as seen via step 4a, where the End of the Free space, should be the new End for partition 3.
- pvresize /dev/sda3 or resizefs /dev/sda3
- Increase the LV as seen above
- resize filesystem