5.8. Multipath Queries with multipath Command
You can use the
-l
and -ll
options of the multipath
command to display the current multipath configuration. The -l
option displays multipath topology gathered from information in sysfs
and the device mapper. The -ll
option displays the information the -l
option displays in addition to all other available components of the system.
当显示多路径配置时,您可以使用
multipath
命令的 -v
选项指定三种详细等级。指定为 -v0
时没有输出。指定为 -v1
则只输出生成或者更新的路径名称。指定 -v2
将输出所有检测到的路径、多路径和设备映射。
以下示例显示了
multipath -l
命令的输出。
# multipath -l
3600d0230000000000e13955cc3757800 dm-1 WINSYS,SF2372
size=269G features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=active
| `- 6:0:0:0 sdb 8:16 active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
`- 7:0:0:0 sdf 8:80 active ready running
The following example shows the output of a
multipath -ll
command.
# multipath -ll
3600d0230000000000e13955cc3757801 dm-10 WINSYS,SF2372
size=269G features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=enabled
| `- 19:0:0:1 sdc 8:32 active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
`- 18:0:0:1 sdh 8:112 active ready running
3600d0230000000000e13955cc3757803 dm-2 WINSYS,SF2372
size=125G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 19:0:0:3 sde 8:64 active ready running
`- 18:0:0:3 sdj 8:144 active ready running