This article helps you troubleshoot vSAN data-in-transit encryption (DiT). It covers the following symptoms:
How DiT works:
vSAN 8.x
vSAN 9.x
A host’s DiT setting does not match the cluster’s DiT setting.
Common reasons for the mismatch:
esxcli vsan network security set was run directly on a host.A rekey interval that differs from the cluster setting, or a DiT state that is not settled on a host, is also flagged by the Configuration check.
Note: Don’t reboot hosts, remove them from the cluster, or put them in maintenance mode to clear the partition. A DiT mismatch survives a reboot, and evacuating data from a partitioned cluster can make objects less available. Align the DiT setting instead.
If vCenter runs on the affected vSAN datastore and is now inaccessible, use the esxcli steps below on the hosts.
esxcli vsan cluster getSub-Cluster Member Count below the number of hosts in the cluster means the cluster is partitioned. Hosts that report the same Sub-Cluster Master UUID are in the same partition.
esxcli vsan cluster unicastagent list
Every other host in the cluster should be listed with the correct vSAN IP address. If an entry is missing, the cause is membership configuration, not DiT.
esxcli vsan network list):vmkping -I vmkX -d -s 8972 <peer vSAN IP>
Use -s 1472 on a 1500 MTU network. If this succeeds, the network and MTU are not the cause.
esxcfg-advcfg -g /VSAN/IgnoreClusterMemberListUpdates
The value should be "0".
esxcli vsan network security get
The output includes Data-in-Transit Encryption status: true or false. Any host whose value differs from the cluster setting is the cause of the partition.
configstorecli config current get -c vsan -g system -k vsan
grep -i "network security" /var/run/log/shell.log
Option A: from vCenter (recommended when vCenter is available)
Option B: from the host (when vCenter is unavailable, or for one host)
esxcli vsan network security set -e true
To disable:
esxcli vsan network security set -e false
Run esxcli vsan network security set --help to see the option for the rekey interval, and set it to match the cluster.
esxcli vsan network security get
/etc/init.d/vsanmgmtd restart
/etc/init.d/hostd restart
esxcli vsan cluster get shows Sub-Cluster Member Count equal to the number of hosts in the cluster.esxcli vsan network security get reports the same status.esxcli vsan debug object health summary get
There should be no inaccessible objects. A resync may run for a while after the partition heals.
Related articles
Documentation