Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73456 - udev doesn't create md devices after fresh install
Summary: udev doesn't create md devices after fresh install
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-05 09:09 UTC by Julien Biezemans
Modified: 2005-02-08 13:47 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 Julien Biezemans 2004-12-05 09:09:55 UTC
After installing a fresh stage1 2003.4 gentoo system (livecd), /dev/md* nodes and directory are not created. Occured with both udev 042 (amd64) and 046 (~amd64).

Reproducible: Didn't try
Steps to Reproduce:
1. perform stage1 install (2004.3)
2. compile kernel with builtin raid software support
3. configure raid (working nicely)
4. be sure to emerge udev (no devfsd)
5. reboot system


Actual Results:  
After remounting the root partition, system complains it cannot read file for
mount verification. No /dev/md file found.

If I enter maintenance mode (root) I can see / mounted. Anyway other raid
partitions are not mounted (/home, /var, /usr, /srv, /tmp). 

Expected Results:  
udev should have created /dev/md* (symlinks, files AND directory) to enable
mounting on those. 

If there is a way to make udev create those nodes and save them in the nodes
tarball during the installation it should be specified in the docs (searched the
manpages with no luck).

Workaround:

1. emerge devfsd (dev file system support is enabled in kernel, no automount at
boot)
2. reboot, system should boot properly on raid devices
3. unmerge devfsd (keep udev!)
4. reboot, /dev/md* are finally there, system can boot w/o devfsd.
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-12-17 22:09:00 UTC
Your raid drivers are not modules, right?  Everything is built into your kernel?
Comment 2 Julien Biezemans 2004-12-18 06:49:59 UTC
everything builtin. it's a server, there is no module.
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-12-21 11:47:00 UTC
bah, wrong button. it's fixed now.
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-12-21 11:47:39 UTC
oops, wrong bug...
Comment 5 klavs klavsen 2004-12-25 07:57:40 UTC
I have same problem :(

/dev/md0 (my root device) is there - but md1, md2 etc. aren't :(

I've created them manually - but that still sucks - and udev removes them at reboot - so I have to hack in the md device creation in checkfs :(

(mknod /dev/md2 b 9 2 etc.)

(p.s. I've had to disable UDEV-TARBALL'ing at boot because it failed utterly.).

Comment 6 Ryan Earl 2004-12-28 21:05:07 UTC
You should check out: http://bugs.gentoo.org/show_bug.cgi?id=62749
Comment 7 Mark Dierolf (RETIRED) gentoo-dev 2005-01-31 12:42:15 UTC
I had the same problem - over and over, /dev/md/* and /dev/md{0,1,2} weren't created on bootup.

The next thing I did was to enable logging in udev.conf. After the next bootup, /dev/md/* and /dev/md{0,1,2} were created - I have no idea why it worked but it did. Now everything works perfectly. I'm still not sure if udev is working, or if the devices are only being saved in the /dev tarball. 


Comment 8 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-02-08 13:47:28 UTC
Great, let's close this then :)