DATA CENTER How to Configure NPIV in a Microsoft Hyper-V Environment Designed for Windows System Administrators and Storage Administrators, this document provides guidelines for configuring Microsoft Hyper-V using N_Port ID Virtualization (NPIV) with a Brocade Host Bus Adapter (HBA).
DATA CENTER TECHNICAL BRIEF CONTENTS Introduction........................................................................................................................................................................................................................................ 3 About NPIV ..................................................................................................................................................................... 3 Test Configuration.............................
DATA CENTER TECHNICAL BRIEF INTRODUCTION This document is a guide to configuring Microsoft® Hyper-V using NPIV with a Brocade® Fibre Channel to PCIe Host Bus Adapter (HBA). It will help you understand what you need to consider before deploying this solution and how to implement and diagnose NPIV with Hyper-V. It is designed for Windows System Administrators and Storage Administrators.
DATA CENTER TECHNICAL BRIEF TEST CONFIGURATION The test infrastructure, shown in Figure 2, included four servers: Windows Domain Controller (DC) Microsoft SQL Server, SCOM, and SCVMM server (referenced as the “management server”) on Windows 2008 Standard (64 bit) Two servers with Hyper-V on Windows 2008 Enterprise Edition (64 bit) All servers had patches applied that were available on 2/26/2009, with the Hyper-V servers having additional patches as recommended in Microsoft KB articles.
DATA CENTER TECHNICAL BRIEF Virtual and Passthrough Disks When you are using a virtual disk, the configuration files and the virtual disk file itself are all placed in the same LUN. So when you design the LUN, you need to take into account the memory (for the .bin file), .vsv files, and the size of the disk you want to use. Note that you will lose some disk space when you initialize the disk and change the disk to a Globally Unique Identifier (GUID) partition.
DATA CENTER TECHNICAL BRIEF Configuring the Host 1. 2. 3. Disable automount: turn off automount for the disks on each host. (VMM automatically mounts the appropriate volumes for you during the migration process. You should not attempt to manually mount volumes that have previously been migrated using Disk Manager.
DATA CENTER 3. TECHNICAL BRIEF In the Virtual Port Creation dialog, enter the symbolic name and name of the guest that will be used to store the guest and click OK. You will see that the NPIV port has been created, and flagged with a special icon Configuring Zoning 1. On the Brocade 5100, create an alias and zone with that virtual port and storage, but do not to add the host WWN to the zone. The only two things in that zone will be the new NPIV port and the storage.
DATA CENTER TECHNICAL BRIEF Configuring Storage 1. On the storage, add the virtual port to the LUN that will contain the guest. You do not need to add the physical port to the LUN. 2. Once you have zoned and presented the LUN to the virtual port, at least two LUNS will be displayed on the virtual port in Brocade HCM. LUN 0, the controller, is listed first and then all of the other LUNS presented to the virtual port NOTE: You do not have to use a unique LUN ID.
DATA CENTER TECHNICAL BRIEF viii. When you create a GPT partition, some space is offset so that the storage aligns to the correct block. This means that the primary partition is usually 2. To format the new partition, type: list partition To make sure that the second partition is the one you want: type: select partition 2 ix.
DATA CENTER TECHNICAL BRIEF Using Virtual Disks For performance reasons, it is recommended that you use a fixed disk. When choosing the size of the disk, make sure to take into account the associated files for virtual disks. When you get to the screen prompting for the host on which to place the guest, make sure you pick the one that has the virtual port active. When you are prompted for a location for the files, click Browse and select the LUN created earlier.
DATA CENTER TECHNICAL BRIEF VERIFYING THAT NPIV IS WORKING The quickest way to se if NPIV is working is to make sure that the LUN(s) being used by a guest are not displayed under any other ports in Brocade HCM. Also make sure that the physical hosts are not zoned to the storage and that only the virtual ports are. Also, make sure that only virtual ports have access to the LUN in the storage administration software. 1. From SCVMM, find the host and disk that are being used by the guest. 2.
DATA CENTER TECHNICAL BRIEF To get this detail, run the FOS CLI command nsShow on the switch. In this example, the source is the virtual port 28:92:00:05:1E:65:8A:CB (Physical Disk 3). nsShow displays a lot of detail, so to help find the information, use nsshow | more This displays the data one page at a time. In this example, these are the details for the source ID (the Hyper-V guest).