Webclient does not show what type of Maintenance mode task is running
search cancel

Webclient does not show what type of Maintenance mode task is running

book

Article ID: 326868

calendar_today

Updated On:

Products

VMware vSAN

Issue/Introduction

Symptoms:
  • A host is taking a long time to enter Maintenance Mode
  • The WebClient does not show what option was selected when the task was initiated where typically, there is a drop-down with three different options the user can select when putting a vSAN host in Maintenance mode.
    • No Data Migration
    • Ensure Accessibility
    • Full Data Migration

 

  • If this task is taking a long time it is important to know what type of maintenance mode task is in progress to ensure the task is truly in a hung state.
    • Full Evacuation will perform a resync to migrate all data off of the host before going into maintenance mode and is expected to take a long time. 
    • Ensure Accessibility will also have a resync to migrate data to ensure the objects still meet compliance.   


Environment

VMware vSAN 8.0.x
VMware vSAN 6.x
VMware vSAN 7.0.x

Resolution

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