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
- Connect using SSH to the host with the appliance and execute
hosted-engine --set-maintenance --mode=global
- Connect to the oVirt Engine Admin portal, shutdown all virtual machines but the oVirt Engine Appliance
- Using the portal, set all Compute hosts except the one hosting the Engine Appliance to "Maintenance"
- Connect using SSH to above Compute hosts and execute
hosted-engine --set-maintenance --mode=local
thenpoweroff
- Connect using SSH to the host with the appliance and execute
hosted-engine --vm-shutdown
- Execute
hosted-engine --vm-status
until Engine status reads "down" - Execute
hosted-engine --set-maintenance --mode=local
- Execute
hosted-engine --vm-status
until "local maintenance" status changes to "true" thenpoweroff
- Using either SSH or Web Portal, shutdown Storage host
Cluster Startup
- Power on Storage host and wait until options menu is displayed
- Power on the Compute hosts and wait until startup is complete
- Connect using SSH to one of the Compute hosts
- Verify "stopped" is "false" (vdsm is running) then execute
hosted-engine --set-maintenance --mode=none
- Execute
hosted-engine --vm-start
- Execute
hosted-engine --vm-status
untilEngine status : {"health": "good", "vm": "up", "detail": "up"}
- 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
- 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
- Connect to the oVirt Engine Admin portal
- Navigate to "Clusters"
- Select "Default"
- Select "Hosts"
- Right mouse-click the Compute host to enter "Maintenance"
- Connect via SSH to the Compute host and execute
poweroff
Startup
- Power on then wait until services are all running
- Connect to the oVirt Engine Admin portal
- Navigate to "Clusters"
- Select "Default"
- Select "Hosts"
- Right mouse-click the Compute host to "Activate"
Next
Next article in the series is oVirt Storage and Networking.