We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When i want to create a lvm snapshot with the module lvol and the option size : 20%ORIGIN for example, it fails :
lvol
size : 20%ORIGIN
"Snapshot Volumes are not supported"
This option is valid according to lvcreate(8).
ansible --version ansible 2.9.14 config file = /etc/ansible/ansible.cfg configured module search path = ['/var/lib/awx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.6/site-packages/ansible executable location = /usr/bin/ansible python version = 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
OS : Linux REDHAT 7
- name: "[BACKUP] create snapshots" lvol: vg: "{{ item.value.vg }}" lv: "{{ item.key }}" snapshot: "{{ item.key }}_{{ snap_suffix }}" size: 20%ORIGIN with_dict: "{{ ansible_lvm.lvs }}"
Creation of lvm snapshot. On redhat 7 : lvcreate -s -l 20%ORIGIN --name lv_***_snap_suffix /dev/vg***/lv_*** Logical volume "lv_***_snap_suffix" created.
lvcreate -s -l 20%ORIGIN --name lv_***_snap_suffix /dev/vg***/lv_***
Logical volume "lv_***_snap_suffix" created.
{ "msg": "Snapshot Volumes are not supported", "invocation": { "module_args": { "pvs": null, "force": false, "vg": "vg01", "lv": "lv_***", "resizefs": false, "state": "present", "thinpool": null, "snapshot": "lv_***_snap_suffix", "active": true, "shrink": true, "opts": null, "size": "20%ORIGIN" } }, "_ansible_no_log": false, "changed": false, "item": { "key": "lv_***", "value": { "size_g": "***", "vg": "vg***" } }, "ansible_loop_var": "item", "_ansible_item_label": { "key": "lv_***", "value": { "size_g": "***", "vg": "vg***" } } }
The text was updated successfully, but these errors were encountered:
Files identified in the description: None
If these files are inaccurate, please update the component name section of the description or use the !component bot command.
component name
!component
click here for bot help
Sorry, something went wrong.
Files identified in the description:
plugins/modules/system/lvol.py
cc @abulimov @jhoekx click here for bot help
cc @unkaputtbar112 @zigaSRC click here for bot help
plugins/modules/lvol.py
If these files are incorrect, please update the component name section of the description or use the !component bot command.
Successfully merging a pull request may close this issue.
SUMMARY
When i want to create a lvm snapshot with the module
lvol
and the optionsize : 20%ORIGIN
for example,it fails :
This option is valid according to lvcreate(8).
ISSUE TYPE
COMPONENT NAME
lvol
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
OS : Linux REDHAT 7
STEPS TO REPRODUCE
EXPECTED RESULTS
Creation of lvm snapshot.
On redhat 7 :
lvcreate -s -l 20%ORIGIN --name lv_***_snap_suffix /dev/vg***/lv_***
Logical volume "lv_***_snap_suffix" created.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: