To check which option was selected when the task was initiated, check the vmware-vsan-health-service.log located here /var/log/vmware/vsan-health/ in vCenter for the time when the task was initiated and an entry like this will be seen where objectAction corresponds to the type of Maintenance mode action selected.
Check this in /var/log/vmware/vsan-health/vmware-vsan-health-service.log on the vCenter
},
parentTask = (vim.vsan.ResourceCheckTaskDetails) {
task = 'vim.Task:task-37519',
host = 'vim.HostSystem:host-12',
hostUuid = '5d653c46-xxxx-xxxx-xxxx-005056013016',
maintenanceSpec = (vim.host.MaintenanceSpec) {
vsanMode = (vim.vsan.host.DecommissionMode) {
objectAction = 'ensureObjectAccessibility'
}
}
}
}
You can also determine which maintenance mode was selected by running one of the following on the host being placed into maintenance mode:
Pre 7.0 grep "/vsan/hostDecommission" /etc/vmware/esx.conf
7.0 and higher configstorecli config current get -c vsan -g system -k host_state