LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 03-27-2009, 03:03 AM   #1
ekkek
LQ Newbie
 
Registered: Mar 2009
Location: Norway
Distribution: Ubuntu/slackware/Debian
Posts: 2
Thanked: 0
Question Inconsistent metadata in lvm


[Log in to get rid of this advertisement]
Hi

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)
ekkek is offline  
Tag This Post
Reply With Quote
Old 03-27-2009, 08:02 PM   #2
mostlyharmless
Member
 
Registered: Jan 2008
Distribution: Slackware 12.1
Posts: 816
Thanked: 44
Quote:
since i'm a man, and don't do backup
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.

Maybe this can help
http://www.linuxjournal.com/article/8874
or this
http://www.linuxquestions.org/questi...tition-632382/
mostlyharmless is offline     Reply With Quote
Thanked by:
Old 03-27-2009, 09:03 PM   #3
ekkek
LQ Newbie
 
Registered: Mar 2009
Location: Norway
Distribution: Ubuntu/slackware/Debian
Posts: 2
Thanked: 0

Original Poster
Thumbs up

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
ekkek is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM - editing metadata mickj Linux - Software 6 12-16-2008 10:37 AM
LVM and multiple iSCSI disks performance of LVM xxx_anuj_xxx Linux - Server 4 05-01-2008 01:26 PM
LXer: Managing LVM with the LVM Manager LXer Syndicated Linux News 0 03-16-2008 12:10 PM
LXer: Back Up (And Restore) LVM Partitions With LVM Snapshots LXer Syndicated Linux News 0 04-17-2007 12:16 PM
LVM Error: incorrect metadata area header checksum neillans Linux - General 1 02-28-2006 03:06 PM


All times are GMT -5. The time now is 07:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration