You are on page 1of 7

2/11/2017 AIX NPIV -- HOWTO - vijay's wiki

Page
Discussion
View source
History

AIX NPIV -- HOWTO


From vijay's wiki

NPIV is the method of vitualizing FC cards. This will enable the client LAPR's to have their 'own' FC card.
This card is virtual, and shared bandwidth with other LPAR that re using the SAME FC card for it I/O. There
can be NPIV and PV backed vscsi virtualization on the same HBA port.

Contents
1 NPIV Benefits
2 Create Vitual devices in client LPAR and VIO
3 Check which physical ports are capable of NPIV
4 Get the WWPN of the Physical adapter
5 list the virtual FC adapters in the VIO
6 Get the List of FC adapters in Client LPAR
7 Get the Fc stats of the Physical FC adapter in VIO
8 Get the WWPN of the Virtual FC adapters from HMC GUI
9 List the Mappings in the VIOs
10 Create the mapping in VIO
11 Check the mapping in the VIO
12 Check the starus of the FC adapter in client LPAR
13 Note on Multipathing
14 Comments

NPIV Benefits
Simplified SAN based administration
Enables access to other SAN based devices like SAN based tape libraries directory from the LPAR
The Client LPAR's admin has better control of the storage devices

To accomplish this, an Virtual FC card is created and mapped to each other (like vscsi) in VIO and Client
LPAR. Then in VIO the physical FC and the virtual LPAR are mapped. This creates a 'highway' of the fc
packets to reach the client LPAR from the physical adapter, while the VIO acting as a pass through device

Typical Architecture of NPIV virtualization

https://wiki.rvijay.in/index.php/AIX_NPIV_--_HOWTO#Check_which_physical_ports_are_capable_of_NPIV 1/7
2/11/2017 AIX NPIV -- HOWTO - vijay's wiki

Create Vitual devices in client LPAR and VIO


use the HMC (via GUI or command line) to create virtual devices. Note the adapter ID's. Make sure that the
adapter ID's cross-match. That is, when creating the client LPAR specify its adapter ID and specify the adapter
ID of the yet to be created VIO adapter ID. Then create the virtual adapter, here specify the adapter id and
adapter ID the client LPAR as specified previously. Thus, we establish one-to-one connectivity between VIO
virtual FC adapter and Server's virtual FC adapter. Also note down the adapter of name of the physical HBA in
VIO.

Example:

https://wiki.rvijay.in/index.php/AIX_NPIV_--_HOWTO#Check_which_physical_ports_are_capable_of_NPIV 2/7
2/11/2017 AIX NPIV -- HOWTO - vijay's wiki

Check which physical ports are capable of NPIV

$ lsnports
name physloc fabric tports aports swwpns awwpns
fcs0 U5877.001.M09J131-P1-C6-T1 1 64 63 2048 2027

Get the WWPN of the Physical adapter


$ lsdev -dev fcs0 -vpd
fcs0 U5877.001.M09J131-P1-C6-T1 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)

Part Number.................10N9824
Serial Number...............1B042042A5
Manufacturer................001B
EC Level....................D77040
Customer Card ID Number.....577D
FRU Number..................10N9824
Device Specific.(ZM)........3
Network Address.............10000000C9A70A4C
ROS Level and ID............02781174
Device Specific.(Z0)........31004549
Device Specific.(Z1)........00000000
Device Specific.(Z2)........00000000
Device Specific.(Z3)........09030909
Device Specific.(Z4)........FF781116
Device Specific.(Z5)........02781174
Device Specific.(Z6)........07731174
Device Specific.(Z7)........0B7C1174
Device Specific.(Z8)........20000000C9A70A4C
Device Specific.(Z9)........US1.11X4
Device Specific.(ZA)........U2D1.11X4
Device Specific.(ZB)........U3K1.11X4
Device Specific.(ZC)........000000EF
Hardware Location Code......U5877.001.M09J131-P1-C6-T1

PLATFORM SPECIFIC

Name: fibre-channel
Model: 10N9824
Node: fibre-channel@0
Device Type: fcp
Physical Location: U5877.001.M09J131-P1-C6-T1

list the virtual FC adapters in the VIO


$ lsdev -type adapter | grep -i vfc
vfchost0 Available Virtual FC Server Adapter

Get the List of FC adapters in Client LPAR


# lsdev -c adapter | grep -i fc
fcs0 Defined 30-T1 Virtual Fibre Channel Client Adapter
fcs1 Defined 31-T1 Virtual Fibre Channel Client Adapter
fcs2 Available 27-T1 Virtual Fibre Channel Client Adapter

Get the Fc stats of the Physical FC adapter in VIO

$ fcstat fcs0

FIBRE CHANNEL STATISTICS REPORT: fcs0

https://wiki.rvijay.in/index.php/AIX_NPIV_--_HOWTO#Check_which_physical_ports_are_capable_of_NPIV 3/7
2/11/2017 AIX NPIV -- HOWTO - vijay's wiki
Device Type: FC Adapter (adapter/pciex/df1000f114108a0)
Serial Number: 1B042042A5
Option ROM Version: 02781174
Firmware Version: U2D1.11X4
World Wide Node Name: 0x20000000C9A70A4C
World Wide Port Name: 0x10000000C9A70A4C

FC-4 TYPES:
Supported: 0x0000012000000000000000000000000000000000000000000000000000000000
Active: 0x0000010000000000000000000000000000000000000000000000000000000000
Class of Service: 3
Port Speed (supported): 8 GBIT
Port Speed (running): 8 GBIT
Port FC ID: 0x72003e
Port Type: Fabric

Seconds Since Last Reset: 11527

Transmit Statistics Receive Statistics


------------------- ------------------
Frames: 203504 542881
Words: 53132288 209518592

LIP Count: 0
NOS Count: 0
Error Frames: 0
Dumped Frames: 0
Link Failure Count: 0
Loss of Sync Count: 10
Loss of Signal: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 32
Invalid CRC Count: 0

IP over FC Adapter Driver Information


No DMA Resource Count: 0
No Adapter Elements Count: 0

FC SCSI Adapter Driver Information


No DMA Resource Count: 0
No Adapter Elements Count: 0
No Command Resource Count: 0

IP over FC Traffic Statistics


Input Requests: 0
Output Requests: 0
Control Requests: 0
Input Bytes: 0
Output Bytes: 0

FC SCSI Traffic Statistics


Input Requests: 65584
Output Requests: 29451
Control Requests: 5579
Input Bytes: 800717661
Output Bytes: 204330544

Get the WWPN of the Virtual FC adapters from HMC GUI


Use HMC GUI

select the profile Name of the LPAR--> properties --> Virtual Adapters --> <select the appropriate Virtual FC
apadpter. The will be listed as client Fibre Channel> --> Actions --> Properties

You should get a box like this

https://wiki.rvijay.in/index.php/AIX_NPIV_--_HOWTO#Check_which_physical_ports_are_capable_of_NPIV 4/7
2/11/2017 AIX NPIV -- HOWTO - vijay's wiki

Give this WWPN to the Storage Administrator to zone the LUN. There are 2 WWPN for the same adapter. The
first one is used for current zoning. The second WWPN is used for Live Partition Mobility

List the Mappings in the VIOs

$ lsmap -all -npiv


Name Physloc ClntID ClntName ClntOS
============= ================================== ====== ============== =======
vfchost0 U8233.E8B.1000A1P-V7-C27 27

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:

make sure that the 'ClntID' matches the LPAR ID

Create the mapping in VIO


$ vfcmap -vadapter vfchost0 -fcp fcs0
vfchost0 changed

Check the mapping in the VIO

$ lsmap -all -npiv


Name Physloc ClntID ClntName ClntOS
============= ================================== ====== ============== =======
vfchost0 U8233.E8B.1000A1P-V7-C27 27 sys414_lpar7 AIX

Status:LOGGED_IN
FC name:fcs0 FC loc code:U5877.001.M09J131-P1-C6-T1
Ports logged in:1
Flags:a<LOGGED_IN,STRIP_MERGE>
VFC client name:fcs2 VFC client DRC:U8233.E8B.1000A1P-V27-C27-T1

Note the 'VFC Client' name, 'ClntName' & Status

Check the starus of the FC adapter in client LPAR

# fcstat fcs2

FIBRE CHANNEL STATISTICS REPORT: fcs2

https://wiki.rvijay.in/index.php/AIX_NPIV_--_HOWTO#Check_which_physical_ports_are_capable_of_NPIV 5/7
2/11/2017 AIX NPIV -- HOWTO - vijay's wiki

Device Type: Virtual Fibre Channel Client Adapter (adapter/vdevice/IBM,vfc-client)


Serial Number: UNKNOWN
Option ROM Version: UNKNOWN
ZA: UNKNOWN
World Wide Node Name: 0xC050760114FC020A
World Wide Port Name: 0xC050760114FC020A

FC-4 TYPES:
Supported: 0x0000010000000000000000000000000000000000000000000000000000000000
Active: 0x0000010000000000000000000000000000000000000000000000000000000000
Class of Service: 3
Port Speed (supported): UNKNOWN
Port Speed (running): 8 GBIT
Port FC ID: 0x721096
Port Type: Fabric

Seconds Since Last Reset: 0

Transmit Statistics Receive Statistics


------------------- ------------------
Frames: 0 0
Words: 0 0

LIP Count: 0
NOS Count: 0
Error Frames: 0
Dumped Frames: 0
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0

IP over FC Adapter Driver Information


No DMA Resource Count: 0
No Adapter Elements Count: 0

FC SCSI Adapter Driver Information


No DMA Resource Count: 0
No Adapter Elements Count: 0
No Command Resource Count: 0

IP over FC Traffic Statistics


Input Requests: 0
Output Requests: 0
Control Requests: 0
Input Bytes: 0
Output Bytes: 0

FC SCSI Traffic Statistics


Input Requests: 0
Output Requests: 0
Control Requests: 0
Input Bytes: 0
Output Bytes: 0

Now the mapping is complete. Ask the storage admin to assign a LUN and verify if you can see the LUN

Note on Multipathing
With the Storage being presented to the LPAR. If there are multiple virtual HBA's (as is usually the case)
Multipathing software need to be installed in the client LPAR. This multipathing software can be a vendor
specific multipathing (EX: powerpath)

https://wiki.rvijay.in/index.php/AIX_NPIV_--_HOWTO#Check_which_physical_ports_are_capable_of_NPIV 6/7
2/11/2017 AIX NPIV -- HOWTO - vijay's wiki

Comments
{{#widget:DISQUS |id=vijaywiki |uniqid=AIX NPIV -- HOWTO
|url=https://wiki.rvijay.in/index.php/AIX_NPIV_--_HOWTO }}

Retrieved from "https://wiki.rvijay.in/index.php?title=AIX_NPIV_--_HOWTO&oldid=387"

This page was last modified on 13 August 2013, at 11:57.

https://wiki.rvijay.in/index.php/AIX_NPIV_--_HOWTO#Check_which_physical_ports_are_capable_of_NPIV 7/7

You might also like