[linux-lvm] duplicate pv change uuid

David Teigland teigland at redhat.com
Fri Jan 6 19:04:32 UTC 2017

On Fri, Jan 06, 2017 at 07:55:53PM +0100, Xen wrote:
> I want to ask again,
> How can I change the UUID of a duplicated PV?
> I mirrored a partition to another disk and tried to change its UUID with
> pvchange -u.
> But I think LVM had already decided to replace the reference to the PV
> (partition) on the old disk by the reference to the new disk, or something.
> For some reason it always prefers the wrong one.
> Now I booted with just one disk but I cannot change the UUID of the running
> system, but if I connect the other disk I am afraid I won't be able to
> change it also.
> How does one do this, again?

vgimportclone is meant to do this.  It strategically uses filters to
isolate and modify the intended devs.

More information about the linux-lvm mailing list