-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
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
Failed to remove a varied off VG #432
Comments
If I do try to varyon the VG using state=varyon and then try to delete the VG with the delete_lvs=true, I get: without the delete_lvs, it fails with 0516-016 ldeletepv: Cannot delete physical volume with allocated partitions. |
Hi @BladesOfSteele Setting delete_lvs attribute to true will deallocate existing logical volume partitions and then delete the resultant empty logical volumes from the specified physical volumes. |
And therein lies the catch-22 situation. In this scenario, you cannot vary on the VG. That fails with: |
Hi @BladesOfSteele Have a look at this: |
This seems to be a limitation from AIX itself and not with the collection. Please follow the link above and provided workaround there. That will fix the issue. |
Running redefinevg -d did clear the issue. Worth considering running as part of the collection as part of the varyon? |
Describe the bug
When trying to remove an existing, non-varied on altinst_rootvg, the process fails:
FAILED! => {"changed": false, "cmd": "lsvg", "msg": "Volume group altinst_rootvg is deactivated. Unable to reduce volume group.", "rc": 0, "stderr": "", "stderr_lines": [], "stdout": "rootvg\naltinst_rootvg\n", "stdout_lines": ["rootvg", "altinst_rootvg"]}
To Reproduce
Steps to reproduce the behavior:
When running task that removes a non-varied on VG
- name: delete any pre-existing altinst_rootvg
ibm.power_aix.lvg:
vg_name: altinst_rootvg
state: absent
Expected behavior
Would expect the process to run a reducevg and a chpv -C hdisk#
Environment (please complete the following information):
Additional context
This would be something I'd expect comes up, when people are using viosupgrade to upgrade VIO servers from v3 to v4, as in my case. It should allow for an easy clean up of any previous failed or aborted attempts before running. To that note, if all you do is run reducvevg on an existing altinst_rootvg, the upgrade fails, since the disk still looks used, hence the requirement for chpv -C hdisk#.
The text was updated successfully, but these errors were encountered: