The multipath I/O support in SUSE Linux Enterprise Server is based on the Device Mapper Multipath I/O module of the Linux kernel and the
multipath-tools userspace package. Use
mdadm to view the status of multipathed devices.
The Device Mapper Multipath I/O (DM-MPIO) module provides the multipathing capability for Linux. Multipath protects against failures in the paths to the device, and not failures in the device itself. If one of the paths is lost (for example, a network adapter breaks or a fiber-optic cable is removed), I/O will be redirected to the remaining paths. If an active path fails, the DM continues to balance traffic across the healthy paths. If all active paths fail, inactive secondary paths must be waked up, so failover occurs with a delay of approximately 30 seconds.
Table 5.1. Multipath I/O Features
Device Mapper detects every path for a multipathed device as a separate SCSI device. The SCSI device names take the form
/dev/sd
, where
N
is an autogenerated letter for the device, beginning with a and issued sequentially as the devices are created, such as
N
/dev/sda,
/dev/sdb, and so on. If the number of devices exceeds 26, the letters are duplicated such that the next device after
/dev/sdz will be named
/dev/sdaa,
/dev/sdab, and so on.
If multiple paths are not automatically detected, you can configure them manually in the
/etc/multipath.conf file.
The multipath-tools user-space package takes care of automatic path discovery and grouping. It automatically tests the path periodically, so that a previously failed path is automatically reinstated when it becomes healthy again. This minimizes the need for administrator attention in a production environment.
Table 5.2. Tools in the multipath-tools Package
For a list of files included in this package, see the multipath-tools Package Description .
Ensure that the multipath-tools package is installed by entering the following at a terminal console prompt:
rpm -q multipath-tools
The default settings for
mdadm.conf (and
lvm.conf) do not work properly with multipathed devices. By default, both
md and LVM2 scan physical devices only and ignore any symbolic links or device-mapper devices.
Scanning physical devices does not work for multipathed devices. Instead you must scan for multipathed devices in the
/dev/disk/by-id directory.
If a previous MD installation exists, modify mdadm.conf to handle the devices correctly by ID instead of by device node path. For instructions, see Section 5.4.4, “Configuring mdadm.conf and lvm.conf to Scan Devices by UUID”.
To use software RAID with
mdadm, the
/etc/mdadm.conf must be set up correctly. See Section 5.12, “Using Multipathed Devices” for more information.