On 08/07/2018 05:03 AM, guanjunxiong 00401709 wrote:

> 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@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


This info, in plain text, and a lot more can be extracted from /sys.


There is a tool, systool, to beautify the output:

systool -v -c fc_host
systool -v -c fc_remote_ports
systool -v -c fc_transport
systool -v -c scsi_host
systool -v -c scsi_disk
systool -v -b scsi
systool -v -m lpfc # emulex
systool -v -m qla2xxx # qlogic

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Reply via email to