VMware vSAN 7.x
VMware vSAN 8.x
{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-005056af00a0",
"owner": "57786c67-8501-bb75-7a1e-005056af00a0",
"health": "Healthy",
"revision": "28",
"type": "NODE_DECOM_STATE",
"flag": "2",
"minHostVersion": "0",
"md5sum": "3c2593056659ee3c9e97039a3eefea8e",
"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 | 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 |
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 via CMMDS, using the cmmds-tool command:
# cmmds-tool find -t NODE_DECOM_STATE -f json -u `cmmds-tool whoami`
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.