linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Ray Morris <support@bettercgi.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] LVM internals, guides, design, tutorials plz
Date: Tue, 19 Jun 2012 18:17:54 -0500	[thread overview]
Message-ID: <20120619181754.5b8a7f31@bettercgi.com> (raw)
In-Reply-To: <4FE0C16F.4020804@gmail.com>

Make no changes to the drives you have. Try to fix only
images of them. "fix" means change what's on disk, which means lose
what's there. The most common cause of completely destroyed data is
attempts to recover it. 

Study /etc/lvm/backup/* and /etc/lvm/archive/* copied from a live
system. That pretty well shows you the internal structure of the data
better than prose is likely to explain it.  That textual representation
of the metadata is exactly what's on disk.  It's just written
circularly in disk, so it starts with the middle of an old version.

As far as recovery, it's probably going to either be fairly simple, or
not possible at the LVM level. If you have an old backup of the system,
it should contain /etc/lvm/backup/.  If you didn't change the LVM since
that old backup was done, you're gold. Just vgcfgrestore
from /etc/lvm/backup/ in the old backup.

Make no changes to the drives you have.  Try to fix only images of
them.
-- 
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, 19 Jun 2012 18:14:07 +0000
Daniel Hilst <danielhilst@gmail.com> wrote:

> I'm searching for LVM2 implementation designs, anatomy, internals and 
> such stuff..
> 
> Tutorials, Howtos (I've already read the LVM Howto from tldp),
> Guides, are all welcome.. I've lost a LVM and need to recover it...
> or die trying :-)
> 
> 
> So.. Testdisc, and Photorec don't help me.. I've already try.. can't
> ran gpart too...
> 
> I want to be able to search for lvm metadata from the end of the disk 
> with some binary editor, like lde.
> 
> 
> Thanks in advance
> Hilst

      reply	other threads:[~2012-06-19 23:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-19 18:14 [linux-lvm] LVM internals, guides, design, tutorials plz Daniel Hilst
2012-06-19 23:17 ` Ray Morris [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120619181754.5b8a7f31@bettercgi.com \
    --to=support@bettercgi.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).