Determine requirements for and configure NPIV
July 16, 2010 Leave a Comment
N-Port ID Virtualization (NPIV) is an ANSI T11 standard that describes how a single Fibre Channel HBA port can register with the fabric using several worldwide port names (WWPNs). This allows a fabric-attached Nport to claim multiple fabric addresses. Each address appears as a unique entity on the Fibre Channel fabric.
Requirements for Using NPIV
The following requirements exist:
- NPIV can be used on virtual machines with RDM disks.
- The HBAs on your ESX/ESX host must support NPIV.
- Your fiber switches in the fabric must be NPIV-aware.
- When configuring a LUN for NPIV access at the storage level, make sure that the NPIV LUN number and NPIV target ID match the physical LUN and Target ID.
- Use the vSphere Client to manipulate virtual machines with WWNs.
When you use ESX/ESXi with NPIV, the following limitations apply:
- Because the NPIV technology is an extension to the FC protocol, it requires an FC switch and does not work on the direct attached FC disks.
- When you clone a virtual machine or template with a WWN assigned to it, the clones do not retain the WWN.
- NPIV does not support Storage vMotion.
- Disabling and then re-enabling the NPIV capability on an FC switch while virtual machines are running can cause an FC link to fail and I/O to stop.
You can assign a WWN to a new virtual machine with an RDM disk when you create this virtual machine. You can create from 1 to 16 WWN pairs, which can be mapped to the first 1 to 16 physical HBAs on the host.
Procedure
- Open the New Virtual Machine wizard.
- Select Custom, and click Next.
- Follow all steps required to create a custom virtual machine.
- On the Select a Disk page, select Raw Device Mapping, and click Next.
- From a list of SAN disks or LUNs, select a raw LUN you want your virtual machine to access directly.
- Select a datastore for the RDM mapping file. You can place the RDM file on the same datastore where your virtual machine files reside, or select a different datastore. NOTE If you want to use vMotion for a virtual machine with enabled NPIV, make sure that the RDM file is located on the same datastore where the virtual machine configuration file resides.
- Follow the steps required to create a virtual machine with the RDM.
- On the Ready to Complete page, select the Edit the virtual machine settings before completion check box and click Continue. The Virtual Machine Properties dialog box opens.
- Assign WWNs to the virtual machine.
- Click the Options tab, and select Fibre Channel NPIV.
- Select Generate new WWNs.
- Specify the number of WWNNs and WWPNs.
- A minimum of 2 WWPNs are needed to support failover with NPIV. Typically only 1 WWNN is created for each virtual machine.
- Click Finish.
The host creates WWN assignments for the virtual machine.
This information was gathered from the Fibre Channel SAN Configuration Guide






