OSVDC Series: oVirt 3.6 Cluster Shutdown and Startup - rharmonson/richtech GitHub Wiki

oVirt 3.6 Cluster Shutdown and Startup

Revised: August 10, 2016

Article 9 of the Open Source Virtual Data Center Series

Cluster Shutdown

  1. Connect using SSH to the host with the appliance and execute hosted-engine --set-maintenance --mode=global
  2. Connect to the oVirt Engine Admin portal, shutdown all virtual machines but the oVirt Engine Appliance
  3. Using the portal, set all Compute hosts except the one hosting the Engine Appliance to "Maintenance"
  4. Connect using SSH to above Compute hosts and execute hosted-engine --set-maintenance --mode=local then poweroff
  5. Connect using SSH to the host with the appliance and execute hosted-engine --vm-shutdown
  6. Execute hosted-engine --vm-status until Engine status reads "down"
  7. Execute hosted-engine --set-maintenance --mode=local
  8. Execute hosted-engine --vm-status until "local maintenance" status changes to "true" then poweroff
  9. Using either SSH or Web Portal, shutdown Storage host

Cluster Startup

  1. Power on Storage host and wait until options menu is displayed
  2. Power on the Compute hosts and wait until startup is complete
  3. Connect using SSH to one of the Compute hosts
  4. Verify "stopped" is "false" (vdsm is running) then execute hosted-engine --set-maintenance --mode=none
  5. Execute hosted-engine --vm-start
  6. Execute hosted-engine --vm-status until Engine status : {"health": "good", "vm": "up", "detail": "up"}
  7. Connect to the oVirt Engine Admin portal; takes five to ten minutes for initial load after shutdown but connection take 1 second until next shutdown
  8. Select the other Compute hosts for the cluster and select "Activate" to exit Local Maintenance mode

Note:

If you forget to execute hosted-engine --set-maintenance --mode=none, you will not be able to create new virtual machines until you exit Global Maintenance mode.


Cluster Storage

The Storage host cannot be shutdown without the risk of data corruption as long as a virtual machine including the oVirt Engine Appliance is operational. As a practice, shut down Compute hosts as described above then the Storage host.

Single Compute Host Shutdown & Startup

To do maintenance of only one Compute host use the following procedure:

Shutdown

  1. Connect to the oVirt Engine Admin portal
  2. Navigate to "Clusters"
  3. Select "Default"
  4. Select "Hosts"
  5. Right mouse-click the Compute host to enter "Maintenance"
  6. Connect via SSH to the Compute host and execute poweroff

Startup

  1. Power on then wait until services are all running
  2. Connect to the oVirt Engine Admin portal
  3. Navigate to "Clusters"
  4. Select "Default"
  5. Select "Hosts"
  6. Right mouse-click the Compute host to "Activate"

Next

Next article in the series is oVirt Storage and Networking.