This document serves as a guide to the prerequisites for NPIV, the steps for its configuration, a practical example of NPIV, and the anticipated behavior of NPIV after correct configuration.
[YYYY-MM-DDTHH:MM:SS] cpu58:2099254)Registering Vport Device done:[Success]
[YYYY-MM-DDTHH:MM:SS] cpu58:2099254)Device: 507: psa:driver->ops.scanDevice:0 ms
[YYYY-MM-DDTHH:MM:SS] cpu58:2099254)ScsiAdapter: 1185: Starting 1 completion worlds for adapter vmhba70
[YYYY-MM-DDTHH:MM:SS] cpu58:2099254)Device: 395: psa_vport:driver->ops.attachDevice :0 ms
[YYYY-MM-DDTHH:MM:SS] cpu58:2099254)Device: 400: Found driver psa_vport for device 0x6938430e2b044963
[YYYY-MM-DDTHH:MM:SS] cpu58:2099254)Device: 685: psa_vport:driver->ops.startDevice:0 ms
[YYYY-MM-DDTHH:MM:SS] cpu58:2099254)Device: 507: psa_vport:driver->ops.scanDevice:0 ms
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiNpiv: 1354: Created vport for world 2488396, vmhba64
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiPsaDriver: 1316: Failed adapter create path; vport:vmhba70 with error: bad0040
[YYYY-MM-DDTHH:MM:SS] cpu99:2099246)qlnativefc: vmhba70(81:0.0): hba identifier RPRT_CMD
[YYYY-MM-DDTHH:MM:SS] cpu99:2099246)qlnativefc: vmhba70(81:0.0): Driver sending EDC and RDF for port 28:#c:##:#c:29:##:##:2c
[YYYY-MM-DDTHH:MM:SS] cpu132:2099153)qlnativefc: vmhba70(81:0.0): SCM: EDC ELS completed
[YYYY-MM-DDTHH:MM:SS] cpu132:2099153)qlnativefc: vmhba70(81:0.0): SCM: RDF ELS completed - SCM enabled
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiPsaDriver: 1316: Failed adapter create path; vport:vmhba70 with error: bad0040
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiPsaDriver: 1316: Failed adapter create path; vport:vmhba70 with error: bad0040
[YYYY-MM-DDTHH:MM:SS] cpu170:2099185)qlnativefc: vmhba70(81:0.0): Fabric scan failed on all retries.
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiPsaDriver: 1316: Failed adapter create path; vport:vmhba70 with error: bad0040
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiPsaDriver: 1316: Failed adapter create path; vport:vmhba70 with error: bad0040
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)ScsiNpiv: 1162: NPIV vport rescan complete, [2:9] (0x430bd12fea80) [0x430bd0a1be80] status=0xbad0040
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiPsaDriver: 1316: Failed adapter create path; vport:vmhba70 with error: bad0040
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiPsaDriver: 1316: Failed adapter create path; vport:vmhba70 with error: bad0040
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiPsaDriver: 1316: Failed adapter create path; vport:vmhba70 with error: bad0040
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiPsaDriver: 1316: Failed adapter create path; vport:vmhba70 with error: bad0040
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiPsaDriver: 1316: Failed adapter create path; vport:vmhba70 with error: bad0040
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)ScsiNpiv: 1162: NPIV vport rescan complete, [5:9] (0x430bd1839840) [0x430bd0a1be80] status=0xbad0040
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiNpiv: 1800: Failed to Create vport for world 2488396, vmhba64, rescan failed, status=bad0001
VMware vSphere 8.x
VMware vSphere 7.x
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiPsaDriver: 1316: Failed adapter create path; vport:vmhba70 with error: bad0040
[YYYY-MM-DDTHH:MM:SS] cpu112:2488659)WARNING: ScsiNpiv: 1800: Failed to Create vport for world 2488396, vmhba64, rescan failed, status=bad0001
If you’re considering enabling NPIV on your virtual machines, it’s important to be aware of the following prerequisites:
Discover the specific features of using NPIV with ESXi.
ESXi with NPIV offers the following capabilities:
However, when you employ ESXi with NPIV, the following limitations are present:
switch:admin> portcfgshow 0
Area Number: 15
Speed Level: AUTO(HW)
Fill Word: 0(Idle-Idle)
AL_PA Offset 13: OFF
Trunk Port ON
Long Distance OFF
VC Link Init OFF
Locked L_Port OFF
Locked G_Port ON
Disabled E_Port OFF
ISL R_RDY Mode OFF
RSCN Suppressed OFF
Persistent Disable OFF
NPIV capability ON
QOS E_Port AE
Port Auto Disable: OFF
Rate Limit OFF
EX Port OFF
Mirror Port OFF
Credit Recovery ON
F_Port Buffers OFF
switch:admin> portCfgNPIVPort --enable 0
switch:admin> aliadd "HBA-Alias-Name" "physical port wwn" "npiv wwpn"
alias: LAB_HBA
2#:##:##:1#:9b:b1:ed:45; 28:#c:##:#c:29:##:##:2c
switch:admin> cfgsave WARNING!!! You are about to save the Defined zoning configuration. This action will only save the changes on Defined configuration. Do you want to save the Defined zoning configuration only? (yes, y, no, n): [yes]
Note: If the NPIV configuration is not done correctly, the VM will use physical HBAs for RDM access instead of using its Virtual NPIV WWPNs