[dm-devel] [PATCH] add a cmd to display the topology links

Martin Wilck mwilck at suse.com
Tue Aug 21 13:31:02 UTC 2018


Hello Guan,

On Tue, 2018-08-07 at 11:03 +0800, guanjunxiong 00401709 wrote:
> From: dingwenyi 00297106 <dingwenyi at huawei.com>
> 
> This patch adds a new parameter which named -k to display links
> information in the multipath command.
> Command 'multipath -k' display paths with the same host wwn and
> target wwn as one link information.
> The cmd display the following information to quickly and easily find
> the host and target information.
> [root at localhost mp]# ./multipath -k
> link host_wwnn=0x20000024ff2e8092 host_wwpn=0x21000024ff2e8092
> target_wwnn=0x2100333435363738 target_wwpn=0x2201333435363738
> link host_wwnn=0x20000024ff2e8092 host_wwpn=0x21000024ff2e8092
> target_wwnn=0x2100333435363738 target_wwpn=0x2211333435363738

Thanks for the patch. But I have to say I see little value in adding
this option to multipath. What's wrong with simply running 
"multipathd list paths format %N %R %n %r", or wrapping that command in
a simple shell script? Actually, this has nothing to do with multipath
at all, it's really transport-related information similar to 
"lsscsi -t" output.

Regards,
Martin

-- 
Dr. Martin Wilck <mwilck at suse.com>, Tel. +49 (0)911 74053 2107
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)





More information about the dm-devel mailing list