Professional Documents
Culture Documents
Configuring and Troubleshooting N-Port ID Virtualization: Technical Note
Configuring and Troubleshooting N-Port ID Virtualization: Technical Note
NPortIDVirtualization(NPIV)isanANSIT11standardthatdescribeshowasingleFibreChannelHBAport
canregisterwiththefabricusingseveralworldwideportnames(WWPNs).Thisallowsafabricattached
Nporttoclaimmultiplefabricaddresses.EachaddressappearsasauniqueentityontheFibreChannelfabric.
TheprimarysourceofinformationonconfiguringNPIVinavSphereenvironmentisthevSphereStorage
documentation,availableontheVMwareWebsite.
ThistechnicalnoteprovidesadditionaldetailsaboutcertainspecificNPIVconfigurationsandinformationon
diagnostictechniquesthatmightbehelpfulasyouconfigureNPIV.Italsoincludesinformationtohelpyou
understanderrormessagesthatmightappearasyouareworkingwithNPIVinavSphereenvironment.This
technicalnoteincludesthefollowingtopics:
EnablingtheNPIVFeatureonaFibreChannelPortonaBrocadeSwitchonpage 1
IdentifyingHBAsinaHostSystemonpage 2
ConfirmingThatI/OTrafficGoesThroughanNPIVHBAonpage 2
ConfirmingCreationofaVPORTonpage 3
InterpretingErrorMessagesonpage 4
portcfgshow 0
IftheNPIVcapabilityisenabled,theresultsoftheportcfgshow 0commandincludethefollowingline:
NPIV capability
ON
IftheNPIVcapabilityisnotenabled,enableitwiththeportCfgNPIVPortcommand.
Meaning
DisabletheNPIVcapabilityontheport
EnabletheNPIVcapabilityontheport
VMware, Inc.
Dependingontheversionofyourhost,thetwosupportedHBAbrands,QLogicandEmulex,areidentified
differently.
Table 2. HBAs That Support NPIV
Supported HBAs
ESX/ESXi 3.5
Emulex
lpfc_740
lpfc820
QLogic
qla2300_707_vmw
qla2xxx
Commands
QLogic
ls /proc/scsi/qla2xxx
Emulex
ls /proc/scsi/lpfc820
VMware, Inc.
fc.2024000c29889a28:2824000c29889a28
fc.2024000c29889a28:2824000c29889a29
() virtual
() virtual
IfyouuseESXiShell,youcanrunthecatcommandtocheckthe/procnodesofthephysicalHBAforthe
VPORT.
To check the /proc nodes of QLogic HBAs
ForQLogic,runthefollowingcommand.
ReplacethefinalnumberwiththenumberoftheHBAyouwanttocheck.Youcandeterminethenumberto
usebyfollowingtheinstructionsinIdentifyingHBAsinaHostSystemonpage 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,
VPIs used 1
YoucanalsochecktheFibreChannelswitchesfortheWWPNoftheVPORT.
To check the Brocade switch for the VPORT WWPN
1
Runtheswitchshowcommand:
admin> switchshow
...
17 17
id
N2
18 18
id
N4
19 19
id
N4
20 20
id
N2
VMware, Inc.
Online
Online
Online
Online
F-Port
F-Port
F-Port
F-Port
10:00:00:00:c9:36:5a:bb
2 NPIV public
2 NPIV public
10:00:00:00:c9:4e:ab:da
Runtheportloginshowcommand:
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
fe 4f1200 10:00:00:00:c9:50:ee:66
16 2048
c
ff 4f1201 28:24:00:0c:29:88:9a:28
12 2048
c
ff 4f1200 10:00:00:00:c9:50:ee:66
12 2048
c
scr=3
scr=3
d_id=FFFFFC
d_id=FFFFFC
Youcanalsousethensshowcommand.
admin> nsshow
Type Pid
COS
PortName
NodeName
TTL(sec)
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 }
IfyouareusingQLogicswitches,youcanchecktheFibreChannelswitchfortheWWPNoftheVPORT.
To check the QLogic switch for the VPORT WWPN
Runtheshow nscommand.
Intheoutputoftheshow nscommand,checktheNodeWWNcolumn.YoucanidentifyWWPNsofVMware
VPORTsbythesequence00:0c:29inthethird,fourth,andfifthfields.
#> show ns
Seq
No
--1
2
3
4
5
6
7
8
9
10
Domain
Port
Port
ID
ID
Type COS PortWWN
NodeWWN
----------- ---- --- ------------182 (0xb6) b60200 N
3
21:00:00:e0:8b:88:e2:8b 20:00:00:e0:8b:88:e2:8b
182 (0xb6) b60300 N
3
21:00:00:e0:8b:80:83:4b 20:00:00:e0:8b:80:83:4b
182 (0xb6) b60700 N
3
21:00:00:1b:32:00:4b:34 20:00:00:1b:32:00:4b:34
182 (0xb6) b60a00 N
3
50:06:01:60:41:e0:1d:98 50:06:01:60:c1:e0:1d:98
182 (0xb6) b60b00 N
3
50:06:01:68:41:e0:1d:98 50:06:01:60:c1:e0:1d:98
182 (0xb6) b60c00 N
3
21:01:00:1b:32:20:4b:34 20:01:00:1b:32:20:4b:34
182 (0xb6) b60c01 N
3
28:33:00:0c:29:00:00:34 28:33:00:0c:29:00:00:33
182 (0xb6) b60d00 N
3
21:01:00:1b:32:20:95:36 20:01:00:1b:32:20:95:36
182 (0xb6) b60e00 N
3
21:00:00:e0:8b:92:0b:90 20:00:00:e0:8b:92:0b:90
182 (0xb6) b60f00 N
3
21:01:00:e0:8b:a8:85:81 20:01:00:e0:8b:a8:85:81
VMware, Inc.
Other Problems
Ifthevalueofstateis0andthevalueoffailreasonisnonzero,seeTable 4fordetailsonthemeaningof
themessage.
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
Unknownfailures
Unknownreason,contacttechsupport
FibreChannellinkisdown
CheckthephysicallinksfromyourmachinetotheFibre
Channelswitch
FabricdoesnotsupportNPIV
EnableNPIVcapabilityontheFibreChannelswitchport
Fabricdoesnothaveresources
RemovesomeVPORTsfromtheFibreChannelfabric
FabricLOGOUTinitiated
HBAdoesnothaveenoughresources
CheckandupdatetheFibreChannelHBAfirmware
Generally,thismeansthattheNPIVcodeintheVMkernelisnotabletofindanydevicesontheVPORT.There
areanumberofpossiblecauses.Totrackdownthecause,makethefollowingchecks:
CheckzoningintheconfigurationoftheswitchtobesurecorrectaccessissetfortheNPIVWWNLUNs.
ChecktheswitchporttobesureithasNPIVcapabilityenabled.
ChecktheLUNsHostIDtobesureitmatchesthephysicalHBAandvirtualHBAinthestoragearray.
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 20072012 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