mkinitrd doesn't include the correct bindings_file
This document (7003710) is provided subject to the disclaimer at the end of this document.
A multipath device can be identified by either its WWID (World Wide Identifier) or an alias. The default name used in multipathing is the ID of the logical unit as found in the /dev/disk/by-id directory. Because device node names in the form of /dev/sdn and /dev/dm-n can change on reboot, referring to multipath devices by their ID is preferred.
If the user_friendly_names option is enabled in /etc/multipath.conf, you can specify your own device names to use via the alias directive in the /etc/multipath.conf file. Alias names override the ID and /dev/disk/by-id/_ID_. You can optionally use the /dev/mapper/mpathN device name because this name is aliased to the devices ID. These mapping are stored in the file /var/lib/multipath/bindings.
But if /var is on a separate partition from root, device mapper will not be able to find the bindings file. So the bindings_file option was added to /etc/multipath.conf. When the option user_friendly_names is set, the option bindings_file allows to set the full pathname of the bindings file. As a result the file can be placed on another partition than root.
However, mkinitrd still copies an old /var/lib/multipath/bindings to the initrd, but the file is unused due to the bindings_file setting.
When root is aliased in the bindings file, /var is on a separate partition, and bindings_file is specified in the /etc/multipath.conf the root device specified in the command line (root=/dev/mapper/mpathN-partN will report:
Waiting for device /dev/mapper/mpathN-partN to appear: . not found -- exiting to /bin/shOn a side note: SUSE recommends that you do not use aliases for the root device, because the ability to seamlessly switch off multipathing via the kernel command line is lost because the device name differs.
The mkinitrd maintenance update: mkinitrd-1.2-106.86.3 released August 2009, includes the patch. Please update the package to resolve the issue.
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7003710
- Creation Date: 30-Jun-2009
- Modified Date:24-Feb-2021
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: firstname.lastname@example.org