KVM – Online Disk Resize
This HOW TO assumes a KVM guest called ‘vm’ backed by an LVM volume called ‘vm-data’. On Hypervisor
1 2 3 4 5 6 7 8 9 |
# lvs vm-data VG -wi-ao-- 100.00g # lvresize -L 200G /dev/VG/vm-data Extending logical volume vm-data to 200.00 GiB Logical volume vm-data successfully resized # lvs vm-data VG -wi-ao-- 200.00g # virsh blockresize --path /dev/VG/vm-data --size 200G vm Block device '/dev/VG/vm-data' is resized |
Depending on how the disk is used inside the guest (DRBD disk, partitioned block device, LVM physical volume) continue with one of the three alternatives On Guest – When Resizing DRBD disk If the resized disk… Read More »