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

Miro Moman miromoman at gmail.com
Thu Jan 6 07:48:34 UTC 2011

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

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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20110106/17b04e37/attachment.htm>

More information about the linux-lvm mailing list