Rechercher

Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 5. Update between minor releases

download PDF

To update the current version of Red Hat Hyperconverged Infrastructure for Virtualization 1.8 to the latest version, follow the steps in this section.

5.1. Update workflow

Red Hat Hyperconverged Infrastructure for Virtualization is a software solution comprising several different components. Update the components in the following order to minimize disruption to your deployment:

5.2. Preparing the systems to update

This section describes the steps to prepare the systems for the update procedure.

5.2.1. Update subscriptions

You can check which repositories a machine has access to by running the following command as the root user on the Hosted Engine Virtual Machine:

# subscription-manager repos --list-enabled

Verify that the Hosted Engine virtual machine is subscribed to the following repositories:

  • rhel-8-for-x86_64-baseos-rpms
  • rhel-8-for-x86_64-appstream-rpms
  • rhv-4.4-manager-for-rhel-8-x86_64-rpms
  • fast-datapath-for-rhel-8-x86_64-rpms
  • jb-eap-7.4-for-rhel-8-x86_64-rpms
  • openstack-16.2-cinderlib-for-rhel-8-x86_64-rpms
  • rhceph-4-tools-for-rhel-8-x86_64-rpms

Verify that the Hyperconverged host (Red Hat Virtualization Node) is subscribed to the following repository:

  • rhvh-4-for-rhel-8-x86_64-rpms

See Enabling the Red Hat Virtualization Manager Repositories for more information on subscribing to the above mentioned repositories.

5.2.2. Verify that data is not currently being synchronized using geo-replication

Perform the following steps to check if geo-replication is in progress:

  1. Click the Tasks tab at the bottom right of the Manager. Ensure that there are no ongoing tasks related to data synchronization. If data synchronization tasks are present, wait until they are complete before starting the update process.
  2. Remove all the scheduled geo-replication sessions so that synchronization will not occur during the update.

    1. Click Storage Domains Select the domain and click on the domain name.
    2. Click the Remote Data Sync Setup tab Setup button.
    3. New dialog window to set the geo-replication schedule pops-up,set the recurrence to None.

5.3. Updating the Hosted Engine virtual machine and Red Hat Virtualization Manager 4.4

This section describes the steps to update the Hosted Engine Virtual Machine and the Red Hat Virtualization Manager 4.4 to move towards updating the hyperconverged hosts.

5.3.1. Updating the Hosted Engine virtual machine

  1. Place the cluster into Global Maintenance mode.

    1. Log in to the Web Console of one of the hyperconverged nodes.
    2. Click Virtualization Hosted Engine.
    3. Click Put this cluster into global maintenance.
  2. On the Manager machine, check if updated packages are available. Log in to the Hosted Engine Virtual Machine and run the following command:

    # engine-upgrade-check

5.3.2. Updating the Red Hat Virtualization Manager

  1. Log in to the Hosted Engine virtual machine.
  2. Upgrade the setup packages using the following command:

    # yum update ovirt-engine\*setup\* rh\*vm-setup-plugins
  3. Update the Red Hat Virtualization Manager with the engine-setup script. The engine-setup script performs the following tasks:

    • Prompts you with configuration questions.
    • Stops the ovirt-engine service.
    • Downloads and installs the updated packages.
    • Backs up and updates the database.
    • Performs post-installation configuration,
    • Starts the ovirt-engine service.

      1. Run the engine-setup script and follow the prompts to upgrade the Manager. This process can take a while and cannot be aborted, Red Hat recommends running it inside a tmux session.

        # engine-setup

        When the script completes successfully, the following message appears:

        Execution of setup completed successfully.

    Important

    The update process might take some time. Do not stop the process before it completes.

  4. Upgrade all other packages.

    # yum update
    Important

    If any kernel packages are updated:

    1. Disable global maintenance mode
    2. Reboot the machine to complete the update.
  5. Remove the cluster from Global Maintenance mode.

    1. Log in to the Web Console of one of the hyperconverged nodes
    2. Click Virtualization Hosted Engine.
    3. Click Remove this cluster from maintenance.

5.4. Upgrading the hyperconverged hosts

The upgrade process differs depending on whether your nodes use Red Hat Virtualization version 4.4.1 or version 4.4.2.

Use the following command to verify which version you are using:

# cat /etc/os-release | grep "PRETTY_NAME"

Then follow the appropriate process for your version:

5.4.1. Upgrading from Red Hat Virtualization 4.4.2 and later

  1. Upgrade each hyperconverged host in the cluster, one at a time.

    For each hyperconverged host in the cluster:

    1. Upgrade the hyperconverged host.

      1. In the Manager, click Compute Hosts and select a node.
      2. Click Installation Upgrade.
      3. Click OK to confirm the upgrade.

        The node is upgraded and rebooted.

    2. Verify self-healing is complete.

      1. Click the name of the host.
      2. Click the Bricks tab.
      3. Verify that the Self-Heal Info column shows OK beside all bricks.
  2. Update cluster compatibility settings to ensure you can use new features.

    1. Log in to the Administrator Portal.
    2. Click Cluster and select the cluster name (Default).
    3. Click Edit.
    4. Change Cluster compatibility version to 4.6.

      Important

      Cluster compatibility is not completely updated until the virtual machines have been rebooted. Schedule a maintenance window and move any application virtual machines to maintenance mode before rebooting all virtual machines on each node.

    5. Click Compute Data Centers.
    6. Click Edit.
    7. Change Compatibility version to 4.6.
  3. Update data center compatibility settings to ensure you can use new features.

    1. Select Compute Data Centers.
    2. Select the appropriate data center.
    3. Click Edit.
    4. The Edit Data Center dialog box opens.
    5. Update Compatibility Version to 4.6 from the dropdown list.

5.4.2. Upgrading from Red Hat Virtualization 4.4.1 and earlier

  1. In the Manager, click Compute Hosts and select a node.
  2. Click Installation Check for Upgrade. This will trigger a background check on that host for the presence of host update.
  3. Once the update is available, there will be a notification next to the host about the availability of host update.
  4. Move the host to maintenance mode.

    1. On the RHV Administration Portal, navigate to Hosts Select the host.
    2. Click on Management Maintenance Maintenance Host dialog box opens.
    3. On the Maintenance Host dialog box, check the Stop Gluster service box click OK.
  5. Once the host is in maintenance mode, click Installation Upgrade.

    Upgrade Host dialog box opens, make sure to un-check Reboot host after upgrade.

  6. Click OK to confirm the upgrade.
  7. Wait for the upgrade to complete.
  8. Remove the existing LVM filter on the upgraded host before rebooting by using the following command:

    # sed -i /^filter/d /etc/lvm/lvm.conf
  9. Reboot the host.
  10. Once the host is rebooted, regenerate the LVM filter:

    # vdsm-tool config-lvm-filter -y
  11. Verify self-healing is complete before upgrading the next host.

    1. Click the name of the host.
    2. Click the Bricks tab.
    3. Verify that the Self-Heal information column of all bricks is listed as OK before upgrading the next host.
  12. Repeat the above steps on the other hyperconverged hosts.
  13. Update cluster compatibility settings to ensure you can use new features.

    1. Log in to the Administrator Portal.
    2. Click Cluster and select the cluster name (Default).
    3. Click Edit.
    4. Change Cluster compatibility version to 4.6.

      Important

      Cluster compatibility is not completely updated until the virtual machines have been rebooted. Schedule a maintenance window and move any application virtual machines to maintenance mode before rebooting all virtual machines on each node.

    5. Click Compute Data Centers.
    6. Click Edit.
    7. Change Compatibility version to 4.6.
  14. Update data center compatibility settings to ensure you can use new features.

    1. Select Compute Data Centers.
    2. Select the appropriate data center.
    3. Click Edit.
    4. The Edit Data Center dialog box opens.
    5. Update Compatibility Version to 4.6 from the dropdown list.
Important

Disable the gluster volume option cluster.lookup-optimize on all the gluster volumes after the update.

# for volume in `gluster volume list`; do gluster volume set $volume cluster.lookup-optimize off; done

Troubleshooting

  1. The self healing process should start automatically once each hyperconverged host comes up after a reboot. Check for self-heal status using the command:

    # gluster volume heal <volname> info summary

    If there are pending self-heal entries for a long time, check the following:

    1. Gluster network is up.

      # ip addr show <ethernet-interface>
    2. All brick processes in the volume are up.

      # gluster volume status <vol>

      If there are any brick processes reported to be down, restart the glusterd service on the node where the brick is reported to be down:

      # systemctl restart glusterd
  2. If the Red Hat Virtualization node is unable to boot and drops in to maintenance shell, then one of the reasons is due to the unstable LVM filter rejecting some of the physical volumes (PVs).

    1. Log into the maintenance shell with the root password.
    2. Remove the existing LVM filter configuration:

      # sed -i /^filter/d /etc/lvm/lvm.conf
    3. Reboot the host.
    4. Once the node is up, regenerate the LVM filter:

      # vdsm-tool config-lvm-filter -y
Red Hat logoGithubRedditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez leBlog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

© 2024 Red Hat, Inc.