Re: Hardware snapshots and LVM2?

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

 



On 3/21/06, fredrik.backman@nll.se <fredrik.backman@nll.se> wrote:
> Hi
>
> Im doing a snapshot (hardware-based in EVA5000) of a LV
> (lvm2) and i
> wonder what is the correct way to use this snapshot?
> Problem is that
> this snapshot has the same ID as the original one. In HP-UX
> a would do a
> vgchgid on this snapshot-LV. Any help would be aprreciated.

You're creating snapshots of the entire block device.  As such the
snapshot device has identical LVM2 metadata as the origin device.  You
need to generate new PV, VG, LV UUIDs, modify the metadata and then
restore that modified metadata to the snapshot device (via
vgcfgbackup, vgcfgrestore).  EVMS has a decent random lvm2 UUID
generator function that can be pulled out and made to run standalone.

Mike

_______________________________________________
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