VMware Cloud Community
RussellCorey
Hot Shot
Hot Shot

NPIV with vSphere using QLogic HBA with QLogic Switch

I'll preface this by saying its a 4gb HBA and supports NPIV:

cat /proc/scsi/qla2xxx/4:

NPIV Supported : Yes

Max Virtual Ports = 127

The switch is a SANBox 5600 running the latest firmware release and also supports NPIV.

I've got a VM with strictly an RDM disk and my FC switch is zoned prior to powering up the virtual machine. I've also masked a test LUN to JUST the WWNN and WWPN of my virtual machine.

On the switch side I get the following:

[Sat Aug 30 18:18:20.141 UTC 2008][I][http://8600.001D|http://8600.001D][Port][Port: 3][PortID 0x10301 PortWWN 28:13:00:0c:29:00:00:04 logged into nameserver.]

[Sat Aug 30 18:18:21.271 UTC 2008][I][http://8600.001E|http://8600.001E][Port][Port: 3][PortID 0x10301 PortWWN 28:13:00:0c:29:00:00:04 logged out from nameserver.]

[Sat Aug 30 18:18:21.283 UTC 2008][I][http://8600.001D|http://8600.001D][Port][Port: 3][PortID 0x10301 PortWWN 28:13:00:0c:29:00:00:05 logged into nameserver.]

[Sat Aug 30 18:18:22.432 UTC 2008][I][http://8600.001E|http://8600.001E][Port][Port: 3][PortID 0x10301 PortWWN 28:13:00:0c:29:00:00:05 logged out from nameserver.]

[Sat Aug 30 18:26:41.624 UTC 2008][I][http://8600.001D|http://8600.001D][Port][Port: 3][PortID 0x10301 PortWWN 28:13:00:0c:29:00:00:07 logged into nameserver.]

[Sat Aug 30 18:26:42.751 UTC 2008][I][http://8600.001E|http://8600.001E][Port][Port: 3][PortID 0x10301 PortWWN 28:13:00:0c:29:00:00:07 logged out from nameserver.]

On the ESX side I get the following:

Aug 27 13:24:12 lab-rp-esx1 vmkernel: 0:21:14:05.797 cpu1:4357)ScsiNpiv: 991: NPIV vport rescan complete, (0x4100040a9400) status=0xbad0001

Aug 27 13:24:12 lab-rp-esx1 vmkernel: 0:21:14:05.797 cpu1:4357)WARNING: ScsiNpiv: 1578: Failed to Create vport for world 4358, vmhba2, rescan failed, status=bad0001

Aug 27 13:24:12 lab-rp-esx1 vmkernel: 0:21:14:05.804 cpu0:4357)WARNING: Removing Host Adapter vmhba44

Aug 27 13:24:12 lab-rp-esx1 vmkernel: 0:21:14:05.804 cpu0:4357)<6>qla2xxx 0000:03:00.0: VP entry id 1 assigned.

Aug 27 13:24:12 lab-rp-esx1 vmkernel: 0:21:14:05.804 cpu0:4357)vmkdrivers/src26/include/scsi/scsi_host.h:scsi_add_host-779: vmksgarray supported

Aug 27 13:24:12 lab-rp-esx1 vmkernel: 0:21:14:05.804 cpu1:4185)ScsiAdapter: 1907: Unregistering adapter vmhba44

Aug 27 13:24:13 lab-rp-esx1 vmkernel: 0:21:14:06.927 cpu0:4357)WARNING: ScsiNpiv: 1148: Created vport for world 4358, vmhba2, rv 0

Aug 27 13:24:13 lab-rp-esx1 vmkernel: 0:21:14:06.927 cpu0:4357)ScsiScan: 839: Path 'vmhba45:C0:T0:L1': Vendor: 'NETAPP ' Model: 'LUN ' Rev: '7310'

Aug 27 13:24:13 lab-rp-esx1 vmkernel: 0:21:14:06.927 cpu0:4357)ScsiScan: 842: Path 'vmhba45:C0:T0:L1': Type: 0x1f, ANSI rev: 4, TPGS: 0 (none)

Aug 27 13:24:13 lab-rp-esx1 vmkernel: 0:21:14:06.927 cpu0:4357)ScsiScan: 105: Path 'vmhba45:C0:T0:L1': Peripheral qualifier 0x1 not supported

Aug 27 13:24:13 lab-rp-esx1 vmkernel: 0:21:14:06.927 cpu0:4357)ScsiNpiv: 991: NPIV vport rescan complete, (0x4100040a9400) status=0xbad0001

Aug 27 13:24:13 lab-rp-esx1 vmkernel: 0:21:14:06.927 cpu0:4357)WARNING: ScsiNpiv: 1578: Failed to Create vport for world 4358, vmhba2, rescan failed, status=bad0001

Aug 27 13:24:13 lab-rp-esx1 vmkernel: 0:21:14:06.936 cpu1:4357)WARNING: Removing Host Adapter vmhba45

Aug 27 13:24:13 lab-rp-esx1 vmkernel: 0:21:14:06.936 cpu1:4357)ScsiNpiv: 1638: Vport Create status for world:4358 num_wwpn=2, num_vports=0, paths=1, errors=1

Aug 27 13:24:13 lab-rp-esx1 vmkernel: 0:21:14:06.936 cpu1:4357)VSCSI: 3469: handle 8206(vscsi1:0):Creating Virtual Device for world 4358 (FSS handle 81983)

Aug 27 13:24:13 lab-rp-esx1 vmkernel: 0:21:14:06.936 cpu0:4192)ScsiAdapter: 1907: Unregistering adapter vmhba45

Doing further investigation but thought I'd get the ball rolling now.

The short of it is that it isn't workin'

3 Replies
RParker
Immortal
Immortal

Doing further investigation but thought I'd get the ball rolling now.

In that case install SAN tools and let it do discovery, that will show you where the problem is.

SAN Surfer.

Reply
0 Kudos
RussellCorey
Hot Shot
Hot Shot

Not getting anything useful out of SANsurfer CLI and I'm beating my head against the GUI version now. It doesn't appear to function on an ESX server even when I export the display off to another UNIX host.

Reply
0 Kudos
RussellCorey
Hot Shot
Hot Shot

FC HBA has to be placed into 'Point to Point Only' and then things start behaving.