VMware vSAN 7.x
VMware vSAN 8.x
Verify that none of the vSAN objects go in reduced availability or inaccessible state.
Select the vSAN cluster > Configure > Disk Management > Select the host to be decommissioned > View Disks > Select the disk group >Remove the Disk group
Select the vSAN cluster > Configure > Disk Management > Select the host to be decommissioned > View Disks > Select the disks > Remove Disk
esxcli vsan cluster leave
" can also be run from the command line of the host to leave the cluster.esxcli vsan cluster unicastagent list
" to validate on each host:From the above list, validate if the vSAN IP of the removed host remains.
Remove it using the command: esxcli vsan cluster unicastagent remove -a <Host_VSAN_IP>
2. To decommission a vSAN node that has failed in a vSAN cluster follow below steps -
SSH to all the remaining healthy vSAN nodes and run command: esxcfg-advcfg -s 0 /VSAN/IgnoreClusterMemberListUpdates
Try to disconnect the failed host by right clicking the host > Connection > Disconnect.
Now remove the failed host from the vCenter by right clicking the host > Remove from inventory.
Generally the above steps should be enough to remove the failed host from the vSAN cluster, but there is a chance the other hosts are still trying to establish connectivity with the failed host, if their unicast agent list still has details for the failed host. In that scenario, run the command on all the remaining healthy vSAN nodes to remove the failed host completely from the vSAN cluster : esxcli vsan cluster unicastagent remove -a <Host_VSAN_IP>
To perform maintenance mode pre-check for ESXi host: Check a Host's Data Migration Capabilities
vSAN Storage Policies Using vSAN Policies
To fully disable a vSAN cluster, see Disable vSAN.