Lvm – How to mount/resize/modify LVM partition in KVM qcow2 or raw images

kvm-virtualizationlvmqcow2

I have KVM qcow2 and raw images. Virtual machines are partitioned with LVM. Now I want to resize the root partition of a few machines so I guess I have to do this from the host.
My question is: how can I do this with raw images or qcow2 images ?

I'm a little bit confused by KVM+LVM complexity.

Thanks !

Best Answer

Well, LVM images inside qcow2 files is a mess. I personally try to avoid them, as multiple layers of LVM can cause shocking headaches.

But you will find the answer here:

Mount LVM within a disk image

Good luck!