Closed vburamdo closed 4 years ago
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @MorrisA @abulimov @bcoca @d-little @flynn1973 @gforster @jhoekx @kairoaraujo @marvin-sinister @mator @molekuul @ramooncamacho @wtcross click here for bot help
didn't looked at the code yet, still a quick comment, that xfs filesystem does not support shrinking...
Looks like this is the same problem as https://github.com/ansible/ansible/issues/29201 (lvol module is not idempotent)
There was a PR https://github.com/ansible/ansible/pull/69136 that would fix this 3 years old problem... and it was a simple fix
Used the new collection modules [community.general.lvg, community.general.lvol ] but still am facing same issue.
RAID: --type raid1
first run: [root@vmdenseio216 ~]# vgs VG #PV #LV #SN Attr VSize VFree vg_nvme 2 1 0 wz--n- 11.64t 5.82t [root@vmdenseio216 ~]#
Second Run: [root@vmdenseio216 ~]# vgs VG #PV #LV #SN Attr VSize VFree vg_nvme 2 1 0 wz--n- 11.64t 0 [root@vmdenseio216 ~]# [root@vmdenseio216 ~]# pvs PV VG Fmt Attr PSize PFree /dev/nvme0n1p1 vg_nvme lvm2 a-- 5.82t 0 /dev/nvme1n1p1 vg_nvme lvm2 a-- 5.82t 0 [root@vmdenseio216 ~]#
Version details: ansible 2.9.7 config file = /srv/os_mgmt/ansible.cfg configured module search path = [u'/root/.ansible/collections/ansible_collections/community/general/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /bin/ansible python version = 2.7.5 (default, Aug 7 2019, 08:19:52) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39.0.1)]
The fix is still alive and kicking in this repo: #229 - it needs reviews and testing though.
SUMMARY
Issue is caused by Ansible on 2nd and later runs expanding the Logical Volume size by doubling it, rather than locking it at 50% of the VG.
ISSUE TYPE
COMPONENT NAME
lvol
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
OS version: OracleLinux 7.x
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS