LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-08-2007, 10:21 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Messed up an LVM - is there a way to recover?


using parted, I accidentally deleted /dev/sda2. Once I realized this (before even exiting parted), I rescued the partition with the rescue command. All seemed good until I rebooted, now I get:

Volume Group "VolGRoup00" not found

... and the machine won't boot.

Is there a way I can get this working again?

edit: If I boot up in knoppix, I can see (using qtparted) that there is a /dev/sda1, /dev/sda-1, /dev/sda2, /dev/sda-2. I can't mount any of them by hand, i.e. "mount /dev/sda1 some_dir" does not work, however, knoppix has somehow mapped the drives to some very long unique id & from those, I can get to all my data.

So my question is this - is there a way to recover this stuff in such a way that this will all work again? I suppose I could copy all of it to another device, make new partitions (non-lvm), copy the data back, then update my grub. That seems a bit convloluted - is there a better way? I'd be happy to just rebuild the lvm, I'm just not sure how.

Last edited by BrianK; 05-08-2007 at 11:00 PM.
 
Old 05-08-2007, 11:19 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Which mount points have the data, and what device do they correspond to? It should be able to recover easily.
 
Old 05-08-2007, 11:46 PM   #3
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by Matir
Which mount points have the data, and what device do they correspond to? It should be able to recover easily.
the mount points that knoppix uses is something like /dev/mapped/dd-1dsjklnfskjnfsdksdui98weu98u - not at all useful. I can't see what the mapped device actually maps to. The file /dev/mapped/dd-1foijosfdijsdfoifsd is no a symbolic link or anything, and is, in fact, empty. I can not mount through the normal mount points i.e. /dev/sda1 or /dev/sda2. I don't know how knoppix has managed to mount it.

I'm really in a bind here - if anyone has a suggestion, please chime in.
 
Old 05-09-2007, 06:45 PM   #4
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
FYI: the data was still available via /dev/sda1 & sda2. I'm not sure why I couldn't mount them that way under Knoppix.

I solved my problem by editing my grub & fstab so that it was looking at sda's instead of VolumeGroups. All is well.
 
  


Reply



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
Softraid 5 messed up. Pls help to recover Ossah Linux - Server 5 04-05-2007 10:52 AM
HD Failure and LVM, how much can I recover? vaaccess Linux - Hardware 10 01-12-2007 01:12 AM
HD Failure in LVM - What can I recover? vaaccess Linux - General 1 01-05-2007 01:22 PM
How to recover LVM asheesh.tyagi Linux - Newbie 1 05-27-2006 09:22 AM
Need to recover data from a LVM volume deyv Linux - General 13 07-25-2005 05:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:01 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration