Configuring and Troubleshooting N-Port ID Virtualization ESXi 5.1



Similar documents
Multipathing Configuration for Software iscsi Using Port Binding

Setup for Failover Clustering and Microsoft Cluster Service

Setup for Failover Clustering and Microsoft Cluster Service

Setup for Failover Clustering and Microsoft Cluster Service

Best Practices Guide: Network Convergence with Emulex LP21000 CNA & VMware ESX Server

Upgrading Horizon Workspace

Configuration Maximums VMware Infrastructure 3

N_Port ID Virtualization

Using VMware ESX Server with IBM System Storage SAN Volume Controller ESX Server 3.0.2

Configuration Maximums VMware vsphere 4.1

Configuration Maximums VMware vsphere 4.0

Setup for Failover Clustering and Microsoft Cluster Service

Setup for Failover Clustering and Microsoft Cluster Service

Configuration Maximums

SAN Conceptual and Design Basics

Setup for Failover Clustering and Microsoft Cluster Service

Configuration Maximums

Legacy Host Licensing with vcenter Server 4.x ESX 3.x/ESXi 3.5 and vcenter Server 4.x

SAN Implementation Course SANIW; 3 Days, Instructor-led

Storage Protocol Comparison White Paper TECHNICAL MARKETING DOCUMENTATION

vrealize Operations Manager Customization and Administration Guide

Using VMware ESX Server With Hitachi Data Systems NSC or USP Storage ESX Server 3.0.2

Fibre Channel HBA and VM Migration

EMC ViPR Controller. User Interface Virtual Data Center Configuration Guide. Version REV 01

VMware vsphere 5.0 Evaluation Guide

vsphere Host Profiles

Installing and Configuring vcenter Multi-Hypervisor Manager

HBA Virtualization Technologies for Windows OS Environments

ESX 4 Patch Management Guide ESX 4.0

Setup for Failover Clustering and Microsoft Cluster Service

Setup for Microsoft Cluster Service ESX Server and VirtualCenter 2.0.1

Optimized Storage I/O for HPE Virtual Server Environments

Managing Multi-Hypervisor Environments with vcenter Server

Configuration Maximums

VMware vcenter Configuration Manager SQL Migration Helper Tool User's Guide vcenter Configuration Manager 5.6

InForm OS 2.2.3/2.2.4 VMware ESX Server QLogic/Emulex HBA Implementation Guide

EMC Host Connectivity Guide for VMware ESX Server

Emulex 8Gb Fibre Channel Expansion Card (CIOv) for IBM BladeCenter IBM BladeCenter at-a-glance guide

Setup for Failover Clustering and Microsoft Cluster Service

QNAP in vsphere Environment

What s New in VMware vsphere 5.5 Networking

HUAWEI SAN Storage Host Connectivity Guide for VMware

Fibre Channel and Converged Network Adapters for VMware ESX/ESXi 4.0

Direct Attached Storage

HP Converged Infrastructure Solutions

vcenter Support Assistant User's Guide

Configuring Cisco Nexus 5000 Switches Course DCNX5K v2.1; 5 Days, Instructor-led

Oracle Database Scalability in VMware ESX VMware ESX 3.5

Application Note. Introduction. Instructions

IBM Flex System FC port 16Gb FC Adapter IBM Redbooks Product Guide

How To Use The Cisco Mds F Bladecenter Switch For Ibi Bladecenter (Ibi) For Aaa2 (Ibib) With A 4G) And 4G (Ibb) Network (Ibm) For Anaa

Configuration Examples and Troubleshooting for VMDirectPath VMware ESX 4.x

The HBAs tested in this report are the Brocade 825 and the Emulex LPe12002 and LPe12000.

MAC Address Management

vsphere Client Hardware Health Monitoring VMware vsphere 4.1

Customer Education Services Course Overview

Installing and Configuring vcloud Connector

VMware Remote Console for vrealize Automation

VMware vcloud Automation Center 6.0

Configuration Maximums

How To Use A Virtualization Server With A Sony Memory On A Node On A Virtual Machine On A Microsoft Vpx Vx/Esxi On A Server On A Linux Vx-X86 On A Hyperconverged Powerpoint

Fibre Channel SAN Configuration Guide ESX Server 3.5, ESX Server 3i version 3.5 VirtualCenter 2.5

Configuring iscsi Multipath

Using esxtop to Troubleshoot Performance Problems

What s New in VMware vsphere 4.1 Storage. VMware vsphere 4.1

Enabling NetFlow on Virtual Switches ESX Server 3.5

Using Raw Device Mapping

Setup for Failover Clustering and Microsoft Cluster Service

VMware vcenter Discovered Machines Import Tool User's Guide Version for vcenter Configuration Manager 5.3

VMware vsphere Examples and Scenarios

Brocade Enterprise 20-port, 20-port, and 10-port 8Gb SAN Switch Modules IBM BladeCenter at-a-glance guide

FUJITSU Storage ETERNUS Multipath Driver (Windows Version) Installation Information

SAP Solutions on VMware Infrastructure 3: Customer Implementation - Technical Case Study

vsphere Upgrade Update 1 ESXi 6.0 vcenter Server 6.0 EN

VMware vsphere VMFS-5 Upgrade Considerations

Ethernet-based Storage Configuration

End Your Data Center Logging Chaos with VMware vcenter Log Insight

Solution Guide: Brocade Server Application Optimization for a Scalable Oracle Environment

Using the vcenter Orchestrator Plug-In for vsphere Auto Deploy 1.0

Virtual Machine Backup Guide

Configuring VMware vsphere 5.1 with Oracle ZFS Storage Appliance and Oracle Fabric Interconnect

Configuring Single Sign-on from the VMware Identity Manager Service to AirWatch Applications

Dell FlexAddress for PowerEdge M-Series Blades

Frequently Asked Questions: EMC UnityVSA

ThinPrint GPO Configuration for Location-Based Printing

vsphere Upgrade vsphere 6.0 EN

Best Practices for Patching VMware ESX/ESXi VMware ESX 3.5/ESXi 3.5

Brocade Network Advisor: CLI Configuration Manager

vsphere Storage ESXi 6.0 vcenter Server 6.0 EN

Configuring Single Sign-on from the VMware Identity Manager Service to WebEx

Command-Line Tool for View Manager View Manager 4.0

Configuring Single Sign-on from the VMware Identity Manager Service to Dropbox

Upgrading VMware Identity Manager Connector

VMware Virtual Desktop Manager User Authentication Guide

Configuring Single Sign-on from the VMware Identity Manager Service to Amazon Web Services

vsphere Networking ESXi 5.0 vcenter Server 5.0 EN

Offline Data Transfer to VMWare vcloud Hybrid Service

Solution Brief Availability and Recovery Options: Microsoft Exchange Solutions on VMware

ClearPass Policy Manager 6.3

Transcription:

Technical Note Configuring and Troubleshooting N-Port ID Virtualization ESXi 5.1 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 N port to claim multiple fabric addresses. Each address appears as a unique entity on the Fibre Channel fabric. The primary source of information on configuring NPIV in a vsphere environment is the vsphere Storage documentation, available on the VMware Web site. This technical note provides additional details about certain specific NPIV configurations and information on diagnostic techniques that might be helpful as you configure NPIV. It also includes information to help you understand error messages that might appear as you are working with NPIV in a vsphere environment. This technical note includes the following topics: Enabling the NPIV Feature on a Fibre Channel Port on a Brocade Switch on page 1 Identifying HBAs in a Host System on page 2 Confirming That I/O Traffic Goes Through an NPIV HBA on page 2 Confirming Creation of a VPORT on page 3 Interpreting Error Messages on page 4 Enabling the NPIV Feature on a Fibre Channel Port on a Brocade Switch If you are using a Brocade switch, be sure that the NPIV capability is enabled on the switch. You can determine the status with the following command: admin> portcfgshow 0 If the NPIV capability is enabled, the results of the portcfgshow 0 command include the following line: NPIV capability ON If the NPIV capability is not enabled, enable it with the portcfgnpivport command. portcfgnpivport Command Usage portcfgnpivport <PortNumber> <Mode> Table 1. portcfgnpivport Modes Mode Meaning 0 Disable the NPIV capability on the port 1 Enable the NPIV capability on the port VMware, Inc. 1

portcfgnpivport Command Example portcfgnpivport 0 1 Identifying HBAs in a Host System The sections that follow include sample commands with specific values identifying the HBAs in the example host systems. To determine what specific values to use in those commands, you can check the /proc file system. With ESXi, /proc nodes and commands are not available unless you have the ESXi Shell enabled. To determine the types of HBAs in the system Enter the following command: # ls /proc/scsi Depending on the version of your host, the two supported HBA brands, QLogic and Emulex, are identified differently. Table 2. HBAs That Support NPIV Supported HBAs ESX/ESXi 3.5 ESX/ESXi 4.x and ESXi 5.x Emulex lpfc_740 lpfc820 QLogic qla2300_707_vmw qla2xxx To determine instance numbers for the cat commands Enter one of the following commands, depending on the type of HBA in your system. The output of the ls command includes a number for each active HBA in the system. You use this number in the cat commands shown in the following sections. Table 3. HBA ls Commands Supported HBAs QLogic Emulex Commands ls /proc/scsi/qla2xxx ls /proc/scsi/lpfc820 Confirming That I/O Traffic Goes Through an NPIV HBA You can check to be sure I/O traffic is actually going through an NPIV HBA in various ways. For example, you can check the Fibre Channel switch traffic on the virtual port. Another approach is to use the ESXi Shell to check the /proc nodes of the HBA to get the reqs details. For example, a QLogic HBA updates the Total reqs value when I/O goes through that HBA. In the following command, replace the final number 6 with the number of the HBA you want to check. You can determine the number to use by following the instructions in Identifying HBAs in a Host System on page 2. # cat /proc/scsi/qla2xxx/6 Virtual Port 1 SCSI LUN Information: ( 0:10): Total reqs 10, Pending reqs 0, flags 0x0, 2:0:1000, VMware, Inc. 2

Confirming Creation of a VPORT You can use various methods to be sure a VPORT is created when an NPIV enabled virtual machine is powered on. To use the esxcli command For ESXi 5.x hosts, use the vsphere CLI to run the esxcli storage core adapter list command. The following sample output indicates that VPORTs are present. vmhba34 lpfc820 link-up fc.2024000c29889a28:2824000c29889a28 () virtual vmhba35 lpfc820 link-up fc.2024000c29889a28:2824000c29889a29 () virtual If you use ESXi Shell, you can run the cat command to check the /proc nodes of the physical HBA for the VPORT. To check the /proc nodes of QLogic HBAs For QLogic, run the following command. Replace the final number with the number of the HBA you want to check. You can determine the number to use by following the instructions in Identifying HBAs in a Host System on page 2. # cat /proc/scsi/qla2xxx/# FC Port Information for Virtual Ports: Virtual Port index = 1 Virtual Port 1:VP State = <ACTIVE>, Vp Flags = 0x0 scsi-qla2-port-3=500601609020fd54:500601601020fd54:a00000:1000: 1; scsi-qla2-port-4=500601609020fd54:500601681020fd54:a10000:1000: 1; Virtual Port 1 SCSI LUN Information: ( 0:10): Total reqs 10, Pending reqs 0, flags 0x0, 2:0:1000, To check the /proc nodes of Emulex HBAs For Emulex, run the following command. Replace the final number with the number of the HBA you want to check. You can determine the number to use by following the instructions in Identifying HBAs in a Host System on page 2. # cat /proc/scsi/lpfc820/3 SLI Rev: 3 NPIV Supported: VPIs max 127 VPIs used 1 RPIs max 512 RPIs used 13 Vports list on this physical port: Vport DID 0x2f0901, vpi 1, state 0x20 Portname: 48:19:00:0c:29:00:00:0d Nodename: 48:19:00:0c:29:00:00:0b You can also check the Fibre Channel switches for the WWPN of the VPORT. To check the Brocade switch for the VPORT WWPN 1 Run the switchshow command: admin> switchshow... 17 17 id N2 Online F-Port 10:00:00:00:c9:36:5a:bb 18 18 id N4 Online F-Port 2 NPIV public 19 19 id N4 Online F-Port 2 NPIV public 20 20 id N2 Online F-Port 10:00:00:00:c9:4e:ab:da VMware, Inc. 3

2 Run the portloginshow command: admin> portloginshow 18 Type PID World Wide Name credit df_sz cos ===================================================== fe 4f1201 28:24:00:0c:29:88:9a:28 16 2048 c scr=3 fe 4f1200 10:00:00:00:c9:50:ee:66 16 2048 c scr=3 ff 4f1201 28:24:00:0c:29:88:9a:28 12 2048 c d_id=fffffc ff 4f1200 10:00:00:00:c9:50:ee:66 12 2048 c d_id=fffffc You can also use the nsshow command. admin> nsshow Type Pid COS PortName NodeName TTL(sec) N a00401; 3;28:d9:00:0c:29:00:02:97;28:d9:00:0c:29:00:01:97; na Fabric Port Name: 20:04:00:05:1e:02:6e:0f Permanent Port Name: 28:d9:00:0c:29:00:02:97 <<== Vport WWPN Port Index: 4 Share Area: No Device Shared in Other AD: No The Local Name Server has 4 entries } If you are using QLogic switches, you can check the Fibre Channel switch for the WWPN of the VPORT. To check the QLogic switch for the VPORT WWPN Run the show ns command. In the output of the show ns command, check the NodeWWN column. You can identify WWPNs of VMware VPORTs by the sequence 00:0c:29 in the third, fourth, and fifth fields. #> show ns Seq Domain Port Port No ID ID Type COS PortWWN NodeWWN --- ------ ------ ---- --- ------- ------- 1 182 (0xb6) b60200 N 3 21:00:00:e0:8b:88:e2:8b 20:00:00:e0:8b:88:e2:8b 2 182 (0xb6) b60300 N 3 21:00:00:e0:8b:80:83:4b 20:00:00:e0:8b:80:83:4b 3 182 (0xb6) b60700 N 3 21:00:00:1b:32:00:4b:34 20:00:00:1b:32:00:4b:34 4 182 (0xb6) b60a00 N 3 50:06:01:60:41:e0:1d:98 50:06:01:60:c1:e0:1d:98 5 182 (0xb6) b60b00 N 3 50:06:01:68:41:e0:1d:98 50:06:01:60:c1:e0:1d:98 6 182 (0xb6) b60c00 N 3 21:01:00:1b:32:20:4b:34 20:01:00:1b:32:20:4b:34 7 182 (0xb6) b60c01 N 3 28:33:00:0c:29:00:00:34 28:33:00:0c:29:00:00:33 <== VPort VWWN 8 182 (0xb6) b60d00 N 3 21:01:00:1b:32:20:95:36 20:01:00:1b:32:20:95:36 9 182 (0xb6) b60e00 N 3 21:00:00:e0:8b:92:0b:90 20:00:00:e0:8b:92:0b:90 10 182 (0xb6) b60f00 N 3 21:01:00:e0:8b:a8:85:81 20:01:00:e0:8b:a8:85:81 Interpreting Error Messages This section provides information to help you interpret the most common error messages seen in an NPIV environment. Driver Load Time Errors The VportGetInfo information in the server s log files provides information about the NPIV support at various levels in the system. On ESXi hosts, look for this information in /var/log/messages. VMware, Inc. 4

System with No Problems When the system has no problems, the VportGetInfo messages are similar to the example below for each physical HBA in the system that has NPIV support. Example Output vmkernel: 0:00:00:57.292 cpu6:1040)scsi: VportGetInfo:748: GetInfo for adapter vmhba2, [0x3f8ae380], max_vports=64, vports_inuse=0, linktype=0, state=1, failreason=0, rv=0, sts=0 HBA Without NPIV Support When the HBA does not NPIV support, the rv value is less than 0. The typical value is -1. To resolve this problem, use an HBA with NPIV support. Example Output vmkernel: 0:00:00:41.167 cpu6:1039)scsi: VportGetInfo:748: GetInfo for adapter vmhba0, [0x3f8a6980], max_vports=0, vports_inuse=0, linktype=0, state=0, failreason=0, rv=-1, sts=bad001f Other Problems If the value of state is 0 and the value of failreason is non zero, see Table 4 for details on the meaning of the message. Example Output vmkernel: 0:00:00:53.379 cpu6:1040)scsi: VportGetInfo:748: GetInfo for adapter vmhba1, [0x3f8aca00], max_vports=64, vports_inuse=0, linktype=0, state=0, failreason=2, rv=0, sts=0 Table 4. Failure Codes failreason Value Reason for Failure Remedy for the Failure 0 Unknown failures Unknown reason, contact tech support 1 Fibre Channel link is down Check the physical links from your machine to the Fibre Channel switch 2 Fabric does not support NPIV Enable NPIV capability on the Fibre Channel switch port 3 Fabric does not have resources Remove some VPORTs from the Fibre Channel fabric 4 Fabric LOGOUT initiated 5 HBA does not have enough resources Check and update the Fibre Channel HBA firmware

Virtual Machine Start Time Errors In some cases, you might find an error recorded in the VMkernel log when an NPIV virtual machine is powered on. Example Log Entry vmkernel: 0:01:12:35.280 cpu3:1083)scsi: VportDiscovery:489: NPIV vport rescan complete, [0:21] (0x3f8e8268) [0x2bb66e8] status=0xbad0001 Generally, this means that the NPIV code in the VMkernel is not able to find any devices on the VPORT. There are a number of possible causes. To track down the cause, make the following checks: Check zoning in the configuration of the switch to be sure correct access is set for the NPIV WWN LUNs. Check the switch port to be sure it has NPIV capability enabled. Check the LUN s HostID to be sure it matches the physical HBA and virtual HBA in the storage array. If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com VMware, Inc. 3401 Hillview Ave., Palo Alto, CA 94304 www.vmware.com Copyright 2007 2012 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. Item: EN-000696-00 6