Wednesday, May 6, 2020

What is NPIV in aix?

What is NPIV in aix?


NPIV  (N_Port ID Virtualization)

The virtual fiber channel adapters support the use of N-Port ID Virtualization (NPIV)

With NPIV, the VIO's role is fundamentally different, The VIOs serving NPIV is a pass through, providing a Fiber channel protocol (FCP) connection from the client to the SAN.

The Virutal Fiber channel adapter capability allows client partitions to access SAN (Storage Area Network) devices using NPIV.  Each partition is identified by a unique WWPN.


Requirements:
============

Not all Fibre channel adapters and SAN Switches support NPIV. 

NPIV capable switches present the virtual WWPN to other SAN switches and devices as if they represent physical FC adapter endpoints.

VIO 2.1.0.10 and AIX oslevel 6.1.2 or 5.3.9
P6 processes based servers.
HMC 7.3.4

Commands
=========

To list the available NPIV capable ports -> #lsnports
To map a virutal FC server adapter to a port of physical hba  -> # vfcmap -vadapter vfchostX -fcp fcs0
To unmap a virutal FC server adapter -> # vfcmap -vadapter vfchostX - fcp
To identify the wwpn ->  # lscfg -vl fcsX
To identify the wwpn using hmc - >  # lshwres -m frame_name -r virtualio --rsubtype fc --level lpar
To View the fibre channel mapping -> # lsmap -all -npiv
To see the virtual FC adapters details  -> # lsdev -vpd|grep vfchost
To see the specific info about vfchostX -> # lsmap -npiv -vadapter vfchostX