Hej,

On 14:48 Thu 17 Sep     , Christer Solskogen wrote:
> On Thu, Sep 17, 2015 at 1:40 PM, Berthold Gunreben <[email protected]> wrote:
> > On Thu, 17 Sep 2015 13:14:07 +0200
> > Christer Solskogen <[email protected]> wrote:
> >
> >> Is there a simple way of matching /dev/sdX to the correct FCP lun?
> >
> > I guess you are searching for something like
> >
> > lszfcp -D
> >
> > combined with
> >
> > multipath -ll
> >
> > Don't know if a command combines that directly. However, you probably
> > should not use /dev/sdX anyways, because with FCP you want to use
> > multipath. Instead, you can use
> >
> > /dev/disk/by-id/dm-uuid-mpath-<id_from_multipath-ll>
> >
> 
> Ah, yes. But that's the next part :-) Map  luns to which
> multipath-devices. But that's easy.
> 

lszfcp and lsluns are good points to start at.

If you only have the device-node name at hand and you want to know the
LUN for investigation purposes or something the like, you could also ask
udev to tell you its mapping for the node name:

       udevadm info /dev/sda | grep zfcp

This will tell you the paths under which you'd find the device within
the `/dev/disk/...` structure. The last part of those names are the LUNs
atm. But these are udev-internals, so you don't want to use this in
scripts or the like, because it could change how udev combines the names.



                                                    Beste Grüße / Best regards,
                                                      - Benjamin Block
-- 
Linux on z Systems Development         /         IBM Systems & Technology Group
                  IBM Deutschland Research & Development GmbH
                Vorsitzende des Aufsichtsrats: Martina Koederitz
       Geschäftsführung: Dirk Wittkopp / Sitz der Gesellschaft: Böblingen
               Registergericht: Amtsgericht Stuttgart, HRB 243294

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to