LVM thin pool/poolmetadata

Hello All,

I am attempt to automate the installation of docker on the production systems using Ansible. However my challenge is to convert the LVM thin pool (I am new to LVM as well). As per the docker installation document first we have to create two LVMs as below

$ sudo lvcreate --wipesignatures y -n thinpool docker -l 95%VG
$ sudo lvcreate --wipesignatures y -n thinpoolmeta docker -l 1%VG

and then convert it to thin pool as shown below

$ sudo lvconvert -y \
--zero n \
-c 512K \
--thinpool docker/thinpool \
--poolmetadata docker/thinpoolmeta

Unfortunately I couldn't find any module which would help me to do the lvconvert. Please guide me on this.

Thanks,
Jeeva

You can always use the command module.