LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-30-2004, 09:22 PM   #1
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Rep: Reputation: 30
Oh no!! LVM broke, need help with recovery.


I had a rather full 700GB LVM... full of all my most critical everything.

Anyway, for some reason, all the metadata went poof, and when I recreated the volume group, it showed all my drives as empty (though they really aren't)

There has to be a way to get the data off the drives?!? Maybe a way to force the lvm2 usespace tools to check the data on the drives and rebuild its metadata?

OH NO! I'm so frantic.
 
Old 12-31-2004, 02:13 AM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,280

Rep: Reputation: 61
Do you have a burner in your machine, if you do I would recommend downloading the latest Knoppix. Knoppix is a complete operating system that boots and runs from a cdrom. If you can still read the data from the hard drive, you can use the burning software K3B to backup the important data, basically use it as a recue disc.
 
Old 12-31-2004, 09:14 AM   #3
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Original Poster
Rep: Reputation: 30
Well, I still have a perfectly functioning OS on the machine.

It is deeper than that, because I had a reiserfs partition within an lvm partition, spanned across four drives.

I need one of two things:
- Program that does a raw sector read of the array and reconstructs the lvm portion of the hard drives
- Sector offset so I can try to use dd to read the hard drive in raw sector mode to an image, but ignoring the beginning of the drive
 
Old 12-31-2004, 07:09 PM   #4
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,280

Rep: Reputation: 61
Sorry, can't help there, that's way out of my league. I've never messed around with LVM before
 
Old 12-31-2004, 09:00 PM   #5
bpt
LQ Newbie
 
Registered: Dec 2004
Location: Raleigh, NC, USA
Distribution: Debian GNU/Linux
Posts: 9

Rep: Reputation: 0
I suggest that you ask on the LVM mailing list and not touch the system at all until you have LVM working again.

As a shot-in-the-dark answer, and I don't really recommend you try it, maybe it would work if you did the requisite "pvcreate /dev/foo" commands, then the vgcreate (those two steps you've already taken), then the lvcreate's in the same order with the exact same logical volume sizes as when you created it in the first place. If you just recreate the volume group, the logical volumes still won't be recreated. But I have no idea whether it would keep the proper physical layout of logical volumes to correspond to the filesystem that's already on the disks. I kind of doubt it would damage your chances of recover any more than recreating just the volume group did, but I don't know enough about LVM to be sure.
 
Old 12-31-2004, 11:22 PM   #6
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Original Poster
Rep: Reputation: 30
I managed to successfully recreate the volume group, and it doesn't show as empty, but I can't mount the filesystem either. It says it is a fubared superblock, but none of the reiser tools actually make it work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ok, so I broke it.. Sanguines Linux - Software 4 08-25-2005 11:46 AM
LVM Recovery enabler Linux - Newbie 8 02-23-2005 02:09 PM
Hard drive recovery, LVM Fonce Linux - Hardware 3 12-30-2004 09:47 PM
help i broke it!? ocularbob Debian 2 10-02-2003 11:15 AM
I broke it! chingasman Linux - Software 5 03-07-2003 03:17 PM


All times are GMT -5. The time now is 06:23 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration