Linux - NewbieThis Linux 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!
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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)