[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-lvm
Subject:    Re: [linux-lvm] Recovering Accidentally Destroyed LVM2 Information
From:       Chris Streeter <chris () chrisstreeter ! com>
Date:       2011-04-27 22:02:58
Message-ID: BANLkTinqheB0NkHcM8ruT0Rxs-01xfnPgA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@bettercgi.com> wrote:

> vgcfgrestore -f /etc/lvm/archive/FILENAME VGNAME
>
> But see "man vgcfgrestore"
> --
> Ray Morris
> support@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@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@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@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

[Attachment #5 (text/html)]

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.<div><br></div>

<div>Cheers!</div><div><br></div><div>- Chris<br><br><div class="gmail_quote">On Wed, \
Apr 27, 2011 at 07:57, Ray Morris <span dir="ltr">&lt;<a \
href="mailto:support@bettercgi.com">support@bettercgi.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">vgcfgrestore -f /etc/lvm/archive/FILENAME VGNAME<br> <br>
But see &quot;man vgcfgrestore&quot;<br>
--<br>
Ray Morris<br>
<a href="mailto:support@bettercgi.com">support@bettercgi.com</a><br>
<br>
Strongbox - The next generation in site security:<br>
<a href="http://www.bettercgi.com/strongbox/" \
target="_blank">http://www.bettercgi.com/strongbox/</a><br> <br>
Throttlebox - Intelligent Bandwidth Control<br>
<a href="http://www.bettercgi.com/throttlebox/" \
target="_blank">http://www.bettercgi.com/throttlebox/</a><br> <br>
Strongbox / Throttlebox affiliate program:<br>
<a href="http://www.bettercgi.com/affiliates/user/register.php" \
target="_blank">http://www.bettercgi.com/affiliates/user/register.php</a><br> \
<div><div></div><div class="h5"><br> <br>
<br>
<br>
On Tue, 26 Apr 2011 20:58:25 -0700<br>
Chris Streeter &lt;<a \
href="mailto:chris@chrisstreeter.com">chris@chrisstreeter.com</a>&gt; wrote:<br> <br>
&gt; &gt; What you *should* have done is restore the metadata to the point<br>
&gt; &gt; before your errant command.  You can still do that (if it is still<br>
&gt; &gt; in the archive), but the several K of zeros written to the start of<br>
&gt; &gt; the LV you created will require recovery.<br>
&gt;<br>
&gt; So I still have all the files in the archive of the form<br>
&gt; raid_vg_0000*.vg<br>
&gt;<br>
&gt; If have those files, how would I go about restoring the metadata to<br>
&gt; the device? If I were to loose several K of data, I&#39;m totally fine<br>
&gt; with that.<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; \
_______________________________________________<br> &gt; linux-lvm mailing list<br>
&gt; <a href="mailto:linux-lvm@redhat.com">linux-lvm@redhat.com</a><br>
&gt; <a href="https://www.redhat.com/mailman/listinfo/linux-lvm" \
target="_blank">https://www.redhat.com/mailman/listinfo/linux-lvm</a><br> &gt; read \
the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" \
target="_blank">http://tldp.org/HOWTO/LVM-HOWTO/</a><br> &gt;<br>
<br>
<br>
_______________________________________________<br>
linux-lvm mailing list<br>
<a href="mailto:linux-lvm@redhat.com">linux-lvm@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-lvm" \
target="_blank">https://www.redhat.com/mailman/listinfo/linux-lvm</a><br> read the \
LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" \
target="_blank">http://tldp.org/HOWTO/LVM-HOWTO/</a></div></div></blockquote></div><br></div>




_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic