Re: [libvirt-users] libvirt and lvm thin pool

Ján Tomko
Mon, 04 Aug 2014 08:40:05 -0000

On 08/02/2014 10:24 PM, Vasiliy Tolstov wrote:
> Hi all. I'm using libvirt 1.2.6
> I want to use lvm storage for my virtual machines.
> But i want to use new lvm2 feature - thin pool. How can i do that in
> libvirt? If libvirt can't create it via pool xml, does (and how) to
> use this setup under libvirt?
>

Hi,

libvirt doesn't know thin pools.

But if you create a logical pool in libvirt using a certain volume group, the
thin volumes created in this volume group should be visible to libvirt*.

* I haven't actually tested it. Looking at the code, we only skip over the
logical volumes of type 't', which is the volume containing the thin
pool, but
the thin volumes ('V' in lvs output) are not skipped.

Jan