[linux-lvm] Hardware snapshots and LVM2?

Mike Snitzer snitzer at gmail.com
Thu Mar 23 16:38:45 UTC 2006

On 3/21/06, fredrik.backman at nll.se <fredrik.backman at 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.


More information about the linux-lvm mailing list