[linux-lvm] Recovering Accidentally Destroyed LVM2 Information

Chris Streeter chris at chrisstreeter.com
Wed Apr 27 22:02:58 UTC 2011


Wow, thanks so much guys. I restored the config and then was able to run
fsck.ext3 on the device. It took a while to run and had to fix a bunch of
stuff, but it looks like my data is back. Very, very grateful.

Cheers!

- Chris

On Wed, Apr 27, 2011 at 07:57, Ray Morris <support at bettercgi.com> wrote:

> 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/
> >
>
>
> _______________________________________________
> 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/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20110427/c3561310/attachment.htm>


More information about the linux-lvm mailing list