Wednesday, February 15, 2012

VMWare ESXi 5.0 - iSCSI Multipathing and Round Robin

VMWare ESXi 5.0 - iSCSI
Multipathing and Round Robin Issues After ESXi 5.0 Upgrade


When we originally began with VMWare ESXi 4.0, we followed this great guide on how to do iSCSI multipathing with jumbo frame support. Everything worked great through each ESXi upgrade all the way up to version 5.0.  After the upgrade to ESXi 5.0, we noticed that, according to ESXi, multipathing was working as expected.  Upon further investigation, we noticed that, in reality, the vSwitch was only using 2 physical NICs for iSCSI traffic, not the 4 physical NICs assigned to the vSwitch (and NOT the physical NICs bound to the iSCSI vmk port group).  According to the ARP table on the physical iSCSI switches, we were seeing 3 of the vmkernel MAC addresses on one physical port, and the 4th vmkernel MAC address on another port.  Initially we thought that a clearing of the MAC address table would solve the problem.  This was not the case.

Our next step was to unplug NIC0 and see if we could force the vSwitch to use the other uplinks.  Upon unplugging NIC0, we noticed that traffic began to flow to the other 3 physical NICs.  Plugging NIC0 back in caused the vSwitch to send ALL iSCSI traffic out of NIC0, leaving the other 3 NICs unused.  We tried several different methods to get the iSCSI traffic to spread across all 4 physical NICs as it did so well in ESXI 4.x.  We came up empty across the board. Until we tried the 'Failback' option.

Next, we disabled the "Failback" option in the iSCSI port group configuration for each iSCSI port group in the vSwitch.  This seemed to have worked.  Once we unplugged and the plugged back in NIC0, iSCSI traffic load balanced as before.  Everything worked well, until we rebooted the ESXi host.  Upon rebooting, iSCSI traffic reverted back to only using NIC0 and NIC1.

In the end, we created 4 different vSwitches.   Each vSwitch was configured with a single physical uplink as well as a single iSCSI port group.  The MTU of the vSwitch and the iSCSI port group were both configured at 9000.

According to VMWare Tech Support, this is an 'undocumented best practice' when dealing with multiple port groups with IP addresses in the same subnet, all contained in a single vSwitch.

Our original implementation worked well for around 2 years.  And even after the ESXi 5.0 upgrade, a few of our ESXi hosts still spread the iSCSI traffic across all 4 uplinks as it had before.  However, the majority of our ESXi 5.0 hosts experienced the same issues as described above.  Now ALL ESXi hosts are configured with 4 vSwitches, each with a single physical uplink and a single iSCSI port group.

So, for those that are using iSCSI with multipathing, be sure to verify that the iSCSI traffic is actually flowing out the correct NICs.  It's not enough just to verify that each target is showing 4 active paths, as its the vSwitch that was sending traffic out the wrong uplinks.

No comments:

Post a Comment