Questo contenuto non è disponibile nella lingua selezionata.
Chapter 4. Troubleshooting a Self-Hosted Engine Deployment
4.1. Troubleshooting the Manager Virtual Machine Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
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:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - If theis 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
# hosted-engine --set-maintenance --mode=global
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- 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
# hosted-engine ---vm-start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Set the console password:
hosted-engine --add-console-password
# hosted-engine --add-console-password
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 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
# hosted-engine --console
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Determine why the Manager virtual machine is down or in a bad health state. Check
/var/log/messages
and/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-engine
service is up and running:service ovirt-engine status
# service ovirt-engine status
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 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
# hosted-engine --set-maintenance --mode=none
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
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.