Skip to content
Latest
vSAN Says RDMA Is Enabled. Is It Actually Using It?
VMware Cloud Foundation November 22, 2026 16 min read Expert

vSAN Says RDMA Is Enabled. Is It Actually Using It?

My vSAN cluster had RDMA switched on for weeks and never used it once. The UI said it was enabled, the compatibility check was green, vSAN health was green, and every host was quietly running vSAN over plain TCP the whole time.

I only found out because of an alarm that looked boring.

The alarm

The setup is a three node VCF 9.1.1 management cluster on Dell R740xd hosts. Each host has a dual port Mellanox ConnectX 5 at 100G, one port to each of two Arista 7160 switches, with a 400G port channel between the switches. vSAN lives on its own vmkernel port on VLAN 112.

One morning the first host had this sitting in its Summary tab:

High pNic error rate detected. Check the host’s vSAN performance view for details

My first instinct was a bad cable or a dirty optic. That turned out to be wrong, and the real answer was a lot more interesting.

What the NICs were actually counting

SSH into the hosts and the standard counters look almost clean. The 10G Intel ports have no link and zero traffic. The 100G ports have zero CRC errors, zero frame errors, zero length errors. Just one number that is not zero:

$ esxcli network nic stats get -n vmnic4
   Packets received: 27774497232
   ...
   Receive CRC errors: 0
   Receive frame errors: 0
   Receive missed errors: 61705

Zero CRC means the cable is fine. Missed errors mean the NIC had nowhere to put a packet when it arrived. The driver’s private stats tell you more:

$ vsish -e get /net/pNics/vmnic4/stats | grep -iE "buffer|discard|pause"
outOfBuffer: 61705
rxDiscardsPhy: 85950

On mlx5, outOfBuffer means the receive ring was empty and the host did not post buffers fast enough. rxDiscardsPhy means the adapter itself was congested and dropped the frame at the port. Both are “traffic showed up faster than I could take it” counters.

All three hosts had the same pattern:

Host vmnic4 outOfBuffer vmnic4 rxDiscardsPhy vmnic5 rxDiscardsPhy CRC errors
esx01 61,705 85,950 1,363 0
esx02 6,270 162,528 339,280 0
esx03 24,211 121,892 623 0

Against 27 billion received packets it is a tiny fraction, roughly one in a million. TCP shrugs that off. The vSAN pNIC error rate check does not, and it was right to complain, just not for the reason I first thought.

A 60 second sample while things were quiet showed no new drops at all. So this was burst related: resyncs, rebuilds, backups, anything where several hosts fire data at one host at the same moment.

The wrong turn

Here is where I talked myself into a tidy story that was not true.

The hosts had vmrdma devices paired to both uplinks. DCB was enabled on the NICs in IEEE mode with PFC on priority 3. Over on the Arista side, PFC was enabled and active on priority 3 on every host port and on all four inter switch links. That is exactly what a RoCE setup for vSAN looks like.

$ esxcli network nic dcb status get -n vmnic4
   PFC Enabled: true
   PFC Configuration: 0 0 0 1 0 0 0 0
   Sent PFC Frames: 0 0 0 0 0 0 0 0
   Received PFC Frames: 0 0 0 0 0 0 0 0
   DCB Apps:

The switches had never transmitted a single PFC frame on any port. The DCB app table on the hosts was empty, and the switches reported zero application priorities. So my theory was: vSAN is running RDMA, nothing is mapping RoCE into priority 3, the traffic lands in a lossy queue, and the NIC drops it under load. Very neat. I even started writing up switch changes.

The problem is that I never checked whether vSAN was using RDMA at all. I saw the vmrdma devices and the PFC config and filled in the rest myself.

One command would have saved me the detour:

$ esxcli vsan network list | grep -i protocol
   IP Protocol: TCP(0)

$ esxcli rdma device stats get -d vmrdma0 | grep Packets
   Packets received: 0
   Packets sent: 0

Zero RDMA packets. Since boot. On all three hosts. vSAN was on TCP, and the whole PFC setup was protecting traffic that did not exist.

Then I opened the cluster’s vSAN network settings in vCenter. RDMA support: on. Green banner saying the paired vmrdma devices and RoCEv2 are supported on all hosts. So RDMA was enabled and not being used. That is a much better question.

Why vSAN would not use RDMA

The host agrees that RDMA is switched on. It just is not the protocol in use:

$ vsish -e get /vmkModules/rdt/enableRdma
1
$ vsish -e get /vmkModules/rdt/clusterProtocol
0

vsanmgmt.log says the same thing in words, every few minutes:

VsanHealthSystemImpl::_QueryVerifyNetworkSettings RDMA is enabled, RDT protocol TCP

The reason is in vmkernel.log, repeating every five seconds, going back as far as the logs went:

rdmaDriver: RDMAFindTeamDeviceByPortID:3231: Unspported team policy = 8 status = Success
RDT: RDTCreateRDMAServer:2731: vmk_RDMACMBind() failed for server Bad parameter
RDT: RDTEnableRdmaInt:657: Failed to create listener for address 10.10.112.11, protocol 2, status Bad parameter
RDT: RDTDisableRdmaInt:736: SupportedTransportProtocolsMask removes RDMA

Yes, “Unspported” is spelled like that in the log. Worth knowing if you grep for it.

So vSAN tries to bind an RDMA listener on the vSAN vmk, the RDMA driver looks at the teaming policy on that port, does not like it, the bind fails, and vSAN drops RDMA from the list of transports and stays on TCP. Five seconds later it tries again. Forever.

You can see the teaming policy on the vmk’s distributed port straight from the host:

$ net-dvs -l
  port 8:
    com.vmware.common.port.portgroupid = dvportgroup-27
    com.vmware.vswitch.port.teaming.policy:
      load balancing = source port traffic load
      active = uplink2, uplink1,
    com.vmware.vswitch.port.vlan = VLAN 112

“Source port traffic load” is what vCenter calls Route based on physical NIC load, also known as load based teaming. vSAN over RDMA does not support it. The supported choices are Route based on originating virtual port or an explicit failover order.

Here is the part that makes this worth writing up. Load based teaming is what VCF uses for the vSAN port group out of the box. Pete Koehler’s vSAN Networking: Teaming for Performance says it plainly: it is currently the default for VCF, and it is not recommended for vSAN tagged VMkernel ports. Broadcom KB 407307 then says load based teaming, IP hash and LACP are not supported with vSAN RDMA, because an RDMA connection cannot spread across two uplinks for the same vmk.

Put those two together and any VCF cluster where someone ticks the RDMA box, without also changing the teaming, ends up exactly where mine was. Enabled, green, and on TCP.

Nothing in vSAN health flagged this. The RDMA compatibility check only looks at whether the NICs and protocol are supported, and they are. The network health checks were green. The only clue was a warning in vmkwarning.log and a single word in a management log.

The fix, and why the order matters

The obvious fix is to change the teaming policy. Do not do that first.

The moment the teaming policy is supported, vSAN will switch to RDMA within about five seconds, because it is retrying all the time. If RoCE traffic is not marked for the lossless class when that happens, you have just moved your storage traffic onto RDMA over a lossy network, which is worse than what you started with.

And it was not marked. With an empty DCB app table, the ConnectX 5 sends RoCE with PCP 0. The Arista ports trust CoS, so that lands in the default queue, not the PFC protected one. The PFC config on both sides was correct and would have done nothing.

The nmlx5_rdma driver has module parameters to force the marking:

$ esxcli system module parameters list -m nmlx5_rdma | grep force
dscp_force   int   DSCP value to force on outgoing RoCE traffic.
pcp_force    int   PCP value to force on outgoing RoCE traffic.

So the order was:

  1. Set the RoCE marking on every vSAN host. PCP 3 to match the PFC priority, and DSCP 26 so it also classifies correctly if the switch ever trusts DSCP instead.

    esxcli system module parameters set -m nmlx5_rdma -p "pcp_force=3 dscp_force=26"

    Check what is already set before you run this. -p replaces the whole parameter string for the module, it does not append. Mine was empty.

  2. Rolling reboot, one host at a time. Maintenance mode from vCenter with Ensure accessibility so DRS moves the VMs, reboot, exit maintenance mode, wait for resync to finish, next host. The parameter only applies at driver load. Since vSAN is still on TCP at this point, the change has no effect on running traffic, which is what makes it safe to stage.

  3. Change the vSAN port group to Route based on originating virtual port. Keep both uplinks active. Everything else stays as it was.

The rollback is just as quick. Put the teaming back to load based and vSAN drops to TCP within seconds.

One side effect of originating virtual port: the vSAN vmk sits on one uplink at a time. On my hosts it landed on vmnic4 everywhere, so all RDMA traffic goes through one switch and the other uplink is failover only. That is normal for RDMA with vSAN, but worth knowing when you read your switch counters.

If you run VCF 9.1, there is a second reason to move off load based teaming. Broadcom KB 452928 covers hosts with Enhanced Data Path losing vSAN or management connectivity during maintenance mode, concurrent vMotions or a reboot. It lists VCF 9.1 and 9.1.1. The cause is a race during a load based teaming failover, where the fast path keeps sending on the old uplink for up to 150 seconds. The workaround is to move every port group off Route based on physical NIC load, not just vSAN. My uplinks are claimed by the Enhanced Data Path driver, so I ended up moving the rest of them too. More on that below.

Did it work

Seconds after the teaming change:

$ vsish -e get /vmkModules/rdt/clusterProtocol
2
$ esxcli vsan network list | grep -i protocol
   IP Protocol: RoCEv2(2)

The vmkernel log shows the moment it flipped:

RDT: RDTEnableRdmaInt:677: SupportedTransportProtocolsMask includes RDMA

The three reboots had left a resync running, which made a nice stress test. Here is a 30 second window right after RDMA came up:

Host RDMA packets rx / tx rxDiscardsPhy PFC pauses sent / received
esx01 36.9M / 29.9M 6 5,782 / 60
esx02 33.6M / 30.4M 0 950 / 282
esx03 6.8M / 17.0M 0 0 / 44

That pause column is the whole point. Before, the switches had never sent a PFC frame and the NICs just dropped. Now when a host’s buffer fills it tells the switch to wait, and the switch tells the host to wait, and nothing gets thrown away.

Once the resync finished, the picture over the whole run was:

  • Drop counters went up by a few hundred during the entire resync, against tens of thousands before.
  • Out of buffer stayed at zero on every host.
  • Zero new drops in a 60 second sample once the cluster went quiet.
  • vSAN health green across the board.

esx01 was pausing the switch a lot under heavy load, thousands of pause frames in 30 seconds. That is lossless doing its job, but it is also a sign the host side is the bottleneck during bursts. These are PCIe 3.0 ConnectX 5 cards running two 100G ports, so I am not surprised. Worth keeping an eye on if you run sustained heavy rebuilds.

A few days later, the alarm came back

Of course it did. All three hosts had been through a rolling reboot, one after the other in under an hour, and each one now had tens of thousands of fresh discards since boot:

Host rxDiscardsPhy since reboot New drops in 10 minutes at normal load
esx01 47,280 0
esx02 112,382 0
esx03 125,310 0

RDMA was still on, the marking was still there, PFC was still pausing. And at normal load, nothing dropped at all. So the drops came from the maintenance window itself.

Think about what a rolling reboot does. Each host goes into maintenance mode, DRS fires a pile of vMotions at the other two, and when the host comes back vSAN resyncs. vMotion is plain TCP at priority 0. vSAN RDMA is priority 3. With both uplinks active everywhere, they were sharing vmnic4. When the NIC pauses priority 3 to protect vSAN, a vMotion burst at priority 0 has nowhere to go and gets dropped.

I cannot prove that from the counters, to be fair. The ConnectX 5 only gives a single rxDiscardsPhy total, not a per priority breakdown. But the timing fits, and the fix is cheap: stop them sharing a NIC.

Pinning vSAN and vMotion to opposite uplinks

First, figure out which vCenter uplink name is which vmnic. Do not assume uplink1 is the lower vmnic. On my hosts it happened to be, but check:

# uplink name next to its port ID
$ net-dvs -l | grep -E "alias = uplink|volatile.status" | grep -A1 "alias = uplink"

# port ID to vmnic or vmk, plus the uplink each one is using right now
$ PS=$(vsish -e ls /net/portsets/ | grep -i dvs | head -1)
$ for id in $(vsish -e ls /net/portsets/${PS}ports/); do
    c=$(vsish -e get /net/portsets/${PS}ports/${id}status | grep clientName)
    echo "$id $c $(vsish -e get /net/portsets/${PS}ports/${id}teamUplink 2>/dev/null)"
  done | grep -E "vmnic|vmk"

That gave me uplink1 = vmnic4 and uplink2 = vmnic5 on every host. Then two changes in vCenter, both under Teaming and failover:

Port group Active Standby
vSAN uplink1 (vmnic4) uplink2 (vmnic5)
vMotion uplink2 (vmnic5) uplink1 (vmnic4)

This is also the Active/Standby layout the VMware blog post above recommends for vSAN, so it lines up with the official guidance, not just my hunch.

One gotcha: on my first try vMotion did not move. I had reordered the Active list so uplink2 was on top, but uplink1 was still in Active, not Standby. With originating virtual port and two active uplinks, the order means nothing. Check on the host, not just in the UI. The loop above prints which uplink each vmk is actually using:

# same loop as above, after the change
vmk1  teamUplink: vmnic5
vmk2  teamUplink: vmnic4

While I was in there, I also moved host management, vMotion and the VM management port group off load based teaming. That was the KB 452928 workaround I mentioned earlier, and a rolling reboot is exactly the situation that KB warns about. The switch now has zero ports on load based teaming.

vSAN stayed on RDMA through all of it, no reboot needed. Now the next maintenance window will tell me whether the alarm stays quiet.

Side quest: the scary FCS numbers on the spine link

While I was on the switches I found this on the 400G port channel between them, four 100G DAC links:

spine02# show interfaces counters errors
Port      FCS     Align   Symbol   Rx
Et29/1    0       0       0        0
Et30/1    204167  204395  0        408562
Et31/1    0       0       0        0
Et32/1    39137   39350   0        78487

Two hundred thousand FCS errors on a link carrying storage traffic looks bad. My first plan was to pull those members and swap cables. Before doing that it is worth asking whether those errors are happening now or happened once a long time ago. show interfaces tells you the counters were last cleared over a year earlier, so these totals could be ancient.

Two things answered it.

First, I ran the same command again about 22 hours later. Identical numbers, to the digit.

Second, show interfaces phy detail shows not just the FEC counters but when each one last changed:

spine02# show interfaces Ethernet30/1 phy detail
                              Current State     Changes   Last Change
  PHY state                   linkUp                 45   170 days, 3:28:12 ago
  Forward Error Correction    Reed-Solomon
  FEC corrected codewords     1075              1804039   170 days, 3:26:39 ago
  FEC uncorrected codewords   1                  382723   170 days, 3:26:39 ago

The uncorrected codeword count, which is the thing that turns into FCS errors, last moved 170 days ago. Same for every member on both switches. That lines up with the port channel members all rejoining within a couple of minutes of each other on the same day, so something happened that day (a reseat, a reboot, a cable swap) and the links have been clean since.

A couple of things worth checking on any 100G DAC link with FCS errors:

  • FEC mode. 100GBASE CR4 normally needs Reed Solomon FEC (Clause 91). If one side has it off, you get exactly this kind of error. Mine were RS on both ends, so that was ruled out.
  • PCS high BER and FEC alignment lock. Both were ok.
  • When the counters last changed, not just how big they are.

I did not shut anything or swap anything. I will clear the counters so any new error stands out, and that is the end of it.

Check your own cluster in two minutes

If you have RDMA turned on for vSAN, run these on any host in the cluster. Nothing here changes anything.

Is vSAN actually on RDMA?

esxcli vsan network list | grep -i protocol

You want RoCEv2(2). If you see TCP(0) and RDMA is switched on in the cluster, keep going.

Is the RDMA device carrying anything?

esxcli rdma device stats get -d vmrdma0 | grep -E "Packets (sent|received)"

Is it failing to bind, and why?

grep -E "Unspported team policy|RDTEnableRdmaInt|RDTDisableRdmaInt" /var/log/vmkernel.log | tail

What teaming is on the vSAN vmk’s port?

net-dvs -l | grep -A12 "port <vSAN vmk dvport>:" | grep -E "load balancing|active|vlan"

How is RoCE being marked?

esxcli system module parameters list -m nmlx5_rdma | grep force
esxcli network nic dcb status get -n vmnic4 | grep -E "PFC Config|Sent PFC|Received PFC|DCB Apps"

If PFC frames have never moved in either direction on a busy cluster, your lossless setup is probably not covering the traffic you think it is.

The module parameter names above are for the Mellanox nmlx5 driver. Other RDMA NICs have their own way of setting the priority, so check your vendor’s docs for that piece.

What I took away from it

A green check that says RDMA is supported is not the same as RDMA being in use. Look at the protocol on the host.

PFC being enabled and active on the switch tells you nothing about whether your traffic is in that priority. If the pause counters have never moved, ask why.

The pNIC alarm was real and useful. It pointed at a NIC dropping bursts, which pointed at a network built for lossless traffic carrying lossy traffic, which pointed at a teaming policy nobody had thought about since the cluster was built.

And when a switch shows you a six figure error count, check when it last went up before you start pulling cables.

Sources

Share

Leave a comment

Comments need your full name and email — no anonymous comments. Your email is never published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.