[dm-devel] [PATCH 2/2] libmultipath: add %L path wildcard for 64-bit hex LUN

Martin Wilck martin.wilck at suse.com
Thu Feb 10 19:54:24 UTC 2022


On Thu, 2022-02-10 at 12:42 -0600, Benjamin Marzinski wrote:
> On Wed, Feb 09, 2022 at 08:47:13PM +0100, Steffen Maier wrote:
> > Complements v0.6.0 commit
> > 01ab2a468ea2 ("libmultipath: Add additional path wildcards") as
> > well as
> > ("libmultipath: support host adapter name lookup for s390x ccw
> > bus").
> > 
> > With that we can easily get the full FCP addressing triplet
> > (HBA, WWPN, FCPLUN) from multipath tools without additional tools
> > and correlation:
> > 
> > $ multipathd -k'show paths format "%w|%a|%r|%L"'
> > uuid                             |host adapter|target WWPN      
> > |LUN hex
> > 36005076400820293e8000000000000a0|0.0.5080   
> > |0x500507680b25c449|0x00a0000000000000
> > 36005076400820293e8000000000000a0|0.0.5080   
> > |0x500507680b25c448|0x00a0000000000000
> > 36005076400820293e8000000000000a0|0.0.50c0   
> > |0x500507680b26c449|0x00a0000000000000
> > 36005076400820293e8000000000000a0|0.0.50c0   
> > |0x500507680b26c448|0x00a0000000000000
> > 
> > Likewise, add a field lun_hex for JSON path output.
> > 
> Reviewed-by: Benjamin Marzinski <bmarzins at redhat.com>

Reviewed-by: Martin Wilck <mwilck at suse.com>





More information about the dm-devel mailing list