LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   LVM Recovery (https://www.linuxquestions.org/questions/linux-newbie-8/lvm-recovery-291615/)

enabler 02-17-2005 07:51 PM

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

crabboy 02-17-2005 08:18 PM

How did you loose the data?
What errors do you get?
What does vgscan tell you?

enabler 02-18-2005 03:10 PM

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

crabboy 02-18-2005 10:11 PM

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?

enabler 02-19-2005 10:45 AM

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.

enabler 02-23-2005 10:06 AM

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

crabboy 02-23-2005 11:15 AM

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

enabler 02-23-2005 01:30 PM

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 /]#

enabler 02-23-2005 02:09 PM

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...


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