[linux-lvm] How to recover data corrupted by vgcreate
Jonathan E Brassow
jbrassow at redhat.com
Wed Jul 27 16:33:05 UTC 2005
I'm not familiar exactly with how the metadata gets laid on disk, but I
would think you could just 'vgcreate vg_name /dev/hdd2' (you did this
already) then 'lvcreate -n <lvname> -l <max size> vg_name'... This of
course assumes that the previous lv resided wholly on /dev/hdd2. Then
try mounting the new lv and see what happens.
brassow
On Jul 26, 2005, at 11:57 AM, 張廷州 wrote:
> Hi,
>
> I have a Linux PC with Fedora C3 installed.
> The disk was partitioned automatically when Linux was installed.
> So, LVM2 partition was created.
> The CPU is damaged today and I move the disk to another Linux PC and
> try to read data out.
> The disk is connected to device /dev/hdd. /dev/hdd2 is the LVM2
> partition.
> But, I do a stupid thing. I invoke vgcreate command on /dev/hdd2.
>
> vgcreate vg_name /dev/hdd2
>
> The partition seems to be lost.
> How can I recover the data in /dev/hdd2?
> It's very important data to me.
> Thanks for any help.
>
> Davis
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1590 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20050727/259360ab/attachment.bin>
More information about the linux-lvm
mailing list