Expanding a qcow2-backed system disk (host + guest) — guest volume is lvm and xfs file system
HOST (resize qcow2)
- Optional backup:
cp –reflink=auto /vms/fedora02.qcow2 /vms/fedora02.qcow2.bak - Offline resize (VM stopped):
qemu-img resize /vms/fedora02.qcow2 +5G
# Start the VM after resizing.
GUEST (grow partition, PV, LV, filesystem)
- Confirm the disk shows the larger size:
lsblk -o NAME,SIZE,TYPE,MOUNTPOINT
#If needed:
#partprobe /dev/sda - Grow the LVM partition (sda2) to the end of the disk:
dnf install -y cloud-utils-growpart
growpart /dev/sda 2
partprobe /dev/sda - Resize the LVM PV and extend the root LV:
pvresize /dev/sda2
lvextend -l +100%FREE /dev/fedora/root - Grow the filesystem:
xfs_growfs / - Verify:
lsblk -o NAME,SIZE,TYPE,MOUNTPOINT
df -h /









