LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 12-11-2005, 05:46 AM   #1
jimisola
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandriva 2006
Posts: 22

Rep: Reputation: 15
Unhappy LVM problems (VGs found, but not LVs)


Hi!

I did an upgrade of Mandriva to 2006.0 a couple of months ago that failed - hard.
Disconnected two disks with LVMs that I have music and other personal stuff on and then went on with trying to upgrade, clean install etc. I finally gave up and installed OpenSuse instead - which I don't regret at all!

However, I connected my two disks with LVMs and thought that it with me just to mount them up again.
Sadly, the volume groups are found (vg01 and vg02) but not the expected logical volumes within them.

Is there a way for me to fix this? I have years of personal stuff on these disks so I don't mind spending some time on getting this fixed.

Regards,
Jimisola

fermat:/scratch # vgchange -ay
0 logical volume(s) in volume group "vg02" now active
5 logical volume(s) in volume group "system" now active
0 logical volume(s) in volume group "vg01" now active
fermat:/scratch # vgdisplay
--- Volume group ---
VG Name vg02
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 255
Cur LV 0
Open LV 0
Max PV 255
Cur PV 1
Act PV 1
VG Size 45.90 GB
PE Size 4.00 MB
Total PE 11750
Alloc PE / Size 0 / 0
Free PE / Size 11750 / 45.90 GB
VG UUID crHchE-236z-G24u-AGhW-MgDd-nTxD-1MnxHn

--- Volume group ---
VG Name system
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 7
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 5
Open LV 5
Max PV 0
Cur PV 1
Act PV 1
VG Size 97.66 GB
PE Size 4.00 MB
Total PE 25001
Alloc PE / Size 11506 / 44.95 GB
Free PE / Size 13495 / 52.71 GB
VG UUID qMe8jO-4Qyl-Weno-k09t-n2Pd-Jo5G-Co7kpn

--- Volume group ---
VG Name vg01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 12
VG Access read/write
VG Status resizable
MAX LV 255
Cur LV 0
Open LV 0
Max PV 255
Cur PV 1
Act PV 1
VG Size 232.88 GB
PE Size 4.00 MB
Total PE 59618
Alloc PE / Size 0 / 0
Free PE / Size 59618 / 232.88 GB
VG UUID YowUTE-awQj-OyKP-0UGH-nwkD-MZzt-e8P0kK

Last edited by jimisola; 12-11-2005 at 05:48 AM.
 
Old 12-11-2005, 12:30 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
Have a look at the vgscan man page:

http://linux.about.com/library/cmd/blcmdl8_vgscan.htm

This is designed to find LVM information on your hard drives and recreate your lvmtab. (You don't by any chance have lvmtab from the old system do you?)

How by the way did it "find" your VGs? Did you do new pvcreate/vgcreate after the reinstall? If so you may already have lost the information you could have found with vgscan.

I'd probably deactivate the VGs before running the vgscan. You might want to save the lvmtab you already have as lvmtab.orig before running the vgscan so you can at least get back to where you were. Also doing diff between that and the one created by vgscan will let you know quickly if it actually found anything for you. After the scan reactivating the VGs and doing a vgdisplay should let you know if it found what you needed.
 
Old 12-11-2005, 12:59 PM   #3
jimisola
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandriva 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Where is lvmtab suppose to be located? Under etc/lvmtab? I don't have that file in my current installation or in my backup from the old system.
I never used pvcreate och vgcreate after the reinstall. I simply used vgchange -ay (see my original post for output).

I ran vgscan:

Reading all physical volumes. This may take a while...
Found volume group "vg02" using metadata type lvm2
Found volume group "system" using metadata type lvm2
Found volume group "vg01" using metadata type lvm2

fermat:/etc # vgchange -ay
0 logical volume(s) in volume group "vg02" now active
5 logical volume(s) in volume group "system" now active
0 logical volume(s) in volume group "vg01" now active

But, as you can see I still have the same problem that my LVs are not found.

Any other ideas?
 
  


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 problems with disk on firewire card jplumey Linux - Hardware 3 12-05-2005 02:23 PM
Problems mounting LVM-partition RacerDude Fedora 1 11-22-2005 12:04 PM
LVM pvcreate "Device not found" error susmitha Linux - Newbie 2 07-14-2005 07:07 AM
LVM Bootscript Problems kvanblijderveen Mandriva 0 07-07-2004 07:04 AM
LVM problems, device-mapper missing dworkin Linux - Newbie 3 03-22-2004 05:54 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration