Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98594 - genkernel 3.2.1 and LVM2: almost perfect (needs trivial fix)
Summary: genkernel 3.2.1 and LVM2: almost perfect (needs trivial fix)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard: InCVS
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-10 13:15 UTC by Joël
Modified: 2005-07-14 11:05 UTC (History)
0 users

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 Joël 2005-07-10 13:15:42 UTC
Congratulations ! Genkernel 3.2.1 now supports LVM2 nearly perfectly :-)

There's only a simple fix to add: I had to add the "vgchange -ay 2>/dev/null" command, just before (or after) the "startVolumes" command in linuxrc. Then, no custom linuxrc will be needed anymore :-)
Comment 1 Eric Edgar (RETIRED) gentoo-dev 2005-07-11 04:55:30 UTC
Did you put dolvm2 on the cmdline?  

This isnt needed for my lvm2 setup that I have.

Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-07-11 04:58:34 UTC
Works for me without any patch as well (and worked quite a few version before).
Comment 3 Joël 2005-07-11 06:11:10 UTC
Oh. It indeed boots well with dolvm2 (which I hadn't tried with the last few
genkernel versions).

There's only warnings displayed during boot:

 Found volume group "z1_hdd" using metadata type lvm2
 /dev/z1_hdd: opendir failed: No such file or directory
 /dev/z1_hdd: opendir failed: No such file or directory
 /dev/z1_hdd: opendir failed: No such file or directory
 /dev/z1_hdd: opendir failed: No such file or directory
 /dev/z1_hdd: opendir failed: No such file or directory
 /dev/z1_hdd: opendir failed: No such file or directory
>> Activating Volume Groups
 6 logical volume(s) in volume group "z1_hdd" now active

The 6 warnings correspond to my 6 logical volumes. I use the default
genkernel.conf. Should I try instrumenting my linuxrc, or is this known warnings ?

Thanks again
Comment 4 Eric Edgar (RETIRED) gentoo-dev 2005-07-11 07:04:29 UTC
Sending the stderr to /dev/null.

InCVS
Comment 5 Joël 2005-07-11 08:25:22 UTC
Thanks ! (and sorry for having overlooked the dolvm2 switch)...

Oh, another small thing I noticed while testing:

a) The --bootsplash switch will activate initrd creation (instead of initramfs),
even if no bootsplash is found by genkernel.

b) What are the steps needed (for the user) to boot properly with initramfs
instead of initrd ?
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2005-07-11 13:32:42 UTC
a) Use --gensplash
b) None, an initramfs is generated by default on 2.6 but your bootloader treats
it the same as a normal initrd so no extra changes should be needed
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2005-07-12 10:43:39 UTC
Fixed in 3.2.2, thanks!
Comment 8 Joël 2005-07-14 11:05:57 UTC
I just wanted to pass by, and confirm that genkernel 3.2.3 works *great* - now
it boots *wonderfully* with root fs on lvm2, using either initrd and initramfs !
Zero warnings :-)

Great work and congratulations to Tim, Eric and others !