Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72253 - lvm2 does not work with udev
Summary: lvm2 does not work with udev
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:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-11-23 08:28 UTC by Eric Edgar (RETIRED)
Modified: 2005-01-22 12:30 UTC (History)
1 user (show)

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


Attachments
Allows udev to discover lvm2 (genkernel-3.1.0a-udev_lvm2.patch,3.18 KB, patch)
2004-11-23 08:31 UTC, Eric Edgar (RETIRED)
Details | Diff
Allows udev to discover lvm2 -- udev startup is much quicker (genkernel-3.1.0a-udev_lvm2.patch2,4.12 KB, patch)
2004-11-23 13:11 UTC, Eric Edgar (RETIRED)
Details | Diff
This patch hopefully fixes the livecd error messages (rm_dev.patch,1.19 KB, patch)
2005-01-10 07:05 UTC, Eric Edgar (RETIRED)
Details | Diff
genkernel-3.1.0d-rmdev.patch (genkernel-3.1.0d-rmdev.patch,1.50 KB, patch)
2005-01-10 08:26 UTC, Chris Gianelloni (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Edgar (RETIRED) gentoo-dev 2004-11-23 08:28:22 UTC
There are a couple issues with udev and lvm2 in genkernel version 3.1.0a 
First the lvm links are created incorrectly.
Second the runUdev function in /etc/initrd.scripts does not create the /dev/mapper/control link
Third the initrd is not large enough to handle the /dev files being created.


Reproducible: Always
Steps to Reproduce:
1. 
2.
3.

Actual Results:  
lvm2 fails to start

Expected Results:  
lvm2 should start and activate the logical volumes

USE="static" emerge lvm2

genkernel --udev initrd

Tested inside a user-mode-linux instance
linux init=/linuxrc root=/dev/ram0 real_root=shell devfs ramdisk=4155 
initrd=/boot/initrd-2.6.9-umlbb2-r1-bb2
Comment 1 Eric Edgar (RETIRED) gentoo-dev 2004-11-23 08:31:31 UTC
Created attachment 44577 [details, diff]
Allows udev to discover lvm2

This patch allows lvm2 to run in a pure udev initrd.
It also automatically probes for lvm2 modules, namely dm-mod dm-snapshot
dm-mirror.
 **** Note the mirror or snapshot functionality of these modules was not tested

 **** mirror and snapshot may require additional software to work properly.
Comment 2 Eric Edgar (RETIRED) gentoo-dev 2004-11-23 13:11:35 UTC
Created attachment 44590 [details, diff]
Allows udev to discover lvm2 -- udev startup is much quicker

This patch allows lvm2 to work with lvm2.

Also, the udev startup routines were rewritten to be much faster.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-11-30 11:43:18 UTC
Ok, the patch is in genkernel-3.0.2c, it should reach rsync shortly. Please reopen this bug if you have any problems. Thanks!
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2005-01-05 13:30:39 UTC
This patch leaves some nasty messages about at boot on a LiveCD.
Comment 5 Eric Edgar (RETIRED) gentoo-dev 2005-01-10 07:05:40 UTC
Created attachment 48096 [details, diff]
This patch hopefully fixes the livecd error messages
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-01-10 08:25:37 UTC
I'm going to REOPEN so it shows up in your active bug list.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2005-01-10 08:26:37 UTC
Created attachment 48108 [details, diff]
genkernel-3.1.0d-rmdev.patch

This patch applies to genkernel 3.1.0d and has error checking still in it.
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2005-01-22 12:30:48 UTC
Fixed in 3.1.0e...