VMware vSAN (All Versions)
{Note: For commands to examine the decommission state for nodes in a vSAN cluster using the CMMDS tool, see the Additional Information section.
"entries":
[
{
"uuid": "57786c67-8501-bb75-7a1e-###########",
"owner": "57786c67-8501-bb75-7a1e-############",
"health": "Healthy",
"revision": "28",
"type": "NODE_DECOM_STATE",
"flag": "2",
"minHostVersion": "0",
"md5sum": "3c25930#################3eefea8e",
"valueLen": "80",
"content": {"decomState": 0, "decomJobType": 0, "decomJobUuid": "00000000-0000-0000-0000-000000000000", "progress": 0, "affObjList": [ ], "errorCode": 0, "updateNum": 0, "majorVersion": 0},
"errorStr": "(null)"
}
]
}
| Decommission State | Meaning |
| 0 | CMMDS_DECOM_STATE_NONE: The Node is not decommissioned |
| 1 | The decommissioning process has been started |
| 3 | The decommissioning process is underway |
| 4 | CMMDS_DECOM_STATE_STARTED: CLOM has created a object list to be decommissioned |
| 5 | NODE_DECOM_STATE_FAILED: Decommissioning attempt failed |
| 6 | CMMDS_DECOM_STATE_COMPLETE: The Node has been decommissioned ( = Node is in Maintenance mode and decommissioning finished successfully ) |
| 9 | CMMDS_DECOM_STATE_CANCEL: Decom cancelled. Clean up resyncs and change to CMMDS_DECOM_STATE_NONE |
| 10 | CMMDS_DECOM_STATE_CLEANUP: Decom failed. Clean up resyncs and change to CMMDS_DECOM_STATE_FAILED |
| Decommission Job Type* | Meaning |
| 0 | The node has been decommissioned in the "No Data Migration" mode. |
| 1 | The node has been decommissioned in the "Ensure Accessibility" mode. |
| 2 | The node has been decommissioned in the "Full Data Migration" mode. |
Log in to the ESXi host via SSH or local console (physical or KVM console)
Query the node's decommission state command:
# cmmds-tool find -t NODE_DECOM_STATE -f json -u <host_uuid>
To examine the decommission state of all healthy nodes in the vSAN cluster, use the following procedure:
Log in to the ESXi host via SSH or local console (physical or KVM console)
Query all healthy nodes' decommission state via CMMDS, using the cmmds-tool command:
# 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|sortIn this example, we see that node vsanhost-3 is fully decommissioned, and it was decommissioned in the Ensure Accessibility mode.
Note: The number of nodes reported here should match the number of nodes in the vSAN cluster.