Re: Match zFCP lun to device

2015-09-17 Thread Christer Solskogen
On Thu, Sep 17, 2015 at 3:59 PM, Benjamin Block wrote: > 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

Re: Match zFCP lun to device

2015-09-17 Thread Mark Post
>>> On 9/17/2015 at 07:14 AM, Christer Solskogen wrote: > Is there a simple way of matching /dev/sdX to the correct FCP lun? lszfcp -HDP > tempfile lsscsi | while read hcd ibm model something devname; do base=$(echo $hcd | cut -c2-17) ; echo $devname $(grep $base tempfile | cut -f1 -d" " | tr

Re: Match zFCP lun to device

2015-09-17 Thread Benjamin Block
Hej, On 14:48 Thu 17 Sep , Christer Solskogen wrote: > On Thu, Sep 17, 2015 at 1:40 PM, Berthold Gunreben wrote: > > On Thu, 17 Sep 2015 13:14:07 +0200 > > Christer Solskogen wrote: > > > >> Is there a simple way of matching /dev/sdX to the correct FCP lun? > > > > I guess you are searching

Re: Match zFCP lun to device

2015-09-17 Thread Christer Solskogen
On Thu, Sep 17, 2015 at 1:40 PM, Berthold Gunreben wrote: > On Thu, 17 Sep 2015 13:14:07 +0200 > Christer Solskogen 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 > >

Re: Match zFCP lun to device

2015-09-17 Thread Christer Solskogen
On Thu, Sep 17, 2015 at 1:28 PM, Pedro Henrique dos Santos Principeza wrote: > Christer, > > I believe the command: > > # lsluns -a > > May show what you're looking for. Here: Almost. It lists the luns, but not which device they are match to (only some ambiguous /dev/sdg* device) -- chs

Re: Match zFCP lun to device

2015-09-17 Thread Berthold Gunreben
On Thu, 17 Sep 2015 13:14:07 +0200 Christer Solskogen 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 no

Re: Match zFCP lun to device

2015-09-17 Thread Pedro Henrique dos Santos Principeza
LINUX-390@VM.MARIST.EDU Date: 17/09/2015 08:15 Subject: Match zFCP lun to device Sent by:Linux on 390 Port Is there a simple way of matching /dev/sdX to the correct FCP lun? -- chs -- For LINUX-390 subs

Match zFCP lun to device

2015-09-17 Thread Christer Solskogen
Is there a simple way of matching /dev/sdX to the correct FCP lun? -- chs -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://w