You were right, <br>the data has been overwritten. <br>It now reads thus (or rather, the first instance of human-readable volume group description reads thus; my old volume group description is still there, but further down...):<br>
<br>""""""""""""""""""""""""""""""""""""""""<br>
vol0 {<br>id = "8kEHPL-yDuF-7ffg-GeGH-dEg6-D0Qn-lUrKoh"<br>seqno = 1<br>format = "lvm2" # informational<br>status = ["RESIZEABLE", "READ", "WRITE"]<br>flags = []<br>extent_size = 8192<br>
max_lv = 0<br>max_pv = 0<br>metadata_copies = 0<br><br>physical_volumes {<br><br>pv0 {<br>id = "WFo1On-anFb-2av8-DuRq-vKee-nJEt-ZLnu26"<br>device = "/dev/md127"<br><br>status = ["ALLOCATABLE"]<br>
flags = []<br>dev_size = 5820316928<br>pe_start = 384<br>pe_count = 710487<br>}<br>}<br><br>}<br># Generated by LVM2 version 2.02.95(2) (2012-03-06): Sun Mar 24 23:39:50 2013<br><br>contents = "Text Format Volume Group"<br>
version = 1<br><br>description = ""<br><br>creation_host = "Microknoppix"    # Linux Microknoppix 3.6.11 #12 SMP PREEMPT Thu Dec 20 04:04:10 CET 2012 i686<br>creation_time = 1364168390    # Sun Mar 24 23:39:50 2013<br>
"""""""""""""""""""""""""""""""""""""""""'''<br>
<br>No wonder I do not see any logical volumes (well, I did not see any logical volumes before creating the volume neither...)<br><br>So what should I do?<br><br>lvs does not see anything, of course.<br><br>I could recreate the physical volume using <br>
<br>sudo pvcreate --uuid WFo1On-anFb-2av8-DuRq-vKee-nJEt-ZLnu26 --restorefile vol0.t<br>xt /dev/md127<br><br>(using my old volume group description in vol0.txt, of course). <br><br>Is this what I should do? Or rather remove the physical volume first?<br>
<br><br><br><div class="gmail_quote">On Mon, Mar 25, 2013 at 9:30 PM, Stuart D Gathman <span dir="ltr"><<a href="mailto:stuart@bmsi.com" target="_blank">stuart@bmsi.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Long ago, Nostradamus foresaw that on 03/25/2013 04:46 PM, Björn<br>
<div class="im">Nadrowski would write:<br>
> Recreation of the volume group seemed  a good idea as I only had one volume group on the pv and therefore I did not see how this could have destroyed anything.<br>
> The (human-readable) data at the beginning of the device /dev/md127 is still there and does display the same information. Please see my posting<br>
</div>Recreating the vg overwrites the human-readable data at the beginning of<br>
the device.  You claim that it is "still there" and is the "same<br>
information".  But this cannot be true because originally that<br>
information had your LV data, and now (apparently) it does not.  Do you<br>
see your LVs when looking at the vg metadata with an editor??   What do<br>
you mean by "displays the same information"?  Does lvs list your LVs?<br>
<div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br>