VMs are showing as "invalid" in the Host Client (incl. vCenter)
vSAN Datastore is not showing any VMs
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
Sample output:
hostname,decomState,decomJobType
esxi-1.example.com,0,0
esxi-2.example.com,0,0
esxi-3.example.com,6,0 --> Anything other than "0": Host in vSAN Decom State (= State "6" specifically refers to: Host in Maintenance Mode)
--> For any Host showing with state "6": Open the ESXi Host Client and put the Host out of Maintenance Mode (= Host Client Example: http://esxi-3.example.com/ui )
Navigate to the Cluster --> Configure --> vSAN --> Services --> Hit "Restart"
7.) Wait for any Resync Activity to complete
8.) Check your Cluster Status by running vSAN Skyline Health
9.) If all is looking good, proceed with powering on any needed VMs
If assistance is required, please open a Ticket with VMware by Broadcom Support.