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

Guan Junxiong guanjunxiong at huawei.com
Fri Aug 24 06:50:58 UTC 2018


Hi,Martin
Thanks for your reply.
The command "multipathd list paths format %N %R %n %r" or "lsscsi -t" shows all the paths.
The new command "multipath -k" removes the path of information with the same host wwn and
target wwn, only display the different physical path which is between a server and the
storage device in storage networking. We think this command will make it easier to observe
physical path information.

Best regards.


On 2018/8/21 21:31, Martin Wilck wrote:
> 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
> 




More information about the dm-devel mailing list