In this post i will share with you some tips to configure NPIV on VIO. NPIV is very usefull on VIO and can reduce overhead for administering storage on the VIO. Opposed to virtual SCSI, NPIV help storage admin to have full visibility on the LPARs storage disks.
First check fc ports on vio servers that support NPIV using lsnports command. This command also displays the remaining number of WWN that can be assigned by this FC adapter.
$ lsnports
name physloc fabric tports aports swwpns awwpns
fcs0 U5803.001.91800ZL-P2-C3-T1 1 64 64 2048 2047
fcs1 U5803.001.91800ZL-P2-C3-T2 1 64 63 2048 2046
fcs2 U5803.001.91800ZL-P2-C5-T1 1 64 64 2048 2047
fcs3 U5803.001.91800ZL-P2-C5-T2 1 64 64 2048 2047
fcs4 U5803.001.91800ZL-P2-C6-T1 1 64 64 2048 2047
To map virtual FC adapter vfchost4 to Physical FC adapter fcs1 type:
$vfcmap -vadapter vfchost4 -fcp fcs1
Know check if the mapping was successful, type:
$lsmap -all -npiv | more
Name Physloc ClntID ClntName ClntOS
————- ———————————- —— ————– ——-
vfchost4 U9119.FHA.44337FA-V2-C165 160 WASUAT AIX
Status:LOGGED_IN
FC name:fcs1 FC loc code:U5803.001.91800ZL-P2-C3-T2
Ports logged in:1
Flags:a<LOGGED_IN,STRIP_MERGE>
VFC client name:fcs0 VFC client DRC:U9119.FHA.44337FA-V160-C5
In some cases you may want to remove the connection between Virtual FC adapter and the physical adapter, type
$ vfcmap -vadapter vfchost4 -fcp
Know check again that it was unmapped.
$lsmap -all -npiv | more
Name Physloc ClntID ClntName ClntOS
————- ———————————- —— ————– ——-
vfchost4 U9119.FHA.44337FA-V2-C165 160
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:
For more info about tips for implementing NPIV on VIO, check this article on IBM Developer Works.
http://www.ibm.com/developerworks/aix/library/au-NPIV/