AIX Vio and NPIV
id : oa3oluw5xc
category : computer
blog : unix
created : 06/20/11 - 18:31:07
On Vio Server
On HMC
  • Create one virtual fibre channel server adapter per vio client and per vio server :
    • On virtual adapter tab add a new virtual fibre channel adapter on vios1 :



    • Repeat same operation with differents id on vios2 :



  • Use these commands if you want to do it in command line :
hscroot#

On console
  • Check your virtual adapter, you need to have one vfchost for each Vio Client (in our case we just have one single Vio Client) :
    • Vio server 1 :
vios1@padmin# lsdev -virtual -type adapter | grep vfchost
vfchost0         Available   Virtual FC Server Adapter

    • Vio server 2 :
vios2@padmin# lsdev -virtual -type adapter | grep vfchost
vfchost0         Available   Virtual FC Server Adapter

  • Check fcs are NPIV capable :
    • Vio server 1 :
vios1@padmin# lsdev -type adapter | grep ^fcs
fcs0             Available   8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1             Available   8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
vios1@padmin#  lsnports
name             physloc                        fabric tports aports swwpns  awwpns
fcs0             U5802.001.008D845-P1-C7-T1          1     64     63   2048    2047
fcs1             U5802.001.008D845-P1-C7-T2          0     64     64   2048    2048

  • If fabric = 1 fcs adapter is NPIV capable, in this case fcs0 is NPIV capable and fcs1 is not NPIC capable.
    • Vio server 2 :
vios2@padmin# lsdev -type adapter | grep ^fcs
fcs0             Available   8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1             Available   8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
vios2@padmin# lsnports
name             physloc                        fabric tports aports swwpns  awwpns
fcs0             U5802.001.008D532-P1-C7-T1          1     64     63   2048    2047
fcs1             U5802.001.008D532-P1-C7-T2          0     64     64   2048    2048

  • If fabric = 1 fcs adapter is NPIV capable, in this case fcs0 is NPIV capable and fcs1 is not NPIC capable.
  • Check there is no fcs mapped to your virtual fc adapter :
    • Vio server 1 :
vios1@padmin # lsmap -npiv -all
Name          Physloc                            ClntID ClntName       ClntOS
------------- ---------------------------------- ------ -------------- -------
vfchost0      U9117.MMB.06992CP-V7-C2                 3

Status:NOT_LOGGED_IN
FC name:                        FC loc code:
Ports logged in:0
Flags:1<NOT_MAPPED,NOT_CONNECTED>
VFC client name:                VFC client DRC:

    • Vio server 2 :
lsmap -npiv -all
Name          Physloc                            ClntID ClntName       ClntOS
------------- ---------------------------------- ------ -------------- -------
vfchost0      U9117.MMB.06992CP-V6-C2                 3

Status:NOT_LOGGED_IN
FC name:                        FC loc code:
Ports logged in:0
Flags:1<NOT_MAPPED,NOT_CONNECTED>
VFC client name:                VFC client DRC:

  • Map your fcs NPIV capable to your Virtual fibre channel adapter :
    • Vio server 1 :
vios1@padmin# vfcmap -vadapter vfchost0 -fcp fcs0
vios1@padmin# lsmap -npiv -all
Name          Physloc                            ClntID ClntName       ClntOS
------------- ---------------------------------- ------ -------------- -------
vfchost0      U9117.MMB.06992CP-V7-C2                 3

Status:NOT_LOGGED_IN
FC name:fcs0                    FC loc code:U5802.001.008D845-P1-C7-T1
Ports logged in:0
Flags:4<NOT_LOGGED>
VFC client name:                VFC client DRC:

    • Vio server 2 :
vios2@padmin# vfcmap -vadapter vfchost0 -fcp fcs0
vios2@padmin# lsmap -all -npiv
Name          Physloc                            ClntID ClntName       ClntOS
------------- ---------------------------------- ------ -------------- -------
vfchost0      U9117.MMB.06992CP-V6-C2                 3

Status:NOT_LOGGED_IN
FC name:fcs0                    FC loc code:U5802.001.008D532-P1-C7-T1
Ports logged in:0
Flags:4<NOT_LOGGED>
VFC client name:                VFC client DRC:

  • Boot your Vio client lpar, it'll send a message to san fabric. Then check NPIV state on Vio servers :
    • Vio server 1 :
vios1@padmin# lsmap -all -npiv
Name          Physloc                            ClntID ClntName       ClntOS
------------ ---------------------------------- ------ -------------- -------
vfchost0      U9117.MMB.06992CP-V7-C2                 3 vioc1          AIX

Status:LOGGED_IN
FC name:fcs0                    FC loc code:U5802.001.008D845-P1-C7-T1
Ports logged in:1
Flags:a<LOGGED_IN,STRIP_MERGE>
VFC client name:fcs0            VFC client DRC:U9117.MMB.06992CP-V3-C2-T1

    • Vio server 2 :
vios2@padmin# lsmap -all -npiv
Name          Physloc                            ClntID ClntName       ClntOS
------------- ---------------------------------- ------ -------------- -------
vfchost0      U9117.MMB.06992CP-V6-C2                 3 vioc1          AIX

Status:LOGGED_IN
FC name:fcs0                    FC loc code:U5802.001.008D532-P1-C7-T1
Ports logged in:1
Flags:a<LOGGED_IN,STRIP_MERGE>
VFC client name:fcs1            VFC client DRC:U9117.MMB.06992CP-V3-C3-T1

On Vio Clients
On HMC
  • Create two virtual fibre channel client adapters one pointing on vio server 1 (vios1) and the second pointing on vio server 2 (vios2) :




Boot on san case
  • You have to boot in "Open Firmware", then scan you client vfchost to see virtual WWN on san switch :
    • Select "8" at boot, then ioinfo at 0 prompt :

    • Select a virtual device to enable WWN on san switch :

Naming convention