AIX Virtualization - N Port ID Virtualization (NPIV)

NPIV is an acronym for N Port ID Virtualization. N_Port ID Virtualization is a Fibre Channel (FC) industry standard technology that provides the capability to take a physical Fibre Channel Host Bus Adapter (HBA) port and assign it multiple unique world wide port names (WWPNs). The world wide port names can then be assigned to multiple initiators such as Operating Systems. Thus, NPIV allows physical N_Port to be logically partitioned into multiple logical ports/FC addresses so that a physical HBA can support multiple initiators, each with a unique N_Port ID.

Since NPIV provides a direct access to Fiber Channel adapters from multiple client partitions, it simplifies SAN management. Various SAN management tools and best practices can be applied. For example, LUN mapping/masking, fabric zoning and fabric based QoS and accounting can be employed. With NPIV, multiple client partitions can share a bunch of adapters, yet have independent access to their own storage devices. This results in the most efficient adapter utilization.

Correcting a Failed SEA confing in PowerVM on the VIO server

You can troubleshoot errors that occur when you configure a Shared Ethernet Adapter, such as those that result in message 0514-040, by using the lsdev, netstat, and entstat commands.

When you configure a Shared Ethernet Adapter the configuration can fail with the following error: Method error (/usr/lib/methods/cfgsea):

      0514-040 Error initializing a device into the kernel.

To correct the problem, complete the following steps:

lsdev -type adapter
netstat -state

Important: None of the interfaces of the adapters must be listed in the output. If any interface name (for example, en0) does is listed in the output, detach it as follows:

chdev -dev interface_name -attr state=detach

You might want to perform this step from a console connection because it is possible that detaching this interface will end your network connection to the Virtual I/O Server.

entstat -all entX | grep Trunk

Note:

lsdev -dev device_name -attr chksum_offload
chdev -dev device_name -attr chksum_offload=yes
chdev -dev device_name -attr chksum_offload=no
chdev -dev device_name -attr chksum_offload=no
Share Optical Device

If your VIO server has an optical device and you want to share it out to an LPAR, do the following:

prtconf | grep ^"LPAR Info" 2>/dev/null
$ lsmap -all | grep vhost | grep 3$

Note that the partition ID in the right hand column of the lsmap command is in hexadecimal format. Also note that the partition ID will show as zero for an LPAR that is not currently activated

lsdev -type optical
mkvdev -vdev cd0 -vadapter vhost0
lsmap -vadapter vhost0
cfgmgr
lsdev -Cc cdrom
lsdev -Cc cdrom
rmdev -dl cd0
rmdev -dl cd1
cfgmgr
lsdev -Cc cdrom
Unshare Optical Device

Do what you just did above, only backwards.

rmdev -dl cd0
rmdev -dev vtopt0
lsmap -vadapter vhost0
cfgmgr
lsdev | grep cd