LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 02-17-2005, 07:51 PM   #1
enabler
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Rep: Reputation: 0
Unhappy LVM Recovery


Guys I need help recovering files form a LVM single drive. I lost all of the LVM info, Yast shows the the following drives /hdb and /hdb1 ad LVM but I have not had any success mounting the drives.
Is there a utility that will help me recover the data in this drive?
-enabler
 
Old 02-17-2005, 08:18 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
How did you loose the data?
What errors do you get?
What does vgscan tell you?
 
Old 02-18-2005, 03:10 PM   #3
enabler
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Unhappy

Here is the situation:
I had a suse 8.2 configured with a master dirve (system) and a slave drive (data). The data drive was configured with LVM.
Last week the master drive failed (big time). So I put in a new drive and installed suse 9.2 and try to access the slave drive with no success. So I installed RH 9.0 but is still the same.
Here is the output:

[root@localhost root]# pvscan -v
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ERROR "pv_read(): read" reading physical volumes

[root@localhost root]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group

[root@localhost root]# lvscan
lvscan -- no volume groups found

-enabler
 
Old 02-18-2005, 10:11 PM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Are you sure the slave drive didn't take a dive as well?

Try the --debug flag with pvscan, see if it shows any more info. Was there a parition on the disk or was the entire disk lvm? ie did you create it with pvscan /dev/hdb or /dev/hdb1?
 
Old 02-19-2005, 10:45 AM   #5
enabler
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Well, with Yast LVM I see:
hdb 75 GB
hdb1 75 GB LVM Volume
So I think that disk hdb has a partition hdb1 which is configured with LVM, also I can see that hdb1 has data because it shows that is 90 % full. However when I try to mount it it fails every time.

-enabler.
 
Old 02-23-2005, 10:06 AM   #6
enabler
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Here is the latest output, I just need to activate enable the old logical volumes. Any suggestions?

[root@localhost root]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/hdb1" of VG "LVM" [74.54 GB / 74.54 GB free]
pvscan -- total: 1 [74.55 GB] / in use: 1 [74.55 GB] / in no VG: 0 [0]

[root@localhost root]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "LVM"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group

[root@localhost root]# lvscan
lvscan -- no logical volumes found

[root@localhost root]# lvscan -v
lvscan -- checking volume group name "LVM"
lvscan -- checking volume group "LVM" existence
lvscan -- checking volume group "LVM" activity
lvscan -- getting VGDA of volume group "LVM" from kernel
lvscan -- no logical volumes found
 
Old 02-23-2005, 11:15 AM   #7
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
One that that doesn't look good is the [74.54 GB / 74.54 GB free]. I'd expect it to see the x many gigs assigned to the vg removed.

Hate to do this to you, but have you tried the mailing list yet?

https://www.redhat.com/mailman/listinfo/linux-lvm
 
Old 02-23-2005, 01:30 PM   #8
enabler
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Original Poster
Rep: Reputation: 0
OK, I think that I am closer....
Here are the lates logs....
I don't know what to do next....any suggestions?
[root@localhost /]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/hdb1" of VG "LVM" [74.54 GB / 44 MB free]
pvscan -- total: 1 [74.55 GB] / in use: 1 [74.55 GB] / in no VG: 0 [0]

[root@localhost /]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "LVM"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group

[root@localhost /]# lvscan
lvscan -- ACTIVE "/dev/LVM/data" [74.50 GB]
lvscan -- 1 logical volumes with 74.50 GB total in 1 volume group
lvscan -- 1 active logical volumes

[root@localhost /]#
 
Old 02-23-2005, 02:09 PM   #9
enabler
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Nevermind....
This is done....
Thank you...
I was able to get my data back....I use RH9 to restore the LVM config and Suse 9.2 to mount the xfs partition...
All is well...
-enabler...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lvm uselpa Slackware 1 03-03-2005 05:44 AM
Oh no!! LVM broke, need help with recovery. kleptophobiac Linux - General 5 12-31-2004 11:22 PM
Hard drive recovery, LVM Fonce Linux - Hardware 3 12-30-2004 09:47 PM
Lvm Kroenecker Linux - Newbie 1 12-29-2003 01:52 PM
Lvm BoonZie Linux - Newbie 3 01-02-2003 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:22 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