Ce contenu n'est pas disponible dans la langue sélectionnée.
15.8. Updating a Self-Hosted Engine
To update a self-hosted engine from your current version of 4.3 to the latest version of 4.3, you must place the environment in global maintenance mode and then follow the standard procedure for updating between minor versions.
Enabling Global Maintenance Mode
You must place the self-hosted engine environment in global maintenance mode before performing any setup or upgrade tasks on the Manager virtual machine.
Procedure
Log in to one of the self-hosted engine nodes and enable global maintenance mode:
hosted-engine --set-maintenance --mode=global
# hosted-engine --set-maintenance --mode=global
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Confirm that the environment is in maintenance mode before proceeding:
hosted-engine --vm-status
# hosted-engine --vm-status
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You should see a message indicating that the cluster is in maintenance mode.
Updating the Red Hat Virtualization Manager
Updates to the Red Hat Virtualization Manager are released through the Content Delivery Network.
Procedure
- Log in to the Manager virtual machine.
Check if updated packages are available:
engine-upgrade-check
# engine-upgrade-check
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Update the setup packages:
yum update ovirt\*setup\* rh\*vm-setup-plugins
# yum update ovirt\*setup\* rh\*vm-setup-plugins
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Update the Red Hat Virtualization Manager with the
engine-setup
script. Theengine-setup
script prompts you with some configuration questions, then stops theovirt-engine
service, downloads and installs the updated packages, backs up and updates the database, performs post-installation configuration, and starts theovirt-engine
service.engine-setup
# engine-setup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow When the script completes successfully, the following message appears:
Execution of setup completed successfully
Execution of setup completed successfully
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteThe
engine-setup
script is also used during the Red Hat Virtualization Manager installation process, and it stores the configuration values supplied. During an update, the stored values are displayed when previewing the configuration, and might not be up to date ifengine-config
was used to update configuration after installation. For example, ifengine-config
was used to updateSANWipeAfterDelete
totrue
after installation,engine-setup
will output "Default SAN wipe after delete: False" in the configuration preview. However, the updated values will not be overwritten byengine-setup
.ImportantThe update process might take some time. Do not stop the process before it completes.
Update the base operating system and any optional packages installed on the Manager:
yum update
# yum update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow ImportantIf any kernel packages were updated:
- Disable global maintenance mode
- Reboot the machine to complete the update.
Related Information
Disabling Global Maintenance Mode
Procedure
- Log in to the Manager virtual machine and shut it down.
Log in to one of the self-hosted engine nodes and disable global maintenance mode:
hosted-engine --set-maintenance --mode=none
# hosted-engine --set-maintenance --mode=none
Copy to Clipboard Copied! Toggle word wrap Toggle overflow When you exit global maintenance mode, ovirt-ha-agent starts the Manager virtual machine, and then the Manager automatically starts. It can take up to ten minutes for the Manager to start.
Confirm that the environment is running:
hosted-engine --vm-status
# hosted-engine --vm-status
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The listed information includes Engine Status. The value for Engine status should be:
{"health": "good", "vm": "up", "detail": "Up"}
{"health": "good", "vm": "up", "detail": "Up"}
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteWhen the virtual machine is still booting and the Manager hasn’t started yet, the Engine status is:
{"reason": "bad vm status", "health": "bad", "vm": "up", "detail": "Powering up"}
{"reason": "bad vm status", "health": "bad", "vm": "up", "detail": "Powering up"}
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If this happens, wait a few minutes and try again.