180 seconds boot delay with fakeraid

Bug #36010 reported by Tormod Volden
8
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

After today'supdates, I have a ca 180s delay at boot, after the message "Waiting for root file system".

This is most likely the 1800 x 0.1 s "slumbering" in /usr/share/initramfs-tools/scripts/init-premount/udev.
My root device is not existing before the "dmraid" command has been run to set up the virtual (fake)raid device. This is currently done in scripts/local-top/dmraid (see bug #22107.

I also tried to copy dmraid to init-premount/ but I guess at this point the underlying /dev/sd* are not available and dmraid can't work.

Should this be covered by "intelligent devices"? This is mentioned in the udev script comments (0x0e) but the udevplug command does not look for it (class=0x0[69ac]*). Should this be class=0x0[69ace]* ?

Revision history for this message
Tormod Volden (tormodvolden) wrote :

This was fixed in udev 079-0ubuntu21. Thanks!

The mismatch between the comment and the udevplug command about intelligent devices is still there though.

Changed in udev:
status: Unconfirmed → Fix Released
Revision history for this message
Tormod Volden (tormodvolden) wrote : initramfs.debug

initramfs-tool 0.40ubuntu28 and udev 079-0ubuntu22 broke this again.

Even worse, now it's not only the delay that is back, but it fails and gives me a busybox shell. If I type dmraid -ay and ctrl-D it continues booting. See attached initramfs.debug

BTW, is the initramfs.debug file available somewhere after the complete boot?

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Should my dmraid script be in another place than local-top? BTW, now it's both in local-top and in init-premount, that's why it shows up twice in the debug output.

Changed in udev:
status: Fix Released → Unconfirmed
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Is the dmraid script your own, or does it come from a package?

If it's your own, it will need to be placed in local-top and PREREQ on udev.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

The prereq on udev did not fix it.

It is so far only my own script, but I would like to get it into the dmraid package, and then into the installer initrd (bug #22107).

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Ok, boot with break=mount then run:

# scripts/local-top/udev
# scripts/local-top/dmraid

# . scripts/local
# mountroot

And see how long that takes to run.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

I am sorry, contrary to what I said, the PREREQ did resolve the issue. For some reason dpkg-reconfigure linux-image-2.6.15-19-386 did not call update-grub as it used to, and I kept booting the previous kernel/initrd without noticing.

Changed in udev:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.