LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora - Installation (http://www.linuxquestions.org/questions/fedora-installation-39/)
-   -   LVM2 volume group not seen after FC4 install (http://www.linuxquestions.org/questions/fedora-installation-39/lvm2-volume-group-not-seen-after-fc4-install-347845/)

digithead1011 07-28-2005 08:14 PM

LVM2 volume group not seen after FC4 install
 
I have a Intel Celeron system currently running Fedora Core 3. I have 2 internal hard drives: hda has swap, /boot, and an LVM1 volume group with 2 logical partitions. FC3 is installed on one of these partitions (/dev/mapper/rootvg-RootVol01). The other disk, hdb, belongs to an LVM2 volume group and contains all my data. Things have been running quite well under FC3, but I wanted to move to FC4.

After installing FC4 onto the 2nd LVM partition on hda (/dev/mapper/rootvg-RootVol02), I can't see the LVM2 volume group at all. vgscan doesn't even show it. Can anybody help me? I'm not even sure how to double check that my FC4 kernel has LVM2 support.

Thanks,
Rob

WhatsHisName 07-28-2005 11:53 PM

It may need to be activated. Try running:

vgchange -a y

Sometimes it helps to run this grouping to get the activation to work:

vgscan
lvscan
vgchange -a y

And, yes, FC4 does support LVM2.

digithead1011 07-29-2005 02:01 PM

Thanks, I'll give that a try.

digithead1011 07-29-2005 06:42 PM

That didn't seem to help. Here's what the output from the commands:

Code:

[root@playground ~]# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "rootvg" using metadata type lvm1
[root@playground ~]# lvscan
  ACTIVE            '/dev/rootvg/RootVol01' [6.86 GB] normal
  ACTIVE            '/dev/rootvg/RootVol02' [6.86 GB] normal
[root@playground ~]# vgchange -a y
  2 logical volume(s) in volume group "rootvg" now active


WhatsHisName 07-30-2005 02:27 PM

Try running:

pvdisplay -m

If the physical volumes can be detected, then there is still some hope of activating the vg/lv's.

If that works, also run:

vgdisplay
lvdisplay -m

digithead1011 08-02-2005 11:46 AM

Sorry for the slow reply - I've been out sick the past 2 days.

pvdisplay -m only shows the LVM1 physical volume - /dev/hda3. It does not show /dev/hdb at all.

digithead1011 10-09-2005 09:25 PM

In case anybody else runs into this, I found the problem & solution. When I created the LVM2 under FC3, I used the entire disk hdb, not just one partition within it. Somehow, though, the partition map on the disk got out of whack. It said that there was a single partition that was 1023 blocks long with a type of 0x55. I deleted that partition from the map, wrote it out to disk, and then did a pvdisplay /dev/hdb under FC4 and it showed up fine. Another reboot under FC4 and the devices were created and I was in business.


All times are GMT -5. The time now is 08:30 AM.