<br><div><span class="gmail_quote">On 10/19/05, <b class="gmail_sendername">Craig Hagerman</b> <<a href="mailto:craighagerman@gmail.com">craighagerman@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I recently got a new HD and thought it was about time I started using<br>LVM. Unfortunatly, I think I have ended up loosing all of my data due<br>to a typo. I would like to know if my data is lost forever. If not,
<br>what can I do now to recover. Here is the whole story...</blockquote><div><br>
You've changed the partition table of /dev/sdb but the data itself
_should_ still be intact (changing the type shouldn't adversely affect
the offsets of your sdb1 partition).  You might try the type
change on /dev/sda2 and then restore the backup of the media_vg's VGDA
from /etc/lvm/backup/media_vg using pvcreate and vgcfgrestore,
something like:<br>
<br>
pvcreate --restorefile /etc/lvm/backup/media_vg --uuid rlnV4y-B4eJ-Pyc0-RLJm-2Zbv-t04C-dxzU1A /dev/sdb1<br>
pvcreate --restorefile /etc/lvm/backup/media_vg --uuid <span class="q">ZHl4Ak-mGS4-wFlF-4neF-G1Ed-GxWB-C4Smj6 </span>/dev/sda2<span class="q"></span><br>
vgcfgrestore -f /etc/lvm/backup/media_vg test_vg<br>
<br>
That said, its unclear to me why /dev/sda2 is unknown...  so take my advise at your own risk ;) <br>
<br>
<br>
<br>
<br>
</div></div><br>