<div>Sven,</div>
<div> </div>
<div>thanks for this information. I will investigate the MetaData, on the second sector, as you mentioned. Now I also can more easily search the code (using the LVM2 and LABELONE strings). I tried but, it's a lot</div>

<div> </div>
<div>Peter</div>
<div> </div>
<div>2011/12/29 Sven Eschenberg <span dir="ltr"><<a href="mailto:sven@whgl.uni-frankfurt.de">sven@whgl.uni-frankfurt.de</a>></span><br></div>
<div class="gmail_quote">
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Assuming you used standard config when creating the LVM, you'll find PV<br>metadata at the very beginning of the disk (an probably nowhere else).<br>
<br>There is no such thing like per PE markers, all information is stored in<br>the LVM header. Usually though there should be files in /etc holding the<br>information of the PVs/VGs/LVs as backup - assuming the rest of the disk<br>
layout is still valid (i.e. PV on partition -> partition still exists)<br><br>The LVM Metadata is in the second sector (usually) and you should see<br>something like the string LVM2 and LABELONE (for LVM 2 metadata)<br>
<br>I don't know of any detailed on disk format description (except the source<br>probably).<br><br>Regards<br><br>-Sven<br>
<div>
<div></div>
<div class="h5"><br><br>On Wed, December 28, 2011 11:03, <a href="mailto:peter.bieshaar@gmail.com">peter.bieshaar@gmail.com</a> wrote:<br>> Due to a hardware mistake (dvd and hdu as IDE-master ??) I lost complete<br>> disk- and therefor lvm administration on SATA disks.<br>
> - In other words I cannot see the partition- or PV/VG and LV<br>> administration.<br>> - So, fdisk or (pv|vg|lv)display can't give information.<br>><br>> lvm was initiated under ubuntu 11.04 or 10.10, a recent lvm2 version was<br>
> installed.<br>><br>> On one disk I tried to create a partition (without creating a filesystem<br>> of-course :) ) but no pv-information was shown, using pvdisplay. I didn't<br>> dare to do this on my RAID1 (md) disks.<br>
> I can read the disks with strings and dd, and saw content of scripts and<br>> documents. So the content/data is still on the disks.<br>><br>> My chosen strategy to recover the LV's, is finding the PE's, pickthem<br>
> up and place them in a blob on another filesystem. So I can mount -o loop<br>> that blob and restructure the disks.<br>><br>> My problem now is how to find these information. The web gives a lot of<br>> information how to setup, but almost none on technical issues like this.<br>
><br>> Can someone give me a hint on how this (the PE's) technically is being<br>> organized (pointer -> pointer structures??) and where and how to search<br>> these on the disk. So I can write a C-thingy to accomplish my strategy. If<br>
> someone already has something like this, or examples,<br>><br>> --<br>> Regards,<br>><br>> Peter Bieshaar<br></div></div>> _______________________________________________<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><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><br></blockquote></div><br><br clear="all"><br>-- <br>
<div>Regards/Met vriendelijke groet,<br><br>Peter Bieshaar</div>
<div>------------------------------------------</div>
<div>"FATAL ERROR" in large friendly letters</div><br>