[linux-lvm] Editing LVM 2 metadata

Alasdair G Kergon agk at redhat.com
Sat Nov 15 02:55:15 UTC 2008


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.

Why?

If you really have to, please do this using the supplied tools - it's *much*
easier!

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.

Alasdair
-- 
agk at redhat.com




More information about the linux-lvm mailing list