Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

DM 多​​​​​​​路​​​​​​​径​​​​​​​

Red Hat Enterprise Linux 5

DM 多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​及​​​​​​​管​​​​​​​理​​​​​​​

版 3

摘要

本​​​​​​​书​​​​​​​提​​​​​​​供​​​​​​​了​​​​​​​使​​​​​​​用​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​版​​​​​​​ Linux 5 设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​特​​​​​​​性​​​​​​​的​​​​​​​信​​​​​​​息​​​​​​​

前​​​​​​​言​​​​​​​

本​​​​​​​书​​​​​​​论​​​​​​​述​​​​​​​了​​​​​​​ RHEL 5 发​​​​​​​行​​​​​​​本​​​​​​​中​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​版​​​​​​​ Linux 设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​(DM-Multipath)的​​​​​​​特​​​​​​​性​​​​​​​。​​​​​​​

1. 读​​​​​​​者​​​​​​​

本​​​​​​​书​​​​​​​主​​​​​​​要​​​​​​​供​​​​​​​管​​​​​​​理​​​​​​​运​​​​​​​行​​​​​​​了​​​​​​​ Linux 操​​​​​​​作​​​​​​​系​​​​​​​统​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​管​​​​​​​理​​​​​​​员​​​​​​​使​​​​​​​用​​​​​​​,需​​​​​​​要​​​​​​​熟​​​​​​​悉​​​​​​​红​​​​​​​帽​​​​​​​企​​​​​​​业​​​​​​​版​​​​​​​ Linux。​​​​​​​

3. 反​​​​​​​馈​​​​​​​

如​​​​​​​果​​​​​​​你​​​​​​​发​​​​​​​现​​​​​​​了​​​​​​​排​​​​​​​印​​​​​​​错​​​​​​​误​​​​​​​或​​​​​​​者​​​​​​​有​​​​​​​改​​​​​​​进​​​​​​​本​​​​​​​文​​​​​​​档​​​​​​​的​​​​​​​建​​​​​​​议​​​​​​​,我​​​​​​​们​​​​​​​希​​​​​​​望​​​​​​​能​​​​​​​听​​​​​​​取​​​​​​​你​​​​​​​的​​​​​​​意​​​​​​​见​​​​​​​。​​​​​​​请​​​​​​​在​​​​​​​ Bugzilla(http://bugzilla.redhat.com/bugzilla/)中​​​​​​​根​​​​​​​据​​​​​​​组​​​​​​​件​​​​​​​ rh-cs 提​​​​​​​交​​​​​​​报​​​​​​​告​​​​​​​。​​​​​​​
Be sure to mention the manual's identifier:
Bugzilla component: Documentation-cluster
Book identifier: DM_Multipath(EN)-5 (2009-01-06T15:35)
By mentioning this manual's identifier, we know exactly which version of the guide you have.
如​​​​​​​果​​​​​​​你​​​​​​​有​​​​​​​改​​​​​​​进​​​​​​​本​​​​​​​文​​​​​​​档​​​​​​​的​​​​​​​建​​​​​​​议​​​​​​​,请​​​​​​​尽​​​​​​​量​​​​​​​具​​​​​​​体​​​​​​​说​​​​​​​明​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​你​​​​​​​发​​​​​​​现​​​​​​​了​​​​​​​错​​​​​​​误​​​​​​​,请​​​​​​​指​​​​​​​出​​​​​​​章​​​​​​​节​​​​​​​号​​​​​​​以​​​​​​​及​​​​​​​其​​​​​​​上​​​​​​​下​​​​​​​文​​​​​​​,以​​​​​​​便​​​​​​​我​​​​​​​们​​​​​​​尽​​​​​​​快​​​​​​​找​​​​​​​到​​​​​​​并​​​​​​​更​​​​​​​正​​​​​​​该​​​​​​​错​​​​​​​误​​​​​​​。​​​​​​​

第 1 章 设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​

多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​(DM-Multipath)允​​​​​​​许​​​​​​​您​​​​​​​将​​​​​​​服​​​​​​​务​​​​​​​器​​​​​​​节​​​​​​​点​​​​​​​和​​​​​​​存​​​​​​​储​​​​​​​阵​​​​​​​列​​​​​​​间​​​​​​​的​​​​​​​多​​​​​​​个​​​​​​​ I/O 路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​为​​​​​​​一​​​​​​​个​​​​​​​单​​​​​​​一​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​这​​​​​​​些​​​​​​​ I/O 路​​​​​​​径​​​​​​​是​​​​​​​可​​​​​​​包​​​​​​​含​​​​​​​独​​​​​​​立​​​​​​​电​​​​​​​缆​​​​​​​、​​​​​​​交​​​​​​​换​​​​​​​机​​​​​​​以​​​​​​​及​​​​​​​控​​​​​​​制​​​​​​​器​​​​​​​的​​​​​​​物​​​​​​​理​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​集​​​​​​​合​​​​​​​了​​​​​​​ I/O 路​​​​​​​径​​​​​​​,并​​​​​​​生​​​​​​​成​​​​​​​一​​​​​​​个​​​​​​​包​​​​​​​整​​​​​​​合​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​新​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​

1.1. DM-Multipath 总​​​​​​​览​​​​​​​

可​​​​​​​使​​​​​​​用​​​​​​​ DM-Multipath 提​​​​​​​供​​​​​​​:
  • 冗​​​​​​​余​​​​​​​
    DM-Multipath 可​​​​​​​在​​​​​​​主​​​​​​​动​​​​​​​/被​​​​​​​动​​​​​​​配​​​​​​​置​​​​​​​中​​​​​​​提​​​​​​​供​​​​​​​出​​​​​​​错​​​​​​​冗​​​​​​​余​​​​​​​。​​​​​​​在​​​​​​​主​​​​​​​动​​​​​​​/被​​​​​​​动​​​​​​​配​​​​​​​置​​​​​​​中​​​​​​​,只​​​​​​​有​​​​​​​一​​​​​​​半​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​在​​​​​​​每​​​​​​​次​​​​​​​ I/O 时​​​​​​​都​​​​​​​使​​​​​​​用​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​ I/O 路​​​​​​​径​​​​​​​的​​​​​​​任​​​​​​​意​​​​​​​元​​​​​​​素​​​​​​​(电​​​​​​​缆​​​​​​​、​​​​​​​交​​​​​​​换​​​​​​​机​​​​​​​或​​​​​​​者​​​​​​​控​​​​​​​制​​​​​​​器​​​​​​​)出​​​​​​​现​​​​​​​故​​​​​​​障​​​​​​​,就​​​​​​​会​​​​​​​将​​​​​​​ DM-Multipath 切​​​​​​​换​​​​​​​到​​​​​​​备​​​​​​​用​​​​​​​路​​​​​​​径​​​​​​​。​​​​​​​
  • 提​​​​​​​高​​​​​​​的​​​​​​​性​​​​​​​能​​​​​​​
    DM-Multipath 可​​​​​​​配​​​​​​​置​​​​​​​为​​​​​​​主​​​​​​​动​​​​​​​/主​​​​​​​动​​​​​​​模​​​​​​​式​​​​​​​,其​​​​​​​中​​​​​​​将​​​​​​​ I/O 以​​​​​​​调​​​​​​​度​​​​​​​算​​​​​​​法​​​​​​​方​​​​​​​式​​​​​​​分​​​​​​​布​​​​​​​到​​​​​​​所​​​​​​​有​​​​​​​路​​​​​​​径​​​​​​​中​​​​​​​。​​​​​​​在​​​​​​​有​​​​​​​些​​​​​​​配​​​​​​​置​​​​​​​中​​​​​​​,DM-Multipath 可​​​​​​​在​​​​​​​ I/O 路​​​​​​​径​​​​​​​中​​​​​​​检​​​​​​​测​​​​​​​负​​​​​​​载​​​​​​​并​​​​​​​动​​​​​​​态​​​​​​​对​​​​​​​负​​​​​​​载​​​​​​​进​​​​​​​行​​​​​​​再​​​​​​​平​​​​​​​衡​​​​​​​。​​​​​​​
图 1.1 “Active/Passive Multipath Configuration with One RAID Device” shows an active/passive configuration with two I/O paths from the server to a RAID device. There are 2 HBAs on the server, 2 SAN switches, and 2 RAID controllers.
Active/Passive Multipath Configuration with One RAID Device

图 1.1. Active/Passive Multipath Configuration with One RAID Device

在​​​​​​​这​​​​​​​个​​​​​​​配​​​​​​​置​​​​​​​中​​​​​​​,一​​​​​​​个​​​​​​​ I/O 路​​​​​​​径​​​​​​​通​​​​​​​过​​​​​​​ hba1、​​​​​​​SAN1 以​​​​​​​及​​​​​​​控​​​​​​​制​​​​​​​器​​​​​​​ 1。​​​​​​​第​​​​​​​二​​​​​​​个​​​​​​​ I/O 路​​​​​​​径​​​​​​​通​​​​​​​过​​​​​​​ hba2、​​​​​​​SAN2 以​​​​​​​及​​​​​​​控​​​​​​​制​​​​​​​器​​​​​​​ 2。​​​​​​​在​​​​​​​这​​​​​​​个​​​​​​​配​​​​​​​置​​​​​​​中​​​​​​​有​​​​​​​很​​​​​​​多​​​​​​​地​​​​​​​方​​​​​​​可​​​​​​​能​​​​​​​导​​​​​​​致​​​​​​​故​​​​​​​障​​​​​​​:
  • HBA 故​​​​​​​障​​​​​​​
  • FC 电​​​​​​​缆​​​​​​​故​​​​​​​障​​​​​​​
  • SAN 交​​​​​​​换​​​​​​​机​​​​​​​故​​​​​​​障​​​​​​​
  • 阵​​​​​​​列​​​​​​​控​​​​​​​制​​​​​​​器​​​​​​​端​​​​​​​口​​​​​​​故​​​​​​​障​​​​​​​
如​​​​​​​果​​​​​​​配​​​​​​​置​​​​​​​了​​​​​​​ DM-Multipath,在​​​​​​​所​​​​​​​有​​​​​​​这​​​​​​​些​​​​​​​地​​​​​​​方​​​​​​​出​​​​​​​现​​​​​​​故​​​​​​​障​​​​​​​时​​​​​​​都​​​​​​​会​​​​​​​使​​​​​​​ DM-Multipath 切​​​​​​​换​​​​​​​到​​​​​​​备​​​​​​​用​​​​​​​ I/O 路​​​​​​​径​​​​​​​。​​​​​​​
图 1.2 “Active/Passive Multipath Configuration with Two RAID Devices” shows a more complex active/passive configuration with 2 HBAs on the server, 2 SAN switches, and 2 RAID devices with 2 RAID controllers each.
Active/Passive Multipath Configuration with Two RAID Devices

图 1.2. Active/Passive Multipath Configuration with Two RAID Devices

In the example shown in 图 1.2 “Active/Passive Multipath Configuration with Two RAID Devices”, there are two I/O paths to each RAID device (just as there are in the example shown in 图 1.1 “Active/Passive Multipath Configuration with One RAID Device”). With DM-Multipath configured, a failure at any of the points of the I/O path to either of the RAID devices will cause DM-Multipath to switch to the alternate I/O path for that device.
图 1.3 “Active/Active Multipath Configuration with One RAID Device” shows an active/active configuration with 2 HBAs on the server, 1 SAN switch, and 2 RAID controllers. There are four I/O paths from the server to a storage device:
  • hba1 到​​​​​​​控​​​​​​​制​​​​​​​器​​​​​​​ 1
  • hba1 到​​​​​​​控​​​​​​​制​​​​​​​器​​​​​​​ 2
  • hba2 到​​​​​​​控​​​​​​​制​​​​​​​器​​​​​​​ 1
  • hba2 到​​​​​​​控​​​​​​​制​​​​​​​器​​​​​​​ 2
在​​​​​​​这​​​​​​​个​​​​​​​配​​​​​​​置​​​​​​​中​​​​​​​,可​​​​​​​将​​​​​​​ I/O 分​​​​​​​布​​​​​​​到​​​​​​​那​​​​​​​四​​​​​​​条​​​​​​​路​​​​​​​径​​​​​​​中​​​​​​​。​​​​​​​
Active/Active Multipath Configuration with One RAID Device

图 1.3. Active/Active Multipath Configuration with One RAID Device

1.2. 存​​​​​​​储​​​​​​​阵​​​​​​​列​​​​​​​支​​​​​​​持​​​​​​​

By default, DM-Multipath includes support for the most common storage arrays that support DM-Multipath. The supported devices can be found in the multipath.conf.defaults file. If your storage array supports DM-Multipath and is not configured by default in this file, you may need to add them to the DM-Multipath configuration file, multipath.conf. For information on the DM-Multipath configuration file, see 第 4 章 DM-Multipath 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​.
有​​​​​​​些​​​​​​​存​​​​​​​储​​​​​​​阵​​​​​​​列​​​​​​​需​​​​​​​要​​​​​​​对​​​​​​​ I/O 错​​​​​​​误​​​​​​​和​​​​​​​路​​​​​​​径​​​​​​​切​​​​​​​换​​​​​​​的​​​​​​​特​​​​​​​殊​​​​​​​处​​​​​​​理​​​​​​​。​​​​​​​这​​​​​​​些​​​​​​​要​​​​​​​求​​​​​​​独​​​​​​​立​​​​​​​于​​​​​​​硬​​​​​​​件​​​​​​​处​​​​​​​理​​​​​​​器​​​​​​​内​​​​​​​核​​​​​​​模​​​​​​​块​​​​​​​。​​​​​​​

1.3. DM-Multipath 组​​​​​​​件​​​​​​​

表 1.1. DM-Multipath 组​​​​​​​件​​​​​​​

组​​​​​​​件​​​​​​​ 描​​​​​​​述​​​​​​​
dm-multipath kernel module 为​​​​​​​路​​​​​​​径​​​​​​​和​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​重​​​​​​​新​​​​​​​指​​​​​​​定​​​​​​​ I/O 并​​​​​​​支​​​​​​​持​​​​​​​出​​​​​​​错​​​​​​​冗​​​​​​​余​​​​​​​。​​​​​​​
multipath command 列​​​​​​​出​​​​​​​并​​​​​​​配​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​通​​​​​​​常​​​​​​​从​​​​​​​ /etc/rc.sysinit 开​​​​​​​始​​​​​​​,还​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ udev 程​​​​​​​序​​​​​​​随​​​​​​​时​​​​​​​添​​​​​​​加​​​​​​​块​​​​​​​设​​​​​​​备​​​​​​​,或​​​​​​​者​​​​​​​可​​​​​​​用​​​​​​​ initramfs 文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​运​​​​​​​行​​​​​​​。​​​​​​​
multipathd daemon 监​​​​​​​视​​​​​​​路​​​​​​​径​​​​​​​,如​​​​​​​果​​​​​​​路​​​​​​​径​​​​​​​故​​​​​​​障​​​​​​​并​​​​​​​返​​​​​​​回​​​​​​​,它​​​​​​​可​​​​​​​能​​​​​​​会​​​​​​​启​​​​​​​动​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​切​​​​​​​换​​​​​​​。​​​​​​​可​​​​​​​为​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​提​​​​​​​供​​​​​​​互​​​​​​​动​​​​​​​修​​​​​​​改​​​​​​​。​​​​​​​对​​​​​​​ /etc/multipath.conf 文​​​​​​​件​​​​​​​的​​​​​​​任​​​​​​​何​​​​​​​修​​​​​​​改​​​​​​​都​​​​​​​必​​​​​​​须​​​​​​​启​​​​​​​动​​​​​​​它​​​​​​​。​​​​​​​
kpartx command 为​​​​​​​设​​​​​​​备​​​​​​​中​​​​​​​的​​​​​​​分​​​​​​​区​​​​​​​生​​​​​​​成​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​这​​​​​​​个​​​​​​​命​​​​​​​令​​​​​​​对​​​​​​​带​​​​​​​ DM-MP 的​​​​​​​ DOS 分​​​​​​​区​​​​​​​是​​​​​​​很​​​​​​​必​​​​​​​要​​​​​​​的​​​​​​​。​​​​​​​kpartx 在​​​​​​​其​​​​​​​自​​​​​​​身​​​​​​​软​​​​​​​件​​​​​​​包​​​​​​​中​​​​​​​就​​​​​​​存​​​​​​​在​​​​​​​,但​​​​​​​ device-mapper-multipath 软​​​​​​​件​​​​​​​包​​​​​​​要​​​​​​​依​​​​​​​赖​​​​​​​它​​​​​​​。​​​​​​​

1.4. DM-Multipath 安​​​​​​​装​​​​​​​总​​​​​​​览​​​​​​​

DM-Multipath 包​​​​​​​含​​​​​​​适​​​​​​​用​​​​​​​于​​​​​​​通​​​​​​​用​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​的​​​​​​​内​​​​​​​置​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​。​​​​​​​安​​​​​​​装​​​​​​​ DM-multipath 通​​​​​​​常​​​​​​​很​​​​​​​简​​​​​​​单​​​​​​​。​​​​​​​
以​​​​​​​下​​​​​​​是​​​​​​​为​​​​​​​您​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​配​​​​​​​置​​​​​​​ DM-multipath 的​​​​​​​基​​​​​​​本​​​​​​​步​​​​​​​骤​​​​​​​:
  1. 安​​​​​​​装​​​​​​​ device-mapper-multipath rpm。​​​​​​​
  2. 编​​​​​​​辑​​​​​​​ multipath.conf 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​:
    • 注​​​​​​​释​​​​​​​出​​​​​​​默​​​​​​​认​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​
    • 根​​​​​​​据​​​​​​​需​​​​​​​要​​​​​​​修​​​​​​​改​​​​​​​现​​​​​​​有​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​
    • 保​​​​​​​存​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​
  3. 启​​​​​​​动​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​。​​​​​​​
  4. 使​​​​​​​用​​​​​​​ multipath 命​​​​​​​令​​​​​​​生​​​​​​​成​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​
Detailed setup instructions for several example multipath configurations are provided in see 第 3 章 安​​​​​​​装​​​​​​​ DM-Multipath.

第 2 章 多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​

没​​​​​​​有​​​​​​​ DM-Multipath,从​​​​​​​服​​​​​​​务​​​​​​​器​​​​​​​节​​​​​​​点​​​​​​​到​​​​​​​存​​​​​​​储​​​​​​​控​​​​​​​制​​​​​​​器​​​​​​​的​​​​​​​所​​​​​​​有​​​​​​​路​​​​​​​径​​​​​​​都​​​​​​​将​​​​​​​被​​​​​​​系​​​​​​​统​​​​​​​视​​​​​​​为​​​​​​​独​​​​​​​立​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​,即​​​​​​​便​​​​​​​连​​​​​​​接​​​​​​​相​​​​​​​同​​​​​​​服​​​​​​​务​​​​​​​器​​​​​​​节​​​​​​​点​​​​​​​到​​​​​​​相​​​​​​​同​​​​​​​存​​​​​​​储​​​​​​​控​​​​​​​制​​​​​​​器​​​​​​​的​​​​​​​ I/O 路​​​​​​​径​​​​​​​也​​​​​​​不​​​​​​​例​​​​​​​外​​​​​​​。​​​​​​​DM-Multipath 提​​​​​​​供​​​​​​​了​​​​​​​逻​​​​​​​辑​​​​​​​管​​​​​​​理​​​​​​​ I/O 路​​​​​​​径​​​​​​​的​​​​​​​方​​​​​​​法​​​​​​​,即​​​​​​​在​​​​​​​基​​​​​​​础​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​顶​​​​​​​部​​​​​​​生​​​​​​​成​​​​​​​单​​​​​​​一​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​

2.1. 多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​识​​​​​​​别​​​​​​​器​​​​​​​

每​​​​​​​个​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​都​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​全​​​​​​​球​​​​​​​识​​​​​​​别​​​​​​​号​​​​​​​(WWID),它​​​​​​​是​​​​​​​一​​​​​​​个​​​​​​​全​​​​​​​球​​​​​​​唯​​​​​​​一​​​​​​​的​​​​​​​无​​​​​​​法​​​​​​​更​​​​​​​改​​​​​​​的​​​​​​​号​​​​​​​码​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​情​​​​​​​况​​​​​​​下​​​​​​​,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​名​​​​​​​称​​​​​​​将​​​​​​​设​​​​​​​为​​​​​​​它​​​​​​​的​​​​​​​ WWID。​​​​​​​另​​​​​​​外​​​​​​​,您​​​​​​​还​​​​​​​可​​​​​​​以​​​​​​​在​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​设​​​​​​​置​​​​​​​ user_friendly_names 选​​​​​​​项​​​​​​​,该​​​​​​​选​​​​​​​项​​​​​​​可​​​​​​​将​​​​​​​别​​​​​​​名​​​​​​​设​​​​​​​为​​​​​​​格​​​​​​​式​​​​​​​为​​​​​​​ mpathn 的​​​​​​​节​​​​​​​点​​​​​​​唯​​​​​​​一​​​​​​​名​​​​​​​称​​​​​​​。​​​​​​​
例​​​​​​​如​​​​​​​:当​​​​​​​在​​​​​​​有​​​​​​​两​​​​​​​个​​​​​​​端​​​​​​​口​​​​​​​的​​​​​​​存​​​​​​​储​​​​​​​控​​​​​​​制​​​​​​​器​​​​​​​中​​​​​​​通​​​​​​​过​​​​​​​单​​​​​​​一​​​​​​​不​​​​​​​分​​​​​​​区​​​​​​​ FC 切​​​​​​​换​​​​​​​附​​​​​​​加​​​​​​​带​​​​​​​两​​​​​​​个​​​​​​​ HBA 的​​​​​​​节​​​​​​​点​​​​​​​时​​​​​​​,可​​​​​​​看​​​​​​​到​​​​​​​四​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​:/dev/sda、​​​​​​​/dev/sdb、​​​​​​​dev/sdc 和​​​​​​​ /dev/sdd。​​​​​​​DM-多​​​​​​​路​​​​​​​径​​​​​​​生​​​​​​​成​​​​​​​一​​​​​​​个​​​​​​​有​​​​​​​唯​​​​​​​一​​​​​​​ WWID 的​​​​​​​单​​​​​​​一​​​​​​​设​​​​​​​备​​​​​​​,该​​​​​​​设​​​​​​​备​​​​​​​可​​​​​​​将​​​​​​​ I/O 根​​​​​​​据​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​重​​​​​​​新​​​​​​​路​​​​​​​由​​​​​​​到​​​​​​​那​​​​​​​四​​​​​​​个​​​​​​​基​​​​​​​础​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​当​​​​​​​将​​​​​​​ user_friendly_names 配​​​​​​​置​​​​​​​设​​​​​​​定​​​​​​​为​​​​​​​ yes,会​​​​​​​将​​​​​​​该​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​名​​​​​​​称​​​​​​​设​​​​​​​定​​​​​​​为​​​​​​​ mpathn。​​​​​​​
当​​​​​​​在​​​​​​​ DM-多​​​​​​​路​​​​​​​径​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​新​​​​​​​设​​​​​​​备​​​​​​​时​​​​​​​,这​​​​​​​些​​​​​​​新​​​​​​​设​​​​​​​备​​​​​​​会​​​​​​​位​​​​​​​于​​​​​​​ /dev 目​​​​​​​录​​​​​​​的​​​​​​​三​​​​​​​个​​​​​​​不​​​​​​​同​​​​​​​位​​​​​​​置​​​​​​​:/dev/mapper/mpathn、​​​​​​​/dev/mpath/mpathn 和​​​​​​​ /dev/dm-n。​​​​​​​
  • /dev/mapper 中​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​是​​​​​​​在​​​​​​​引​​​​​​​导​​​​​​​过​​​​​​​程​​​​​​​中​​​​​​​生​​​​​​​成​​​​​​​的​​​​​​​。​​​​​​​可​​​​​​​使​​​​​​​用​​​​​​​这​​​​​​​些​​​​​​​设​​​​​​​备​​​​​​​访​​​​​​​问​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​,例​​​​​​​如​​​​​​​在​​​​​​​生​​​​​​​成​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​时​​​​​​​。​​​​​​​
  • 提​​​​​​​供​​​​​​​ /dev/mpath 中​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​是​​​​​​​为​​​​​​​了​​​​​​​方​​​​​​​便​​​​​​​,这​​​​​​​样​​​​​​​可​​​​​​​在​​​​​​​一​​​​​​​个​​​​​​​目​​​​​​​录​​​​​​​中​​​​​​​看​​​​​​​到​​​​​​​所​​​​​​​有​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​这​​​​​​​些​​​​​​​设​​​​​​​备​​​​​​​是​​​​​​​由​​​​​​​ udev 设​​​​​​​备​​​​​​​管​​​​​​​理​​​​​​​器​​​​​​​生​​​​​​​成​​​​​​​的​​​​​​​,且​​​​​​​在​​​​​​​系​​​​​​​统​​​​​​​需​​​​​​​要​​​​​​​访​​​​​​​问​​​​​​​它​​​​​​​们​​​​​​​时​​​​​​​不​​​​​​​一​​​​​​​定​​​​​​​能​​​​​​​启​​​​​​​动​​​​​​​。​​​​​​​请​​​​​​​不​​​​​​​要​​​​​​​使​​​​​​​用​​​​​​​这​​​​​​​些​​​​​​​设​​​​​​​备​​​​​​​生​​​​​​​成​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​或​​​​​​​者​​​​​​​文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​。​​​​​​​
  • 所​​​​​​​有​​​​​​​ /dev/dm-n 格​​​​​​​式​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​都​​​​​​​只​​​​​​​能​​​​​​​是​​​​​​​作​​​​​​​为​​​​​​​内​​​​​​​部​​​​​​​使​​​​​​​用​​​​​​​,且​​​​​​​应​​​​​​​该​​​​​​​永​​​​​​​远​​​​​​​不​​​​​​​要​​​​​​​使​​​​​​​用​​​​​​​。​​​​​​​
You can also set the name of a multipath device to a name of your choosing by using the alias option in the multipaths section of the multipath configuration file. For information on the multipaths section of the multipath configuration file, see see 第 4.4 节 “多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​”.

2.2. 在​​​​​​​群​​​​​​​集​​​​​​​中​​​​​​​保​​​​​​​持​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​名​​​​​​​称​​​​​​​一​​​​​​​致​​​​​​​

当​​​​​​​将​​​​​​​ user_friendly_names 配​​​​​​​置​​​​​​​选​​​​​​​项​​​​​​​设​​​​​​​为​​​​​​​ yes 时​​​​​​​,该​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​名​​​​​​​称​​​​​​​对​​​​​​​于​​​​​​​节​​​​​​​点​​​​​​​来​​​​​​​说​​​​​​​是​​​​​​​唯​​​​​​​一​​​​​​​的​​​​​​​,但​​​​​​​不​​​​​​​保​​​​​​​证​​​​​​​对​​​​​​​使​​​​​​​用​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​所​​​​​​​有​​​​​​​节​​​​​​​点​​​​​​​都​​​​​​​一​​​​​​​致​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​您​​​​​​​使​​​​​​​用​​​​​​​ LVM 生​​​​​​​成​​​​​​​逻​​​​​​​辑​​​​​​​设​​​​​​​备​​​​​​​,这​​​​​​​将​​​​​​​不​​​​​​​会​​​​​​​给​​​​​​​您​​​​​​​造​​​​​​​成​​​​​​​任​​​​​​​何​​​​​​​困​​​​​​​难​​​​​​​。​​​​​​​但​​​​​​​如​​​​​​​果​​​​​​​您​​​​​​​需​​​​​​​要​​​​​​​将​​​​​​​您​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​名​​​​​​​称​​​​​​​在​​​​​​​群​​​​​​​集​​​​​​​中​​​​​​​的​​​​​​​每​​​​​​​个​​​​​​​节​​​​​​​点​​​​​​​上​​​​​​​都​​​​​​​保​​​​​​​持​​​​​​​一​​​​​​​致​​​​​​​,请​​​​​​​执​​​​​​​行​​​​​​​以​​​​​​​下​​​​​​​步​​​​​​​骤​​​​​​​之​​​​​​​一​​​​​​​:
  • Use the alias option in the multipaths section of the multipath configuration file to set the name of the multipath device. The alias for the multipath device is consistent across all the nodes in a cluster. For information on the multipaths section of the multipath configuration file, see see 第 4.4 节 “多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​”.
  • 如​​​​​​​果​​​​​​​您​​​​​​​想​​​​​​​要​​​​​​​系​​​​​​​统​​​​​​​定​​​​​​​义​​​​​​​的​​​​​​​用​​​​​​​户​​​​​​​友​​​​​​​好​​​​​​​名​​​​​​​称​​​​​​​在​​​​​​​群​​​​​​​集​​​​​​​中​​​​​​​的​​​​​​​所​​​​​​​有​​​​​​​节​​​​​​​点​​​​​​​间​​​​​​​保​​​​​​​持​​​​​​​一​​​​​​​致​​​​​​​,请​​​​​​​在​​​​​​​一​​​​​​​台​​​​​​​机​​​​​​​器​​​​​​​中​​​​​​​设​​​​​​​置​​​​​​​所​​​​​​​有​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​然​​​​​​​后​​​​​​​将​​​​​​​那​​​​​​​台​​​​​​​机​​​​​​​器​​​​​​​中​​​​​​​的​​​​​​​ /var/lib/multipath/bindings 文​​​​​​​件​​​​​​​复​​​​​​​制​​​​​​​到​​​​​​​群​​​​​​​集​​​​​​​中​​​​​​​其​​​​​​​它​​​​​​​所​​​​​​​有​​​​​​​机​​​​​​​器​​​​​​​中​​​​​​​。​​​​​​​

2.3. 多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​属​​​​​​​性​​​​​​​

In addition to the user_friendly_names and alias options, a multipath device has numerous attributes. You can modify these attributes for a specific multipath device by creating an entry for that device in the multipaths section of the multipath configuration file. For information on the multipaths section of the multipath configuration file, see see 第 4.4 节 “多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​”.

2.4. 逻​​​​​​​辑​​​​​​​卷​​​​​​​中​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​

生​​​​​​​成​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​后​​​​​​​,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​名​​​​​​​称​​​​​​​可​​​​​​​以​​​​​​​与​​​​​​​您​​​​​​​生​​​​​​​成​​​​​​​一​​​​​​​个​​​​​​​ LVM 物​​​​​​​理​​​​​​​卷​​​​​​​时​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​物​​​​​​​理​​​​​​​设​​​​​​​备​​​​​​​名​​​​​​​称​​​​​​​相​​​​​​​同​​​​​​​。​​​​​​​例​​​​​​​如​​​​​​​:如​​​​​​​果​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​名​​​​​​​称​​​​​​​为​​​​​​​ /dev/mapper/mpath0,以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​可​​​​​​​将​​​​​​​ /dev/mapper/mpath0 标​​​​​​​记​​​​​​​为​​​​​​​一​​​​​​​个​​​​​​​物​​​​​​​理​​​​​​​卷​​​​​​​。​​​​​​​
pvcreate /dev/mapper/mpath0
您​​​​​​​可​​​​​​​以​​​​​​​如​​​​​​​在​​​​​​​使​​​​​​​用​​​​​​​其​​​​​​​它​​​​​​​ LVM 物​​​​​​​理​​​​​​​设​​​​​​​备​​​​​​​一​​​​​​​样​​​​​​​在​​​​​​​创​​​​​​​建​​​​​​​ LVM 卷​​​​​​​组​​​​​​​时​​​​​​​使​​​​​​​用​​​​​​​得​​​​​​​到​​​​​​​的​​​​​​​ LVM 物​​​​​​​理​​​​​​​卷​​​​​​​。​​​​​​​
当​​​​​​​您​​​​​​​创​​​​​​​建​​​​​​​一​​​​​​​个​​​​​​​使​​​​​​​用​​​​​​​主​​​​​​​动​​​​​​​/被​​​​​​​动​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​阵​​​​​​​列​​​​​​​的​​​​​​​ LVM 逻​​​​​​​辑​​​​​​​卷​​​​​​​作​​​​​​​为​​​​​​​基​​​​​​​础​​​​​​​物​​​​​​​理​​​​​​​设​​​​​​​备​​​​​​​时​​​​​​​,您​​​​​​​应​​​​​​​该​​​​​​​在​​​​​​​ lvm.conf 中​​​​​​​添​​​​​​​加​​​​​​​过​​​​​​​滤​​​​​​​器​​​​​​​以​​​​​​​便​​​​​​​排​​​​​​​除​​​​​​​位​​​​​​​于​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​下​​​​​​​的​​​​​​​磁​​​​​​​盘​​​​​​​。​​​​​​​这​​​​​​​是​​​​​​​因​​​​​​​为​​​​​​​如​​​​​​​果​​​​​​​阵​​​​​​​列​​​​​​​在​​​​​​​接​​​​​​​收​​​​​​​ I/O 时​​​​​​​自​​​​​​​动​​​​​​​将​​​​​​​主​​​​​​​动​​​​​​​路​​​​​​​径​​​​​​​改​​​​​​​为​​​​​​​被​​​​​​​动​​​​​​​路​​​​​​​径​​​​​​​,不​​​​​​​过​​​​​​​滤​​​​​​​掉​​​​​​​这​​​​​​​些​​​​​​​设​​​​​​​备​​​​​​​,无​​​​​​​论​​​​​​​何​​​​​​​时​​​​​​​ LVM 扫​​​​​​​描​​​​​​​被​​​​​​​动​​​​​​​路​​​​​​​径​​​​​​​时​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​将​​​​​​​执​​​​​​​行​​​​​​​出​​​​​​​错​​​​​​​冗​​​​​​​余​​​​​​​并​​​​​​​进​​​​​​​行​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​。​​​​​​​对​​​​​​​于​​​​​​​需​​​​​​​要​​​​​​​使​​​​​​​用​​​​​​​命​​​​​​​令​​​​​​​激​​​​​​​活​​​​​​​被​​​​​​​动​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​主​​​​​​​动​​​​​​​/被​​​​​​​动​​​​​​​阵​​​​​​​列​​​​​​​,LVM 会​​​​​​​在​​​​​​​发​​​​​​​生​​​​​​​这​​​​​​​种​​​​​​​情​​​​​​​况​​​​​​​时​​​​​​​给​​​​​​​出​​​​​​​警​​​​​​​告​​​​​​​信​​​​​​​息​​​​​​​。​​​​​​​
要​​​​​​​过​​​​​​​滤​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​(lvm.conf)中​​​​​​​的​​​​​​​所​​​​​​​有​​​​​​​ SCSI 设​​​​​​​备​​​​​​​,请​​​​​​​在​​​​​​​该​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​ devices 部​​​​​​​分​​​​​​​添​​​​​​​加​​​​​​​以​​​​​​​下​​​​​​​过​​​​​​​滤​​​​​​​器​​​​​​​。​​​​​​​
filter = [ "r/disk/", "r/sd.*/", "a/.*/" ]

第 3 章 安​​​​​​​装​​​​​​​ DM-Multipath

本​​​​​​​章​​​​​​​提​​​​​​​供​​​​​​​了​​​​​​​配​​​​​​​置​​​​​​​ DM-Multipath 的​​​​​​​分​​​​​​​步​​​​​​​示​​​​​​​例​​​​​​​,其​​​​​​​中​​​​​​​包​​​​​​​括​​​​​​​以​​​​​​​下​​​​​​​步​​​​​​​骤​​​​​​​:
  • 基​​​​​​​本​​​​​​​ DM-Multipath 安​​​​​​​装​​​​​​​
  • 忽​​​​​​​略​​​​​​​本​​​​​​​地​​​​​​​磁​​​​​​​盘​​​​​​​
  • 在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​更​​​​​​​多​​​​​​​设​​​​​​​备​​​​​​​

3.1. 安​​​​​​​装​​​​​​​ DM-Multipath

在​​​​​​​您​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​中​​​​​​​安​​​​​​​装​​​​​​​ DM-Multipath 前​​​​​​​,请​​​​​​​确​​​​​​​定​​​​​​​您​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​已​​​​​​​经​​​​​​​进​​​​​​​行​​​​​​​了​​​​​​​升​​​​​​​级​​​​​​​,其​​​​​​​中​​​​​​​包​​​​​​​括​​​​​​​对​​​​​​​ device-mapper-multipath 软​​​​​​​件​​​​​​​包​​​​​​​的​​​​​​​升​​​​​​​级​​​​​​​。​​​​​​​
使​​​​​​​用​​​​​​​以​​​​​​​下​​​​​​​步​​​​​​​骤​​​​​​​为​​​​​​​基​​​​​​​本​​​​​​​出​​​​​​​错​​​​​​​冗​​​​​​​余​​​​​​​配​​​​​​​置​​​​​​​安​​​​​​​装​​​​​​​ DM-Multipath。​​​​​​​
  1. 通​​​​​​​过​​​​​​​注​​​​​​​释​​​​​​​出​​​​​​​ /etc/multipath.conf 文​​​​​​​件​​​​​​​的​​​​​​​开​​​​​​​始​​​​​​​几​​​​​​​行​​​​​​​来​​​​​​​编​​​​​​​辑​​​​​​​该​​​​​​​文​​​​​​​件​​​​​​​。​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​这​​​​​​​一​​​​​​​部​​​​​​​分​​​​​​​在​​​​​​​开​​​​​​​始​​​​​​​的​​​​​​​时​​​​​​​候​​​​​​​是​​​​​​​将​​​​​​​所​​​​​​​有​​​​​​​设​​​​​​​备​​​​​​​都​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​的​​​​​​​。​​​​​​​您​​​​​​​必​​​​​​​须​​​​​​​将​​​​​​​其​​​​​​​注​​​​​​​释​​​​​​​出​​​​​​​来​​​​​​​以​​​​​​​便​​​​​​​启​​​​​​​用​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​。​​​​​​​
    blacklist {
            devnode "*"
    }
    
    注​​​​​​​释​​​​​​​出​​​​​​​这​​​​​​​些​​​​​​​行​​​​​​​以​​​​​​​后​​​​​​​,这​​​​​​​部​​​​​​​分​​​​​​​的​​​​​​​形​​​​​​​式​​​​​​​如​​​​​​​下​​​​​​​。​​​​​​​
    # blacklist {
    #        devnode "*"
    # }
    
  2. DM-Multipath 的​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​已​​​​​​​经​​​​​​​被​​​​​​​编​​​​​​​译​​​​​​​到​​​​​​​系​​​​​​​统​​​​​​​中​​​​​​​,且​​​​​​​无​​​​​​​需​​​​​​​在​​​​​​​ /etc/multipath.conf 文​​​​​​​件​​​​​​​中​​​​​​​特​​​​​​​别​​​​​​​指​​​​​​​出​​​​​​​。​​​​​​​
    The default value of path_grouping_policy is set to failover, so in this example you do not need to change the default value. For information on changing the values in the configuration file to something other than the defaults, see 第 4 章 DM-Multipath 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​.
    在​​​​​​​您​​​​​​​系​​​​​​​统​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​初​​​​​​​始​​​​​​​默​​​​​​​认​​​​​​​部​​​​​​​分​​​​​​​,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​名​​​​​​​称​​​​​​​的​​​​​​​格​​​​​​​式​​​​​​​为​​​​​​​ mpathn;如​​​​​​​果​​​​​​​没​​​​​​​有​​​​​​​这​​​​​​​个​​​​​​​设​​​​​​​置​​​​​​​,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​名​​​​​​​称​​​​​​​将​​​​​​​会​​​​​​​是​​​​​​​该​​​​​​​设​​​​​​​备​​​​​​​ WWID 别​​​​​​​名​​​​​​​。​​​​​​​
  3. 保​​​​​​​存​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​并​​​​​​​退​​​​​​​出​​​​​​​编​​​​​​​辑​​​​​​​器​​​​​​​。​​​​​​​
  4. 执​​​​​​​行​​​​​​​以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​:
    modprobe dm-multipath
    service multipathd start
    multipath -v2
    
    multipath -v2 命​​​​​​​令​​​​​​​输​​​​​​​出​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​来​​​​​​​显​​​​​​​示​​​​​​​哪​​​​​​​些​​​​​​​设​​​​​​​备​​​​​​​是​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​没​​​​​​​有​​​​​​​输​​​​​​​出​​​​​​​任​​​​​​​何​​​​​​​结​​​​​​​果​​​​​​​,请​​​​​​​确​​​​​​​定​​​​​​​正​​​​​​​确​​​​​​​调​​​​​​​试​​​​​​​了​​​​​​​所​​​​​​​有​​​​​​​ SAN 连​​​​​​​接​​​​​​​并​​​​​​​使​​​​​​​系​​​​​​​统​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​。​​​​​​​
    For further information on the multipath command output, see 第 5.4 节 “Multipath Command Output”.
  5. 执​​​​​​​行​​​​​​​以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​以​​​​​​​确​​​​​​​定​​​​​​​在​​​​​​​引​​​​​​​导​​​​​​​时​​​​​​​启​​​​​​​动​​​​​​​了​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​:
    chkconfig multipathd on
    
Since the value of user_friendly_name is set to yes in the configuration file the multipath devices will be created as /dev/mapper/mpathn. For information on setting the name of the device to an alias of your choosing, see 第 4 章 DM-Multipath 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​.

3.2. 在​​​​​​​生​​​​​​​成​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​时​​​​​​​忽​​​​​​​略​​​​​​​逻​​​​​​​辑​​​​​​​磁​​​​​​​盘​​​​​​​

有​​​​​​​些​​​​​​​机​​​​​​​器​​​​​​​在​​​​​​​其​​​​​​​内​​​​​​​部​​​​​​​磁​​​​​​​盘​​​​​​​中​​​​​​​有​​​​​​​本​​​​​​​地​​​​​​​ SCSI 卡​​​​​​​。​​​​​​​不​​​​​​​建​​​​​​​议​​​​​​​在​​​​​​​这​​​​​​​些​​​​​​​设​​​​​​​备​​​​​​​中​​​​​​​使​​​​​​​用​​​​​​​ DM-Multipath。​​​​​​​以​​​​​​​下​​​​​​​步​​​​​​​骤​​​​​​​显​​​​​​​示​​​​​​​如​​​​​​​何​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​时​​​​​​​修​​​​​​​改​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​来​​​​​​​忽​​​​​​​略​​​​​​​逻​​​​​​​辑​​​​​​​磁​​​​​​​盘​​​​​​​。​​​​​​​
  1. 确​​​​​​​定​​​​​​​哪​​​​​​​些​​​​​​​磁​​​​​​​盘​​​​​​​是​​​​​​​内​​​​​​​部​​​​​​​磁​​​​​​​盘​​​​​​​并​​​​​​​将​​​​​​​其​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​。​​​​​​​
    在​​​​​​​这​​​​​​​个​​​​​​​示​​​​​​​例​​​​​​​中​​​​​​​,/dev/sda 是​​​​​​​内​​​​​​​部​​​​​​​磁​​​​​​​盘​​​​​​​。​​​​​​​请​​​​​​​注​​​​​​​意​​​​​​​:因​​​​​​​为​​​​​​​在​​​​​​​默​​​​​​​认​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​已​​​​​​​经​​​​​​​对​​​​​​​其​​​​​​​进​​​​​​​行​​​​​​​了​​​​​​​配​​​​​​​置​​​​​​​,所​​​​​​​以​​​​​​​执​​​​​​​行​​​​​​​ multipath -v2 会​​​​​​​在​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​映​​​​​​​射​​​​​​​中​​​​​​​显​​​​​​​示​​​​​​​本​​​​​​​地​​​​​​​磁​​​​​​​盘​​​​​​​ /dev/sda。​​​​​​​
    For further information on the multipath command output, see 第 5.4 节 “Multipath Command Output”.
    [root@rh4cluster1 ~]# multipath -v2
    create: SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1
    [size=33 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 0:0:0:0 sda  8:0    [--------- 
    
    device-mapper ioctl cmd 9 failed: Invalid argument
    device-mapper ioctl cmd 14 failed: No such device or address
    create: 3600a0b80001327d80000006d43621677
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:0 sdb  8:16    
      \_ 3:0:0:0 sdf  8:80    
    
    create: 3600a0b80001327510000009a436215ec
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:1 sdc  8:32    
      \_ 3:0:0:1 sdg  8:96    
    
    create: 3600a0b80001327d800000070436216b3
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:2 sdd  8:48    
      \_ 3:0:0:2 sdh  8:112   
    
    create: 3600a0b80001327510000009b4362163e
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:3 sde  8:64    
      \_ 3:0:0:3 sdi  8:128
    
  2. 要​​​​​​​防​​​​​​​止​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​在​​​​​​​其​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​映​​​​​​​射​​​​​​​中​​​​​​​映​​​​​​​射​​​​​​​ /dev/sda,请​​​​​​​编​​​​​​​辑​​​​​​​ /etc/multipath.conf 文​​​​​​​件​​​​​​​的​​​​​​​ blacklist 部​​​​​​​分​​​​​​​,使​​​​​​​其​​​​​​​包​​​​​​​括​​​​​​​该​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​尽​​​​​​​管​​​​​​​您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ devnode 类​​​​​​​型​​​​​​​将​​​​​​​ sda 设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​,但​​​​​​​那​​​​​​​不​​​​​​​是​​​​​​​一​​​​​​​个​​​​​​​安​​​​​​​全​​​​​​​的​​​​​​​步​​​​​​​骤​​​​​​​,因​​​​​​​为​​​​​​​在​​​​​​​重​​​​​​​启​​​​​​​是​​​​​​​无​​​​​​​法​​​​​​​保​​​​​​​证​​​​​​​ /dev/sda 是​​​​​​​同​​​​​​​一​​​​​​​个​​​​​​​名​​​​​​​称​​​​​​​。​​​​​​​要​​​​​​​将​​​​​​​单​​​​​​​独​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​那​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​ WWID 将​​​​​​​其​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​。​​​​​​​
    请​​​​​​​注​​​​​​​意​​​​​​​:在​​​​​​​ multipath -v2 命​​​​​​​令​​​​​​​的​​​​​​​输​​​​​​​出​​​​​​​中​​​​​​​,/dev/sda 设​​​​​​​备​​​​​​​的​​​​​​​ WWID 是​​​​​​​ SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1。​​​​​​​要​​​​​​​将​​​​​​​这​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​,请​​​​​​​在​​​​​​​ /etc/multipath.conf 文​​​​​​​件​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​以​​​​​​​下​​​​​​​内​​​​​​​容​​​​​​​。​​​​​​​
    blacklist {
          wwid SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1
    }
    
  3. 在​​​​​​​您​​​​​​​更​​​​​​​新​​​​​​​ /etc/multipath.conf 文​​​​​​​件​​​​​​​后​​​​​​​,您​​​​​​​必​​​​​​​须​​​​​​​手​​​​​​​动​​​​​​​让​​​​​​​ multipathd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​重​​​​​​​新​​​​​​​载​​​​​​​入​​​​​​​该​​​​​​​文​​​​​​​件​​​​​​​。​​​​​​​以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​可​​​​​​​重​​​​​​​新​​​​​​​载​​​​​​​入​​​​​​​更​​​​​​​新​​​​​​​的​​​​​​​ /etc/multipath.conf 文​​​​​​​件​​​​​​​。​​​​​​​
    service multipathd reload
    
  4. 运​​​​​​​行​​​​​​​以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​:
    multipath -F
    multipath -v2
    
    本​​​​​​​地​​​​​​​磁​​​​​​​盘​​​​​​​或​​​​​​​者​​​​​​​不​​​​​​​应​​​​​​​再​​​​​​​列​​​​​​​入​​​​​​​新​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​映​​​​​​​射​​​​​​​的​​​​​​​磁​​​​​​​盘​​​​​​​如​​​​​​​下​​​​​​​。​​​​​​​
    [root@rh4cluster1 ~]# multipath -F
    [root@rh4cluster1 ~]# multipath -v2
    create: 3600a0b80001327d80000006d43621677
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:0 sdb  8:16    
      \_ 3:0:0:0 sdf  8:80    
    
    create: 3600a0b80001327510000009a436215ec
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:1 sdc  8:32    
      \_ 3:0:0:1 sdg  8:96    
    
    create: 3600a0b80001327d800000070436216b3
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:2 sdd  8:48    
      \_ 3:0:0:2 sdh  8:112   
    
    create: 3600a0b80001327510000009b4362163e
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:3 sde  8:64    
      \_ 3:0:0:3 sdi  8:128
    

3.3. 在​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​数​​​​​​​据​​​​​​​库​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​设​​​​​​​备​​​​​​​

默​​​​​​​认​​​​​​​情​​​​​​​况​​​​​​​下​​​​​​​,DM-Multipath 包​​​​​​​括​​​​​​​对​​​​​​​大​​​​​​​多​​​​​​​数​​​​​​​支​​​​​​​持​​​​​​​ DM-Multipath 的​​​​​​​通​​​​​​​用​​​​​​​存​​​​​​​储​​​​​​​阵​​​​​​​列​​​​​​​的​​​​​​​支​​​​​​​持​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​配​​​​​​​置​​​​​​​值​​​​​​​请​​​​​​​参​​​​​​​考​​​​​​​ multipath.conf.defaults 文​​​​​​​件​​​​​​​,其​​​​​​​中​​​​​​​包​​​​​​​括​​​​​​​支​​​​​​​持​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​
如​​​​​​​果​​​​​​​您​​​​​​​需​​​​​​​要​​​​​​​添​​​​​​​加​​​​​​​一​​​​​​​个​​​​​​​在​​​​​​​默​​​​​​​认​​​​​​​情​​​​​​​况​​​​​​​下​​​​​​​不​​​​​​​支​​​​​​​持​​​​​​​的​​​​​​​存​​​​​​​储​​​​​​​设​​​​​​​备​​​​​​​作​​​​​​​为​​​​​​​已​​​​​​​知​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​,请​​​​​​​编​​​​​​​辑​​​​​​​ /etc/multipath.conf 文​​​​​​​件​​​​​​​并​​​​​​​插​​​​​​​入​​​​​​​正​​​​​​​确​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​信​​​​​​​息​​​​​​​。​​​​​​​
例​​​​​​​如​​​​​​​:要​​​​​​​添​​​​​​​加​​​​​​​有​​​​​​​关​​​​​​​ HP Open-V 系​​​​​​​列​​​​​​​,条​​​​​​​目​​​​​​​示​​​​​​​例​​​​​​​如​​​​​​​下​​​​​​​:
devices {
       device {
               vendor "HP"
               product "OPEN-V."
               getuid_callout "/sbin/scsi_id -g -u -p0x80 -s /block/%n"
       }
}

第 4 章 DM-Multipath 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​

默​​​​​​​认​​​​​​​情​​​​​​​况​​​​​​​下​​​​​​​,DM-Multipath 为​​​​​​​大​​​​​​​多​​​​​​​数​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​使​​​​​​​用​​​​​​​提​​​​​​​供​​​​​​​配​​​​​​​置​​​​​​​值​​​​​​​。​​​​​​​另​​​​​​​外​​​​​​​,DM-Multipath 包​​​​​​​括​​​​​​​对​​​​​​​支​​​​​​​持​​​​​​​ DM-Multipath 大​​​​​​​多​​​​​​​数​​​​​​​通​​​​​​​用​​​​​​​存​​​​​​​储​​​​​​​阵​​​​​​​列​​​​​​​的​​​​​​​支​​​​​​​持​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​配​​​​​​​置​​​​​​​值​​​​​​​和​​​​​​​支​​​​​​​持​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​请​​​​​​​参​​​​​​​考​​​​​​​ /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.defaults 文​​​​​​​件​​​​​​​。​​​​​​​
您​​​​​​​可​​​​​​​以​​​​​​​通​​​​​​​过​​​​​​​编​​​​​​​辑​​​​​​​ /etc/multipath.conf 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​为​​​​​​​ DM-Multipath 覆​​​​​​​盖​​​​​​​默​​​​​​​认​​​​​​​配​​​​​​​置​​​​​​​值​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​需​​​​​​​要​​​​​​​,您​​​​​​​还​​​​​​​可​​​​​​​以​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​默​​​​​​​认​​​​​​​不​​​​​​​支​​​​​​​持​​​​​​​的​​​​​​​存​​​​​​​储​​​​​​​阵​​​​​​​列​​​​​​​。​​​​​​​本​​​​​​​章​​​​​​​提​​​​​​​供​​​​​​​了​​​​​​​解​​​​​​​析​​​​​​​和​​​​​​​修​​​​​​​改​​​​​​​ multipath.conf 文​​​​​​​件​​​​​​​的​​​​​​​信​​​​​​​息​​​​​​​,它​​​​​​​包​​​​​​​括​​​​​​​以​​​​​​​下​​​​​​​部​​​​​​​分​​​​​​​:
  • 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​总​​​​​​​览​​​​​​​
  • 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​ blacklist
  • 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​ defaults
  • 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​ multipaths
  • 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​ devices
在​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​,您​​​​​​​只​​​​​​​需​​​​​​​要​​​​​​​指​​​​​​​定​​​​​​​需​​​​​​​要​​​​​​​的​​​​​​​配​​​​​​​置​​​​​​​,或​​​​​​​者​​​​​​​您​​​​​​​想​​​​​​​要​​​​​​​修​​​​​​​改​​​​​​​的​​​​​​​在​​​​​​​ multipath.conf.defaults 文​​​​​​​件​​​​​​​中​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​有​​​​​​​和​​​​​​​您​​​​​​​的​​​​​​​环​​​​​​​境​​​​​​​不​​​​​​​相​​​​​​​关​​​​​​​的​​​​​​​部​​​​​​​分​​​​​​​或​​​​​​​者​​​​​​​您​​​​​​​不​​​​​​​需​​​​​​​要​​​​​​​覆​​​​​​​盖​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​将​​​​​​​其​​​​​​​注​​​​​​​释​​​​​​​出​​​​​​​来​​​​​​​,因​​​​​​​为​​​​​​​它​​​​​​​们​​​​​​​在​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​起​​​​​​​始​​​​​​​部​​​​​​​分​​​​​​​。​​​​​​​
配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​允​​​​​​​许​​​​​​​常​​​​​​​规​​​​​​​表​​​​​​​达​​​​​​​式​​​​​​​描​​​​​​​述​​​​​​​语​​​​​​​法​​​​​​​。​​​​​​​
配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​注​​​​​​​释​​​​​​​版​​​​​​​本​​​​​​​请​​​​​​​参​​​​​​​考​​​​​​​ /usr/share/doc/device-mapper-multipathd-0.4.7/multipath.conf.annotated。​​​​​​​

4.1. 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​总​​​​​​​览​​​​​​​

多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​可​​​​​​​分​​​​​​​为​​​​​​​以​​​​​​​下​​​​​​​几​​​​​​​个​​​​​​​部​​​​​​​分​​​​​​​:
blacklist
多​​​​​​​路​​​​​​​径​​​​​​​不​​​​​​​会​​​​​​​考​​​​​​​虑​​​​​​​类​​​​​​​出​​​​​​​具​​​​​​​体​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​情​​​​​​​况​​​​​​​下​​​​​​​所​​​​​​​有​​​​​​​设​​​​​​​备​​​​​​​都​​​​​​​会​​​​​​​列​​​​​​​在​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​中​​​​​​​。​​​​​​​通​​​​​​​常​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​部​​​​​​​分​​​​​​​是​​​​​​​被​​​​​​​注​​​​​​​释​​​​​​​出​​​​​​​的​​​​​​​。​​​​​​​
blacklist_exceptions
列​​​​​​​出​​​​​​​除​​​​​​​了​​​​​​​根​​​​​​​据​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​部​​​​​​​分​​​​​​​的​​​​​​​参​​​​​​​数​​​​​​​可​​​​​​​能​​​​​​​会​​​​​​​被​​​​​​​列​​​​​​​到​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​中​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​候​​​​​​​选​​​​​​​人​​​​​​​。​​​​​​​
defaults
DM-Multipath 的​​​​​​​通​​​​​​​用​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​。​​​​​​​
multipaths
各​​​​​​​个​​​​​​​独​​​​​​​立​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​特​​​​​​​性​​​​​​​设​​​​​​​置​​​​​​​。​​​​​​​这​​​​​​​些​​​​​​​数​​​​​​​值​​​​​​​覆​​​​​​​盖​​​​​​​了​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​ defaults 和​​​​​​​ devices 部​​​​​​​分​​​​​​​中​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​数​​​​​​​值​​​​​​​。​​​​​​​
devices
各​​​​​​​个​​​​​​​存​​​​​​​储​​​​​​​控​​​​​​​制​​​​​​​器​​​​​​​的​​​​​​​设​​​​​​​置​​​​​​​。​​​​​​​这​​​​​​​些​​​​​​​数​​​​​​​值​​​​​​​覆​​​​​​​盖​​​​​​​了​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​ defaults 部​​​​​​​分​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​数​​​​​​​值​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​您​​​​​​​要​​​​​​​使​​​​​​​用​​​​​​​不​​​​​​​是​​​​​​​默​​​​​​​认​​​​​​​支​​​​​​​持​​​​​​​的​​​​​​​存​​​​​​​储​​​​​​​阵​​​​​​​列​​​​​​​,您​​​​​​​可​​​​​​​能​​​​​​​需​​​​​​​要​​​​​​​为​​​​​​​您​​​​​​​的​​​​​​​阵​​​​​​​列​​​​​​​创​​​​​​​建​​​​​​​ devices 子​​​​​​​部​​​​​​​分​​​​​​​。​​​​​​​
当​​​​​​​系​​​​​​​统​​​​​​​决​​​​​​​定​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​属​​​​​​​性​​​​​​​时​​​​​​​,首​​​​​​​先​​​​​​​它​​​​​​​会​​​​​​​检​​​​​​​查​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​置​​​​​​​,然​​​​​​​后​​​​​​​是​​​​​​​每​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​设​​​​​​​置​​​​​​​,然​​​​​​​后​​​​​​​才​​​​​​​是​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​系​​​​​​​统​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​。​​​​​​​

4.2. 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​

多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​ blacklist 部​​​​​​​分​​​​​​​指​​​​​​​定​​​​​​​在​​​​​​​系​​​​​​​统​​​​​​​配​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​时​​​​​​​不​​​​​​​能​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​中​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​将​​​​​​​无​​​​​​​法​​​​​​​分​​​​​​​组​​​​​​​到​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​中​​​​​​​。​​​​​​​
默​​​​​​​认​​​​​​​情​​​​​​​况​​​​​​​下​​​​​​​,所​​​​​​​有​​​​​​​设​​​​​​​备​​​​​​​都​​​​​​​列​​​​​​​在​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​中​​​​​​​,因​​​​​​​为​​​​​​​下​​​​​​​面​​​​​​​这​​​​​​​些​​​​​​​行​​​​​​​出​​​​​​​现​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​开​​​​​​​始​​​​​​​的​​​​​​​部​​​​​​​分​​​​​​​。​​​​​​​
blacklist {
        devnode "*"
}
To enable multipathing on all of the devices that are supported by default, comment out those lines, as described in 第 3.1 节 “安​​​​​​​装​​​​​​​ DM-Multipath”.
注​​​​​​​释​​​​​​​出​​​​​​​通​​​​​​​用​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​后​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​在​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​中​​​​​​​指​​​​​​​定​​​​​​​一​​​​​​​般​​​​​​​设​​​​​​​备​​​​​​​类​​​​​​​型​​​​​​​和​​​​​​​个​​​​​​​体​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​您​​​​​​​可​​​​​​​以​​​​​​​根​​​​​​​据​​​​​​​以​​​​​​​下​​​​​​​标​​​​​​​准​​​​​​​将​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​:

4.2.1. 根​​​​​​​据​​​​​​​ WWID 将​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​

您​​​​​​​可​​​​​​​根​​​​​​​据​​​​​​​全​​​​​​​球​​​​​​​识​​​​​​​别​​​​​​​号​​​​​​​将​​​​​​​单​​​​​​​独​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​,即​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​ blacklist 部​​​​​​​分​​​​​​​加​​​​​​​入​​​​​​​ wwid 条​​​​​​​目​​​​​​​。​​​​​​​
以​​​​​​​下​​​​​​​示​​​​​​​例​​​​​​​显​​​​​​​示​​​​​​​了​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​可​​​​​​​将​​​​​​​ WWID 为​​​​​​​ 26353900f02796769 的​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​的​​​​​​​行​​​​​​​。​​​​​​​
blacklist {
       wwid 26353900f02796769
}

4.2.2. 根​​​​​​​据​​​​​​​设​​​​​​​备​​​​​​​名​​​​​​​称​​​​​​​将​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​

您​​​​​​​可​​​​​​​以​​​​​​​根​​​​​​​据​​​​​​​设​​​​​​​备​​​​​​​名​​​​​​​称​​​​​​​将​​​​​​​设​​​​​​​备​​​​​​​类​​​​​​​型​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​,以​​​​​​​便​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​ blacklist 部​​​​​​​分​​​​​​​的​​​​​​​ devnode 条​​​​​​​目​​​​​​​中​​​​​​​指​​​​​​​定​​​​​​​不​​​​​​​要​​​​​​​将​​​​​​​它​​​​​​​们​​​​​​​分​​​​​​​组​​​​​​​到​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​中​​​​​​​。​​​​​​​
以​​​​​​​下​​​​​​​示​​​​​​​例​​​​​​​显​​​​​​​示​​​​​​​了​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​可​​​​​​​将​​​​​​​所​​​​​​​有​​​​​​​ SCSI 设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​的​​​​​​​行​​​​​​​,因​​​​​​​为​​​​​​​它​​​​​​​的​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​中​​​​​​​有​​​​​​​ sd* 设​​​​​​​备​​​​​​​。​​​​​​​
blacklist {
       devnode "^sd[a-z]"
}
您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​ blacklist 部​​​​​​​分​​​​​​​的​​​​​​​ devnode 条​​​​​​​目​​​​​​​指​​​​​​​定​​​​​​​要​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​的​​​​​​​每​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​,而​​​​​​​不​​​​​​​是​​​​​​​指​​​​​​​定​​​​​​​特​​​​​​​定​​​​​​​类​​​​​​​型​​​​​​​的​​​​​​​所​​​​​​​有​​​​​​​设​​​​​​​备​​​​​​​,我​​​​​​​们​​​​​​​不​​​​​​​推​​​​​​​荐​​​​​​​使​​​​​​​用​​​​​​​后​​​​​​​一​​​​​​​种​​​​​​​情​​​​​​​况​​​​​​​。​​​​​​​除​​​​​​​非​​​​​​​根​​​​​​​据​​​​​​​ udev 规​​​​​​​则​​​​​​​的​​​​​​​静​​​​​​​态​​​​​​​映​​​​​​​射​​​​​​​,我​​​​​​​们​​​​​​​无​​​​​​​法​​​​​​​保​​​​​​​证​​​​​​​在​​​​​​​重​​​​​​​启​​​​​​​后​​​​​​​每​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​名​​​​​​​称​​​​​​​是​​​​​​​一​​​​​​​样​​​​​​​的​​​​​​​。​​​​​​​例​​​​​​​如​​​​​​​:重​​​​​​​启​​​​​​​后​​​​​​​,某​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​名​​​​​​​称​​​​​​​可​​​​​​​能​​​​​​​从​​​​​​​ /dev/sda 变​​​​​​​为​​​​​​​ /dev/sdb。​​​​​​​
By default, the following devnode entries are compiled in the default blacklist; the devices that these entires blacklist do not generally support DM-Multipath. To enable multipathing on any of these devices, you would need to specify them in the blacklist_exceptions section of the configuration file, as described in 第 4.2.4 节 “黑​​​​​​​名​​​​​​​单​​​​​​​之​​​​​​​外​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​”.
blacklist {
       devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
       devnode "^hd[a-z]"
}

4.2.3. 根​​​​​​​据​​​​​​​设​​​​​​​备​​​​​​​类​​​​​​​型​​​​​​​将​​​​​​​其​​​​​​​加​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​

您​​​​​​​可​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​ blacklist 部​​​​​​​分​​​​​​​使​​​​​​​用​​​​​​​ device 部​​​​​​​分​​​​​​​指​​​​​​​定​​​​​​​具​​​​​​​体​​​​​​​设​​​​​​​备​​​​​​​类​​​​​​​型​​​​​​​。​​​​​​​以​​​​​​​下​​​​​​​示​​​​​​​例​​​​​​​将​​​​​​​所​​​​​​​有​​​​​​​ IBM DS4200 设​​​​​​​备​​​​​​​以​​​​​​​及​​​​​​​所​​​​​​​有​​​​​​​ HP 设​​​​​​​备​​​​​​​都​​​​​​​列​​​​​​​入​​​​​​​了​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​。​​​​​​​
blacklist {
       device {
               vendor  "IBM"
               product "3S42"       #DS4200 Product 10
       }
       device {
               vendor  "HP"
               product "*"
       }
}

4.2.4. 黑​​​​​​​名​​​​​​​单​​​​​​​之​​​​​​​外​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​

You can use the blacklist_exceptions section of the configuration file to enable multipathing on devices that have been blacklisted by default. For example, by default, devices with vendor = "IBM" and product = "S/390.*" are blacklisted since usually DASD devices are used for local storage. If you do need to enable multipathing on these devices, uncomment the following lines in the configuration file:
blacklist_exceptions {
       device {
               vendor  "IBM"
               product "S/390.*"
       }
}
当​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​ blacklist_exceptions 指​​​​​​​定​​​​​​​设​​​​​​​备​​​​​​​时​​​​​​​,您​​​​​​​必​​​​​​​须​​​​​​​以​​​​​​​指​​​​​​​定​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​的​​​​​​​相​​​​​​​同​​​​​​​方​​​​​​​法​​​​​​​来​​​​​​​指​​​​​​​定​​​​​​​例​​​​​​​外​​​​​​​情​​​​​​​况​​​​​​​。​​​​​​​例​​​​​​​如​​​​​​​:在​​​​​​​ devnode 黑​​​​​​​名​​​​​​​单​​​​​​​条​​​​​​​目​​​​​​​中​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​无​​​​​​​法​​​​​​​使​​​​​​​用​​​​​​​ WWID 将​​​​​​​其​​​​​​​指​​​​​​​定​​​​​​​为​​​​​​​例​​​​​​​外​​​​​​​情​​​​​​​况​​​​​​​,即​​​​​​​使​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​和​​​​​​​该​​​​​​​ WWID 关​​​​​​​联​​​​​​​也​​​​​​​不​​​​​​​行​​​​​​​。​​​​​​​同​​​​​​​样​​​​​​​,devnode 例​​​​​​​外​​​​​​​也​​​​​​​只​​​​​​​适​​​​​​​用​​​​​​​于​​​​​​​ devnode 条​​​​​​​目​​​​​​​,而​​​​​​​ device 例​​​​​​​外​​​​​​​只​​​​​​​适​​​​​​​用​​​​​​​于​​​​​​​ device 条​​​​​​​目​​​​​​​。​​​​​​​

4.3. 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​

/etc/multipath.conf 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​包​​​​​​​括​​​​​​​ defaults 部​​​​​​​分​​​​​​​,在​​​​​​​该​​​​​​​部​​​​​​​分​​​​​​​中​​​​​​​将​​​​​​​ user_friendly_names 参​​​​​​​数​​​​​​​设​​​​​​​为​​​​​​​ yes,如​​​​​​​下​​​​​​​。​​​​​​​
defaults {
        user_friendly_names yes
}
这​​​​​​​可​​​​​​​覆​​​​​​​盖​​​​​​​ user_friendly_names 参​​​​​​​数​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​。​​​​​​​
该​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​包​​​​​​​括​​​​​​​配​​​​​​​置​​​​​​​默​​​​​​​认​​​​​​​模​​​​​​​板​​​​​​​。​​​​​​​这​​​​​​​部​​​​​​​分​​​​​​​要​​​​​​​被​​​​​​​注​​​​​​​释​​​​​​​出​​​​​​​来​​​​​​​,如​​​​​​​下​​​​​​​。​​​​​​​
#defaults {
#       udev_dir                /dev
#       polling_interval        10
#       selector                "round-robin 0"
#       path_grouping_policy    multibus
#       getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"
#       prio_callout            /bin/true
#       path_checker            readsector0
#       rr_min_io               100
#       max_fds                 8192
#       rr_weight               priorities
#       failback                immediate
#       no_path_retry           fail
#       user_friendly_names     yes
#}
要​​​​​​​覆​​​​​​​盖​​​​​​​任​​​​​​​意​​​​​​​配​​​​​​​置​​​​​​​参​​​​​​​数​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​,您​​​​​​​可​​​​​​​将​​​​​​​这​​​​​​​个​​​​​​​模​​​​​​​板​​​​​​​中​​​​​​​相​​​​​​​关​​​​​​​的​​​​​​​行​​​​​​​复​​​​​​​制​​​​​​​到​​​​​​​ defaults 部​​​​​​​分​​​​​​​并​​​​​​​取​​​​​​​消​​​​​​​其​​​​​​​注​​​​​​​释​​​​​​​。​​​​​​​例​​​​​​​如​​​​​​​:要​​​​​​​覆​​​​​​​盖​​​​​​​ path_grouping_policy 参​​​​​​​数​​​​​​​以​​​​​​​便​​​​​​​用​​​​​​​ multibus 覆​​​​​​​盖​​​​​​​默​​​​​​​认​​​​​​​的​​​​​​​ failover,请​​​​​​​将​​​​​​​模​​​​​​​板​​​​​​​中​​​​​​​正​​​​​​​确​​​​​​​的​​​​​​​行​​​​​​​复​​​​​​​制​​​​​​​到​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​ defaults 部​​​​​​​分​​​​​​​并​​​​​​​取​​​​​​​消​​​​​​​对​​​​​​​它​​​​​​​的​​​​​​​注​​​​​​​释​​​​​​​,如​​​​​​​下​​​​​​​。​​​​​​​
defaults {
        user_friendly_names     yes
        path_grouping_policy    multibus
}
表 4.1 “多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​” describes the attributes that are set in the defaults section of the multipath.conf configuration file. These values are used by DM-Multipath unless they are overwritten by the attributes specified in the devices and multipaths sections of the multipath.conf file.

表 4.1. 多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​

属​​​​​​​性​​​​​​​ 描​​​​​​​述​​​​​​​
udev_dir 指​​​​​​​定​​​​​​​生​​​​​​​成​​​​​​​ udev 设​​​​​​​备​​​​​​​节​​​​​​​点​​​​​​​的​​​​​​​目​​​​​​​录​​​​​​​,默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ /udev。​​​​​​​
polling_interval 以​​​​​​​秒​​​​​​​数​​​​​​​指​​​​​​​定​​​​​​​检​​​​​​​查​​​​​​​两​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​间​​​​​​​的​​​​​​​时​​​​​​​间​​​​​​​间​​​​​​​隔​​​​​​​,默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ 5。​​​​​​​
selector 指​​​​​​​定​​​​​​​用​​​​​​​来​​​​​​​确​​​​​​​定​​​​​​​下​​​​​​​一​​​​​​​个​​​​​​​ I/O 操​​​​​​​作​​​​​​​所​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​算​​​​​​​法​​​​​​​,默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ round-robin 0。​​​​​​​
path_grouping_policy
指​​​​​​​定​​​​​​​用​​​​​​​于​​​​​​​未​​​​​​​指​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​路​​​​​​​径​​​​​​​分​​​​​​​组​​​​​​​策​​​​​​​略​​​​​​​,可​​​​​​​能​​​​​​​的​​​​​​​值​​​​​​​包​​​​​​​括​​​​​​​:
failover = 每​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​
multibus = 所​​​​​​​有​​​​​​​有​​​​​​​效​​​​​​​路​​​​​​​径​​​​​​​在​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​中​​​​​​​
group_by_serial = 每​​​​​​​个​​​​​​​检​​​​​​​测​​​​​​​到​​​​​​​的​​​​​​​系​​​​​​​列​​​​​​​号​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
group_by_prio = 每​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​优​​​​​​​先​​​​​​​值​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
group_by_node_name = 每​​​​​​​个​​​​​​​目​​​​​​​标​​​​​​​节​​​​​​​点​​​​​​​名​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ failover。​​​​​​​
getuid_callout
Specifies the default program and arguments to call out to obtain a unique path identifier. An absolute path is required.
默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ /sbin/scsi_id -g -u -s。​​​​​​​
prio_callout Specifies the the default program and arguments to call out to obtain a path priority value. For example, the ALUA bits in SPC-3 provide an exploitable prio value for example. "none" is a valid value. The default value is no callout, indicating all paths are equal
path_checker 指​​​​​​​定​​​​​​​用​​​​​​​来​​​​​​​确​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​状​​​​​​​态​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​方​​​​​​​法​​​​​​​。​​​​​​​可​​​​​​​能​​​​​​​的​​​​​​​值​​​​​​​有​​​​​​​ readsector0、​​​​​​​tur、​​​​​​​emc_clariion、​​​​​​​hp_sw 和​​​​​​​ directio。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ readsector0。​​​​​​​
rr_min_io 指​​​​​​​定​​​​​​​在​​​​​​​当​​​​​​​前​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​中​​​​​​​切​​​​​​​换​​​​​​​到​​​​​​​下​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​前​​​​​​​指​​​​​​​向​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​ I/O 请​​​​​​​求​​​​​​​数​​​​​​​目​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ 1000。​​​​​​​
max_fds (RHEL 5.2 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​)会​​​​​​​为​​​​​​​ multipathd 进​​​​​​​程​​​​​​​设​​​​​​​定​​​​​​​打​​​​​​​开​​​​​​​文​​​​​​​件​​​​​​​描​​​​​​​述​​​​​​​符​​​​​​​的​​​​​​​最​​​​​​​大​​​​​​​值​​​​​​​。​​​​​​​在​​​​​​​ RHEL 5.3 中​​​​​​​,这​​​​​​​个​​​​​​​选​​​​​​​项​​​​​​​允​​​​​​​许​​​​​​​值​​​​​​​ max,它​​​​​​​可​​​​​​​将​​​​​​​打​​​​​​​开​​​​​​​文​​​​​​​件​​​​​​​描​​​​​​​述​​​​​​​符​​​​​​​的​​​​​​​数​​​​​​​目​​​​​​​设​​​​​​​置​​​​​​​为​​​​​​​系​​​​​​​统​​​​​​​可​​​​​​​承​​​​​​​受​​​​​​​的​​​​​​​最​​​​​​​大​​​​​​​值​​​​​​​。​​​​​​​
rr_weight
If set to priorities, then instead of sending rr_min_io requests to a path before calling selector to choose the next path, the number of requests to send is determined by rr_min_io times the path's priority, as determined by the prio_callout program. Currently, there are priority callouts only for devices that use the group_by_prio path grouping policy, which means that all the paths in a path group will always have the same priority.
如​​​​​​​果​​​​​​​将​​​​​​​其​​​​​​​设​​​​​​​为​​​​​​​ uniform,那​​​​​​​么​​​​​​​所​​​​​​​有​​​​​​​路​​​​​​​径​​​​​​​加​​​​​​​权​​​​​​​是​​​​​​​相​​​​​​​等​​​​​​​的​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ uniform。​​​​​​​
failback
指​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​。​​​​​​​
数​​​​​​​值​​​​​​​ 0 或​​​​​​​者​​​​​​​ immediate 指​​​​​​​定​​​​​​​一​​​​​​​旦​​​​​​​存​​​​​​​在​​​​​​​优​​​​​​​先​​​​​​​权​​​​​​​高​​​​​​​于​​​​​​​现​​​​​​​有​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​,那​​​​​​​么​​​​​​​系​​​​​​​统​​​​​​​将​​​​​​​切​​​​​​​换​​​​​​​到​​​​​​​那​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​。​​​​​​​
大​​​​​​​于​​​​​​​ 0 的​​​​​​​数​​​​​​​字​​​​​​​值​​​​​​​指​​​​​​​定​​​​​​​推​​​​​​​迟​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​,以​​​​​​​秒​​​​​​​表​​​​​​​示​​​​​​​。​​​​​​​
manual 值​​​​​​​表​​​​​​​明​​​​​​​只​​​​​​​能​​​​​​​在​​​​​​​操​​​​​​​作​​​​​​​员​​​​​​​介​​​​​​​入​​​​​​​时​​​​​​​才​​​​​​​会​​​​​​​发​​​​​​​生​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​。​​​​​​​
默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ manual。​​​​​​​
no_path_retry
这​​​​​​​个​​​​​​​属​​​​​​​性​​​​​​​的​​​​​​​数​​​​​​​字​​​​​​​值​​​​​​​指​​​​​​​定​​​​​​​系​​​​​​​统​​​​​​​在​​​​​​​禁​​​​​​​用​​​​​​​队​​​​​​​列​​​​​​​前​​​​​​​应​​​​​​​该​​​​​​​试​​​​​​​图​​​​​​​使​​​​​​​用​​​​​​​失​​​​​​​败​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​次​​​​​​​数​​​​​​​。​​​​​​​
fail 值​​​​​​​表​​​​​​​明​​​​​​​立​​​​​​​即​​​​​​​失​​​​​​​败​​​​​​​,无​​​​​​​需​​​​​​​排​​​​​​​队​​​​​​​。​​​​​​​
queue 值​​​​​​​表​​​​​​​明​​​​​​​在​​​​​​​路​​​​​​​径​​​​​​​修​​​​​​​复​​​​​​​前​​​​​​​不​​​​​​​应​​​​​​​停​​​​​​​止​​​​​​​排​​​​​​​队​​​​​​​。​​​​​​​
默​​​​​​​认​​​​​​​至​​​​​​​为​​​​​​​(空​​​​​​​白​​​​​​​)。​​​​​​​
flush_on_last_del (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)如​​​​​​​果​​​​​​​将​​​​​​​其​​​​​​​设​​​​​​​定​​​​​​​为​​​​​​​ yesmultipathd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​将​​​​​​​在​​​​​​​删​​​​​​​除​​​​​​​了​​​​​​​最​​​​​​​后​​​​​​​一​​​​​​​个​​​​​​​到​​​​​​​某​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​时​​​​​​​禁​​​​​​​用​​​​​​​查​​​​​​​询​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ no。​​​​​​​
queue_without_daemon (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)如​​​​​​​果​​​​​​​将​​​​​​​其​​​​​​​设​​​​​​​定​​​​​​​为​​​​​​​ nomultipathd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​将​​​​​​​在​​​​​​​关​​​​​​​闭​​​​​​​后​​​​​​​禁​​​​​​​用​​​​​​​对​​​​​​​所​​​​​​​有​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​查​​​​​​​询​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ yes。​​​​​​​
user_friendly_names 如​​​​​​​果​​​​​​​将​​​​​​​其​​​​​​​设​​​​​​​为​​​​​​​ yes,即​​​​​​​该​​​​​​​系​​​​​​​统​​​​​​​应​​​​​​​该​​​​​​​使​​​​​​​用​​​​​​​文​​​​​​​件​​​​​​​ bindings 来​​​​​​​将​​​​​​​一​​​​​​​个​​​​​​​持​​​​​​​久​​​​​​​且​​​​​​​唯​​​​​​​一​​​​​​​的​​​​​​​别​​​​​​​名​​​​​​​分​​​​​​​配​​​​​​​给​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​,格​​​​​​​式​​​​​​​为​​​​​​​ mpathn。​​​​​​​bindings 文​​​​​​​件​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​位​​​​​​​置​​​​​​​为​​​​​​​ /var/lib/multipath/bindings,但​​​​​​​使​​​​​​​用​​​​​​​ bindings_file 选​​​​​​​项​​​​​​​可​​​​​​​改​​​​​​​变​​​​​​​此​​​​​​​位​​​​​​​置​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​将​​​​​​​其​​​​​​​设​​​​​​​为​​​​​​​ no,即​​​​​​​该​​​​​​​系​​​​​​​统​​​​​​​应​​​​​​​该​​​​​​​使​​​​​​​用​​​​​​​ WWID 作​​​​​​​为​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​别​​​​​​​名​​​​​​​。​​​​​​​在​​​​​​​这​​​​​​​两​​​​​​​种​​​​​​​情​​​​​​​况​​​​​​​下​​​​​​​,您​​​​​​​在​​​​​​​这​​​​​​​里​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​数​​​​​​​值​​​​​​​将​​​​​​​被​​​​​​​您​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​ multipaths 部​​​​​​​分​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​具​​​​​​​体​​​​​​​设​​​​​​​备​​​​​​​别​​​​​​​名​​​​​​​覆​​​​​​​盖​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ no。​​​​​​​
bindings_file (在​​​​​​​ RHEL 5.2 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)bindings 文​​​​​​​件​​​​​​​的​​​​​​​位​​​​​​​置​​​​​​​与​​​​​​​ user_friend_names 选​​​​​​​项​​​​​​​一​​​​​​​同​​​​​​​使​​​​​​​用​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ /var/lib/multipath/bindings。​​​​​​​
mode (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​节​​​​​​​点​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​ mode 是​​​​​​​八​​​​​​​进​​​​​​​制​​​​​​​的​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​由​​​​​​​具​​​​​​​体​​​​​​​进​​​​​​​程​​​​​​​决​​​​​​​定​​​​​​​。​​​​​​​
uid (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​节​​​​​​​点​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​用​​​​​​​户​​​​​​​ ID。​​​​​​​您​​​​​​​必​​​​​​​须​​​​​​​使​​​​​​​用​​​​​​​数​​​​​​​字​​​​​​​用​​​​​​​户​​​​​​​ ID。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​由​​​​​​​具​​​​​​​体​​​​​​​进​​​​​​​程​​​​​​​决​​​​​​​定​​​​​​​。​​​​​​​
gid (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​节​​​​​​​点​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​组​​​​​​​群​​​​​​​ ID。​​​​​​​您​​​​​​​必​​​​​​​须​​​​​​​使​​​​​​​用​​​​​​​数​​​​​​​字​​​​​​​组​​​​​​​群​​​​​​​ ID。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​由​​​​​​​具​​​​​​​体​​​​​​​进​​​​​​​程​​​​​​​决​​​​​​​定​​​​​​​。​​​​​​​

4.4. 多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​

表 4.2 “多​​​​​​​路​​​​​​​径​​​​​​​属​​​​​​​性​​​​​​​” shows the attributes that you can set in the multipaths section of the multipath.conf configuration file for each specific multipath device. These attributes apply only to the one specified multipath. These defaults are used by DM-Multipath and override attributes set in the defaults and devices sections of the multipath.conf file.

表 4.2. 多​​​​​​​路​​​​​​​径​​​​​​​属​​​​​​​性​​​​​​​

属​​​​​​​性​​​​​​​ 描​​​​​​​述​​​​​​​
wwid 指​​​​​​​定​​​​​​​ multipath 属​​​​​​​性​​​​​​​采​​​​​​​用​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​ WWID。​​​​​​​
alias 指​​​​​​​定​​​​​​​ multipath 属​​​​​​​性​​​​​​​采​​​​​​​用​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​符​​​​​​​号​​​​​​​名​​​​​​​称​​​​​​​。​​​​​​​
path_grouping_policy
指​​​​​​​定​​​​​​​用​​​​​​​于​​​​​​​未​​​​​​​指​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​路​​​​​​​径​​​​​​​分​​​​​​​组​​​​​​​策​​​​​​​略​​​​​​​,可​​​​​​​能​​​​​​​的​​​​​​​值​​​​​​​包​​​​​​​括​​​​​​​:
failover = 每​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​
multibus = 所​​​​​​​有​​​​​​​有​​​​​​​效​​​​​​​路​​​​​​​径​​​​​​​在​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​中​​​​​​​
group_by_serial = 每​​​​​​​个​​​​​​​检​​​​​​​测​​​​​​​到​​​​​​​的​​​​​​​系​​​​​​​列​​​​​​​号​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
group_by_prio = 每​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​优​​​​​​​先​​​​​​​值​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
group_by_node_name = 每​​​​​​​个​​​​​​​目​​​​​​​标​​​​​​​节​​​​​​​点​​​​​​​名​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
path_selector 指​​​​​​​定​​​​​​​用​​​​​​​来​​​​​​​确​​​​​​​定​​​​​​​下​​​​​​​一​​​​​​​个​​​​​​​ I/O 操​​​​​​​作​​​​​​​所​​​​​​​使​​​​​​​用​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​算​​​​​​​法​​​​​​​。​​​​​​​
failback
指​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​。​​​​​​​
数​​​​​​​值​​​​​​​ 0 或​​​​​​​者​​​​​​​ immediate 指​​​​​​​定​​​​​​​一​​​​​​​旦​​​​​​​存​​​​​​​在​​​​​​​优​​​​​​​先​​​​​​​权​​​​​​​高​​​​​​​于​​​​​​​现​​​​​​​有​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​,那​​​​​​​么​​​​​​​系​​​​​​​统​​​​​​​将​​​​​​​切​​​​​​​换​​​​​​​到​​​​​​​那​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​。​​​​​​​
大​​​​​​​于​​​​​​​ 0 的​​​​​​​数​​​​​​​字​​​​​​​值​​​​​​​指​​​​​​​定​​​​​​​推​​​​​​​迟​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​,以​​​​​​​秒​​​​​​​表​​​​​​​示​​​​​​​。​​​​​​​
manual 值​​​​​​​表​​​​​​​明​​​​​​​只​​​​​​​能​​​​​​​在​​​​​​​操​​​​​​​作​​​​​​​员​​​​​​​介​​​​​​​入​​​​​​​时​​​​​​​才​​​​​​​会​​​​​​​发​​​​​​​生​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​。​​​​​​​
rr_weight
If set to priorities, then instead of sending rr_min_io requests to a path before calling selector to choose the next path, the number of requests to send is determined by rr_min_io times the path's priority, as determined by the prio_callout program. Currently, there are priority callouts only for devices that use the group_by_prio path grouping policy, which means that all the paths in a path group will always have the same priority.
如​​​​​​​果​​​​​​​将​​​​​​​其​​​​​​​设​​​​​​​为​​​​​​​ uniform,那​​​​​​​么​​​​​​​所​​​​​​​有​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​加​​​​​​​权​​​​​​​都​​​​​​​相​​​​​​​等​​​​​​​。​​​​​​​
no_path_retry
这​​​​​​​个​​​​​​​属​​​​​​​性​​​​​​​的​​​​​​​数​​​​​​​字​​​​​​​值​​​​​​​指​​​​​​​定​​​​​​​系​​​​​​​统​​​​​​​在​​​​​​​禁​​​​​​​用​​​​​​​队​​​​​​​列​​​​​​​前​​​​​​​应​​​​​​​该​​​​​​​试​​​​​​​图​​​​​​​使​​​​​​​用​​​​​​​失​​​​​​​败​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​次​​​​​​​数​​​​​​​。​​​​​​​
fail 值​​​​​​​说​​​​​​​明​​​​​​​立​​​​​​​即​​​​​​​失​​​​​​​败​​​​​​​,无​​​​​​​需​​​​​​​排​​​​​​​队​​​​​​​。​​​​​​​
queue 值​​​​​​​表​​​​​​​明​​​​​​​在​​​​​​​路​​​​​​​径​​​​​​​修​​​​​​​复​​​​​​​前​​​​​​​不​​​​​​​应​​​​​​​停​​​​​​​止​​​​​​​排​​​​​​​队​​​​​​​。​​​​​​​
flush_on_last_del (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)如​​​​​​​果​​​​​​​将​​​​​​​其​​​​​​​设​​​​​​​定​​​​​​​为​​​​​​​ yesmultipathd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​将​​​​​​​在​​​​​​​删​​​​​​​除​​​​​​​了​​​​​​​最​​​​​​​后​​​​​​​一​​​​​​​个​​​​​​​到​​​​​​​某​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​时​​​​​​​禁​​​​​​​用​​​​​​​查​​​​​​​询​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ no。​​​​​​​
rr_min_io 指​​​​​​​定​​​​​​​在​​​​​​​当​​​​​​​前​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​中​​​​​​​切​​​​​​​换​​​​​​​到​​​​​​​下​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​前​​​​​​​指​​​​​​​向​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​ I/O 请​​​​​​​求​​​​​​​数​​​​​​​目​​​​​​​。​​​​​​​
mode (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​节​​​​​​​点​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​ mode 是​​​​​​​八​​​​​​​进​​​​​​​制​​​​​​​的​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​由​​​​​​​具​​​​​​​体​​​​​​​进​​​​​​​程​​​​​​​决​​​​​​​定​​​​​​​。​​​​​​​
uid (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​节​​​​​​​点​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​用​​​​​​​户​​​​​​​ ID。​​​​​​​您​​​​​​​必​​​​​​​须​​​​​​​使​​​​​​​用​​​​​​​数​​​​​​​字​​​​​​​用​​​​​​​户​​​​​​​ ID。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​由​​​​​​​具​​​​​​​体​​​​​​​进​​​​​​​程​​​​​​​决​​​​​​​定​​​​​​​。​​​​​​​
gid (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​节​​​​​​​点​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​组​​​​​​​群​​​​​​​ ID。​​​​​​​您​​​​​​​必​​​​​​​须​​​​​​​使​​​​​​​用​​​​​​​数​​​​​​​字​​​​​​​组​​​​​​​群​​​​​​​ ID。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​由​​​​​​​具​​​​​​​体​​​​​​​进​​​​​​​程​​​​​​​决​​​​​​​定​​​​​​​。​​​​​​​
以​​​​​​​下​​​​​​​示​​​​​​​例​​​​​​​显​​​​​​​示​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​为​​​​​​​两​​​​​​​个​​​​​​​特​​​​​​​定​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​属​​​​​​​性​​​​​​​。​​​​​​​第​​​​​​​一​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​ WWID 为​​​​​​​ 3600508b4000156d70001200000b0000,符​​​​​​​号​​​​​​​名​​​​​​​称​​​​​​​为​​​​​​​ yellow。​​​​​​​
示​​​​​​​例​​​​​​​中​​​​​​​第​​​​​​​二​​​​​​​个​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​ WWID 为​​​​​​​ 1DEC_____321816758474,符​​​​​​​号​​​​​​​名​​​​​​​称​​​​​​​为​​​​​​​ red。​​​​​​​在​​​​​​​这​​​​​​​个​​​​​​​示​​​​​​​例​​​​​​​中​​​​​​​,rr_weight 属​​​​​​​性​​​​​​​被​​​​​​​设​​​​​​​为​​​​​​​ priorities。​​​​​​​
multipaths {
       multipath {
              wwid                  3600508b4000156d70001200000b0000
              alias                 yellow
              path_grouping_policy  multibus
              path_checker          readsector0
              path_selector         "round-robin 0"
              failback              manual
              rr_weight             priorities
              no_path_retry         5
       }
       multipath {
              wwid                  1DEC_____321816758474
              alias                 red
              rr_weight             priorities
        }
}

4.5. 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​

表 4.3 “设​​​​​​​备​​​​​​​属​​​​​​​性​​​​​​​” shows the attributes that you can set for each individual storage device in the devices section of the multipath.conf configuration file. These attributes are used by DM-Multipath unless they are overwritten by the attributes specified in the multipaths section of the multipath.conf file for paths that contain the device. These attributes override the attributes set in the defaults section of the multipath.conf file.
默​​​​​​​认​​​​​​​情​​​​​​​况​​​​​​​下​​​​​​​,在​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​中​​​​​​​包​​​​​​​括​​​​​​​很​​​​​​​多​​​​​​​支​​​​​​​持​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​这​​​​​​​些​​​​​​​设​​​​​​​备​​​​​​​支​​​​​​​持​​​​​​​的​​​​​​​值​​​​​​​默​​​​​​​认​​​​​​​列​​​​​​​在​​​​​​​ multipath.conf.defaults 文​​​​​​​件​​​​​​​中​​​​​​​。​​​​​​​您​​​​​​​可​​​​​​​以​​​​​​​不​​​​​​​需​​​​​​​要​​​​​​​修​​​​​​​改​​​​​​​这​​​​​​​些​​​​​​​设​​​​​​​备​​​​​​​,但​​​​​​​如​​​​​​​果​​​​​​​修​​​​​​​改​​​​​​​了​​​​​​​这​​​​​​​些​​​​​​​值​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​通​​​​​​​过​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​为​​​​​​​覆​​​​​​​盖​​​​​​​那​​​​​​​些​​​​​​​值​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​添​​​​​​​加​​​​​​​条​​​​​​​目​​​​​​​来​​​​​​​覆​​​​​​​盖​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​。​​​​​​​您​​​​​​​可​​​​​​​以​​​​​​​从​​​​​​​ multipath.conf.defaults 文​​​​​​​件​​​​​​​中​​​​​​​为​​​​​​​设​​​​​​​备​​​​​​​复​​​​​​​制​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​并​​​​​​​覆​​​​​​​盖​​​​​​​那​​​​​​​些​​​​​​​您​​​​​​​想​​​​​​​要​​​​​​​修​​​​​​​改​​​​​​​的​​​​​​​值​​​​​​​。​​​​​​​
要​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​这​​​​​​​个​​​​​​​部​​​​​​​分​​​​​​​添​​​​​​​加​​​​​​​没​​​​​​​有​​​​​​​默​​​​​​​认​​​​​​​自​​​​​​​动​​​​​​​配​​​​​​​置​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​,您​​​​​​​需​​​​​​​要​​​​​​​设​​​​​​​定​​​​​​​ vendor 和​​​​​​​ product 参​​​​​​​数​​​​​​​。​​​​​​​您​​​​​​​可​​​​​​​在​​​​​​​ /sys/block/device_name/device/vendor 和​​​​​​​ /sys/block/device_name/device/model 文​​​​​​​件​​​​​​​中​​​​​​​找​​​​​​​到​​​​​​​这​​​​​​​些​​​​​​​值​​​​​​​,其​​​​​​​中​​​​​​​ device_name 是​​​​​​​要​​​​​​​进​​​​​​​行​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​操​​​​​​​作​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​,示​​​​​​​例​​​​​​​如​​​​​​​下​​​​​​​:
[root@cypher-06 ~]# cat /sys/block/sda/device/vendor
WINSYS  
[root@cypher-06 ~]# cat /sys/block/sda/device/model
SF2372
The additional parameters to specify depend on your specific device. If the device is active/active, you will usually not need to set additional parameters. You may want to set path_grouping_policy to multibus. Other parameters you may need to set are no_path_retry and rr_min_io, as described in 表 4.3 “设​​​​​​​备​​​​​​​属​​​​​​​性​​​​​​​”.
如​​​​​​​果​​​​​​​设​​​​​​​备​​​​​​​是​​​​​​​主​​​​​​​动​​​​​​​/被​​​​​​​动​​​​​​​模​​​​​​​式​​​​​​​,但​​​​​​​它​​​​​​​会​​​​​​​自​​​​​​​动​​​​​​​将​​​​​​​路​​​​​​​径​​​​​​​切​​​​​​​换​​​​​​​到​​​​​​​被​​​​​​​动​​​​​​​路​​​​​​​径​​​​​​​,那​​​​​​​么​​​​​​​您​​​​​​​需​​​​​​​要​​​​​​​将​​​​​​​检​​​​​​​查​​​​​​​器​​​​​​​改​​​​​​​为​​​​​​​一​​​​​​​个​​​​​​​不​​​​​​​需​​​​​​​向​​​​​​​路​​​​​​​径​​​​​​​发​​​​​​​送​​​​​​​ I/O 来​​​​​​​测​​​​​​​试​​​​​​​其​​​​​​​是​​​​​​​否​​​​​​​工​​​​​​​作​​​​​​​(否​​​​​​​则​​​​​​​,您​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​将​​​​​​​一​​​​​​​直​​​​​​​进​​​​​​​行​​​​​​​出​​​​​​​错​​​​​​​冗​​​​​​​余​​​​​​​)的​​​​​​​功​​​​​​​能​​​​​​​。​​​​​​​这​​​​​​​几​​​​​​​乎​​​​​​​意​​​​​​​味​​​​​​​着​​​​​​​您​​​​​​​将​​​​​​​ path_checker 设​​​​​​​为​​​​​​​ tur。​​​​​​​这​​​​​​​对​​​​​​​所​​​​​​​有​​​​​​​支​​​​​​​持​​​​​​​ Test Unit Ready 命​​​​​​​令​​​​​​​的​​​​​​​ SCSI 设​​​​​​​备​​​​​​​都​​​​​​​适​​​​​​​用​​​​​​​。​​​​​​​
If the device needs a special command to switch paths, then configuring this device for multipath requires a hardware handler kernel module. The current hardware handlers are emc and "rdac. If these are not sufficient for your device, you may not be able to configure the device for multipath.

表 4.3. 设​​​​​​​备​​​​​​​属​​​​​​​性​​​​​​​

属​​​​​​​性​​​​​​​ 描​​​​​​​述​​​​​​​
vendor 指​​​​​​​定​​​​​​​ device 采​​​​​​​用​​​​​​​的​​​​​​​存​​​​​​​储​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​零​​​​​​​售​​​​​​​商​​​​​​​名​​​​​​​称​​​​​​​,例​​​​​​​如​​​​​​​ COMPAQ。​​​​​​​
product 指​​​​​​​定​​​​​​​ device 属​​​​​​​性​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​存​​​​​​​储​​​​​​​设​​​​​​​备​​​​​​​产​​​​​​​品​​​​​​​名​​​​​​​,比​​​​​​​如​​​​​​​ HSV110 (C) COMPAQ。​​​​​​​
path_grouping_policy
指​​​​​​​定​​​​​​​用​​​​​​​于​​​​​​​未​​​​​​​指​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​路​​​​​​​径​​​​​​​分​​​​​​​组​​​​​​​策​​​​​​​略​​​​​​​,可​​​​​​​能​​​​​​​的​​​​​​​值​​​​​​​包​​​​​​​括​​​​​​​:
failover = 每​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​
multibus = 所​​​​​​​有​​​​​​​有​​​​​​​效​​​​​​​路​​​​​​​径​​​​​​​在​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​中​​​​​​​
group_by_serial = 每​​​​​​​个​​​​​​​检​​​​​​​测​​​​​​​到​​​​​​​的​​​​​​​系​​​​​​​列​​​​​​​号​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
group_by_prio = 每​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​优​​​​​​​先​​​​​​​值​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
group_by_node_name = 每​​​​​​​个​​​​​​​目​​​​​​​标​​​​​​​节​​​​​​​点​​​​​​​名​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​优​​​​​​​先​​​​​​​组​​​​​​​群​​​​​​​
getuid_callout Specifies the default program and arguments to call out to obtain a unique path identifier. An absolute path is required.
prio_callout Specifies the the default program and arguments to call out to obtain a path weight. Weights are summed for each path group to determine the next path group to use in case of failue. "none" is a valid value.
path_checker 指​​​​​​​定​​​​​​​用​​​​​​​来​​​​​​​确​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​状​​​​​​​态​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​方​​​​​​​法​​​​​​​。​​​​​​​可​​​​​​​能​​​​​​​的​​​​​​​值​​​​​​​包​​​​​​​括​​​​​​​ readsector0 和​​​​​​​ tur、​​​​​​​emc_clariion、​​​​​​​hp_sw 以​​​​​​​及​​​​​​​ directio。​​​​​​​
path_selector 指​​​​​​​定​​​​​​​用​​​​​​​来​​​​​​​确​​​​​​​定​​​​​​​下​​​​​​​一​​​​​​​个​​​​​​​ I/O 操​​​​​​​作​​​​​​​所​​​​​​​使​​​​​​​用​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​算​​​​​​​法​​​​​​​。​​​​​​​
features The extra features of multipath devices. The only existing feature is queue_if_no_path, which is the same as setting no_path_retry to queue. For information on issues that may arise when using this feature, see 第 5.3 节 “Issues with queue_if_no_path feature”.
hardware_handler 指​​​​​​​定​​​​​​​将​​​​​​​在​​​​​​​切​​​​​​​换​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​或​​​​​​​者​​​​​​​处​​​​​​​理​​​​​​​ I/O 错​​​​​​​误​​​​​​​时​​​​​​​用​​​​​​​来​​​​​​​执​​​​​​​行​​​​​​​硬​​​​​​​件​​​​​​​具​​​​​​​体​​​​​​​动​​​​​​​作​​​​​​​的​​​​​​​模​​​​​​​块​​​​​​​。​​​​​​​可​​​​​​​能​​​​​​​的​​​​​​​值​​​​​​​包​​​​​​​括​​​​​​​ 0、​​​​​​​1 emc 和​​​​​​​ 1 rdac。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ 0。​​​​​​​
rr_weight
If set to priorities, then instead of sending rr_min_io requests to a path before calling selector to choose the next path, the number of requests to send is determined by rr_min_io times the path's priority, as determined by the prio_callout program. Currently, there are priority callouts only for devices that use the group_by_prio path grouping policy, which means that all the paths in a path group will always have the same priority.
如​​​​​​​果​​​​​​​将​​​​​​​其​​​​​​​设​​​​​​​为​​​​​​​ uniform,那​​​​​​​么​​​​​​​所​​​​​​​有​​​​​​​路​​​​​​​径​​​​​​​加​​​​​​​权​​​​​​​是​​​​​​​相​​​​​​​等​​​​​​​的​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ uniform。​​​​​​​
no_path_retry
这​​​​​​​个​​​​​​​属​​​​​​​性​​​​​​​的​​​​​​​数​​​​​​​字​​​​​​​值​​​​​​​指​​​​​​​定​​​​​​​系​​​​​​​统​​​​​​​在​​​​​​​禁​​​​​​​用​​​​​​​队​​​​​​​列​​​​​​​前​​​​​​​应​​​​​​​该​​​​​​​试​​​​​​​图​​​​​​​使​​​​​​​用​​​​​​​失​​​​​​​败​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​次​​​​​​​数​​​​​​​。​​​​​​​
fail 值​​​​​​​表​​​​​​​明​​​​​​​立​​​​​​​即​​​​​​​失​​​​​​​败​​​​​​​,无​​​​​​​需​​​​​​​排​​​​​​​队​​​​​​​。​​​​​​​
queue 值​​​​​​​表​​​​​​​明​​​​​​​在​​​​​​​路​​​​​​​径​​​​​​​修​​​​​​​复​​​​​​​前​​​​​​​不​​​​​​​应​​​​​​​停​​​​​​​止​​​​​​​排​​​​​​​队​​​​​​​。​​​​​​​
默​​​​​​​认​​​​​​​至​​​​​​​为​​​​​​​(空​​​​​​​白​​​​​​​)。​​​​​​​
failback
指​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​。​​​​​​​
数​​​​​​​值​​​​​​​ 0 或​​​​​​​者​​​​​​​ immediate 指​​​​​​​定​​​​​​​一​​​​​​​旦​​​​​​​存​​​​​​​在​​​​​​​优​​​​​​​先​​​​​​​权​​​​​​​高​​​​​​​于​​​​​​​现​​​​​​​有​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​,那​​​​​​​么​​​​​​​系​​​​​​​统​​​​​​​将​​​​​​​切​​​​​​​换​​​​​​​到​​​​​​​那​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​。​​​​​​​
大​​​​​​​于​​​​​​​ 0 的​​​​​​​数​​​​​​​字​​​​​​​值​​​​​​​指​​​​​​​定​​​​​​​推​​​​​​​迟​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​,以​​​​​​​秒​​​​​​​表​​​​​​​示​​​​​​​。​​​​​​​
manual 值​​​​​​​表​​​​​​​明​​​​​​​只​​​​​​​能​​​​​​​在​​​​​​​操​​​​​​​作​​​​​​​员​​​​​​​介​​​​​​​入​​​​​​​时​​​​​​​才​​​​​​​会​​​​​​​发​​​​​​​生​​​​​​​出​​​​​​​错​​​​​​​切​​​​​​​换​​​​​​​。​​​​​​​
rr_min_io 指​​​​​​​定​​​​​​​在​​​​​​​当​​​​​​​前​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​中​​​​​​​切​​​​​​​换​​​​​​​到​​​​​​​下​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​前​​​​​​​指​​​​​​​向​​​​​​​一​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​ I/O 请​​​​​​​求​​​​​​​数​​​​​​​目​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ 1000。​​​​​​​
flush_on_last_del (在​​​​​​​ RHEL 5.3 以​​​​​​​及​​​​​​​之​​​​​​​后​​​​​​​的​​​​​​​版​​​​​​​本​​​​​​​中​​​​​​​)如​​​​​​​果​​​​​​​将​​​​​​​其​​​​​​​设​​​​​​​定​​​​​​​为​​​​​​​ yesmultipathd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​将​​​​​​​在​​​​​​​删​​​​​​​除​​​​​​​了​​​​​​​最​​​​​​​后​​​​​​​一​​​​​​​个​​​​​​​到​​​​​​​某​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​时​​​​​​​禁​​​​​​​用​​​​​​​查​​​​​​​询​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​值​​​​​​​为​​​​​​​ no。​​​​​​​
product_blacklist 根​​​​​​​据​​​​​​​产​​​​​​​品​​​​​​​指​​​​​​​定​​​​​​​用​​​​​​​来​​​​​​​将​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​的​​​​​​​常​​​​​​​规​​​​​​​表​​​​​​​达​​​​​​​式​​​​​​​。​​​​​​​
以​​​​​​​下​​​​​​​示​​​​​​​例​​​​​​​显​​​​​​​示​​​​​​​了​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​的​​​​​​​ device 条​​​​​​​目​​​​​​​。​​​​​​​
#	}
#	device {
#		vendor			"COMPAQ  "
#		product			"MSA1000         "
#		path_grouping_policy	multibus
#		path_checker		tur
#		rr_weight		priorities
#	}
#}

第 5 章 DM-Multipath 管​​​​​​​理​​​​​​​及​​​​​​​故​​​​​​​障​​​​​​​排​​​​​​​除​​​​​​​

本​​​​​​​章​​​​​​​提​​​​​​​供​​​​​​​了​​​​​​​在​​​​​​​运​​​​​​​行​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​中​​​​​​​管​​​​​​​理​​​​​​​ DM-Multipath 的​​​​​​​信​​​​​​​息​​​​​​​,其​​​​​​​中​​​​​​​包​​​​​​​括​​​​​​​以​​​​​​​下​​​​​​​部​​​​​​​分​​​​​​​:
  • The Multipath Daemon
  • Issues with Large Number of LUNs
  • Issues with queue_if_no_path feature
  • Multipath Command Output
  • Multipath Queries with multipath Command
  • Multipath Command Options
  • 用​​​​​​​ dmsetup 命​​​​​​​令​​​​​​​进​​​​​​​行​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​查​​​​​​​询​​​​​​​
  • Troubleshooting with the multipathd Interactive Console

5.1. The Multipath Daemon

If you find you have trouble implementing a multipath configuration, you should ensure that the multipath daemon is running, as described in 第 3 章 安​​​​​​​装​​​​​​​ DM-Multipath. The multipathd daemon must be running in order to use multipathed devices.

5.2. Issues with Large Number of LUNs

当​​​​​​​在​​​​​​​某​​​​​​​个​​​​​​​节​​​​​​​点​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​大​​​​​​​量​​​​​​​ LUN 时​​​​​​​,使​​​​​​​用​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​可​​​​​​​明​​​​​​​显​​​​​​​延​​​​​​​长​​​​​​​ udev 设​​​​​​​备​​​​​​​过​​​​​​​滤​​​​​​​器​​​​​​​为​​​​​​​其​​​​​​​生​​​​​​​成​​​​​​​设​​​​​​​备​​​​​​​节​​​​​​​点​​​​​​​所​​​​​​​用​​​​​​​的​​​​​​​时​​​​​​​间​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​您​​​​​​​遇​​​​​​​到​​​​​​​过​​​​​​​这​​​​​​​个​​​​​​​问​​​​​​​题​​​​​​​,您​​​​​​​可​​​​​​​在​​​​​​​ /etc/udev/rules.d/40-multipath.rules 文​​​​​​​件​​​​​​​中​​​​​​​删​​​​​​​除​​​​​​​以​​​​​​​下​​​​​​​行​​​​​​​解​​​​​​​决​​​​​​​这​​​​​​​个​​​​​​​问​​​​​​​题​​​​​​​:
KERNEL!="dm-[0-9]*", ACTION=="add", PROGRAM=="/bin/bash -c '/sbin/lsmod | /bin/grep ^dm_multipath'", RUN+="/sbin/multipath -v0 %M:%m"
这​​​​​​​行​​​​​​​会​​​​​​​在​​​​​​​每​​​​​​​次​​​​​​​向​​​​​​​该​​​​​​​节​​​​​​​点​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​块​​​​​​​设​​​​​​​备​​​​​​​时​​​​​​​让​​​​​​​ udev 设​​​​​​​备​​​​​​​管​​​​​​​理​​​​​​​器​​​​​​​运​​​​​​​行​​​​​​​ multipath。​​​​​​​虽​​​​​​​然​​​​​​​删​​​​​​​除​​​​​​​了​​​​​​​这​​​​​​​一​​​​​​​行​​​​​​​,multipathd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​仍​​​​​​​将​​​​​​​自​​​​​​​动​​​​​​​生​​​​​​​成​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​,在​​​​​​​引​​​​​​​导​​​​​​​过​​​​​​​程​​​​​​​中​​​​​​​仍​​​​​​​将​​​​​​​为​​​​​​​带​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​根​​​​​​​文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​的​​​​​​​节​​​​​​​点​​​​​​​调​​​​​​​用​​​​​​​ multipath。​​​​​​​唯​​​​​​​一​​​​​​​的​​​​​​​改​​​​​​​变​​​​​​​就​​​​​​​是​​​​​​​没​​​​​​​有​​​​​​​运​​​​​​​行​​​​​​​ multipathd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​不​​​​​​​再​​​​​​​自​​​​​​​动​​​​​​​生​​​​​​​成​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​,对​​​​​​​大​​​​​​​多​​​​​​​数​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​用​​​​​​​户​​​​​​​来​​​​​​​说​​​​​​​应​​​​​​​该​​​​​​​不​​​​​​​是​​​​​​​个​​​​​​​问​​​​​​​题​​​​​​​。​​​​​​​

5.3. Issues with queue_if_no_path feature

If features "1 queue_if_no_path" is specified in the /etc/multipath.conf file, then any process that issues I/O will hang until one or more paths are restored. To avoid this, set the no_path_retry N parameter in the /etc/multipath.conf file (where N is the number of times the system should retry a path). When you do, remove the features "1 queue_if_no_path" option from the /etc/multipath.conf as well.
If you need to use the features "1 queue_if_no_path" option and you experience the issue noted here, use the dmsetup command to edit the policy at runtime for a particular LUN (that is, for which all the paths are unavailable). For example, if you want to change the policy on the multipath device mpath2 from "queue_if_no_path" to "fail_if_no_path", execute the following command.
dmsetup message mpath2 0 "fail_if_no_path"
请​​​​​​​注​​​​​​​意​​​​​​​:您​​​​​​​必​​​​​​​须​​​​​​​指​​​​​​​定​​​​​​​ mpathn 别​​​​​​​名​​​​​​​而​​​​​​​不​​​​​​​是​​​​​​​该​​​​​​​路​​​​​​​径​​​​​​​。​​​​​​​

5.4. Multipath Command Output

当​​​​​​​您​​​​​​​生​​​​​​​成​​​​​​​、​​​​​​​修​​​​​​​改​​​​​​​或​​​​​​​者​​​​​​​列​​​​​​​出​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​时​​​​​​​,您​​​​​​​会​​​​​​​获​​​​​​​得​​​​​​​一​​​​​​​个​​​​​​​当​​​​​​​前​​​​​​​设​​​​​​​备​​​​​​​组​​​​​​​成​​​​​​​的​​​​​​​打​​​​​​​印​​​​​​​输​​​​​​​出​​​​​​​,格​​​​​​​式​​​​​​​如​​​​​​​下​​​​​​​。​​​​​​​
对​​​​​​​于​​​​​​​每​​​​​​​个​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​:
 action_if_any: alias (wwid_if_different_from_alias) [size][features][hardware_handler]
对​​​​​​​与​​​​​​​每​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​:
\_ scheduling_policy [path_group_priority_if_known] [path_group_status_if_known]
对​​​​​​​于​​​​​​​每​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​:
\_ host:channel:id:lun devnode major:minor [path_status] [dm_status_if_known]
例​​​​​​​如​​​​​​​,多​​​​​​​路​​​​​​​径​​​​​​​命​​​​​​​令​​​​​​​的​​​​​​​输​​​​​​​出​​​​​​​可​​​​​​​能​​​​​​​是​​​​​​​如​​​​​​​下​​​​​​​形​​​​​​​式​​​​​​​:
mpath1 (3600d0230003228bc000339414edb8101) [size=10 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [prio=1][active]
 \_ 2:0:0:6 sdb 8:16 [active][ready]
\_ round-robin 0 [prio=1][enabled]
 \_ 3:0:0:6 sdc 8:64 [active][ready]
如​​​​​​​果​​​​​​​该​​​​​​​路​​​​​​​径​​​​​​​已​​​​​​​经​​​​​​​启​​​​​​​用​​​​​​​并​​​​​​​准​​​​​​​备​​​​​​​好​​​​​​​进​​​​​​​行​​​​​​​ I/O,那​​​​​​​么​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​状​​​​​​​态​​​​​​​就​​​​​​​是​​​​​​​ ready 或​​​​​​​者​​​​​​​ active。​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​状​​​​​​​态​​​​​​​由​​​​​​​ multipathd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​根​​​​​​​据​​​​​​​在​​​​​​​ /etc/multipath.conf 文​​​​​​​件​​​​​​​中​​​​​​​定​​​​​​​义​​​​​​​的​​​​​​​通​​​​​​​信​​​​​​​间​​​​​​​隔​​​​​​​进​​​​​​​行​​​​​​​周​​​​​​​期​​​​​​​性​​​​​​​更​​​​​​​新​​​​​​​。​​​​​​​
The dm status is similar to the path status, but from the kernel's point of view. The dm status has two states: failed, which is analogous to faulty, and active which covers all other path states. Occasionally, the path state and the dm state of a device will temporarily not agree.

注意

当​​​​​​​生​​​​​​​成​​​​​​​或​​​​​​​者​​​​​​​修​​​​​​​改​​​​​​​一​​​​​​​个​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​时​​​​​​​,路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​状​​​​​​​态​​​​​​​和​​​​​​​ dm 状​​​​​​​态​​​​​​​是​​​​​​​未​​​​​​​知​​​​​​​的​​​​​​​。​​​​​​​同​​​​​​​时​​​​​​​,特​​​​​​​性​​​​​​​也​​​​​​​不​​​​​​​一​​​​​​​定​​​​​​​正​​​​​​​确​​​​​​​。​​​​​​​当​​​​​​​列​​​​​​​出​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​时​​​​​​​,路​​​​​​​径​​​​​​​组​​​​​​​群​​​​​​​优​​​​​​​先​​​​​​​权​​​​​​​是​​​​​​​未​​​​​​​知​​​​​​​的​​​​​​​。​​​​​​​

5.5. Multipath Queries with multipath Command

您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ multipath 命​​​​​​​令​​​​​​​的​​​​​​​ -l 和​​​​​​​ -ll 选​​​​​​​项​​​​​​​来​​​​​​​显​​​​​​​示​​​​​​​现​​​​​​​有​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​。​​​​​​​ -l 选​​​​​​​项​​​​​​​显​​​​​​​示​​​​​​​从​​​​​​​ sysfs 以​​​​​​​及​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​中​​​​​​​收​​​​​​​集​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​拓​​​​​​​补​​​​​​​信​​​​​​​息​​​​​​​。​​​​​​​-ll 选​​​​​​​项​​​​​​​显​​​​​​​示​​​​​​​ -l 显​​​​​​​示​​​​​​​的​​​​​​​所​​​​​​​有​​​​​​​信​​​​​​​息​​​​​​​以​​​​​​​及​​​​​​​该​​​​​​​系​​​​​​​统​​​​​​​额​​​​​​​外​​​​​​​可​​​​​​​用​​​​​​​的​​​​​​​其​​​​​​​它​​​​​​​组​​​​​​​件​​​​​​​。​​​​​​​
当​​​​​​​显​​​​​​​示​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​时​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ multipath 命​​​​​​​令​​​​​​​的​​​​​​​ -v 选​​​​​​​项​​​​​​​指​​​​​​​定​​​​​​​三​​​​​​​种​​​​​​​详​​​​​​​细​​​​​​​等​​​​​​​级​​​​​​​。​​​​​​​指​​​​​​​定​​​​​​​为​​​​​​​ -v0 时​​​​​​​没​​​​​​​有​​​​​​​输​​​​​​​出​​​​​​​。​​​​​​​指​​​​​​​定​​​​​​​为​​​​​​​ -v1 则​​​​​​​只​​​​​​​输​​​​​​​出​​​​​​​生​​​​​​​成​​​​​​​或​​​​​​​者​​​​​​​更​​​​​​​新​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​名​​​​​​​称​​​​​​​。​​​​​​​指​​​​​​​定​​​​​​​ -v2 将​​​​​​​输​​​​​​​出​​​​​​​所​​​​​​​有​​​​​​​检​​​​​​​测​​​​​​​到​​​​​​​的​​​​​​​路​​​​​​​径​​​​​​​、​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​和​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​。​​​​​​​
以​​​​​​​下​​​​​​​示​​​​​​​例​​​​​​​显​​​​​​​示​​​​​​​了​​​​​​​ multipath -l 命​​​​​​​令​​​​​​​的​​​​​​​输​​​​​​​出​​​​​​​。​​​​​​​
# multipath -1
mpath1 (3600d0230003228bc000339414edb8101)
[size=10 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [prio=1][active]
 \_ 2:0:0:6 sdb 8:16 [active][ready]
\_ round-robin 0 [prio=1][enabled]
 \_ 3:0:0:6 sdc 8:64 [active][ready]

5.6. Multipath Command Options

表 5.1. 有​​​​​​​用​​​​​​​的​​​​​​​ multipath 命​​​​​​​令​​​​​​​选​​​​​​​项​​​​​​​

选​​​​​​​项​​​​​​​ 描​​​​​​​述​​​​​​​
-l 显​​​​​​​示​​​​​​​来​​​​​​​自​​​​​​​ sysfs 和​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​的​​​​​​​当​​​​​​​前​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​。​​​​​​​
-ll 显​​​​​​​示​​​​​​​来​​​​​​​自​​​​​​​ sysfs 、​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​以​​​​​​​及​​​​​​​系​​​​​​​统​​​​​​​中​​​​​​​的​​​​​​​其​​​​​​​它​​​​​​​可​​​​​​​用​​​​​​​组​​​​​​​件​​​​​​​的​​​​​​​当​​​​​​​前​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​。​​​​​​​
-f device 删​​​​​​​除​​​​​​​命​​​​​​​名​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​
-F 删​​​​​​​除​​​​​​​所​​​​​​​有​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​

5.7. 使​​​​​​​用​​​​​​​ dmsetup 命​​​​​​​令​​​​​​​确​​​​​​​定​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​条​​​​​​​目​​​​​​​

您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ dmsetup 找​​​​​​​出​​​​​​​哪​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​条​​​​​​​目​​​​​​​与​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​。​​​​​​​
以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​显​​​​​​​示​​​​​​​所​​​​​​​有​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​设​​​​​​​备​​​​​​​及​​​​​​​其​​​​​​​主​​​​​​​、​​​​​​​副​​​​​​​号​​​​​​​码​​​​​​​。​​​​​​​副​​​​​​​号​​​​​​​码​​​​​​​确​​​​​​​定​​​​​​​ dm 设​​​​​​​备​​​​​​​的​​​​​​​名​​​​​​​称​​​​​​​。​​​​​​​例​​​​​​​如​​​​​​​:副​​​​​​​号​​​​​​​码​​​​​​​ 3 与​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​ /dev/dm-3 对​​​​​​​映​​​​​​​。​​​​​​​
# dmsetup ls
mpath2  (253, 4)
mpath4p1        (253, 12)
mpath5p1        (253, 11)
mpath1  (253, 3)
mpath6p1        (253, 14)
mpath7p1        (253, 13)
mpath0  (253, 2)
mpath7  (253, 9)
mpath6  (253, 8)
VolGroup00-LogVol01     (253, 1)
mpath5  (253, 7)
VolGroup00-LogVol00     (253, 0)
mpath4  (253, 6)
mpath1p1        (253, 10)
mpath3  (253, 5)

5.8. Troubleshooting with the multipathd Interactive Console

multipathd -k 命​​​​​​​令​​​​​​​是​​​​​​​一​​​​​​​个​​​​​​​ multipathd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​的​​​​​​​互​​​​​​​动​​​​​​​界​​​​​​​面​​​​​​​。​​​​​​​执​​​​​​​行​​​​​​​此​​​​​​​命​​​​​​​令​​​​​​​将​​​​​​​进​​​​​​​入​​​​​​​互​​​​​​​动​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​控​​​​​​​制​​​​​​​台​​​​​​​。​​​​​​​执​​​​​​​行​​​​​​​此​​​​​​​命​​​​​​​令​​​​​​​后​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​输​​​​​​​入​​​​​​​ help 来​​​​​​​获​​​​​​​得​​​​​​​可​​​​​​​用​​​​​​​的​​​​​​​命​​​​​​​令​​​​​​​列​​​​​​​表​​​​​​​。​​​​​​​您​​​​​​​可​​​​​​​以​​​​​​​输​​​​​​​入​​​​​​​互​​​​​​​动​​​​​​​命​​​​​​​令​​​​​​​,或​​​​​​​者​​​​​​​您​​​​​​​还​​​​​​​可​​​​​​​以​​​​​​​输​​​​​​​入​​​​​​​ CTRL-D 退​​​​​​​出​​​​​​​。​​​​​​​
multipathd 互​​​​​​​动​​​​​​​控​​​​​​​制​​​​​​​台​​​​​​​可​​​​​​​用​​​​​​​来​​​​​​​在​​​​​​​您​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​有​​​​​​​问​​​​​​​题​​​​​​​时​​​​​​​进​​​​​​​行​​​​​​​故​​​​​​​障​​​​​​​排​​​​​​​除​​​​​​​。​​​​​​​例​​​​​​​如​​​​​​​:以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​会​​​​​​​在​​​​​​​退​​​​​​​出​​​​​​​控​​​​​​​制​​​​​​​台​​​​​​​前​​​​​​​显​​​​​​​示​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​,其​​​​​​​中​​​​​​​包​​​​​​​括​​​​​​​默​​​​​​​认​​​​​​​配​​​​​​​置​​​​​​​。​​​​​​​
# multipathd -k
> > show config
> > CTRL-D
以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​确​​​​​​​定​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​已​​​​​​​经​​​​​​​识​​​​​​​别​​​​​​​了​​​​​​​所​​​​​​​有​​​​​​​对​​​​​​​ multipath.conf 的​​​​​​​修​​​​​​​改​​​​​​​。​​​​​​​
# multipathd -k
> > reconfigure
> > CTRL-D
使​​​​​​​用​​​​​​​以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​组​​​​​​​确​​​​​​​定​​​​​​​路​​​​​​​径​​​​​​​检​​​​​​​查​​​​​​​器​​​​​​​工​​​​​​​作​​​​​​​正​​​​​​​常​​​​​​​。​​​​​​​
# multipathd -k
> > show paths
> > CTRL-D

附录 A. 修​​​​​​​订​​​​​​​记​​​​​​​录​​​​​​​

修订历史
修订 3-6.4002013-10-31Rüdiger Landmann
Rebuild with publican 4.0.0
修订 3-62012-07-18Anthony Towns
Rebuild for Publican 3.0
修订 1.0-0Thu Jan 29 2009

索引

B

bindings_file parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​
blacklist
configuration file,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​
default devices,根​​​​​​​据​​​​​​​设​​​​​​​备​​​​​​​名​​​​​​​称​​​​​​​将​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​
device name,根​​​​​​​据​​​​​​​设​​​​​​​备​​​​​​​名​​​​​​​称​​​​​​​将​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​
device type,根​​​​​​​据​​​​​​​设​​​​​​​备​​​​​​​类​​​​​​​型​​​​​​​将​​​​​​​其​​​​​​​加​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​
in configuration file,安​​​​​​​装​​​​​​​ DM-Multipath
WWID,根​​​​​​​据​​​​​​​ WWID 将​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​
blacklist_exceptions section
multipath.conf file,黑​​​​​​​名​​​​​​​单​​​​​​​之​​​​​​​外​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​

C

chkconfig command,安​​​​​​​装​​​​​​​ DM-Multipath
configuration file
alias parameter,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​
bindings_file parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​
blacklist,安​​​​​​​装​​​​​​​ DM-Multipath配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​
failback parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
features parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
flush_on_last_del parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
getuid_callout parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
gid parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​
hardware_handler parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
max_fds parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​
mode parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​
no_path_retry parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
overview,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​总​​​​​​​览​​​​​​​
path_checker parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
path_grouping_policy parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
path_selector parameter,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
polling-interval parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​
prio_callout parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
product parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
product_blacklist parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
queue_without_daemon parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​
rr_min_io parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​
rr_weight parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
selector parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​
udev_dir parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​
uid parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​
user_friendly_names parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​
vendor parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
wwid parameter,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​
configuring
DM-Multipath,安​​​​​​​装​​​​​​​ DM-Multipath

D

defaults section
multipath.conf file,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​
dev/mapper directory,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​识​​​​​​​别​​​​​​​器​​​​​​​
dev/mpath directory,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​识​​​​​​​别​​​​​​​器​​​​​​​
device name,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​识​​​​​​​别​​​​​​​器​​​​​​​
device-mapper-multipath package,安​​​​​​​装​​​​​​​ DM-Multipath
devices
adding,在​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​数​​​​​​​据​​​​​​​库​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
devices section
multipath.conf file,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
DM-Multipath
and LVM,逻​​​​​​​辑​​​​​​​卷​​​​​​​中​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​
components,DM-Multipath 组​​​​​​​件​​​​​​​
configuration file,DM-Multipath 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​
configuring,安​​​​​​​装​​​​​​​ DM-Multipath
definition,设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​
device name,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​识​​​​​​​别​​​​​​​器​​​​​​​
devices,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​
failover,DM-Multipath 总​​​​​​​览​​​​​​​
overview,DM-Multipath 总​​​​​​​览​​​​​​​
redundancy,DM-Multipath 总​​​​​​​览​​​​​​​
setup,安​​​​​​​装​​​​​​​ DM-Multipath
setup, overview,DM-Multipath 安​​​​​​​装​​​​​​​总​​​​​​​览​​​​​​​
dm-multipath kernel module ,DM-Multipath 组​​​​​​​件​​​​​​​
dm-n devices,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​识​​​​​​​别​​​​​​​器​​​​​​​
dmsetup command, determining device mapper entries,使​​​​​​​用​​​​​​​ dmsetup 命​​​​​​​令​​​​​​​确​​​​​​​定​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​条​​​​​​​目​​​​​​​

M

max_fds parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​
mode parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​
modprobe command,安​​​​​​​装​​​​​​​ DM-Multipath
multipath command ,DM-Multipath 组​​​​​​​件​​​​​​​安​​​​​​​装​​​​​​​ DM-Multipath
options,Multipath Command Options
output,Multipath Command Output
queries,Multipath Queries with multipath Command
multipath daemon (multipathd),The Multipath Daemon
multipath devices,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​
logical volumes,逻​​​​​​​辑​​​​​​​卷​​​​​​​中​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​
LVM physical volumes,逻​​​​​​​辑​​​​​​​卷​​​​​​​中​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​
multipath.conf file,存​​​​​​​储​​​​​​​阵​​​​​​​列​​​​​​​支​​​​​​​持​​​​​​​DM-Multipath 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​
blacklist_exceptions section,黑​​​​​​​名​​​​​​​单​​​​​​​之​​​​​​​外​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​
defaults section,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​
devices section,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
multipaths section,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​
multipath.conf.annotated file,DM-Multipath 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​
multipath.conf.defaults file,存​​​​​​​储​​​​​​​阵​​​​​​​列​​​​​​​支​​​​​​​持​​​​​​​DM-Multipath 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​
multipathd
command,Troubleshooting with the multipathd Interactive Console
interactive console,Troubleshooting with the multipathd Interactive Console
multipathd daemon ,DM-Multipath 组​​​​​​​件​​​​​​​
multipathd start command,安​​​​​​​装​​​​​​​ DM-Multipath
multipaths section
multipath.conf file,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​

P

path_checker parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
path_grouping_policy parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
path_selector parameter,多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​配​​​​​​​置​​​​​​​属​​​​​​​性​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
polling_interval parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​
prio_callout parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
product parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​
product_blacklist parameter,配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​设​​​​​​​备​​​​​​​

法律通告

Copyright © 2009 Red Hat, Inc.
This document is licensed by Red Hat under the Creative Commons Attribution-ShareAlike 3.0 Unported License. If you distribute this document, or a modified version of it, you must provide attribution to Red Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be removed.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.