31 August 2012

Resolving name conflict with logical volumes (LVM)


In some situations, you may encounter several volumes (LVM) with same name.
In this case, you can't mount all logical volumes in same time, and you can't use vgrename "OLD NAME" "NEW NAME".
This is an easy solution to
solve that.

 - list physical volumes
pvs

 - once you get the name of the volume you want, get its VG UUID
vgdisplay "NAME"

 - (optional) you can list its logical volumes
lvdisplay "NAME"

 - you can now rename this volume (unmount any corresponding logical volume first)
vgrename "VG UUID" "NEW NAME"

 - reboot

It's done.

You can now mount all logical volumes.

No comments:

Post a Comment

Thank you for your visit, let's share your point of view: