[linux-lvm] Recovering Accidentally Destroyed LVM2 Information

Ray Morris support at bettercgi.com
Wed Apr 27 14:57:28 UTC 2011


vgcfgrestore -f /etc/lvm/archive/FILENAME VGNAME

But see "man vgcfgrestore"
-- 
Ray Morris
support at bettercgi.com

Strongbox - The next generation in site security:
http://www.bettercgi.com/strongbox/

Throttlebox - Intelligent Bandwidth Control
http://www.bettercgi.com/throttlebox/

Strongbox / Throttlebox affiliate program:
http://www.bettercgi.com/affiliates/user/register.php




On Tue, 26 Apr 2011 20:58:25 -0700
Chris Streeter <chris at chrisstreeter.com> wrote:

> > What you *should* have done is restore the metadata to the point
> > before your errant command.  You can still do that (if it is still
> > in the archive), but the several K of zeros written to the start of
> > the LV you created will require recovery.
> 
> So I still have all the files in the archive of the form
> raid_vg_0000*.vg
> 
> If have those files, how would I go about restoring the metadata to
> the device? If I were to loose several K of data, I'm totally fine
> with that.
> 
> Thanks!
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> 





More information about the linux-lvm mailing list