Tuesday 2 April 2013

How to find HBA Card WWPN Address on AIX

We need “WWPN Address” information of HBA card to create zoning on fiber channel switch for  assigning and unassign storage to a AIX host. Once you ask for storage from Storage Team the very first qestion will be what is the “WWPN Address” of HBA cards on your AIX. Now let’s see how to to find “WWPN Address” on AIX server.

Task 1 : Check how many fiber change adapters are there on the Server with below command
lsdev -Cc adapter
Example
um_lpar:/>lsdev -Cc adapter
ent0 Available 04-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent1 Available 04-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent2 Available 05-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent3 Available 05-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
fcs0 Available 06-08 FC Adapter
fcs1 Available 07-08 FC Adapter
ide0 Available 03-08 ATA/IDE Controller Device
sisscsia0 Available 02-08 PCI-X Dual Channel Ultra320 SCSI Adapter
vsa0 Available LPAR Virtual Serial Adapter
Alternatively you can run below command to grep  fiber channel adapter fcs on the system .
um_lpar:/>lsdev -Cc adapter |grep fcs
fcs0 Available 06-08 FC Adapter
fcs1 Available 07-08 FC Adapter

From above we can conclude that we have two fiber channel adapters or HBA cards fcs0 and fcs1
Note : There might be more than two Fiber Channel Adapters on the system  in that case we need to confirm what are the adapters are configured for multipath .  Then you might need to run  commands  specific to Storage vendor like for EMC run ”powermt display dev=all” command. For IBM storage we can use lspath , pcmpath query adapter , datapath query adapter etc.
Task 2 : Locate “Network Address” and it’s correspong numeric value means “WWPN Address” on the configuration details of each fcs adapters as below in yellow color.
um_lpar:/>lscfg -vl fcs0
fcs0 U787B.001.WMW8950-P1-C1-T1 FC AdapterPart Number……………..03N6439
EC Level………………..A
Serial Number……………1B550051EA
Manufacturer…………….001B
Customer Card ID Number…..197E
FRU Number……………… 03N6439
Brand…………………..H0
Device Specific.(ZM)……..3
Network Address………….10000000C94EFB3F
ROS Level and ID…………02881955
Device Specific.(Z0)……..1001206D
Device Specific.(Z1)……..00000000
Device Specific.(Z2)……..00000000
Device Specific.(Z3)……..03000909
Device Specific.(Z4)……..FF801413
Device Specific.(Z5)……..02881955
Device Specific.(Z6)……..06831955
Device Specific.(Z7)……..07831955
Device Specific.(Z8)……..20000000C94EFB3F
Device Specific.(Z9)……..TS1.91A5
Device Specific.(ZA)……..T1D1.91A5
Device Specific.(ZB)……..T2D1.91A5
Device Specific.(ZC)……..00000000
Hardware Location Code……U787B.001.WMW8950-P1-C1-T1
Now let see the configuration details of fcs1
um_lpar:/>lscfg -vl fcs1
fcs1 U787B.001.WMW8950-P1-C2-T1 FC AdapterPart Number……………..80P4543
EC Level………………..A
Serial Number……………1F4360AB91
Manufacturer…………….001F
Customer Card ID Number…..280B
FRU Number……………… 80P4544
Device Specific.(ZM)……..3
Network Address………….10000000C9407EEA
ROS Level and ID…………02881955
Device Specific.(Z0)……..1001206D
Device Specific.(Z1)……..00000000
Device Specific.(Z2)……..00000000
Device Specific.(Z3)……..03000909
Device Specific.(Z4)……..FF801413
Device Specific.(Z5)……..02881955
Device Specific.(Z6)……..06831955
Device Specific.(Z7)……..07831955
Device Specific.(Z8)……..20000000C9407EEA
Device Specific.(Z9)……..TS1.91A5
Device Specific.(ZA)……..T1D1.91A5
Device Specific.(ZB)……..T2D1.91A5
Device Specific.(ZC)……..00000000
Hardware Location Code……U787B.001.WMW8950-P1-C2-T1
In the above two output
Alternatively you can run the below command to grep for “Network Address” on each fiber channel adapter fcs to get “WWPN Address”
um_lpar:/> lscfg -vl fcs0|grep “Network Address”
Network Address………….10000000C94EFB3F
um_lpar:/> lscfg -vl fcs1|grep “Network Address”
Network Address………….10000000C9407EEA
Task 3 : We have got two “WWPN Address” for fcs0 and fcs1 respectively as below
10000000C94EFB3F
10000000C9407EEA

5 comments:

  1. how to find if AIX is having two fabric channel

    ReplyDelete
  2. lscfg -vpl fcs* | egrep '(fcs|Network)'

    ReplyDelete
  3. One liner to make it even easier...

    for i in $(lsdev -Cc adapter |grep fcs|cut -d" " -f1); do echo $i;lscfg -vl $i|grep -i network;done


    It will give you an output like this:

    fcs0
    Network Address.............10000000C9C7DF74
    fcs1
    Network Address.............10000000C9C7DF75
    fcs2
    Network Address.............10000000C9C589F6
    fcs3
    Network Address.............10000000C9C589F7

    ReplyDelete
  4. How to get these info:

    HBA Vendor

    HBA_Driver

    HBA Speed

    Multipathing Soft Name

    Multipathing soft Level

    ReplyDelete