Public bug reported:

It appears that multipath-tools has issues running its script (detecting
multipath devices, then running kpartx to pick up partitions, which in
turn will also trigger a new run of udev rules evaluation) because udev
may not always be done with settling and evaluating rules by the time
the local-top/multipath script gets run.

This happens because some devices take a while to be detected, which
also causes the settling to take some time. Before running multipath -v0
or kpartx, which will also trigger udev to do work, we should make sure
udev has released the locks it may have on those devices, since
multipath will attempt to get an exclusive lock on them too.

This can be easily reproduced in QEMU multipath installs: booting after
installation will take a long time, and the resulting boot will not
always be started with the multipath device
(/dev/mapper/mpath[0-9]+(-part[0-9]+)?) but may instead be using the
first single drive it found matching the proper UUID. (see also bug
1429327)

** Affects: multipath-tools (Ubuntu)
     Importance: Medium
     Assignee: Mathieu Trudel-Lapierre (mathieu-tl)
         Status: In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to multipath-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1434261

Title:
  udev keeps a lock on devices while multipath-tools runs in initramfs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1434261/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to