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.
When displaying the multipath configuration, there are three verbosity levels you can specify with the
-v
option of the multipath
command. Specifying -v0
yields no output. Specifying -v1
outputs the created or updated multipath names only, which you can then feed to other tools such as kpartx
. Specifying -v2
prints all detected paths, multipaths, and device maps.
The following example shows the output of a
multipath -l
command.
# 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