NPIV ( N-PORT ID VIRTUALIZATION IN POWER HYPERVISORE or Virtual Fiber Channel )

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.

Best Practice Consideration:-
From VIOSERVER_01 (Primary VIOSERVER) we will keep odd numbers first adapter would be 125, second adapter 127 ensure this sequence numbers are not in use.
From VIOSERVER_02 (Secondary VIOSERVER) we will keep even number first adapter would be 126 , second adapter 128 ensure this sequence number are not in use.
You have to take care while designing the redundancy part; ensure the redundancy level in VIOSEERVER level as well as SAN switch level as well.

VIOSERVER_01 (Primary VIOSERVER):

Virtual Fiber Channel Adapter: 125 (vfchostX)
Virtual Fiber Channel Adapter: 127 (vfchostX)
Physical Adapter 1:- fcs2 (Fiber Channel cable connected to Primary SAN switch)
Physical Adapter 2:- fcs4 (Fiber Channel cable connected to Secondary SAN switch)

VIOSERVER_02 (Secondary VIOSERVER):

Virtual Fiber Channel Adapter: 126 (vfchostX)
Virtual Fiber Channel Adapter: 128 (vfchostX)
Physical Adapter 1:- fcs2 (Fiber Channel cable connected to Primary SAN switch)
Physical Adapter 2:- fcs4 (Fiber Channel cable connected to Secondary SAN switch)

The above said plan will give you VIOSERVER level redundancy as well as SAN level redundancy.
1-
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
2
STEP 2: Create Virtual Fiber Channel Adapter ( vfchost ) using DLPAR ( Primary VIOSERVER)

Select VIOSERVER and navigate Dynamic Partitioning —> Virtual Adapters
3
STEP 3: Select Action–>Create Virtual Adapter –>Fiber Channel Adapter
4
STEP 4: Create fiber channel adapter as planned select the client name DC-LPAR then click ok.

VFC Adapter Number 1: 125

VFC Adapter Number 2: 127
4-
STEP 5: Verify the created fiber channel adapter
5
STEP 6: Save the VIOSEREVR configuration

VIOSERVER_01 –> Configuration–>Manage Profile
6
STEP 7: Click ok to Continue
7
STEP 8: Create Virtual Fiber Channel Adapter ( vfchost ) using DLPAR ( Secondary VIOSERVER)

Select VIOSERVER and navigate Dynamic Partitioning —> Virtual Adapters
8
STEP 9: Select Action–>Create Virtual Adapter–>Fiber Channel Adapter
9
Create fiber channel adapter as planned select the client name DC-LPAR then click ok.
VFC Adapter Number 1: 126

VFC Adapter Number 2: 128
9-

STEP 10: Verify the created fiber channel adapter
10
STEP 11: Save the VIOSEREVR configuration

VIOSERVER_02 –> Configuration–>Manage Profile
11
STEP 12: Action–>Save Current Configuration
12
STEP 13: Click ok to Continue
13
STEP 14: Check the client partition has the IP address assigned has or not
14
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.
15
STEP 16: Chose Normal Profile.
16
STEP 17: Go to Action –>Create Virtual Adapter –>Fiber Channel Adapter.
17
STEP 18: Create four Virtual Fiber Channel Adapter , two from VIOSERVER_01 and two from VIOSERVER_02.
18
18-
STEP 19: Validate the newly created adapter if everything fine then click of to proceed.
19
STEP 20: Shutdown and Activate to reflect the configuration changes in LPAR. ( Hence we doesn’t has IP Address assigned on client partition )

Choose the Client LPAR–>Operation–>Shutdown.
20
STEP 21: Select Immediate option to Shutdown the client partition.
21
STEP 22: Activate the LPAR Go to Operation–>Action–>Activate–>Profile.
22
STEP 23: Click OK to Activate Profile.
23
STEP 24: Go to LPAR and Configuration–>Manage Profile–>Virtual Adapters.
Verify Created Virtual FC Adapters.
24
STEP 25: Login VIOSERVER_01 and set alias for alias i=/usr/ios/cli/ioscli to execute vio’s command.
25
STEP 26: Login VIOSERVER_02 and set alias for alias i=/usr/ios/cli/ioscli to execute vio’s command.
26
STEP 27: Login the VIOSERVER check your vfchost details through lsmap command
27
STEP 28: You can see the cable connectivity through checking the fabric column.
28
STEP 29: Even you can check through lscfg command to check the vfchosts.
29
STEP 30: Map your adapters, physical adapters along with logical adapters ( vfchost )
MAP THE PRIMARY ADAPTER FC2
30
MAP THE SECONDARY ADAPTER FC4
30-
STEP 31: As soon as , mapping done we could see aports number would be reduce from 64 to 63.
31
STEP 32: Repeat the same procedure for secondary VIOSERVER.
32
STEP 33: We can see the cable connectivity through checking the fabric column.
33
STEP 34: Map your adapters, physical adapters along with logical adapters ( vfchost )
MAP THE PRIMARY ADAPTER FC2
34
MAP THE SECONDARY ADAPTER FC4
34-
STEP 35: As soon as , mapping done we could see aports number would be reduce from 64 to 63.
35
STEP 36: Now login the client partition and list your adapters through lsdev command.
36
STEP 37: Now you have successfully created the fiber channel adapters , provide your WWPN number to storage team to map storage.

1 Comment

  1. Hemant Singh

    Thanks, this is a wonderful post i ever gone through

    Regards
    Hemant Singh

Leave a Comment