Ubuntu fails to boot with multipath

Bug #1349986 reported by bugproxy
This bug report is a duplicate of:  Bug #1004243: multipath installs not working. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
multipath-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

---Problem Description---
When multipath boot support is on, the system fails to boot. Basically, the UUID device points to the underlying SCSI partition device instead of the multipath partition device when initramfs script tries to mount it.

---uname output---
Linux (none) 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:50:31 UTC 2014 ppc64le GNU/Linux

---Additional Hardware Info---
IPR multipath system.

Machine Type = 8286-42A

---Steps to Reproduce---
Install the system into a multipath device, then install multipath-tools-boot, reboot.

Userspace tool common name: udev

bugproxy (bugproxy)
tags: added: architecture-ppc64 bugnameltc-114005 severity-high targetmilestone-inin1410
Luciano Chavez (lnx1138)
affects: ubuntu → multipath-tools (Ubuntu)
tags: added: architecture-ppc64le
removed: architecture-ppc64
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in multipath-tools (Ubuntu):
status: New → Confirmed
bugproxy (bugproxy)
tags: added: targetmilestone-inin1504
removed: targetmilestone-inin1410
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2015-02-02 16:26 EDT-------
I will expand a little more on what I found out about the bug, and where it likely is.

As I described in the initial report, the UUID device that is used by the scripts to lookup for the rootfs is pointing out to a SCSI partition device.

For example:

/dev/disk/by-uuid/78c02bb3-9623-4fe0-b283-22f8f3fe8faa -> /dev/sda2

multipath daemon has already detected the multipath setup and created a mapping that uses sda, and creates linear mappings to the partitions using kpartx.

/dev/mapper/mpathap2 -> ../dm-2
/dev/mapper/mpatha -> ../dm-0

The UUID device should point to dm-2 or mpathap2 instead of pointing out to sda2. This is needed because the mpath mapping will grab the device and that will prevent a filesystem to be mounted directly on it.

The UUID device is created by udev. udev is creating that during the device probe. When the multipath partition is created, udev reads the same filesystem UUID there, but can't create the link because it already exists. What needs to be done is removing that link when multipath is detected or sda2 is removed from the system, or forcing the link creation when it already exists.

Cascardo.

bugproxy (bugproxy)
tags: added: severity-critical
removed: severity-high
Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2015-02-06 11:24 EDT-------
*** Bug 120799 has been marked as a duplicate of this bug. ***

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

This bug happened due to bug 1004243. Marking as duplicate.

The problem was the /etc/multipath.conf file wasn't copied from installer to disk, as multipath detection failed (/sbin/multipath was missing some dependencies).

The configuration file (essentially enabling user_friendly_names) was required for some reason for the boot to finish properly (possibly the controllers's device names in non-friendly form came up in non-udev-whitelisted form or something, and the boot process got stuck along the way).

As the multipath-tools-boot updated the initramfs without that configuration file (as it didn't exist), the problem happened.

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.