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 状态是未知的。同时,特性也不一定正确。当列出多路径设备时,路径组群优先权是未知的。