Linux Multipath
Linux Multipath
• I/O load balancing policies: Provides weighted Round Robin load balancing policy within a path
group.
• Device name persistence: Device names are persistent across reboots and Storage Area Network
(SAN) reconfigurations. Device Mapper also provides configurable device name aliasing feature
for easier management.
• Persistent device settings: All the device settings such as load balancing policies, path grouping
policies are persistent across reboots and SAN reconfigurations.
• Device exclusion: Provides device exclusion feature through blacklisting of devices.
• Path monitoring: Periodically monitors each path for status and enables faster failover and failback.
• Online device addition and deletion: Devices can be added to or deleted from Device Mapper
(DM) multipath without rebooting the server or disrupting other devices or applications.
• Management Utility: Provides Command Line Interface (CLI) to manage multipath devices.
• Boot from SAN: Provides multipathing for operating system installation partitions on SAN device.
NOTE:
Multipathing for SAN Boot environment is supported on the following operating systems: RHEL 5
U2/RHEL 5 U3/SLES 10 SP2. For more details on multipathing support for SAN Boot environment,
see the Booting Linux x86 and x86_64 systems from a Storage Area Network with Device Mapper
Multipath document available at http://h18006.www1.hp.com/storage/networking/bootsan.html.
Device Mapper Multipath Enablement Kit for HP StorageWorks Disk Arrays v4.2.0 3
What's new
HPDM Multipath 4.2.0 provides the following additional features:
• Provides support for HP StorageWorks Disk Arrays EVA6400 and EVA8400.
• Provides changes for installation on RedHat based distributions.
NOTE:
For more information on operating systems supported with HP StorageWorks Disk Arrays, see the
SPOCK website:
www.hp.com/storage/spock
For more information on the HBA driver parameters on RHEL 5 U3, see Setting up HPDM Multipath.
RHEL 4 Update 6
RHEL 4 Update 7
RHEL 5 Update 2
Operating system versions
RHEL 5 Update 3
SLES 9 - SP4
SLES 10 - SP2
See http://h18006.www1.hp.com/storage/networking/index.html,
http://h18004.www1.hp.com/products/servers/proliantstorage/adapters/
Host Bus Adapters (HBA) index.html, and
SAN Switches http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?lang=en&
cc=us&prodNameId=3628653&taskId=135&prodTypeId=332283&
prodSeriesId=3628652&submit.y=2&submit.x=5&lang=en&cc=us
4
EVA4000 (HSV200) XCS 5.110/6.200 or later
EVA6000 (HSV200) XCS 5.110/6.200 or later
EVA8000 (HSV210) XCS 5.110/6.200 or later
EVA4100 (HSV200) XCS 6.200 or later
EVA6100 (HSV200) XCS 6.200 or later
EVA8100 (HSV210) XCS 6.200 or later
EVA4400 (HSV300) XCS 0900 or later
EVA6400 (HSV400) XCS 0950 or later
EVA8400 (HSV450) XCS 0950 or later
EVA iSCSI Connectivity Option
Supported arrays
XP10000 fw rev 50-07-30-00/00 or later
XP12000 fw rev 50-09-34-00/00 or later
XP20000 fw rev 60-02-04-00/00 or later
XP24000 fw rev 60-02-04-00/00 or later
MSA1000/MSA1500 fw rev 7.0.0 or later
MSA2000 Storage product family
(MSA2012fc/MSA2212fc) fw rev J200P19 or later
MSA2012i fw rev J210R10 or later
MSA2012sa fw rev J300P13–01 or later
(MSA2312fc/MSA2324fc) fw rev M100R18 or later
HP SC08Ge Host Bus Adapter: 4.00.13.04-2 or later (for RHEL 5/SLES 10),
3.12.14.00-2 or later (for RHEL 4/ SLES 9) available at:
http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?lang=en&
cc=us&prodNameId=3759720&taskId=135&prodTypeId=329290&
prodSeriesId=3759718&lang=en&cc=us
Emulex: 8.0.16.40 or later (for RHEL 4 U7), 8.2.0.22 or later (for SLES 10
SP2/RHEL 5 U2), 8.0.16.32 or later (for SLES 9/RHEL 4 U6) available at: http:/
/h18006.www1.hp.com/products/storageworks/4gbpciehba/index.html
HBA drivers and Smart Qlogic: 8.02.11 or later (for RHEL 4 U7), 8.02.11 or later (for SLES 10
Array Controller drivers SP2/RHEL 5 U2), 8.01.07.25 or later (for SLES 9/RHEL 4 U6) available at:
http://h18006.www1.hp.com/products/storageworks/fca2214/index.html
HP Smart Array P700m Controller:
http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?lang=en&
cc=us&prodNameId=3628653&taskId=135&prodTypeId=332283&
prodSeriesId=3628652&submit.y=2&submit.x=5&lang=en&cc=us
RHEL 5 U3 HBA drivers
Qlogic: 8.02.00.06.05.03 or later
Emulex: 8.2.0.33.3p or later
NOTE:
• HPDM Multipath provides support for iSCSI devices on the following operating systems:
RHEL 5 U2/RHEL 5 U3/SLES 9 SP4/SLES 10 SP2.
• For more information on configuring iSCSI parameters, see Configuring iSCSI parameters.
Device Mapper Multipath Enablement Kit for HP StorageWorks Disk Arrays v4.2.0 5
Installing Device Mapper Multipath tools
Ensure the following RPMs bundled with the operating system distributions are installed on the system:
• For RHEL 5 Update 3:
device-mapper-1.02.28-2.el5 or later, device-mapper-multipath-0.4.7-
23.el5 or later
NOTE:
For RHEL 4 U6 operating systems, install HP Device Mapper Multipath Enablement Kit for HP
StorageWorks Disk Arrays v4.0.0 and then install HPDM Multipath v4.2.0. For more information on
installing HPDM Multipath v4.0.0, see the Device Mapper Multipath Enablement Kit for HP
StorageWorks Disk Arrays 4.0.0 Installation and Reference Guide.
6
Installing HPDM Multipath Enablement kit 4.2.0
To install HPDM Multipath 4.2.0, complete the following steps:
1. Download the HPDM Multipath Enablement Kit for HP StorageWorks Disk Arrays v4.2.0 available
at http://www.hp.com/go/devicemapper.
2. Log in as root to the host system.
3. Copy the installation tar package to a temporary directory (for instance, /tmp/HPDMmul-
tipath).
4. Unbundle the package by executing the following commands:
#cd /tmp/HPDMmultipath
#tar -xvzf HPDMmultipath-4.2.0.tar.gz
#cd HPDMmultipath-4.2.0
5. Verify that the directory contains README.txt, COPYING, INSTALL, bin, conf, SRPMS, and
docs directories.
6. To install HPDM Multipath 4.2.0, execute the following command:
#./INSTALL
device
vendor "HP"
product "MSA2[02]12fc|MSA2012i"
getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
hardware_handler "0"
path_selector "round-robin 0"
path_grouping_policy multibus
failback immediate
rr_weight uniform
no_path_retry 18
rr_min_io 100
path_checker tur
Device Mapper Multipath Enablement Kit for HP StorageWorks Disk Arrays v4.2.0 7
For EVA3000/EVA5000/EVA4x00/EVA6x00/EVA8x00
device
vendor "(COMPAQ|HP)"
product "HSV1[01]1|HSV2[01]0|HSV300|HSV4[05]0"
getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
prio_callout "/sbin/mpath_prio_alua /dev/%n"
hardware_handler "0"
path_selector "round-robin 0"
path_grouping_policy group_by_prio
failback immediate
rr_weight uniform
no_path_retry 12
rr_min_io 100
path_checker tur
For MSA1000/MSA1500
device
vendor "HP"
product "MSA VOLUME*"
getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
prio_callout "/sbin/mpath_prio_alua /dev/%n"
hardware_handler "0"
path_selector "round-robin 0"
path_grouping_policy group_by_prio
failback immediate
rr_weight uniform
no_path_retry 12
rr_min_io 100
path_checker tur
8
For MSA2012sa
device
vendor "HP"
product "MSA2012sa"
getuid_callout "/sbin/hp_scsi_id -g -u —n —s /block/%n"
prio_callout "/sbin/mpath_prio_alua %d"
hardware_handler "0"
path_selector "round-robin 0"
path_grouping_policy group_by_prio
failback immediate
rr_weight uniform
no_path_retry 18
rr_min_io 100
path_checker tur
For XP
device
vendor "HP"
product "OPEN-.*"
getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
hardware_handler "0"
path_selector "round-robin 0"
path_grouping_policy multibus
failback immediate
rr_weight uniform
no_path_retry 12
rr_min_io 1000
path_checker tur
For MSA2312fc/MSA2324fc
device
vendor "HP"
product "MSA2312fc|MSA2324fc"
getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
hardware_handler "0"
path_selector "round-robin 0"
prio_callout "/sbin/mpath_prio_alua /dev/%n"
path_grouping_policy group_by_prio
failback immediate
rr_weight uniform
no_path_retry 18
rr_min_io 100
path_checker tur
Device Mapper Multipath Enablement Kit for HP StorageWorks Disk Arrays v4.2.0 9
}
NOTE:
• For SLES 10 SP2, in the device section, replace
with
prio alua
• For SLES 10 SP2, in the device section for MSA 2012sa, replace
with
• For more information on editing /etc/multipath.conf file, see the Device Mapper Multipath
Enablement Kit for HP StorageWorks Disk Arrays 4.0.0 Installation and Reference Guide. You
can find this document on the Manuals page of Multi-path Device Mapper for Linux Software,
which is accessible at http://www.hp.com/go/devicemapper.
10
a. Backup the existing initrd image by executing the following command:
#mv /boot/initrd-<version no.>.img /boot/initrd-<version
no.>.img.old
b. Make a new initrd image by executing the following command:
#mkinitrd /boot/initrd-<version no.>.img `uname -r`
c. Edit the value for default parameter in /boot/grub/menu.lst file to boot with the
new initrd image.
• For other operating systems using the HP Qlogic drivers,
/opt/hp/src/hp_qla2x00src/make_initrd
options lpfc
lpfc_nodev_tmo=14
lpfc_lun_queue_depth=16
lpfc_discovery_threads=32
• In SLES 9 hosts, edit the /etc/modprobe.conf.local file with the following values:
options lpfc
lpfc_nodev_tmo=14
lpfc_lun_queue_depth=16
lpfc_discovery_threads=32
• In SLES 10 hosts, edit the /etc/modprobe.conf.local file with the following values:
options lpfc
lpfc_nodev_tmo=28
lpfc_lun_queue_depth=16
lpfc_discovery_threads=32
• In RHEL 5 hosts, edit the /etc/modprobe.conf file with the following values:
options lpfc
lpfc_nodev_tmo=28
lpfc_lun_queue_depth=16
lpfc_discovery_threads=32
Device Mapper Multipath Enablement Kit for HP StorageWorks Disk Arrays v4.2.0 11
/opt/hp/hp-lpfc/make_initrd
NOTE:
Ensure that you have a HBA driver installed in single path mode. For more information, see the
installation and reference guides for the respective HBA drivers.
For SLES hosts, complete the following steps to start the multipathd daemon at boot time:
1. Run the following commands to check if the daemon is configured to start at boot time:
# chkconfig --list boot.device-mapper
# chkconfig --list boot.multipath
# chkconfig --list multipathd
2. Run the following commands to start the Device Mapper Multipath daemons:
# chkconfig boot.device-mapper [levels]
# chkconfig boot.multipath [levels]
12
Known issues
Following are the known issues in the HPDM Multipath 4.2.0 release:
• Path failure messages are seen in the log file when encountered with a Unit Attention condition.
This behavior can be observed during online LUN addition, deletion, LUN transition across the
controller. These paths can be recovered after the polling interval set.
• multipath commands may take longer time to execute on heavily loaded servers or under path
failure conditions.
• User friendly multipath device names may change on reboot if /var is mounted on a partition
other than the root file system. It is recommended to have /(root) and /var on the same partition
or change the multipath bindings file location using the 'bindings_file' parameter in the
/etc/multipath.conf file.
• Blacklisting the multipath device in the /etc/multipath.conf file and restarting the multipath
service may not remove the device on RHEL 4 distributions. Execute the following command to
remove the blacklisted device:
# multipath -f <device>
• Using fdisk command to create partitions may fail to create Multipath device for the partition
device. It is recommended to use parted command to create partitions for the device.
• multipathd daemon crashes on systems configured with device paths more than the system
open file limits (default system open file limit=1024). It is recommended to change the system open
file limits by using either the 'max_fds' parameter in /etc/multipath.conf file or by using
the ulimit -n command and restart the multipathd demon.
• Multipath -l command may not reflect the correct path status for Logical Units presented from
MSA2012sa array when paths fail or are restored under heavy load conditions. To refresh the
path status, execute the # multipath -v0 command.
• Multipath devices may not be created for Logical Units when the system disks or internal controllers
are cciss devices. It is recommended to blacklist these devices in the /etc/multipath.conf
file and restart the multipathd daemon.
• If an existing LUN is deleted or unpresented from RHEL host, a DM multipath device with the invalid
WWN may be created which cannot be used and will be removed after the system reboots.
• For LUNs greater than 2TB in RHEL4 and SLES9 operating systems, DM multipath devices may
not be created with appropriate size.
Support
Telephone numbers for worldwide technical support are listed on the HP support website:
http://www.hp.com/support/
Collect the following information before calling the worldwide technical support:
• Technical support registration number (if applicable)
• Product serial numbers
• Product model names and numbers
• Applicable error messages
• Operating system type and revision level
• Detailed, specific questions
For continuous quality improvement, calls may be recorded or monitored.
Device Mapper Multipath Enablement Kit for HP StorageWorks Disk Arrays v4.2.0 13
HP recommends that customers sign up online using the Subscriber's choice website:
http://www.hp.com/go/subscribe-gate1/
• Subscribing to this service provides you with e-mail updates on the latest product enhancements,
newer versions of drivers, and firmware documentation updates as well as instant access to numer-
ous other product resources.
• After signing up, you can locate your products by selecting Business support > Storage under
Product Category.
14