Comment 60 for bug 75681

Revision history for this message
Ian Jackson (ijackson) wrote : Re: [Bug 75681] Re: initramfs script: race condition between sata and md

Earlier, I suggested a data-collection exercise involving udevd
--verbgose, but this didn't do much good because the race went away
when testing in this way.

I think this was probably due to udev writing to the console. I have
now prepared a version of udev which can be made not to write to the
console and I would appreciate it if people (particularly Reinhard)
who are still haviong this problem would carry out the following test:

1. Install
  http://www.chiark.greenend.org.uk/~ian/d/udev-nosyslog/udev_103-0ubuntu14~iwj1_i386.deb
  (Sources can be found alongside, at
    http://www.chiark.greenend.org.uk/~ian/d/udev-nosyslog/)

2. Boot with break=premount

3. At the initramfs prompt:
  udevd --verbose --suppress-syslog >/tmp/udev-output 2>&1 &
  udevtrigger

At this point I hope you will find that your root raid is degraded
(ie, that the bug has happened); check with
  cat /proc/partitions
        mdstat -D /dev/md0

4. Mount your root filesystem and copy the debug data to it:
        pkill udevd
        mount /dev/my-volume-group/my-volume-name /root
        cp /tmp/udev-output* /root/root/.
        exit

When your system boots up, please attach /root/udev-output to this
bug.

Thanks,
Ian.