Initiating maintenance mode with the Full data migration option in a VMware vSAN cluster starts immediate object resynchronization. this process can cause significant storage performance degradation. If maintenance mode task initiated accidentally, Canceling the task stops unnecessary data movement and restores normal cluster operations.
Cancel the maintenance mode task:
Login to effectuated host via SSH using root credentials.
Run the following command to cancel the maintenance mode task:esxcli vsan maintenancemode cancel
If steps above does not resolve the issue, try the following:
Make sure all virtual machine are migrated from host affected
Login to ESXI host (web client) and EXIT host from maintenance mode.
If the host fails to exit maintenance mode, restart the management agents on the host:
/etc/init.d/vpxa restart
/etc/init.d/hostd restart
/etc/init.d/vsanmgmtd restart
After restarting management services, Exit host from maintenance mode using from vCenter.
Validate whether the maintenance mode task was successfully canceled:
vim-cmd vimsvc/task_list 'vim.Task:haTask-ha-host-vim.HostSystem.enterMaintenanceMode-#####',vim-cmd vimsvc/task_info <TASKNAME>,vim-cmd vimsvc/task_info 'vim.Task:haTask-ha-host-vim.HostSystem.enterMaintenanceMode-#####'vmodl.fault.ManagedObjectNotFound) { faultCause = (vmodl.MethodFault) null, faultMessage = <unset>, obj = 'vim.Task:vim.Task:haTask-ha-host-vim.HostSystem.enterMaintenanceMode-#####,' msg = "Received SOAP response fault from [<<io_obj p:0x#########, h:6, <TCP '###.#.#.# : 20989'>, <TCP '###.#.#.#: 8307'>>, /sdk>]: GetInfoThe object 'vim.Task:vim.Task:haTask-ha-host-vim.HostSystem.enterMaintenanceMode-#####,' has already been deleted or has not been completely created"}