The vSAN Performance Service may encounter a "Stats primary election" error, or management commands in RVC may fail when the .vsan.stats object becomes corrupted or enters an orphaned state. This guide provides steps to diagnose this issue and perform a forced cleanup of the object.
This issue occurs when the .vsan.stats object is corrupted, orphaned, or when the advanced configuration parameter /VSAN/DOMPauseAllCCPs is incorrectly set to 1.
1. Check and Reset Advanced Parameters
esxcfg-advcfg -g /VSAN/DOMPauseAllCCPsesxcfg-advcfg -s 0 /VSAN/DOMPauseAllCCPs/VSAN/IgnoreClusterMemberListUpdates is also set to 0: esxcfg-advcfg -g /VSAN/IgnoreClusterMemberListUpdatesesxcfg-advcfg -s 0 /VSAN/IgnoreClusterMemberListUpdatesAttempt RVC Cleanup
rvc [email protected]@localhostcd /localhost/<datacenter>/computers/<cluster>/vsan.perf.stats_object_delete .Perform Forced Cleanup (If RVC fails) If RVC commands fail, perform a manual cleanup via the ESXi CLI:
esxcli vsan debug object list --all | grep -B1 "Directory Name: .vsan.stats"/usr/lib/vmware/osfs/bin/objtool delete -u #### -f/etc/init.d/vsanmgmtd restart