LVM: how do I change the UUID of a LV?

Alasdair G Kergon agk at redhat.com
Sun Mar 16 23:38:11 UTC 2008


On Wed, Mar 12, 2008 at 09:27:14AM -0600, Robin Laing wrote:
> Alasdair G Kergon wrote:
> >On Tue, Mar 04, 2008 at 10:23:24AM -0800, Timothy Selivanow wrote:
> >>I know how to change the UUID of Physical Volumes and Volume Groups, but
> >>when I try to do the same for a Logical Volume, lvchange complains that
> >>"--uuid" is not an option.  
> >Nobody's yet made a case for adding that feature.
> >Why do you want it?
> If changing drives around while upgrading, then finding that you have to 
> mount the old drive, you now have issues as the UUID for the drive is 
> recognized as part of the "OLD" volume group.  

The ability to change lv uuid is not relevant here.
pvchange, vgchange, vgrename should suffice.

Alasdair
-- 
agk at redhat.com




More information about the fedora-list mailing list