在 ESX/ESXi 主机上退出挂起的维护模式
search cancel

在 ESX/ESXi 主机上退出挂起的维护模式

book

Article ID: 337193

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

 


 

This article provides the process to exit a pending maintenance mode from the VMware Infrastructure/vSphere Client or from the command line on the console of an ESX/ESXi host.




Environment

VMware ESXi 4.0.x Installable
VMware ESXi 3.5.x Installable
VMware vSphere ESXi 5.0
VMware ESXi 3.5.x Embedded
VMware ESX Server 3.0.x
VMware ESXi 4.0.x Embedded
VMware ESXi 4.1.x Installable
VMware ESX 4.0.x
VMware ESX Server 3.5.x
VMware ESX 4.1.x
VMware ESXi 4.1.x Embedded

Resolution

To determine if an ESX/ESXi host is currently in maintenance mode:

  1. Open a console to the ESX or ESXi host. For more information, see:
  2. Run one of the following commands:

    ESXi: # vim-cmd /hostsvc/hostsummary | grep inMaintenanceMode
    ESX: # vimsh -n -e /hostsvc/hostsummary | grep inMaintenanceMode

To exit from pending maintenance mode, try one of the following options:

  • Disconnect the vSphere Client (close it) and reconnect to the ESX host to see if the option to exit maintenance mode appears. If this works, there is a known issue with the vSphere Client when refreshing the information.

  • Use the vimshor vim-cmdcommand to exit maintenance mode.

    1. Open a console to the ESX or ESXi host. 


    2. Run one of the following commands:

      ESXi: # vim-cmd /hostsvc/maintenance_mode_exit
      ESX: # vimsh -n -e /hostsvc/maintenance_mode_exit

  • Restart the Management agents on the host. For more information, see 

  • Review the log files located at /var/log/vmware/hostd.logto determine if the hosted management agent is vmware-authdexperiencing issues connecting to the service. 

    1. Open a console to the ESX or ESXi host. 


    2. Check the /var/log/vmware/hostd log file for messages similar to:

      [VpxVmdbCnx] Authd error: 514 Error connecting to hostd-vmdb service instance.
      [VpxVmdbCnx] Failed to connect to host :902. Check that authd is running correctly (lib/connect error 11)

    3. Restart the vmware-authdand xinetdservices using the following commands:

      # chkconfig vmware-authd off
      # service xinetd restart
      # chkconfig --level 3 vmware-authd on
      # service xinetd restart

If these steps do not resolve the issue, create a support ticket with VMware Support for further investigation.