Open Jonathan-Caruana opened 5 months ago
This is a bug in blivet (storage library the role uses), the fix is unfortunately not yet available in RHEL/CentOS. The good news is that the existing VG (cs
in your case) was not removed, it is just ignored by the system because its PVs are not present in the LVM devices file, you can fix this by running vgimportdevices -a
, all VGs on the system should be visible after running this. (And running this command in the playbook at any stage is also a simple workaround for this bug.)
Hi,
We tried to use this simply playbook on our fresh test VM :
Before running the playbook, the vgdisplay looks like this :
and lsblk command show :
But after running the playbook it seems the "cs" VG was dropped (and all LV and PV related to /dev/sda) and replaced by "opt" VG :
Of course if the VM is restarted it never goes up and running because the system was on the sda disk.
For more testing we have tried to run the playbook again to create another VG called "opt2" with another additionnal disk "sdc"
This time, the new VG was added without delete the first one.
How can we do to make this playbook functionnal without breaking any existing VolumeGroup created without this role?
Kind regards,