Altering a Physical Volume's UUID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Hi,  I'm using LVM with Xen virtual machines by creating sparse image
files with something like 

  dd if=/dev/zero of=diskimage bs=1 count=1 seek=1073741824

 Then I use a loopback device to use the diskimage as a block device and
create a physical volume, volume group and logical volumes on it.

  This all works great, but when I copy the diskimage file to another
file and try to setup a loopback device for it, I get complaints about
there being multiple identifical UUIDs for physical volumes and volume
groups.


  So is there a way to change the UUID of a physical volume and volume
group?


  If you are wondering why I would need to copy the diskimage file, its
because I'm setting up Xen template images for different OSes that I can
then simply copy into place, make a few modifications and then be on my
way.

-- 
Mark S. Krenz
IT Director
Suso Technology Services, Inc.
http://suso.org/

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux