Quote:
Originally Posted by
dantares
After some research I think the command synclvodm could solve the problem of name conflict by renaming the logical volume automatically by default.
Unfortunately i don't think so. "synclvodm" updates the contents of the ODM with the data of the VGDA (volume group descriptor area) and the LVCB (logical volume control block), nothing more, nothing less. You have this name conflict in the physical configuration (your VG/LV information as it is stored on disk) and your problem is not that the ODM contains other data than your disks. Therefore "synclvodm" will most likely not help you at all.
I'd try the following, which needs some downtime, but should be save. CAUTION: I cannot recreate your problem condition on the fly so the following is UNTESTED:
- use "varyoffvg" to completely unmount both of the VGs containing the conflicting LV.
- Use "exportvg" to get both VGs completely out of the system configuration.
- then use "synclvodm" to get a clean system configuration in the ODM
- "importvg" and "varyonvg" one of the VGs and delete the offending LV (you said you want to delete one of them anyways, but of course you could recreate and copy it under a different name to remove the conflict)
- "importvg" the other VG
The name conflict should be removed.
I hope this helps.
bakunin