# LVM thin pool/poolmetadata

**URL:** <https://forum.ansible.com/t/lvm-thin-pool-poolmetadata/24697>\
**Category:** Ansible Project\
**Created:** [June 11, 2017, 3:49pm UTC](https://forum.ansible.com/t/lvm-thin-pool-poolmetadata/24697 "2017-06-11T15:49:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeeva\_Chelladhurai](https://avatars.discourse-cdn.com/v4/letter/j/f07891/32.png) [@Jeeva\_Chelladhurai](https://forum.ansible.com/u/Jeeva_Chelladhurai)\
**Post date:** [June 11, 2017, 3:49pm UTC](https://forum.ansible.com/t/lvm-thin-pool-poolmetadata/24697/1 "2017-06-11T15:49:07Z")

</div>

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

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

```

```auto
and then convert it to thin pool as shown below

```

```auto

```

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

```

```auto

```

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

```

```auto

```

```auto
Thanks,

```

```auto
Jeeva

```

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [June 15, 2017, 5:50pm UTC](https://forum.ansible.com/t/lvm-thin-pool-poolmetadata/24697/2 "2017-06-15T17:50:51Z")

</div>

You can always use the command module.
