Linux - NewbieThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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?
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.
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
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
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.