Show Table of Contents
Chapter 4. Troubleshooting a Self-Hosted Engine Deployment
4.1. Troubleshooting the Manager Virtual Machine
Procedure 4.1. Troubleshooting the Manager Virtual Machine
- Check the status of the Manager virtual machine by running
hosted-engine --vm-status.Note
Any changes made to the Manager virtual machine will take about 20 seconds before they are reflected in the status command output.If the Manager virtual machine is up and running as normal, you will see the following output:--== Host 1 status ==-- Status up-to-date : True Hostname : hypervisor.example.com Host ID : 1 Engine status : {"health": "good", "vm": "up", "detail": "up"} Score : 3400 stopped : False Local maintenance : False crc32 : 99e57eba Host timestamp : 248542 - If the is bad or the is down, enable the global maintenance mode so that the hosts are no longer managed by the HA services.
- In the Administration Portal, right-click the engine virtual machine, and select Enable Global HA Maintenance.
- You can also set the maintenance mode from the command line:
# hosted-engine --set-maintenance --mode=global
- If the Manager virtual machine is down, start the Manager virtual machine. If the virtual machine is up, skip this step.
# hosted-engine ---vm-start
- Set the console password:
# hosted-engine --add-console-password
- Connect to the console. When prompted, enter the password set in the previous step. For more console options, see https://access.redhat.com/solutions/2221461.
# hosted-engine --console
- Determine why the Manager virtual machine is down or in a bad health state. Check
/var/log/messagesand/var/log/ovirt-engine/engine.log. After fixing the issue, reboot the Manager virtual machine. - Log in to the Manager virtual machine as root and verfiy that the
ovirt-engineservice is up and running:# service ovirt-engine status
- After ensuring the Manager virtual machine is up and running, close the console session and disable the maintenance mode to enable the HA services again:
# hosted-engine --set-maintenance --mode=none
Additional Troubleshooting Commands:
Important
Contact the Red Hat Support Team if you feel you need to run any of these commands to troubleshoot your self-hosted engine environment.
hosted-engine --reinitialize-lockspace: This command is used when the sanlock lockspace is broken. Ensure that the global maintenance mode is enabled and that the Manager virtual machine is stopped before reinitializing the sanlock lockspaces.hosted-engine --clean-metadata: Remove the metadata for a host's agent from the global status database. This makes all other hosts forget about this host. Ensure that the target host is down and that the global maintenance mode is enabled.hosted-engine --check-liveliness: This command checks the liveliness page of the ovirt-engine service. You can also check by connecting tohttps://engine-fqdn/ovirt-engine/services/health/in a web browser.hosted-engine --connect-storage: This command instructs VDSM to prepare all storage connections needed for the host and and the Manager virtual machine. This is normally run in the back-end during the self-hosted engine deployment. Ensure that the global maintenance mode is enabled if you need to run this command to troubleshoot storage issues.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.