From e89c7f7744ac4b39956ef3122cdb1489d2676664 Mon Sep 17 00:00:00 2001 From: John Pittman Date: Sun, 8 Jul 2018 13:21:56 -0400 Subject: [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 --- sos/plugins/multipath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ]) -- cgit