Data recover on error deleted PV/VG
Hi all,
My story is:
1 x 20G (hda) + 1 x 40G (hdb) running more than half year.
The two hard disk formed with a LVM2, (100M swap) on hda1 and 19.9G (hda2) + 40G (hdb1). All LVM mounted as / (root). Yesterday, I add a 40G (hdd).
Used fdisk with 8e type to format the new 40g (hdd)
Used lvm extend command to add +20G /dev/VolGroup00/VolLog00 and +10G /dev/VolGroup00/VolLog01
After that, I wanted to remove the VolLog01 but failed and said it is using. Then I tried to use fdisk again to format the 40g (hdd).
After reboot the server, kernel panic even un-plug 40g (hdd).
Should I just try to re-create hda2+hdb1's LV with command "lvcreate -n VolLog00 -l <max size> VolGroup00" ?
I can provide more information if needed.
Thanks in advance.
Lion
Finally, I use RIP (R)ecovery (I)s (P)ossible! (v15.2).
And command hexdump /dev/hda2 and /dev/hdb1 to collect the old LVM config information.
They are nearly 1200.
Use the information to create a metadata file.
Use cfgrestore to recover.
Then mount back the lost LogVol00.
Just my two cents.
"Thomas" <[email protected]> �b�l�� news:[email protected] �����g
...
Quoted 4 lines
Hi all,
My story is:
Quoted 8 lines
1 x 20G (hda) + 1 x 40G (hdb) running more than half year. The two hard disk formed with a LVM2, (100M swap) on hda1 and 19.9G (hda2) + 40G (hdb1).
All LVM mounted as / (root). Yesterday, I add a 40G (hdd). Used fdisk with 8e type to format the new 40g (hdd)
Used lvm extend command to add +20G/dev/VolGroup00/VolLog00and +10G/dev/VolGroup00/VolLog01
After that, I wanted to remove the VolLog01 but failed and said it is
using.
Quoted 18 lines
Then I tried to use fdisk again to format the 40g (hdd). After reboot the server, kernel panic even un-plug 40g (hdd).
Should I just try to re-create hda2+hdb1's LV with command "lvcreate -n VolLog00 -l <max size> VolGroup00" ?
I can provide more information if needed.
Thanks in advance.
Lion
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/