[linux-lvm] Editing LVM 2 metadata
beachhangar at yahoo.com
Sat Nov 15 03:30:49 UTC 2008
The why is because I am attempting to use storage managed snapshots. The storage can present the master volume and the snapshot as separate LUN's but they present identical contents in the header area (first 256 sectors...). So the effort is to modify the snapshot (doable with this storage) without altering the contents of the master volume. Hopefully the snapshot with suitable edits to the UUID's would then pass vgscan test.
I am checking the tools now. One question - do the UUID's employ any sort of hash or check-character scheme to ensure that they haven't been bit-picked or otherwise compromised by the storage??
From: Alasdair G Kergon <agk at redhat.com>
To: LVM general discussion and development <linux-lvm at redhat.com>
Sent: Friday, November 14, 2008 6:55:15 PM
Subject: Re: [linux-lvm] Editing LVM 2 metadata
On Fri, Nov 14, 2008 at 06:37:51PM -0800, Michael Jensen wrote:
> I have a need to edit the metadata on an LVM2 PV.
If you really have to, please do this using the supplied tools - it's *much*
vgcfgbackup gives you a text file, edit it, vgcfgrestore puts it back.
If you need to edit the label too, careful use of pvcreate --restorefile --uuid
plus vgcfgrestore lets you do that.
agk at redhat.com
linux-lvm mailing list
linux-lvm at redhat.com
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the linux-lvm