# Checking free VG percentage

**URL:** <https://forum.ansible.com/t/checking-free-vg-percentage/30370>\
**Category:** Ansible Project\
**Created:** [May 19, 2019, 1:33pm UTC](https://forum.ansible.com/t/checking-free-vg-percentage/30370 "2019-05-19T13:33:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno\_Cochofel](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Post date:** [May 19, 2019, 1:33pm UTC](https://forum.ansible.com/t/checking-free-vg-percentage/30370/1 "2019-05-19T13:33:31Z")

</div>

Hi,

I’m trying to check if all the VGs on linux servers have less than 20% using the following:

---

<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:** [May 19, 2019, 1:44pm UTC](https://forum.ansible.com/t/checking-free-vg-percentage/30370/2 "2019-05-19T13:44:34Z")

</div>

The the variable vg is a string so you need  
&nbsp;&nbsp;vg | int \< 20

---

<div class="post-metadata">

**Author:** ![Bruno\_Cochofel](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Post date:** [May 19, 2019, 3:22pm UTC](https://forum.ansible.com/t/checking-free-vg-percentage/30370/3 "2019-05-19T15:22:09Z")

</div>

Thanks Kai, that worked.

Bruno
