Professional Documents
Culture Documents
IftheNPIVcapabilityisenabled,theresultsoftheportcfgshow 0commandincludethefollowingline:
NPIV capability ON
IftheNPIVcapabilityisnotenabled,enableitwiththeportCfgNPIVPortcommand.
VMware, Inc.
To determine instance numbers for the cat commands Enteroneofthefollowingcommands,dependingonthetypeofHBAinyoursystem. TheoutputofthelscommandincludesanumberforeachactiveHBAinthesystem.Youusethisnumberin thecatcommandsshowninthefollowingsections. Table 3. HBA ls Commands
Supported HBAs QLogic Emulex Commands ls /proc/scsi/qla2xxx ls /proc/scsi/lpfc820
VMware, Inc.
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
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
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.
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
Youcanalsousethensshowcommand.
admin> nsshow Type Pid N 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
Generally,thismeansthattheNPIVcodeintheVMkernelisnotabletofindanydevicesontheVPORT.There areanumberofpossiblecauses.Totrackdownthecause,makethefollowingchecks:
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