Npiv (N-Port Id Virtualization in Power Hypervisore or Virtual Fiber Channel)
Npiv (N-Port Id Virtualization in Power Hypervisore or Virtual Fiber Channel)
PowerVM
NPIV is of the best way to optimize SAN infrastructure in IBM p-Series as well as in IBM i-Series. Normally if you look at highly critical applications actual data resides in
SAN. But actual size would be very low I mean total allocated storage space on client ( partition/lpar/dlpar) is minimal it can be less than TB ( Terra Bytes ) in-order to make
storage connectivity you need two fiber channel adapters and two SAN switch ports ( considering the redundancy ) it would cost you more. If we calculate total SAN
allocation will cost you more. To overcome this kind of requirement and optimizing SAN infrastructure NPIV is the best option.
NPIV works as like SCSI adapter which allows multiple client partition can be access to the fiber channel adapter directly which means that actual physical adapter will be
present in to VIOSERVERS and logical entity will be created and mapped to client partitions hence in VIOSERVERS physical adapters works in pass-through mode and
actual I/O traffic routed through POWER hypervisor.
The virtual fiber channel adapters are shown in client end as like a physical device, I mean which will give you the care make, model and vendor details etc…
Once you create virtual fiber channel adapter two there will be a two WWPN will be created, first one created with starting latter “C” which is used for disk or tape allocation
etc …… second one is used for LPM activities.
Limitations & Consideration:-
Use one logical adapter from one physical adapter per client (ensure client gets multiple logical adapter from different physical adapter), incase physical adapter fails actual
impact will be minimal if we use multiple physical adapter to create logical adapters.
Maximum we can create 64 active virtual fiber channel adapters from one physical fiber channel adapter. (Through lsnports command we can check this limitation in
“aports” column)
Before starting NPIV plan ensure Fiber Channel adapter and storage switch is supported for NPIV.
The above said plan will give you VIOSERVER level redundancy as well as SAN level redundancy.
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 1/14
3/23/2020 NPIV , NPIV in AIX , NPIV Configuration
Considering that VIOSERVER has been installed and NPIV supported Fiber Channel adapter available, client partition profile has been created.
STEP 1: Check attached Fiber Channel adapter has NPIV capability through lsnports command
STEP 2: Create Virtual Fiber Channel Adapter ( vfchost ) using DLPAR ( Primary VIOSERVER)
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 2/14
3/23/2020 NPIV , NPIV in AIX , NPIV Configuration
STEP 4: Create fiber channel adapter as planned select the client name DC-LPAR then click ok.
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 3/14
3/23/2020 NPIV , NPIV in AIX , NPIV Configuration
STEP 8: Create Virtual Fiber Channel Adapter ( vfchost ) using DLPAR ( Secondary VIOSERVER)
Create fiber channel adapter as planned select the client name DC-LPAR then click ok.
VFC Adapter Number 1: 126
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 4/14
3/23/2020 NPIV , NPIV in AIX , NPIV Configuration
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 5/14
3/23/2020 NPIV , NPIV in AIX , NPIV Configuration
STEP 14: Check the client partition has the IP address assigned has or not
Partition has IP address then we can create through dlpar otherwise we have to put the entry in profile needs to reflect the change we needs to restart the partition.
STEP 15: Choose the partition go Configuration –>Manage Profiles to add the virtual fiber channel entry.
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 6/14
3/23/2020 NPIV , NPIV in AIX , NPIV Configuration
STEP 18: Create four Virtual Fiber Channel Adapter , two from VIOSERVER_01 and two from VIOSERVER_02.
STEP 19: Validate the newly created adapter if everything fine then click of to proceed.
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 7/14
3/23/2020 NPIV , NPIV in AIX , NPIV Configuration
STEP 20: Shutdown and Activate to reflect the configuration changes in LPAR. ( Hence we doesn’t has IP Address assigned on client partition )
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 8/14
3/23/2020 NPIV , NPIV in AIX , NPIV Configuration
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 9/14
3/23/2020 NPIV , NPIV in AIX , NPIV Configuration
STEP 25: Login VIOSERVER_01 and set alias for alias i=/usr/ios/cli/ioscli to execute vio’s command.
STEP 26: Login VIOSERVER_02 and set alias for alias i=/usr/ios/cli/ioscli to execute vio’s command.
STEP 27: Login the VIOSERVER check your vfchost details through lsmap command
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 10/14
3/23/2020 NPIV , NPIV in AIX , NPIV Configuration
STEP 28: You can see the cable connectivity through checking the fabric column.
STEP 29: Even you can check through lscfg command to check the vfchosts.
STEP 30: Map your adapters, physical adapters along with logical adapters ( vfchost )
MAP THE PRIMARY ADAPTER FC2
STEP 31: As soon as , mapping done we could see aports number would be reduce from 64 to 63.
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 11/14
3/23/2020 NPIV , NPIV in AIX , NPIV Configuration
STEP 33: We can see the cable connectivity through checking the fabric column.
STEP 34: Map your adapters, physical adapters along with logical adapters ( vfchost )
MAP THE PRIMARY ADAPTER FC2
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 12/14
3/23/2020 NPIV , NPIV in AIX , NPIV Configuration
STEP 35: As soon as , mapping done we could see aports number would be reduce from 64 to 63.
STEP 36: Now login the client partition and list your adapters through lsdev command.
STEP 37: Now you have successfully created the fiber channel adapters , provide your WWPN number to storage team to map storage.
1 Comment
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 13/14
3/23/2020 NPIV , NPIV in AIX , NPIV Configuration
Regards
Hemant Singh
www.unixdcbees.com/npiv-n-port-id-virtualization-in-power-hypervisore-or-virtual-fiber-channel/ 14/14