* LVM2 Disk Layout (on-disk data-structures)
@ 2009-02-12 17:22 David A. Barrett
2009-02-25 19:13 ` Jonathan Brassow
2009-02-25 19:23 ` Bryn M. Reeves
0 siblings, 2 replies; 3+ messages in thread
From: David A. Barrett @ 2009-02-12 17:22 UTC (permalink / raw)
To: lvm-devel
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.
I need to do some data recovery operations
on multiple logical volumes in two volume groups
on two physical volumes (each a raid5).
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).
d dot barrett at asgard dot com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* LVM2 Disk Layout (on-disk data-structures)
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
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Brassow @ 2009-02-25 19:13 UTC (permalink / raw)
To: lvm-devel
It is text based. You can see examples in /etc/lvm/archive or /etc/
lvm/backup.
brassow
On Feb 12, 2009, at 11:22 AM, 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.
>
> I need to do some data recovery operations
> on multiple logical volumes in two volume groups
> on two physical volumes (each a raid5).
>
> 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).
>
> d dot barrett at asgard dot com.
>
> --
> lvm-devel mailing list
> lvm-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/lvm-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* LVM2 Disk Layout (on-disk data-structures)
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
1 sibling, 0 replies; 3+ messages in thread
From: Bryn M. Reeves @ 2009-02-25 19:23 UTC (permalink / raw)
To: lvm-devel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-25 19:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.