LVM: regenerate a UUID

lvmuuid

I have some virtual machines which were clones of the same original disk image, which contained some LVM volumes. When I clone these, I end up with multiple LVM volumes (albeit on different hosts) which have the same 'unique' ID. Is there any way I can get LVM to change the UUID of an existing volume?

Best Answer

pvchange --uuid /physical/volume/path
vgchange --uuid /volume/group/name