[linux-lvm] Altering a Physical Volume's UUID on SATA

A.Lizard alizard at ecis.com
Mon Aug 20 19:55:59 UTC 2007

At 07:48 AM 8/20/07, you wrote:
While you probably describe a better solution, this was written to provide 
a general solution to the "change uuid" problem to the community that 
actually works on SATA and to provide a how-to reference for LVM filesystem 
cloning in the context of the "how to set up a mirror drive quickly and 
easily" section of an article in progress written for novices on how to 
transition from an IDE to SATA drive in a Linux workstation.

dd + changing uuid + vgrename appears to be the quickest and easiest 
solution for LVM drive cloning, since the user won't have to worry about 
setting up drive partitions or creating a MBR or setting up an LVM 
filesystem manually.

There are several solutions to drive cloning for experienced users and 
admins, but for the newbie, quick, easy, and as few steps as possible are 
in order.


>Message: 6
>Date: Sun, 19 Aug 2007 19:51:49 -0400 (EDT)
>From: "Stuart D. Gathman" <stuart at bmsi.com>
>Subject: Re: [linux-lvm] Altering a Physical Volume's UUID on SATA
>         hard drives     [solved]
>To: LVM general discussion and development <linux-lvm at redhat.com>
>Message-ID: <Pine.LNX.4.44.0708191740520.2161-100000 at bmsred.bmsi.com>
>Content-Type: TEXT/PLAIN; charset=US-ASCII
>On Sat, 18 Aug 2007, A.Lizard wrote:
> > I bit-copied a backup LVM disk using dd from a Knoppix LiveCD (based on
> > Debian) and wound up with duplicate volume and uuids, meaning I couldn't
> > mount both the main and backup volumes simultaneously at the same time for
> > subsequent backups. Of course, vgrename is ineffective to allow
> > simultaneous mounting without changing the uuids.
>I would suggest copying (bitwise if desired) each LV individually to another
>volume group with a different name (and UUID).  This gives you a lot more
>flexibility with physical storage for primary vs backup volume groups.
>Furthermore, your LV backup procedure can take snapshots of each LV first.
>               Stuart D. Gathman <stuart at bmsi.com>
>     Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
>"Confutatis maledictis, flammis acribus addictis" - background song for
>a Microsoft sponsored "Where do you want to go from here?" commercial.

member The Internet Society (ISOC), The HTML Writers Guild.
"You can't have in a democracy various groups with arms - you have to have 
the state with a monopoly on power." Condoleeza Rice, US Secretary of State
Personal Website http://www.ecis.com/~alizard
business Website http://www.reptilelabs.com
backup address (if ALL else fails) alizard at gmail.com
PGP 8.0 key available by request or keyserver. Download PGP from:
http://www.pgpi.org for e-mail privacy.
Disaster prep info: http://www.ecis.com/~alizard/y2k.html
***Looking for INTELLIGENT new technology public policy 
alternatives?***               http://www.ecis.com/~alizard/technology.html

More information about the linux-lvm mailing list