From 08e4520a4ff839fa540f14697cf99c120dc46818 Mon Sep 17 00:00:00 2001 From: Steffen Maier Date: Thu, 27 Jan 2022 18:11:33 +0100 Subject: [PATCH] dbginfo.sh: add multipath info to map paths to FC addressing and prio group MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Eases mapping of multipath paths and FCP by-path information without having to use different tool output and correlate, such as "multipathd -k'show topo'" and "lszfcp -D". Possibly the HBA is reported as "[undef]" for zfcp [without multipath-tools 0.8.9 commit ("libmultipath: support host adapter name lookup for s390x ccw bus") https://github.com/opensvc/multipath-tools/commit/852a1dfd9488395e9a907ff882a630f11d10935c ] and the FCP LUN needs to be manually converted from the SCSI LUN in h:c:i:l. While at it, append correlation information for block device name and major:minor, as well as all information from a standard 'show paths', which is the path state 3-tuple and next_check, plus the number of path failures. Example output: $ multipathd -k'show paths format "%w|%a|%r|%p|%i|%d|%D|%t|%T|%o|%0|%C"' uuid |host adapter|target WWPN |pri|hcil |dev|dev_t|dm_st |chk_st|dev_st |failures|next_check 3600507640081818ab00000000000025e|[undef] |0x500507680b2581fa|10 |0:0:0:606|sdb|8:16 |active|ready |running|0 |XXXXXX.... 13/20 3600507640081818ab00000000000025e|[undef] |0x500507680b2581fb|50 |0:0:1:606|sdc|8:32 |active|ready |running|0 |XX........ 4/20 3600507640081818ab00000000000025e|[undef] |0x500507680b2681fa|10 |1:0:0:606|sdd|8:48 |active|ready |running|0 |XXXX...... 8/20 3600507640081818ab00000000000025e|[undef] |0x500507680b2681fb|50 |1:0:1:606|sde|8:64 |active|ready |running|0 |XXXXXXX... 15/20 Signed-off-by: Steffen Maier Signed-off-by: Jan Höppner --- scripts/dbginfo.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/dbginfo.sh b/scripts/dbginfo.sh index 4e458b3c..56c83927 100755 --- a/scripts/dbginfo.sh +++ b/scripts/dbginfo.sh @@ -463,6 +463,7 @@ CMDS="${CMDS}\ :multipathd -k'show maps'\ :multipathd -k'show topo'\ :multipathd -k'show paths'\ + :multipathd -k'show paths format %w|%a|%r|%p|%i|%d|%D|%t|%T|%o|%0|%C' | sort\ :multipathd -k'show maps stats'\ :multipathd -k'show maps status'\ :multipathd -k'show status'\