Backtrack:  
 
by lunarg on April 29th 2015, at 14:00

Sometimes it may be required to do a full restart of agents and services on a VMWare ESX host. You could do a full reboot, but this requires all VMs to be shut down or moved to another host. Fortunately, it is also possible to do a complete restart of services on a host without affecting the VMs running on it.

There are two ways of doing this, depending on whether you have direct access to the host, through console or through a remote management system like HP's iLO or Dell's iDRAC, or have to do it remotely.

Note that using the Restart management agents function from the console is not the same as a full restart of all services.

Local access

Use this method if you have access to the host directly through console, or when you can use a remote management system such as HP's Integrated Lights-Out or Dell's iDRAC.

If you can't log on using the vSphere client or SSH, this is the only way to restart the services.

  1. Log on to the console using the root account.
  2. In the menu, go to Troubleshooting, then enable the ESXi Shell.
  3. Press ALT+F1 on your keyboard to open the shell, then log in again with the root account and password.
  4. Restart the services, and wait for the process to be completed:
  5. /usr/sbin/services.sh restart
  6. Type exit to log out.
  7. Optionally, press ALT+F2 and turn off the ESXi Shell.

Remote access

Remote access can be achieved through SSH, after which you can log in and run the restart command. If SSH is not enabled on the host, you can enable it through the vSphere client by logging in directly on the ESX host, or connect to your vCenter server/appliance. You can also enable the SSH service directly through console access.

  1. If not enabled, enable the SSH server on the host.
  2. Open your favourite SSH client (if you don't have one, download and use PuTTY, and connect to the ESX host, using the root account.
  3. Restart the services, and wait for the process to be completed:
  4. /usr/sbin/services.sh restart
  5. Type exit to log out.
  6. Optionally, shut down and disable the SSH server on the host.
 
 
« January 2021»
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
24252627282930
31      
 
Links
 
Quote
« If the batteries of a TV remote run out, why do we press the buttons so much harder? »