From: Bryn M. Reeves <bmr@redhat.com>
To: lvm-devel@redhat.com
Subject: LVM2 Disk Layout (on-disk data-structures)
Date: Wed, 25 Feb 2009 19:23:44 +0000 [thread overview]
Message-ID: <49A59AC0.5080305@redhat.com> (raw)
In-Reply-To: <1f8f1b050902120922m5f22835ew715cf0d093440646@mail.gmail.com>
David A. Barrett wrote:
> Does anyone know about where I can find documentation of layout of
> information for LVM2 on the disk?
>
> I need to write code to parse the data directly from the low-level
> disc image.
There are better ways to do this. As Jon points out, the LVM2 metadata
is plain text. You can rip it out of the raw devices with dd if
necessary and then tidy it up in an editor.
You'll then want to look into vgcfgrestore.
If you didn't have a backup of your partition tables then you may want
to look at parted's rescue command.
> Redhat's fedora 10 installation DVD overwrote the partition table
> and a new lvm on every single accessable device immediately after
> asking for my keyboard type (without confirmation).
I'd file a bug if you can reproduce this.
Regards,
Bryn.
prev parent reply other threads:[~2009-02-25 19:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-12 17:22 LVM2 Disk Layout (on-disk data-structures) David A. Barrett
2009-02-25 19:13 ` Jonathan Brassow
2009-02-25 19:23 ` Bryn M. Reeves [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=49A59AC0.5080305@redhat.com \
--to=bmr@redhat.com \
--cc=lvm-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.