[linux-lvm] Recovering pre-existing data after vgcreate
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:
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:
> 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,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the linux-lvm