"The operation requires usable witness site. Witness site has reached max components limit of 21792. An error occurred while taking a snapshot: 22 (Invalid argument)."
Steps: VM > Monitor > Tasks

Steps: vCenter Web Client > vSAN Cluster > Monitor > Under, vSAN select Skyline Health
Steps: vCenter Web Client > Witness Node > Monitor > vSAN > Two Node Clusters )
VMware vSphere vSAN 8.x
This is a known issue with the Witness component leak.
publishDCEntry.py" (attached to this KB)publishDCEntry.py" to the OS-Data Partitionnohup python /vmfs/volumes/OSDATA-<UUID>/publishDCEntry.py --interval 900 --maxComponentsPerIter 2000 >/dev/null 2>&1 &LogPath = "/tmp/DCpublisher.log"StaleCompPath = "/tmp/stale_comp.txt"/tmp/DCpublisher.log""/etc/rc.local.d/local.sh" to start during boot of non-Witness Hosts by adding the orange marked line above line "exit 0" as shown in the sample below:[Host-01~] cat /etc/rc.local.d/local.sh #!/bin/sh ++group=host/vim/vmvisor/boot # local configuration options # Note: modify at your own risk! If you do/use anything in this # script that is not part of a stable API (relying on files to be in # specific places, specific tools, specific output, etc) there is a # possibility you will end up with a broken system after patching or # upgrading. Changes are not supported unless under direction of # VMware support. # Note: This script will not be run when UEFI secure boot is enabled. nohup python /vmfs/volumes/OSDATA-<UUID>/publishDCEntry.py --interval 900 --maxComponentsPerIter 2000 >/dev/null 2>&1 & exit 0[Host-01~]
local.sh will only work if Secure Boot is disabled on the non-Witness Hosts in the affected Cluster