Symptoms:
esxcli vsan cluster get
If the output of the command returns:
Sub-Cluster Member Count: 1
Local Node State: STANDALONE
Or
Sub-Cluster Member Count: 0
Local Node State: Discovery
Then the Witness is confirmed to be isolated from the vSAN Cluster.
VMware vSAN 6.x
VMware vSAN 7.x
VMware vSAN 8.x
# vmkping -I <VSANvmknic> <WitnessIP> -s 1472 -d -c20
# esxcli vsan cluster unicastagent list
Ex.
ESXI_DATA_NODE
# esxcli vsan cluster unicastagent list
NodeUuid IsWitness Supports Unicast IP Address Port Iface Name Cert Thumbprint SubClusterUuid
------------------------------------ --------- ---------------- ------------ ----- ---------- ----------------------------------------------------------- --------------
5d56c452-XXXX-XXXX-XXXX-e4434b76d442 0 true X.X.X.X 12321 XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
614c531d-XXXX-XXXX-XXXX-0050569d1702 1 true Y.Y.Y.Y 12321 YY:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:YY xxxxxxxx-yyyy-yyyy-yyyy-xxxxxxxxxxxx
esxcli vsan cluster unicastagent add -t witness -u <local_UUID> -U true -a <vSAN IP address> -p 12321
XX.XX.XX.XX
and IP address of the ESXi Data Node is YY.YY.YY.YY
ESXI_DATA_NODE# pktcap-uw --vmk vmk0 --dir 2 -o - | tcpdump-uw -ner - | grep XX.XX.XX.XX
The name of the vmk is vmk0.
pktcap: The output file is -.
pktcap: No server port specifed, select 18234 as the port.
pktcap: Local CID 2.
pktcap: Listen on port 18234.
pktcap: Main thread: 129712012096.
pktcap: Dump Thread: 129712547584.
pktcap: Recv Thread: 129713075968.
pktcap: Accept...
pktcap: Vsock connection from port 1026 cid 2.
reading from file -, link-type EN10MB (Ethernet)
XX:yy:zz.123456 e4:43:4b:76:d4:22 > aa:bb:cc:dd:dd:ee, ethertype IPv4 (0x0800), length 482: YY.YY.YY.YY.12321 > XX.XX.XX.XX.12321: UDP, length 440
>> Traffic is outgoing from Data node and not getting any response from witness nodeXX:yy:zz.123456 e4:43:4b:76:d4:22 > aa:bb:cc:dd:dd:ee, ethertype IPv4 (0x0800), length 482: YY.YY.YY.YY.12321 > XX.XX.XX.XX.12321: UDP, length 440
XX:yy:zz.123456 e4:43:4b:76:d4:22 > aa:bb:cc:dd:dd:ee, ethertype IPv4 (0x0800), length 482: YY.YY.YY.YY.12321 > XX.XX.XX.XX.12321: UDP, length 440
esxcli vsan network list interface
ESXI_DATA_NODE # esxcli vsan network list Interface
VmkNic Name: vmk2 >> VMK tagged for vSAN Data traffic
IP Protocol: IP
Interface UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Agent Group Multicast Address: 224.2.3.4
Agent Group IPv6 Multicast Address: xxxx::2:3:4
Agent Group Multicast Port: 23451
Master Group Multicast Address: 224.1.2.3
Master Group IPv6 Multicast Address: xxxx::1:2:3
Master Group Multicast Port: 12345
Host Unicast Channel Bound Port: 12321
Multicast TTL: 5
Traffic Type: vsan >> Used for Data Traffic
Interface
VmkNic Name: vmk0 >> VMK tagged for vSAN witness traffic
IP Protocol: IP
Interface UUID: yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
Agent Group Multicast Address: 224.2.3.4
Agent Group IPv6 Multicast Address: yyyy::2:3:4
Agent Group Multicast Port: 23451
Master Group Multicast Address: 224.1.2.3
Master Group IPv6 Multicast Address: yyyy::1:2:3
Master Group Multicast Port: 12345
Host Unicast Channel Bound Port: 12321
Multicast TTL: 5
Traffic Type: witness >> Used Witness traffic
vSAN_WITNESS_NODE # esxcli vsan network list
Recommendation