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 06-11-2005, 11:28 PM   #1
deyv
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Rep: Reputation: 0
Need to recover data from a LVM volume


I had a machine running Fedora Core 3 that had a severe motherboard failure during an update session.
I cannot get the drive to boot properly in another system so what I was hoping to do is add the drive to this second system as hdb and just pull the data that I need off of the drive.
How do I go about getting the data from the original LVM volume onto another system? I am new to working with LVM and I do not want to screw up my data.

Thanks,

-Deyv
 
Old 06-12-2005, 05:26 PM   #2
rkettle
Member
 
Registered: Jun 2005
Posts: 204

Rep: Reputation: 30
you can mount it like any other file system.. the fact that it happened during an upgrade sounds like too much of a coincidence to me though. Just plug in the hard drive and mount it. Are you sure the motherboard is dead?

Regards
Richard
 
Old 06-13-2005, 12:00 PM   #3
deyv
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I definitely verified the board is bad, the IDE controller ports do not work and the mouse PS2 port does not work either.

As for pulling the data off, are you saying that I can mount the partition (/dev/hdb2) just like a normal partition? I was concerned just directly mounting it because it was part on a LVM volume. I will give a shot and see if I can pull off the data.

Thanks,

deyv
 
Old 07-07-2005, 04:37 PM   #4
lnozot
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Rep: Reputation: 0
I have a simular problem. I have a system running SATA boot drives and I installed a SCSI tape drive.

After doing this the system doesn't boot properly. After further investigation I am missing LVM data for the PV that holds usr, var, and other data.

I've been unable to mount any of these partitions because it can't find the PV nor VG.

Anyone know how I can recover the VG and LVs?

Thanks!
Loren
 
Old 07-07-2005, 04:52 PM   #5
deyv
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I am still having the same problem and I have yet to find a solution.
 
Old 07-07-2005, 05:46 PM   #6
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
If the distribution you are using is not natively LVM aware (e.g., FC4 Linux Rescue mode is NOT natively LVM aware), try activating the volume group(s) by running:

lvm vgchange -a y

OR

vgchange -a y # Note: this is a symlink that may not work


Then run:

lvm lvscan

OR

lvscan

to see the logical volumes.


Then mount them like any olde partition:

mount /dev/VolGoup00/LogVol00 /mnt/temp

or something like that, where /mnt/temp or whatever you want to mount under preexists.
 
Old 07-07-2005, 06:14 PM   #7
lnozot
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Rep: Reputation: 0
I am running Suse 9.3/Reiser.

I have done that work and I get nothing back. However, if I do a pvscan I get.

PV /dev/sda3 lvm2 [227.73GB]
Total 1 [227.73 GB] / in use: 0 [0 ] / in no VG: 1 [227.73 GB]


The system doesn't think there is a volume group nor lvols on the partition (PV).

Loren
 
Old 07-07-2005, 07:40 PM   #8
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Try this:

lvm vgdisplay -P -v

If anything is there, even in a damaged state, you should see it.


If everything else fails, read:

man vgcfgrestore

and think long and hard before you execute vgcfgrestore.
 
Old 07-07-2005, 08:23 PM   #9
lnozot
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Rep: Reputation: 0
It doesn't report anything.

Where would the metadata text file be stored if it exists?

Thanks!
 
Old 07-07-2005, 08:33 PM   #10
lnozot
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Rep: Reputation: 0
OK,

I put one of my other drives that was a part of the VG back into the system and tried again. It finds the LVs.

However the report is that it cannot find PV with UUID ..........

I obviously know which PV that is but how can I fix that?

Thanks!
Loren
 
Old 07-23-2005, 04:01 PM   #11
badbit
LQ Newbie
 
Registered: Jul 2005
Location: Mexicali, B.C.
Distribution: Fedora, Ubuntu, Knoppix
Posts: 12

Rep: Reputation: 0
I'm having the very same problem, now my system won't boot, and displays the same message about not being able to find the PV with the specified UUID.

I'm going mad! I can't access my data, and I need it badly. I've asked in several forums, and nobody has an answer. I would be happy if I could hex edit my partiton, and try to recover the info myself, is it possible?
 
Old 07-25-2005, 04:12 PM   #12
lnozot
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Rep: Reputation: 0
Badbit,

I have not found a good way to resolve this issue. I have worked with a few tools, (insert, recovery, and dfsee). The issue I have run into is that LVM is not really supported in recovery tools. You can do some things but not an extreem amount.

I am still working on my issue and if I find something that works I'll post it here.

Loren
 
Old 07-25-2005, 05:27 PM   #13
badbit
LQ Newbie
 
Registered: Jul 2005
Location: Mexicali, B.C.
Distribution: Fedora, Ubuntu, Knoppix
Posts: 12

Rep: Reputation: 0
I've tried with dfsee also, but no luck...

I tried something with Partition Magic, from my Windows XP, but unfortunately it prevented me from booting windows. Now that i've corrected it, I'm thinking of deleting my NTFS partition, and installing another Fedora Core 4, to see if it's easier to recover from there. What do you think?
 
Old 07-25-2005, 05:43 PM   #14
lnozot
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Rep: Reputation: 0
dfsee doesn't support Linux version of LVM. The other tools do.

If you do an install you jeopardize your data. You should go buy a new disc and do a drive to drive copy with one of the tools. Then you can work on the disc you are having trouble with.

Your best bet is to use a bootable hard drive recovery tool. Insert and Recovery tools are ones you should be able to find at sourceforge.net.

So, don't do anything to your disc before backing it up.

Good Luck!
 
  


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
How do I resize LVM volume group? rconan Fedora 5 04-22-2009 07:45 PM
LVM Physical Volume Lucky_Sevin Linux - Software 2 01-10-2006 10:44 AM
Software to acess and recover data on Fat32 data NeoSpawn Linux - Software 2 09-04-2005 11:37 AM
LVM volume mounting trouble SergeyAC Linux - Software 3 04-11-2005 01:28 PM
Activating LVM Volume Groups at startup TomF Linux - Newbie 0 05-05-2004 05:05 PM

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

All times are GMT -5. The time now is 05:01 AM.

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