Questo contenuto non è disponibile nella lingua selezionata.
6.2. Upgrading a RHEL or RHEV-H 7 Self-Hosted Engine Environment
Note
Important
- Place the high-availability agents that manage the Manager virtual machine in the global maintenance mode.
- Update the Manager virtual machine.
- Place a self-hosted engine host into maintenance. The Manager virtual machine and other virtual machines will be migrated to another host in the cluster if necessary.
- Update the self-hosted engine host. Repeat for all hosts. It is recommended to update all hosts in the environment, including standard hosts.
- After all hosts in the cluster and the Manager virtual machine have been updated, change the cluster compatibility version to 3.6.
Procedure 6.4. Upgrading the Self-Hosted Engine Manager Virtual Machine
- Disable the high-availability agents on all the self-hosted engine hosts. To do this run the following command on any self-hosted engine host in the cluster.
hosted-engine --set-maintenance --mode=global
# hosted-engine --set-maintenance --mode=globalCopy to Clipboard Copied! Toggle word wrap Toggle overflow After a few minutes, runhosted-engine --vm-statusto confirm that the environment is in maintenance mode. - Log in to the Manager virtual machine to upgrade the Red Hat Enterprise Virtualization Manager.
- Enable the Red Hat Enterprise Virtualization Manager 3.6 repository:
subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms
# subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Update the rhevm setup packages:
yum update rhevm\*setup\*
# yum update rhevm\*setup\*Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run
engine-setupand follow the prompts to upgrade the Red Hat Enterprise Virtualization Manager:engine-setup
# engine-setupCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Remove or disable the Red Hat Enterprise Virtualization Manager 3.5 repository to ensure the system does not use any Red Hat Enterprise Virtualization Manager 3.5 packages:
subscription-manager repos --disable=rhel-6-server-rhevm-3.5-rpms
# subscription-manager repos --disable=rhel-6-server-rhevm-3.5-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Update the base operating system:
yum update
# yum updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 6.5. Updating the RHEV-H Self-Hosted Engine Host
- Update the RHEV-H host. See Updating Red Hat Enterprise Virtualization Hypervisors in the Upgrade Guide for more information.
- On the host, restart VDSM:
systemctl restart vdsmd
# systemctl restart vdsmdCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Restart
ovirt-ha-brokerandovirt-ha-agent:systemctl restart ovirt-ha-broker
# systemctl restart ovirt-ha-brokerCopy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl restart ovirt-ha-agent
# systemctl restart ovirt-ha-agentCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Repeat step 1 to step 3 to update all self-hosted engine hosts. If you have any standard RHEV-H hosts you can update them using step 1.
- Disable global maintenance after all self-hosted engine hosts have been updated.
hosted-engine --set-maintenance --mode=none
# hosted-engine --set-maintenance --mode=noneCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 6.6. Updating the RHEL-Based Self-Hosted Engine Host
- Access the Administration Portal. Select a self-hosted engine host and place it into maintenance mode by clicking . If the host is hosting the Manager virtual machine, the virtual machine will be migrated to another host. Any other virtual machines will be migrated according to your virtual machine migration policy. The high-availability agents are automatically placed into local maintenance.
- Update the self-hosted engine host:
yum update
# yum updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Restart VDSM:
systemctl restart vdsmd
# systemctl restart vdsmdCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Restart
ovirt-ha-brokerandovirt-ha-agent:systemctl restart ovirt-ha-broker
# systemctl restart ovirt-ha-brokerCopy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl restart ovirt-ha-agent
# systemctl restart ovirt-ha-agentCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Access the Administration Portal. Select the same host and click .
- Repeat step 1 to step 5 to update all self-hosted engine hosts. If you have standard Red Hat Enterprise Linux 7 hosts in your environment, ensure the required repository is enabled on the host as in step 2, and update the host. See Updating Red Hat Enterprise Linux Virtualization Hosts in the Upgrade Guide for more information.
- Disable global maintenance after all self-hosted engine hosts have been updated.
hosted-engine --set-maintenance --mode=none
# hosted-engine --set-maintenance --mode=noneCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 6.7. Upgrading Additional Hosts
- Access the Administration Portal. Select the host and place it into maintenance mode by clicking . If the host is hosting the Manager virtual machine, the virtual machine will be migrated to another host. Any other virtual machines will be migrated according to your virtual machine migration policy. The high-availability agents are automatically placed into local maintenance.
- Ensure the required repository is enabled:
subscription-manager repos --enable=rhel-7-server-rhev-mgmt-agent-rpms
# subscription-manager repos --enable=rhel-7-server-rhev-mgmt-agent-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Update the self-hosted engine host:
yum update
# yum updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Restart VDSM:
service vdsmd restart
# service vdsmd restartCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Restart
ovirt-ha-brokerandovirt-ha-agent:service ovirt-ha-broker restart
# service ovirt-ha-broker restartCopy to Clipboard Copied! Toggle word wrap Toggle overflow service ovirt-ha-agent restart
# service ovirt-ha-agent restartCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Access the Administration Portal. Select the host and activate it by clicking .
- Repeat the steps for all self-hosted engine hosts you want to upgrade.
Important
Procedure 6.8. Updating the Cluster Compatibility Version
- Access the Administration Portal. Select the Default cluster and click to open the Edit Cluster window.
- Use the Compatibility Version drop-down menu to select 3.6. Click to save the change and close the window.