-   Fedora - Installation (
-   -   LVM2 volume group not seen after FC4 install (

digithead1011 07-28-2005 09: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.


WhatsHisName 07-29-2005 12:53 AM

It may need to be activated. Try running:

vgchange -a y

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

vgchange -a y

And, yes, FC4 does support LVM2.

digithead1011 07-29-2005 03:01 PM

Thanks, I'll give that a try.

digithead1011 07-29-2005 07:42 PM

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


[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 03: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:

lvdisplay -m

digithead1011 08-02-2005 12:46 PM

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 10: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 05:03 AM.