aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Pittman <jpittman@redhat.com>2018-07-08 13:21:56 -0400
committerBryn M. Reeves <bmr@redhat.com>2018-09-03 16:51:37 +0100
commite89c7f7744ac4b39956ef3122cdb1489d2676664 (patch)
tree3b9ed1c36a845187966a73f63d5b62c432938c92
parent1cd7711480deae0b12792411f21831d136c61c0c (diff)
downloadsos-e89c7f7744ac4b39956ef3122cdb1489d2676664.tar.gz
[multipath] use -ll for path checker and prio inclusion
The 'multipath -l' command, per the man page, shows the topology as 'fetched in sysfs and the device mapper' and 'multipath -ll' shows the topology from 'all available information'. The '-ll' option, among other things, includes useful items such as prio values and path checkers, without adding much more verbosity. For example, prio value ommission seen below: |-+- policy='service-time 0' prio=0 status=active | |- 2:0:1:2 sdh 8:112 active undef unknown | `- 5:0:1:2 sdal 66:80 active undef unknown `-+- policy='service-time 0' prio=0 status=enabled |- 2:0:0:2 sdc 8:32 active undef unknown `- 5:0:0:2 sdag 66:0 active undef unknown |-+- policy='service-time 0' prio=50 status=active | |- 2:0:1:2 sdh 8:112 active ready running | `- 5:0:1:2 sdal 66:80 active ready running `-+- policy='service-time 0' prio=10 status=enabled |- 2:0:0:2 sdc 8:32 active ready running `- 5:0:0:2 sdag 66:0 active ready running Gather 'multipath -ll' instead of 'multipath -l' as the additional information adds value without additional verbosity. Signed-off-by: John Pittman <jpittman@redhat.com>
-rw-r--r--sos/plugins/multipath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/multipath.py b/sos/plugins/multipath.py
index 8b170c8c..5fdb67ca 100644
--- a/sos/plugins/multipath.py
+++ b/sos/plugins/multipath.py
@@ -22,7 +22,7 @@ class Multipath(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"/etc/multipath.conf"
])
self.add_cmd_output([
- "multipath -l",
+ "multipath -ll",
"multipath -v4 -ll",
"multipathd show config"
])