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
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.
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?
Fixed in CVS.