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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-17-2005, 07:51 PM
|
#1
|
|
LQ Newbie
Registered: Feb 2005
Posts: 6
Rep:
|
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
|
|
|
|
02-17-2005, 08:18 PM
|
#2
|
|
Moderator
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,817
Rep: 
|
How did you loose the data?
What errors do you get?
What does vgscan tell you?
|
|
|
|
02-18-2005, 03:10 PM
|
#3
|
|
LQ Newbie
Registered: Feb 2005
Posts: 6
Original Poster
Rep:
|
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
|
|
|
|
02-18-2005, 10:11 PM
|
#4
|
|
Moderator
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,817
Rep: 
|
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?
|
|
|
|
02-19-2005, 10:45 AM
|
#5
|
|
LQ Newbie
Registered: Feb 2005
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
|
02-23-2005, 10:06 AM
|
#6
|
|
LQ Newbie
Registered: Feb 2005
Posts: 6
Original Poster
Rep:
|
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
|
|
|
|
02-23-2005, 11:15 AM
|
#7
|
|
Moderator
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,817
Rep: 
|
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
|
|
|
|
02-23-2005, 01:30 PM
|
#8
|
|
LQ Newbie
Registered: Feb 2005
Posts: 6
Original Poster
Rep:
|
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 /]#
|
|
|
|
02-23-2005, 02:09 PM
|
#9
|
|
LQ Newbie
Registered: Feb 2005
Posts: 6
Original Poster
Rep:
|
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...
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:12 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|