vSAN Decommission State and ESXi maintenance mode are 2 tasks that run together but are parallel tasks:
- ESXi maintenance mode:
- vSAN Decommission State:
VMware vSAN (All Versions)
esxcli vsan cluster get
Example of output:
[root@esx:~] esxcli vsan cluster get
Cluster Information
Enabled: true
Current Local Time: 20##-0#-1#T1#:1#:39Z
Local Node UUID: 65###80c-f##e-c##8-5##6-a08######d4c
Local Node Type: NORMAL
Local Node State: AGENT
Local Node Health State: HEALTHY
Sub-Cluster Master UUID: 65###80c-f##e-c##8-5##6-a08######d4c
Sub-Cluster Backup UUID: 65###53e-a##0-8##a-0##f-b83#####f1a
Sub-Cluster UUID: 52###505-e##6-3##3-c##6-bc4######696
Sub-Cluster Membership Entry Revision: 1
Sub-Cluster Member Count: 2
Sub-Cluster Member UUIDs: 65###80c-f##e-c##8-5##6-a08######d4c, 66###0d0-3##4-7##9-e##e-005######c3b
Sub-Cluster Member HostNames: esx.example.local, esx2.example.local
Unicast Mode Enabled: true
Maintenance Mode State: ON
Config Generation: fe###17b-4##7-4##7-b##d-fcf######085 1#6 20##-0#-1#T0#:4#:3#.239
Mode: REGULAR
vSAN ESA Enabled: false
[root@esx:~]
Resolution:
Clear the stale vSAN maintenance/decommission state at the vSAN layer by running the following command on the affected ESXi host:
esxcli vsan maintenancemode cancel
If the above command does not resolve the issue, place the affected ESXi host into Maintenance Mode using the No Data Migration option either from the ESXi Host Client or the vCenter UI. After the maintenance mode task completes successfully, exit Maintenance Mode.
This process re-synchronizes the vSAN decommission state with the ESXi maintenance mode state and clears the stale host state inconsistency within the vSAN cluster membership.