Impact/Risks:
Any host stuck in DECOM STATE: 6 will not be contributing storage or compute resources to the cluster because vSAN believes the host to still be in Maintenance Mode.
There are currently X usable fault domains. The operation requires Y more usable fault domains" while creating VMs/ snapshots.echo "hostname,decomState,decomJobType";for host in $(cmmds-tool find -t HOSTNAME -f json |grep -B2 Healthy|grep uuid|awk -F \" '{print $4}');do hostName=$(cmmds-tool find -t HOSTNAME -f json -u $host|grep content|awk -F \" '{print $6}');decomInfo=$(cmmds-tool find -t NODE_DECOM_STATE -f json -u $host |grep content|awk '{print $3 $5}'|sed 's/,$//');echo "$hostName,$decomInfo";done|sorthostname,decomState,decomJobTypeesxi1,6,0 >> DECOM STATE 6esxi2,0,0esxi3,0,0esxi4,0,0esxi5,0,0esxi6,0,0| Decommission State | Meaning |
| 0 | None - the node is not decommissioned |
| 1 | The decommissioning process has been started |
| 3 | The decommissioning process is underway |
| 6 | The node has been decommissioned |
VMware vSAN 7.x
VMware vSAN 8.X
To clear the DECOM state of the ESXi host(s), follow the below steps:
1) Place the affected host into maintenance mode with No Action or No Data Migration.
2) Remove the host from maintenance mode.
3) Verify Object health.
4) Sometimes the host will not exit from DECOM_STATE after reboot.
In this situation shutdown the host completely ( check the dependency by debug precheck command beforehand ex. esxcli vsan debug evacuation precheck -e " HOSTNAME/UUID") . Power off the host wait for 20 seconds and Power On again.