Inconsistent metadata in lvm
I made a mistake yesterday, followed by a couple of other mistakes.
I'm running LVM2 on my Ubuntu installation, my lvol0 was almost full, so i added another 500GB hard drive to the computer, and decided to add it to my lvol0. Did this in the GUI for LVM (In ubuntu found in /usr/bin/system-config-lvm). The drive was not formatted yet. Then i ran the command "vgextend -L 950G /dev/vg0/lvol0". Then i ran the command "df -h" in shell, and saw that my partition was still the same size as earlier. Assumed this had to do with the fact that the drive was not formatted, so i tried formatting it, that was not possible due to the fact it was in use, although not mounted anywhere. So i tried removing it from the lvm in the gui mentioned earlier. Couldn't be done. Thought that had to be because vg0 was 950GB, so i resized it to 496 GB with the command "vgresize -L 496G /dev/vg0/lvol0". It gave me a warning that i could loose data when resizing down, but since i had not used more that about 470GB i thought i was safe. I was not safe at all. Now the lvm is down, with an errormessage saying the metadata is inconsistent. And when running commands like "pvdisplay", "vgdisplay" or just "pvs", i just get this message "File descriptor 5 left open" and nothing happends.
Is there a way to recreate the metadata?
Is there a way to recreate the data from the partitions to another harddrive?
Any help would be deeply appreciated (since i'm a man, and don't do backups :P)
Maybe this can help
It's just a saying that real men cries a lot, but never makes backups.
The second link contained information that really worked for me, just did the vgcfgrestore -f thingy.
Thanks a lot mostlyharmless :D
|All times are GMT -5. The time now is 12:10 PM.|