Parsing the Multipath
Having worked a little with XIV I have come to like the "xiv_devlist" tool. "xiv_devlist" lists all the attached disks on the SAN and the number of paths that are currently active. This is very useful when you want to ensure that all the paths to storage are active. Find latest up-to-date code for this post on my Github profile: https://github.com/linuxplayground/mpath_devlist It surprised me to find that there are no useful tools to parse the output from Multipath. Here is an example: multipath -ll mpath2 (3600507680191014a3800000000000100) dm-7 IBM,2145 [size=40G][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=100][active] \_ 0:0:1:8 sdaa 65:160 [active][ready] \_ 1:0:1:8 sdbk 67:224 [active][ready] \_ round-robin 0 [prio=20][enabled]