Linux - NewbieThis forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I made a mistake yesterday, followed by a couple of other mistakes.
Description
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.
Questions
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)
I can't believe you wrote that. Sorry, I realize that's not helpful for your particular problem, but I'm hoping it's taken as helpful in a larger context.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.