Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89527 - LVM volume exporting fails on reboot
Summary: LVM volume exporting fails on reboot
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: LVM HOWTO (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://www.gentoo.org/doc/en/lvm2.xml
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-18 07:20 UTC by Mrugesh Karnik
Modified: 2005-07-02 03:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mrugesh Karnik 2005-04-18 07:20:59 UTC
I am currently installing Gentoo with LVM2. I believe that some improvements may be made to the guide.

At one point, I had to stop the installation and reboot. When I wanted to continue with the installation, I rebooted via the LiveCD and tried to mount the volumes again. Now, this certainly wasn't included in the LVM2 guide on the Gentoo website.

I had read the guide and also the HOWTO at TLDP before starting the installation but I never thought about this part.

Now, what happened is, I managed to activate all the volumes, but I couldn't get them as device files in /dev/vg/ I believe that this information should be added to the guide. Right now I've reached till only "emerge system" with my stage 1 installation. Now I'm having to ask questions on the Gentoo-User list on how to proceed.

It is frustrating, that the guide isn't complete. I still have doubts as to how I'm going to get those /dev/vg files at every boot automatically and I must say that the HOWTO at TLDP isn't complete either.

Anyways, I know that it is expected of the user to read all the documentation, but I suppose that most users installing a system would be happy to get the system up as quickly as possible. Now, in this case, I suppose that this information should be added to the LVM guide in Gentoo documentation and that it would be wrong to expect a user to use up a day just to read up on and understand LVM2 completely.

Reproducible: Always
Steps to Reproduce:
I did the following after rebooting from the LiveCD:

modprobe dm_mod
pvscan <<< Found the volume vg
pvchange -a y <<< Successfully enabled vg
lvscan <<< It found all the volumes, ie, usr, home, opt, var and tmp
lvchange - a y <<< I enabled all the volumes properly.
Actual Results:  
Now, when I do lvscan again, it tells me that all the volumes are ACTIVE and
shows the path as /dev/vg/* and shows them as "inherit".

After all that, there is no /dev/vg

Expected Results:  
As said above, I hope that the HOWTO will be expanded to include the relevant
information about how to export the volumes as device files.

These are the responses I got on the gentoo-user mailing list:



From Kiawud:

No problem ... I just did the same thing (installed 2005.0 w/ lvm2)
... Here's how I got it to work:

1) vgchange -a n  (deactive all the volumes)
2) vgexport -a vg  (export all the volumes)
3) vgimport -a vg  (import all the volumes into the existing system)
4) vgchange -a y   (reactive all the volumes)

This should do it for you...

-Hani




From Rumen Yotov:

Hi,
A week ago also tried to install using LVM2, but couldn't resolve a Bug
(lvm2 linked to libgmp), see gentoo-lvm2-docs, so went for a normal install.
Made the devices with 'vgmknodes' command, then they exist in /dev/vg/...
HTH
Rumen
Comment 1 Eric Edgar (RETIRED) gentoo-dev 2005-06-01 13:01:59 UTC
This should be fixed in newer livecd's that use a newer genkernel.  


vgscan --mknodes 
would recreate the device nodes without the additional removes that you are 
doing.
Comment 2 Arun Raghavan (RETIRED) gentoo-dev 2005-06-02 09:32:34 UTC
Might I suggest adding 'LVM2' or some such relevant word to the short
description to make the purpose of the bug clearer for people browsing the list
of bugs?
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2005-07-02 03:55:10 UTC
Fixed in CVS.