Guest

Cisco Unified Computing System

Windows 2012 NPIV on UCS Configuration Example

Techzone Article content

Document ID: 116471

Updated: Sep 12, 2013

Contributed by Felipe de Mello, Cisco TAC Engineer.

   Print

Introduction

This document describes how to configure Windows Server 2012 N_Port ID Virtualization (NPIV) on Unified Computing System (UCS) Version 2.1(2a). With this feature, a Virtual Machine (VM) that runs on a server can share a single adapter, and still have independent access to its own protected storage.

Prerequisites

Requirements

Cisco recommends that you have knowledge of these topics:

  • Windows Fabric Network Interface Controller (fNIC) Driver Compatible with UCS Manager (UCSM) Version 2.1(2)
  • UCSM Version 2.1(2) Virtual Interface Card (VIC) Firmware Image
  • UCSM Version 2.1(2) on Fabric Interconnect/ I/O Modules (IOMs)
  • Hyper-V 2012 and Windows 2012 Guests

Components Used

The information in this document is based on these software and hardware versions:

  • Hyper-V Version 3.0
  • Windows Server 2012
  • NetApp Storage
  • UCS Chassis, Fabric Interconnects, and B-Series Servers
  • Cisco Nexus 5000 Series Switches

The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.

Configure

Complete these steps in order to configure NPIV:

  1. From a UCS perspective, you must configure your service profile with two Virtual Host Bus Adapters (vHBAs), one for each fabric. This image shows the vHBAs for one service profile. You can correlate the World Wide Port Names (WWPNs) with the service profile in the output that is shown later in the document.



  2. Configure your Virtual Storage Area Network (VSAN) from Hyper-V Manager. You must create two VSANs, one for each fabric. When you create a VSAN in other Hyper-V hosts, ensure that you use the same names; otherwise, Live Migration does not work. Click the host, and then click Virtual SAN Manager...



  3. Create a new Fibre Channel SAN called FabricA, and select the World Wide Node Name (WWNN)/WWPN that corresponds to vHBA0-FabricA.



  4. Add FabricB, and select the WWNN/WWPN that corresponds to vHBA1-FabricB.



  5. Configure the settings for the Windows Server 2012 VM, and add two fibre channel adapters. With the VM powered off, right-click and choose Settings. This is done with the Failover Cluster Manager because these hosts are part of a cluster.



  6. Click Add Hardware, select Fibre Channel Adapter, and click Add.



  7. Select Virtual SAN FabricA for the first adapter, and Virtual SAN FabricB for the second adapter.



    Thess images show both adapters and their respective WWNNs/WWPNs.





    Each adapter has two sets of WWNN/WWPN. These are used by Hyper-V during a Live Migration. This image shows how these are used in the Live Migration process.



    Source: Hyper-V Virtual Fibre Channel Overview 



    The Verify section shows the flogi database during the Live Migration process so you can see both WWPNs for the adapter flogi during the process.

    Here is an example of how the Nexus 5000 Series switch might look (zoning for WWPNs of the UCS vHBAs are not shown):

    ! Zoning for HYVERTEST Fabric A

    fcalias name HYPERVTEST vsan 10
    member pwwn c0:03:ff:69:d1:5c:00:0e
    member pwwn c0:03:ff:69:d1:5c:00:0f

    zone name HYPERVTEST_to_NetApp1 vsan 10
    Member fcalias HYPERVTEST
    Member fcalias NetApp1

    zoneset name HyperVZoneset1 vsan 10
    member HYPERVTEST_to_NetApp1

    zoneset activate name HyperVZoneset1 vsan 10


    !Zoning for HYPERVTEST Fabric B

    fcalias name HYPERVTEST vsan 11
    member pwwn c0:03:ff:69:d1:5c:00:10
    member pwwn c0:03:ff:69:d1:5c:00:11

    zone name HYPERVTEST_to_NetApp2 vsan 11
    Member fcalias HYPERVTEST
    Member fcalias NetApp2

    zoneset name HypervZoneset2 vsan 11
    member HYPERVTEST_to_NetApp2

    zoneset activate name HyperVZoneset2 vsan 11


  8. Add the WWPNs to NetApp in order to make sure they can access the Logical Unit Numbers (LUNs).



Verify

If everything is configured correctly, you should see a flogi entry in the flogi database for the UCS vHBAs and the VM fibre channel adapters.

NEXUS1# show flogi database
--------------------------------------------------------------------------------
Interface VSAN FCID Port Name Node Name
--------------------------------------------------------------------------------
fc1/31 10 0x930001 50:0a:09:83:8d:80:b7:ae 50:0a:09:80:8d:80:b7:ae
fc1/32 10 0x930000 50:0a:09:84:9d:80:b7:ae 50:0a:09:80:8d:80:b7:ae
San-po31 10 0x930002 24:1f:54:7f:ee:57:1d:c0 20:0a:54:7f:ee:57:1d:c1
San-po31 10 0x930003 20:00:00:25:b5:02:a0:8f 20:00:00:25:b5:02:00:8f <vHBA0-FabricA
San-po31 10 0x930004 20:00:00:25:b5:02:a0:9f 20:00:00:25:b5:02:00:9f
San-po31 10 0x930005 20:00:00:25:b5:02:a0:6f 20:00:00:25:b5:02:00:6f
San-po31 10 0x930006 20:00:00:25:b5:02:a0:7f 20:00:00:25:b5:02:00:7f
San-po31 10 0x930007 20:00:00:25:b5:02:a0:4f 20:00:00:25:b5:02:00:4f
San-po31 10 0x930008 20:00:00:25:b5:02:a0:5f 20:00:00:25:b5:02:00:5f
San-po31 10 0x930009 c0:03:ff:69:d1:5c:00:0e c0:03:ff:00:00:ff:ff:00 <Set A for Adapter FabricA
NEXUS2# show flogi database
--------------------------------------------------------------------------------
Interface VSAN FCID Port Name Node Name
--------------------------------------------------------------------------------
fc1/31 11 0x9f0001 50:0a:09:84:8d:80:b7:ae 50:0a:09:80:8d:80:b7:ae
fc1/32 11 0x9f0000 50:0a:09:83:9d:80:b7:ae 50:0a:09:80:8d:80:b7:ae
San-po32 11 0x9f0002 24:20:54:7f:ee:57:1a:80 20:0b:54:7f:ee:57:1a:81
San-po32 11 0x9f0003 20:00:00:25:b5:02:b1:8f 20:00:00:25:b5:02:00:8f <vHBA1-FabricB
San-po32 11 0x9f0004 20:00:00:25:b5:02:b1:9f 20:00:00:25:b5:02:00:9f
San-po32 11 0x9f0005 20:00:00:25:b5:02:b1:6f 20:00:00:25:b5:02:00:6f
San-po32 11 0x9f0006 20:00:00:25:b5:02:b1:7f 20:00:00:25:b5:02:00:7f
San-po32 11 0x9f0007 20:00:00:25:b5:02:b1:4f 20:00:00:25:b5:02:00:4f
San-po32 11 0x9f0008 20:00:00:25:b5:02:b1:5f 20:00:00:25:b5:02:00:5f
San-po32 11 0x9f000b c0:03:ff:69:d1:5c:00:10 c0:03:ff:00:00:ff:ff:00 <Set A for Adapter FabricB

In order to show the LUN, open the Disk Management in the guest VM, and enter the rescan disks command. If the LUN appears twice, Multipath I/O (MPIO) is not enabled.

During a Live Migration, you should see the WWPN for both Address Set A and Address Set B in each of the switches.

NEXUS1# show flogi database
--------------------------------------------------------------------------------
Interface VSAN FCID Port Name Node Name
--------------------------------------------------------------------------------
fc1/31 10 0x930001 50:0a:09:83:8d:80:b7:ae 50:0a:09:80:8d:80:b7:ae
fc1/32 10 0x930000 50:0a:09:84:9d:80:b7:ae 50:0a:09:80:8d:80:b7:ae
San-po31 10 0x930002 24:1f:54:7f:ee:57:1d:c0 20:0a:54:7f:ee:57:1d:c1
San-po31 10 0x930003 20:00:00:25:b5:02:a0:8f 20:00:00:25:b5:02:00:8f
San-po31 10 0x930004 20:00:00:25:b5:02:a0:9f 20:00:00:25:b5:02:00:9f
San-po31 10 0x930005 20:00:00:25:b5:02:a0:6f 20:00:00:25:b5:02:00:6f
San-po31 10 0x930006 20:00:00:25:b5:02:a0:7f 20:00:00:25:b5:02:00:7f
San-po31 10 0x930007 20:00:00:25:b5:02:a0:4f 20:00:00:25:b5:02:00:4f
San-po31 10 0x930008 20:00:00:25:b5:02:a0:5f 20:00:00:25:b5:02:00:5f
San-po31 10 0x930009 c0:03:ff:69:d1:5c:00:0e c0:03:ff:00:00:ff:ff:00 <Address Set A
San-po31 10 0x93000a c0:03:ff:69:d1:5c:00:0f c0:03:ff:00:00:ff:ff:00 <Address Set B
NEXUS2# show flogi database
--------------------------------------------------------------------------------
Interface VSAN FCID Port Name Node Name
--------------------------------------------------------------------------------
fc1/31 11 0x9f0001 50:0a:09:84:8d:80:b7:ae 50:0a:09:80:8d:80:b7:ae
fc1/32 11 0x9f0000 50:0a:09:83:9d:80:b7:ae 50:0a:09:80:8d:80:b7:ae
San-po32 11 0x9f0002 24:20:54:7f:ee:57:1a:80 20:0b:54:7f:ee:57:1a:81
San-po32 11 0x9f0003 20:00:00:25:b5:02:b1:8f 20:00:00:25:b5:02:00:8f
San-po32 11 0x9f0004 20:00:00:25:b5:02:b1:9f 20:00:00:25:b5:02:00:9f
San-po32 11 0x9f0005 20:00:00:25:b5:02:b1:6f 20:00:00:25:b5:02:00:6f
San-po32 11 0x9f0006 20:00:00:25:b5:02:b1:7f 20:00:00:25:b5:02:00:7f
San-po32 11 0x9f0007 20:00:00:25:b5:02:b1:4f 20:00:00:25:b5:02:00:4f
San-po32 11 0x9f0008 20:00:00:25:b5:02:b1:5f 20:00:00:25:b5:02:00:5f
San-po32 11 0x9f000b c0:03:ff:69:d1:5c:00:10 c0:03:ff:00:00:ff:ff:00 <Address Set A
San-po32 11 0x9f000c c0:03:ff:69:d1:5c:00:11 c0:03:ff:00:00:ff:ff:00 <Address Set B

Troubleshoot

If a Live Migration fails with the message, "Synthetic FibreChannel Port: Failed to finish reserving resources," verify that the WWPNs are added correctly to the SAN switches and the storage target.

Related Information

Updated: Sep 12, 2013
Document ID: 116471