First I removed the lv, the vg and the pv (in this order) I had created for /dev/sdc1.
Next I run:
fsck.ext4 /dev/sdc1
This was quick and I believe it was enough to solve the problem. Yet, just in case, I also run:
fsck.ext4 -cDfty -C 0 /dev/sdc1
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...
On Wed, Jan 5, 2011 at 4:46 PM, Miro Moman <miromoman@gmail.com> wrote:
Hello,
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.
Would it be possible to recover the data or is it lost forever?
Best regards,
Miro
--
http://www.edelmiromoman.eu/
_______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/