vSAN ESXi stuck entering Maintenance Mode
search cancel

vSAN ESXi stuck entering Maintenance Mode

book

Article ID: 439496

calendar_today

Updated On:

Products

VMware vSAN VMware vSphere ESXi

Issue/Introduction

  • ESXi fails to enter Maintenance Mode.

  • VMs running on vSAN storage are accessible but will not migrate off host.

  • In vCenter, ESXi host is intermittently entering a "Not Responding" state.

  • localcli commands fail with "Segmentation fault"

    [root@host1:/vmfs] localcli vsan cluster get
    Segmentation fault

  • Cannot run vSAN evacuation precheck on ESXi host:

    [root@host1: /vmfs] localcli vsan debug evacuation precheck -e localhost
    Error loading plugin /usr/lib/vmware/esxcli/lib64/libcore-storage.so skipping. Error was: Unable to load plugin from  /usr/lib/vmware/esxcli/lib64/libcore-storage.so : libvmsnapshot.so: failed to map segment from shared object: No space  left on device
    Error loading plugin /usr/lib/vmware/esxcli/lib64/libdaemon. so skipping. Error was: Unable to load plugin from /usr/lib/vmware/esxcli/lib64/libdaemon.so : /usr/lib/vmware/esxcli/lib64/libdaemon. so: cannot allocate symbol search list: Cannot allocate memory
    Error loading plugin /usr/lib/vmware/esxcli/lib64/libdevice. so skipping.  Error was: Unable to load plugin from /usr/lib/vmware/esxcli/lib64/libdevice.so : libconfigstoredb. so: cannot create shared object descriptor terminate called after throwing an instance of 'std: :bad_alloc' what () : std: :bad alloc
    Aborted

     



Environment

VMware vSphere ESXi 8.x

Cause

  • ESXi boot lun is in a failed state. vmkernel.log reports APD events on boot lun.

  • ESXi host is currently operating from cached memory.

Resolution

  • The failed boot lun will need to be replaced and ESXi re-installed.

  • ESXi host will need to be shutdown but as host is part of a vSAN cluster we need to run an evacuation precheck. This cannot be run on vCenter or on host cli, so we run on another host in vSAN cluster.

  • To get uuid of problem host run "cmmds-tool find -t HOSTNAME -f json | grep -E "uuid|hostname""

  • Run "localcli vsan debug evacuation precheck -e <UUID_OF_PROBLEMHOST> -a noAction"

    If no objects will become inaccessible then it is safe to do a shutdown of this host, without entering vSAN Maintenance Mode.

         [root@host2 :~ ] esxcli vsan debug evacuation precheck -e ####-####-####-####-a noAction
         Action: No Action
         Evacuation Outcome: Success
         Entity: Host <host1>
         Data to Move: 0.00 GB
         Number Of Objects That Would Become Inaccessible: 0
         Objects That Would Become Inaccessible: None
         Number Of Objects That Would Have Redundancy Reduced: ##
         Objects That Would Have Redundancy Reduced: (only shown with -- verbose option)
         Additional Space Needed for Evacuation: N/A

  • We would expect vsan objects to be in a Reduced State.