From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 6 Jan 2017 13:04:32 -0600 From: David Teigland Message-ID: <20170106190432.GA22165@redhat.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [linux-lvm] duplicate pv change uuid Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Xen Cc: Linux lvm 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.