NPIV
The MZ510 supports the NPIV feature. This feature allows you to create multiple virtual N_Port IDs on the MZ510 and assign them to VMs. This section uses Windows, Linux, and VMware ESXi as an example.
Windows or Linux
To create NPIV virtual ports for the MZ510 in Windows or Linux, use OneCommand Manager (OCM) provided by Emulex.
The following procedure uses Windows and an OCM version that supports the GUI. The procedure in Linux is similar.
- Install MZ510 on the server and connect the server to storage.
- Install a Windows operating system.
- Upload the driver and the OCM installation package to the server.
- Install and configure OCM.
- Click Install.
- Select Full Management.
- Click Install.
- After installing OCM, open it from the desktop or the C:\Program Files\Emulex\Util\OCManager directory.
To open OCM in Linux, run the /usr/sbin/ocm/ocmanager command.
- Enable NPIV on OCM.
Before using OCM to create a virtual port in Windows or Linux, NPIV must be enabled. The NPIV parameter name varies with the OS and is enableNPIV in this example.
- Choose View > Group Adapters by Host Name or click
on the tool bar.
- In the left pane, select a host for which you want to enable NPIV.
- Click the Driver Parameters tab.
- In the Driver Parameters area, set EnableNPIV to enable.
- Click Apply.
- Choose View > Group Adapters by Host Name or click
- Close the tool and restart the OS so that the NPIV configuration takes effect.
- Open OCM again.
- Create an NPIV port on OCM.
- Choose View > Group Adapters by Virtual Ports or click
on the tool bar.
- Select an FC or FCoE port in the left panel.
- In the New Virtual Ports area, select Auto-generate world wide port name or Use the following world-wide port name to generate an FC or FCoE WWPN.
- If you select Auto-generate world wide port name, OCM will generate a unique WWPN automatically.
- If you select Use the following world-wide port name, you need to manually enter a unique WWPN.
A valid WWPN complies with one of the following formats:
- 10:00:xx:xx:xx:xx:xx:xx
- 2x:xx:xx:xx:xx:xx:xx:xx
- 3x:xx:xx:xx:xx:xx:xx:xx
- 5x:xx:xx:xx:xx:xx:xx:xx
In the formats, x indicates a hexadecimal integer.
- (Optional) Enter the port name.
- Click Create Virtual Port to create a virtual port.
- If the virtual port is created successfully, a success message is displayed.
- If a message is displayed indicating that the WWPN has been used, enter a different WWPN.
- Click OK. The created virtual port is added to the corresponding physical port in the left panel.
- Choose View > Group Adapters by Virtual Ports or click
VMware ESXi
The following describes how to apply NPIV on the MZ510 in VMware. You can create multiple NPIVs on the MZ510 and allocate them to VMs.
- Install ESXi 5.1 on the compute node and the vSphere Client on the PC.
- Create a VM, and add an LUN of the FC disk array to the VM on the vSphere Client. For details, see section VMware Applications.
- On the vSphere Client, select VM_2, power off the VM, click Edit virtual machine settings, and click the Options tab. On the tab page displayed, select Fibre Channel NPIV, and select Generate new WWNs, as shown in Figure 5-33. You need to set only one WWNN (WWN of a node) and one or two WWPNs (WWN of a port) for implementing path redundancy.
- After NPIV is created, the Edit virtual machine settings window is displayed. You can see the NPIV WWN, as shown in Figure 5-34.
- Power on VM_2. NPIV registers with the FCF and FC disk array, and then exits because the NPIV WWNs have not been mounted to the LUN of the FC disk array.
- Find the NPIV WWPN on the FC disk array. If a disk array has connection records, you can find the NPIV WWPN directly. If a disk array records only connected initiators, you need to manually add the NPIV WWPN. On the FC disk array, allocate a LUN to NPIV. Ensure that the LUN is the same as the LUN mounted by the VM. Reset the VM after the configuration is complete. Then you can see that NPIV has been registered with the FCF and FC disk array and that the mounted LUN is displayed in the VM OS, as shown in Figure 5-35.
In the FCF, you can allocate zones by WWN to isolate VMs. Note that the NPIV port, the MZ510 physical port, and the connected FC disk array port must be in the same zone.