Expand root partition in a KVM LVM based disk
Submitted by paul on Thu, 10/01/2015 - 15:50I needed to expand the root partition in a KVM virtual on a debian host server that has KVM and Libvirt install. The virtual disk that this KVM is using has 2 partitions:
Device Boot Start End Blocks Id System /dev/vda1 63 1060289 530113+ 82 Linux swap / Solaris /dev/vda2 1060290 209715199 104327455 83 Linux
That is the root partition (vda2) is after the swap partition.