KVM/Extend LVM on qcow2 images
< KVM
qemu-img resize c845ba080f2326a51c53965af1ac6c18 +3G
- Modify partition with:
fdisk /dev/vdX
+ Reboot pvresize /dev/vdX#
(Expand a PV after enlarging the partition)lvextend -L +1.8G /dev/mapper/VolGroup-lv_root
resize2fs /dev/mapper/VolGroup-lv_root
See also
edit- Read about raw files and qcow2 differences: https://www.berrange.com/posts/2017/02/10/the-surprisingly-complicated-world-of-disk-image-sizes/
- Qcow file format
virt-resize