How to map npiv adapters in IBM VIO

root's picture

In the following example, we will map npiv adapters by using 2 VIO servers.
If you do not understand at all what follows, you better not do it :)

1. Create the virtual adapters for both vios and lpar via HMC (graphical or console).

Not covered here yet. You will have to handle this yourself.

2. Map the adapters on VIO1:

List npivs and search for the ones you have created:

lsmap -all -npiv

FC mapping:

$ vfcmap -vadapter vfchost2 -fcp fcs2
$ vfcmap -vadapter vfchost3 -fcp fcs0
Output before mapping:
Name          Physloc                            ClntID ClntName       ClntOS 
------------- ---------------------------------- ------ -------------- -------
vfchost2      U9117.MMB.10402FE-V5-C60                9                 

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:

Name          Physloc                            ClntID ClntName       ClntOS 
------------- ---------------------------------- ------ -------------- -------
vfchost3      U9117.MMB.10402FE-V5-C61                9                 

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:
Output after mapping:
Name          Physloc                            ClntID ClntName       ClntOS 
------------- ---------------------------------- ------ -------------- -------
vfchost2      U9117.MMB.10402FE-V5-C60                9                 

Status:NOT_LOGGED_IN
FC name:fcs2                    FC loc code:U5877.001.0082765-P1-C5-T1
Ports logged in:0
Flags:4<NOT_LOGGED>
VFC client name:                VFC client DRC:

Name          Physloc                            ClntID ClntName       ClntOS 
------------- ---------------------------------- ------ -------------- -------
vfchost3      U9117.MMB.10402FE-V5-C61                9                 

Status:NOT_LOGGED_IN
FC name:fcs0                    FC loc code:U5877.001.0082765-P1-C4-T1
Ports logged in:0
Flags:4<NOT_LOGGED>
VFC client name:                VFC client DRC:

3. Map the adapters on VIO2:

List npivs and search for the ones you have created:

lsmap -all -npiv

FC mapping:

$ vfcmap -vadapter vfchost2 -fcp fcs2
$ vfcmap -vadapter vfchost3 -fcp fcs0
Output before mapping:
Name          Physloc                            ClntID ClntName       ClntOS 
------------- ---------------------------------- ------ -------------- -------
vfchost2      U9117.MMB.10402FE-V4-C60                9                 

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:

Name          Physloc                            ClntID ClntName       ClntOS 
------------- ---------------------------------- ------ -------------- -------
vfchost3      U9117.MMB.10402FE-V4-C61                9                 

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:
Output after mapping:
------------- ---------------------------------- ------ -------------- -------
vfchost2      U9117.MMB.10402FE-V4-C60                9                 

Status:NOT_LOGGED_IN
FC name:fcs2                    FC loc code:U5877.001.0082765-P1-C2-T1
Ports logged in:0
Flags:4<NOT_LOGGED>
VFC client name:                VFC client DRC:

Name          Physloc                            ClntID ClntName       ClntOS 
------------- ---------------------------------- ------ -------------- -------
vfchost3      U9117.MMB.10402FE-V4-C61                9                 

Status:NOT_LOGGED_IN
FC name:fcs0                    FC loc code:U5877.001.0082765-P1-C1-T1
Ports logged in:0
Flags:4<NOT_LOGGED>
VFC client name:                VFC client DRC:

3. Login the adapteres via HMC and list them:

chnportlogin -m GZFRAME1 -p GZAIX99 -o login
lsnportlogin -m GZFRAME1 --filter "lpar_names=GZAIX99"
Execution and output of the above commands:
hscroot@P01HMC02:~> lsnportlogin -m GZFRAME1 --filter "lpar_names=GZAIX99"
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=5,wwpn=d9416324ro2b0010,wwpn_status=2,logged_in=unknown,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=5,wwpn=d9416324ro2b0011,wwpn_status=2,logged_in=unknown,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=6,wwpn=d9416324ro2b0012,wwpn_status=2,logged_in=unknown,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=6,wwpn=d9416324ro2b0013,wwpn_status=2,logged_in=unknown,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=7,wwpn=d9416324ro2b0014,wwpn_status=2,logged_in=unknown,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=7,wwpn=d9416324ro2b0015,wwpn_status=2,logged_in=unknown,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=8,wwpn=d9416324ro2b0016,wwpn_status=2,logged_in=unknown,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=8,wwpn=d9416324ro2b0017,wwpn_status=2,logged_in=unknown,wwpn_status_reason=null
hscroot@P01HMC02B4:~> chnportlogin -m GZFRAME1 -p GZAIX99 -o login
hscroot@P01HMC02B4:~> lsnportlogin -m GZFRAME1 --filter "lpar_names=GZAIX99"
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=5,wwpn=d9416324ro2b0010,wwpn_status=1,logged_in=vios,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=5,wwpn=d9416324ro2b0011,wwpn_status=1,logged_in=vios,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=6,wwpn=d9416324ro2b0012,wwpn_status=1,logged_in=vios,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=6,wwpn=d9416324ro2b0013,wwpn_status=1,logged_in=vios,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=7,wwpn=d9416324ro2b0014,wwpn_status=1,logged_in=vios,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=7,wwpn=d9416324ro2b0015,wwpn_status=1,logged_in=vios,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=8,wwpn=d9416324ro2b0016,wwpn_status=1,logged_in=vios,wwpn_status_reason=null
lpar_name=GZAIX99,lpar_id=9,profile_name=Normal,slot_num=8,wwpn=d9416324ro2b0017,wwpn_status=1,logged_in=vios,wwpn_status_reason=null

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Recent content

root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root