What does the check - Host Maintenance Mode is in sync with vSAN Node Decommission State - do?
Once the vSAN host is in vSAN decommission state, it doesn't accept any new object creation, and all components on the host will be absent until it is back. When the host in the vSAN cluster is in maintenance mode, it is expected that this host is in vSAN decommission state. When the host exits maintenance mode, the host should not be in vSAN decommission state. This health check verifies the 2 states are in sync.
What does it mean when it is in an error state?
If a host is in maintenance mode using any of the vSAN options but is not in vSAN decommission state, or a host exits maintenance mode but is still in vSAN decommission state, the check triggers a warning message.
What action can be performed to resolve this?
If a host is decommissioned but the host is not in maintenance mode, do the following: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|sort
esxcli system maintenanceMode get
esxcli vm process list
. If there are any virtual machines powered on, they will need to be powered off or the host will not enter maintenance mode.esxcli vm process kill -w <world_id> -t soft
or vim-cmd vmsvc/power.shutdown <vm id>
esxcli system maintenanceMode set -e true -m noAction
esxcli system maintenanceMode set -e false