OK, I think I have recovered all the data.<br><br>First I removed the lv, the vg and the pv (in this order) I had created for /dev/sdc1.<br><br>Next I run:<br><br>fsck.ext4 /dev/sdc1<br><br>This was quick and I believe it was enough to solve the problem. Yet, just in case, I also run:<br>
<br>fsck.ext4 -cDfty -C 0 /dev/sdc1<br><br>I am making a backup on a external drive right now. Then, I will reformat, reconfigure the lvm and finally transfer the data, which I guess it is what I should have done from the beginning...<br>
<br><br><br><br><div class="gmail_quote">On Wed, Jan 5, 2011 at 4:46 PM, Miro Moman <span dir="ltr"><<a href="mailto:miromoman@gmail.com">miromoman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>By mistake I have run pvcreate, vgcreate and lvcreate on an entire drive with pre-existing data. Before it was a ext4-formatted drive with just one partition spamming the entire drive and no lvm. I have not formatted it after running lvcreate.<br>

<br>Would it be possible to recover the data or is it lost forever?<br><br>Best regards,<br><font color="#888888"><br>Miro<br><br>
</font></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.edelmiromoman.eu/">http://www.edelmiromoman.eu/</a><br>