Questo contenuto non è disponibile nella lingua selezionata.
6.3. Upgrading a RHEL or RHEV-H 6 Self-Hosted Engine Environment
- Upgrade the Manager
- Upgrade the hosts
- Perform post-upgrade tasks
Important
engine-setup
command will attempt to roll back the Manager installation to its previous state. For this reason, the repositories required by Red Hat Enterprise Virtualization 3.5 must not be removed until after the upgrade is complete. If the upgrade fails, detailed instructions display that explain how to restore your installation.
Procedure 6.9. Upgrading the Manager
- Enable global maintenance from one of the self-hosted engine hosts:
hosted-engine --set-maintenance --mode=global
# hosted-engine --set-maintenance --mode=global
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - On the Manager virtual machine, subscribe to the required entitlements for receiving the Manager 3.6 packages:
subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms
# subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms
Copy 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 the following command and follow the prompts to upgrade the Manager:
engine-setup --otopi-environment=OVESETUP_DB/forceUpgradeWithHeEl6Hosts=bool:True
# engine-setup --otopi-environment=OVESETUP_DB/forceUpgradeWithHeEl6Hosts=bool:True
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Remove or disable the Manager 3.5 repository to ensure the system does not use any 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-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
host-direct-upgrade
tool.
host-direct-upgrade
Tool
The host-direct-upgrade
tool provides a simple and fast way to upgrade a Red Hat Enterprise Virtualization 3.5 self-hosted engine environment, running on RHEV-H 6 or RHEL 6, to a Red Hat Enterprise Virtualization 3.6 self-hosted engine environment, running on Next Generation RHVH or RHEL 7. The tool has two main functions:
- Importing configurationThe tool imports the configuration files (
answers.conf
,hosted-engine.conf
,vm.conf
,broker.conf
) from the host on which the self-hosted engine was first deployed to the Manager virtual machine for later export to upgraded hosts. All files must be present on the host in order for the import to succeed. During this operation, theovirt-engine
service may be restarted to allow clusters with mixed hosts (different RHEL versions). - Exporting configuration and configuring hostsThe tool configures an upgraded host with the configuration files that were imported to the Manager virtual machine. This operation can only be performed after the configuration file import operation.
Procedure 6.10. Upgrading the Self-Hosted Engine Host
- In the Administration Portal, click the Hosts tab, select the host on which the self-hosted engine was originally deployed, click , and click . The host's virtual machines, including the Manager, will migrate to other hosts.
- Connect to the Manager virtual machine and run the
host-direct-upgrade
tool to import the configuration files:/usr/share/ovirt-engine/bin/host-direct-upgrade.sh --import-configuration-files [-h 3.5-host-address]
# /usr/share/ovirt-engine/bin/host-direct-upgrade.sh --import-configuration-files [-h 3.5-host-address]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
If you do not specify the optional-h 3.5-host-address
parameter, you will be prompted to input the 3.5 host's IP address or FQDN later.Thehost-direct-upgrade
tool checks whether the self-hosted engine is configured to allow mixed RHEL versions in the same cluster. If not, theovirt-engine
service is restarted. - In the Administration Portal, click the Clusters tab and select the cluster.
- Click.
- In the Scheduling Policy tab, select InClusterUpgrade from the Policy drop-down list and click .
- Download Next Generation RHVH (for RHEV-M 3.6.11 Async) or RHEL 7.
- Install the newer operating system on the host, keeping the same IP address and host name. See Installing Red Hat Virtualization Host in the Installation Guide to install Next Generation RHVH or the Red Hat Enterprise Linux Installation Guide to install RHEL 7.
- Connect to the Manager virtual machine and run the
host-direct-upgrade
tool to export the configuration files:/usr/share/ovirt-engine/bin/host-direct-upgrade.sh --export-and-configure [-h 3.6-host-address]
# /usr/share/ovirt-engine/bin/host-direct-upgrade.sh --export-and-configure [-h 3.6-host-address]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
The 3.6-host-address is the IP address or FQDN of the host that you upgraded.This process may take 10 to 15 minutes. - Check the host's status:
hosted-engine --vm-status
# hosted-engine --vm-status
Copy to Clipboard Copied! Toggle word wrap Toggle overflow TheScore
should be2800
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - In the Administration Portal, click the Hosts tab and select the 3.5 host (still in maintenance mode).
- Clickand .
- Clickand add the upgraded host. Its status should be
Up
. - Migrate the Manager virtual machine manually to the upgraded host. See Manually Migrating Virtual Machines in the Virtual Machine Management Guide for details.
Procedure 6.11. Comparing the Manager's SPM ID to the Host IDs
- Connect to the Manager virtual machine and run the following command to output the SPM ID:
sudo -u postgres psql engine -c "SELECT vds_spm_id, vds.vds_name FROM vds"
# sudo -u postgres psql engine -c "SELECT vds_spm_id, vds.vds_name FROM vds"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Connect to each host and run the following command to ouput the Host ID:
grep "^host_id" /etc/ovirt-hosted-engine/hosted-engine.conf
# grep "^host_id" /etc/ovirt-hosted-engine/hosted-engine.conf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - If a host's Host ID does not match the Manager's SPM ID:
- In the Administration Portal, click the Hosts tab, select the host with the mismatched Host ID, click , and click .
- Connect to the host and correct the
host_id
value in the/etc/ovirt-hosted-engine/hosted-engine.conf
file. - Reboot the host.
- In the Administration Portal, click the Hosts tab and select the host.
- Clickand .
Procedure 6.12. Upgrading the Remaining Hosts
- In the Administration Portal, click the Hosts tab, select another host, and click .The host's virtual machines will migrate to other machines, preferring hosts with newer operating systems, because of the
InClusterUpgrade
policy. If the virtual machines do not migrate automatically, migrate them manually. See Manually Migrating Virtual Machines in the Virtual Machine Management Guide for details. - When the host has no virtual machines, click.
- Install Next Generation RHVH or RHEL 7 on the host, keeping its IP address and host name.
- In the Administration Portal, click the Hosts tab and click to add the upgraded host.
Note
The upgraded host is added manually, before thehosted-engine
setup, in order to preserve its Host ID. - Connect to the host, disable NetworkManager, and enable the network script:
systemctl stop NetworkManager; systemctl disable NetworkManager; systemctl start network; systemctl enable network
# systemctl stop NetworkManager; systemctl disable NetworkManager; systemctl start network; systemctl enable network
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Install the
screen
utility if necessary:yum install screen
# yum install screen
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the
hosted-engine
setup in ascreen
session:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
You can ignore the[ ERROR ] Cannot automatically set CPU level of cluster Default
message.
Procedure 6.13. Post-Upgrade Tasks
- In the Administration Portal, click the Cluster tab and select the cluster.
- Select 3.6 from the Compatibility Version drop-down list.
- In the Scheduling Policy tab, select None from the Policy drop-down list and click .
- Reboot each virtual machine (except the Manager virtual machine), one by one.
- Connect to the Manager virtual machine and update its configuration:
engine-config -s CheckMixedRhelVersions=true --cver=3.5
# engine-config -s CheckMixedRhelVersions=true --cver=3.5
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - In the Administration Portal, click the Events tab and confirm that the Manager virtual machine and its storage domain were imported successfully:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - In the Virtual Machines tab, select the Manager virtual machine, and click .
- Connect to a self-hosted engine host 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 Wait for theovirt-ha-agent
service to restart the Manager virtual machine. - Check the status of each host:
hosted-engine --vm-status
# hosted-engine --vm-status
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Each host should have a score of3400
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow