[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Recovering pre-existing data after vgcreate

OK, I think I have recovered all the data.

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:

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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]