Hello,<br>yesterday I had a problem where a server with 2 Qlogic HBA detected only 2 of the 4 paths it should see.<br>Each HBA is connected to a different fc switch.<br>Each FC switch is connected to the 2 controllers of an IBM DS6800 storage array.<br>
So that in general each disk is seen by 4 paths.<br>System is rh el 5.5 x86_64<br>Something like this for each mpath device normally:<br><br>mpath1 (3600507630efe0b0c0000000000000601) dm-8 IBM,1750500<br>[size=15G][features=1 queue_if_no_path][hwhandler=0][rw]<br>
\_ round-robin 0 [prio=0][active]<br> \_ 1:0:3:2  sdao 66:128 [active][undef]<br> \_ 2:0:3:2  sdaq 66:160 [active][undef]<br>\_ round-robin 0 [prio=0][enabled]<br> \_ 1:0:2:2  sdd  8:48   [active][undef]<br> \_ 2:0:2:2  sdp  8:240  [active][undef]<br>
<br>Yesterday one server was able to see only 2 paths for each mpath device.<br>I had something like this:<br>mpath1 (3600507630efe0b0c0000000000000601) dm-8 IBM,1750500<br>
[size=15G][features=1 queue_if_no_path][hwhandler=0][rw]<br>
\_ round-robin 0 [prio=0][active]<br>
 \_ 1:0:3:2  sdao 66:128 [active][undef]<br>

\_ round-robin 0 [prio=0][enabled]<br>
 \_ 1:0:2:2  sdd  8:48   [active][undef]<br>
<br>I had some problems to identify PCI ID <--> WWPN <--> disk devices associations so that I could give the correct wwpn involved in the problem to the SAN guys for analysis and resolution.<br><br>I took these steps. Could anyone confirm they are ok or provide other analysys information?<br>
<br>a) From above output of "multipath -l", and also from output of "lsscsi" command<br>..<br>[1:0:2:2]    disk    IBM      1750500          .508  /dev/sdd<br>[1:0:2:3]    disk    IBM      1750500          .508  /dev/sde<br>
..<br>[1:0:3:0]    disk    IBM      1750500          .508  /dev/sdal<br>[1:0:3:1]    disk    IBM      1750500          .508  /dev/sdan<br>[1:0:3:2]    disk    IBM      1750500          .508  /dev/sdao<br><br>with only lines of kind "1:0:x:x" I concluded that I had one adapter correctly seeing its 2 paths and the other one seeing nothing.<br>
<br>b) In /var/log/messages I had this, only for one adapter<br>Jul 27 17:54:58 orastud1 kernel: qla2xxx 0000:06:00.0: SNS scan failed -- assuming zero-entry result...<br><br>that confirmed somehow a) conclusion<br><br>Now I had to give wwpn of hba with pci id 0000:06:00.0<br>
I found that this was not so obvious (at least for me)<br><br>c) to see my two wwpn:<br># for i in 1 2 ; do echo "host$i $(cat /sys/class/fc_host/host$i/port_name)"; done<br>host1 0x21000024ff288e04<br>host2 0x21000024ff288e05<br>
<br>ok: how to directly connect hostx with pci 0000:06:00.0 ?<br>lspci  gives:<br>06:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)<br>06:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)<br>
<br>but no "-vv" switch gives the wwpn for them<br>Can I surely say that host1 <--> 06:00.0 and host2 <--> 06:00.1 ?<br>What if the first number in general is not the same (for example first hba 05:00.0 and second 06:00.0)?<br>
<br>d) Basically I went through something like:<br># ls -d /sys/class/fc_transport/target*/device/*/block* | grep sdao<br>/sys/class/fc_transport/target1:0:3/device/1:0:3:2/block:sdao<br># ls -d /sys/class/fc_transport/target*/device/*/block* | grep sdd<br>
/sys/class/fc_transport/target1:0:2/device/1:0:2:2/block:sdd<br><br>Can I say that host1 <--> target1 ? <br>And so that in my case the adapter not seeing the LUNs was host2 ----> wpn 0x21000024ff288e05 ?<br><br>Could I directly say from point a) that the hostx involved is host2 as "multipath -l" only shows 1:x:y:z devices?<br>
And so that  problematic wpn was 0x21000024ff288e05?<br>Anyway, how to associate hostx with pci id? <br><br>Thanks in advance,<br>Gianluca<br><br>