multipath-tools-boot, root mount failed - Device or resource busy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
multipath-tools (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Lucid |
Won't Fix
|
High
|
Unassigned | ||
Maverick |
Invalid
|
High
|
Unassigned |
Bug Description
SRU Justification:
1. Impact: servers with multipath-
2. How bug addressed: The initramfs local-top script for multipath-tools waits for udev to handle all device renames resulting from multipath starting up before continuing on to mountroot.
3. Patch: is attached as a debdiff
4. To reproduce: install a server with multipath storage controller, install multipath-
5. Regression potential: the fix is localized to an initramfs script shipped with multipath-
Binary package hint: multipath-
After installing "multipath-
**Boot/Screen Output:**
Begin: Running /scripts/
mount: mounting /dev/disk/
failed: Device or resource busy
Begin: Running /scripts/
done.
<....> other failure messages mounting (dev, sys, proc, etc.) <....>
(initramfs)
**Further Debugging & Info:**
Procedures & commands, run shortly after (initramfs) prompt appears.
(initramfs) ls -l /dev/disk/by-uuid/
lrwxrwxrwx 1 10 082f71b9-
[ This appears correct!?! ]
(initramfs) mount /dev/disk/
[ SUCCESS ! ]
**WORKAROUND:**
I have created an initramfs script to slow-down the root mounting attempt:
File: /usr/share/
Content:
#!/bin/sh
VERBOSITY=0
PREREQ="multipath"
prereqs() { echo "$PREREQ"; }
case $1 in
prereqs)
prereqs
exit 0
;;
esac
echo "Waiting 5 seconds for multipaths & udev?? to settle down..."
sleep 5
exit 0
<----END---->
My guess for a general/global bug-fix is multipath-
**Observations:**
It appears multipath-
_To duplicate error in a non-boot scenario:_
This exact same behavior can be observed & duplicated on running servers; when mounting a multipath (SAN) volume. As example; mounting multipath-SAN targets will create: /dev/sda, /dev/sdb, /dev/sdc, etc.... And multipath-
.... If you then attempt to mount a direct SAN volume /dev/sd?# an error is raised: "mount: /dev/sd?# already mounted or /<mount_point> busy"
**Software & Versions:**
OS: Ubuntu 10.10 (Maverick - server)
Related Packages & versions:
multipath-tools 0.4.8-14ubuntu4
multipath-
udev 162-2.1
initramfs-tools 0.98.1ubuntu6
initramfs-
open-iscsi 2.0.871-0ubuntu5
open-iscsi-utils 2.0.871-0ubuntu5
libdevmapper1
**Hardware Details:**
Servers affected: HP Proliant DL385 (G5, G5p, G6) (and others I'm sure.)
Storage/SAN Type: iSCSI
Storage/SAN Hardware: HP StorageWorks MSA2312i (and others I'm sure.)
This problem affects servers with iSCSI-boot NICs, AND servers which have a USB-Key with /boot partition.
Please let me know if more information is necessary!
Changed in multipath-tools (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
description: | updated |
tags: | added: verification-done |
Changed in multipath-tools (Ubuntu Maverick): | |
status: | New → Triaged |
importance: | Undecided → High |
Thanks for reporting this bug and helping to make Ubuntu better.
There is a package in ppa:serge- hallyn/ initramfs- multipath2 which we've
been using to work around that problem. I'd been pushing a patch to
the Debian package, but it sounds like requesting a merge temporarily
into the Ubuntu packages would be worthwhile as well.
Can you try the package in the ppa above and let me know if you still /code.launchpad .net/~serge- hallyn/ ubuntu/ lucid/initramfs -tools/ udevsettle )
have an issue? Meanwhile I'll request a merge into the natty sources
for starters. (Source tree is at
https:/