Chapter 3. Upgrading JBoss EAP

Important

This chapter describes how to upgrade from one JBoss EAP 7 minor release to another. For example, upgrading from JBoss EAP 7.0 to JBoss EAP 7.1.

If you are migrating from an earlier major release of JBoss EAP, for example from JBoss EAP 6 to JBoss EAP 7, see the Migration Guide instead.

3.1. Preparing for the Upgrade

Before you upgrade JBoss EAP, you need to be aware of the following potential issues.

  • If you back up and restore your configuration files when upgrading to newer point releases, you could overwrite new configurations that are in the new release and prevent new features from being enabled automatically. The recommended approach is to compare the old configuration to the new configuration, and only reapply specific configurations you need to keep. This can be done manually, or by creating a script that can apply the changes consistently to multiple server configuration files.
  • If you back up and restore an existing configuration for the upgrade, when the server restarts and updates the configuration files, the updated configuration may no longer be compatible with the previous version.
  • The upgrade may remove temporary folders. Any deployments stored in the data/content/ directory must be backed up prior to the upgrade, and restored after it completes. Otherwise, the server will fail to start due to the missing content.
  • Prior to applying the upgrade, handle any open transactions and delete the data/tx-object-store/ transaction directory.
  • The persistent timer data in data/timer-service-data must be checked to determine whether it is compatible. Before the upgrade, review the deployment- files in that directory to determine which timers are still in use.

3.2. Upgrading a ZIP/Installer Installation

Prerequisites

  • Ensure that the base operating system is up to date.
  • Back up all configuration files, deployments, and user data.
  • Download the ZIP file of the JBoss EAP version you want to upgrade to.
Important

For a managed domain, the JBoss EAP domain controller should be upgraded first.

An upgraded JBoss EAP 7 domain controller can still manage other JBoss EAP 7 hosts in a managed domain, as long as the domain controller is running the same or more recent version than the rest of the domain.

  1. Move the downloaded ZIP file to the desired location. It is recommended that this is a different location to the existing JBoss EAP installation.

    Note

    If you want to install the upgraded version of JBoss EAP to the same directory as the existing installation, you will need to move the existing installation to a different location before proceeding. This is to prevent modified configuration files, deployments, and upgrades from being lost.

  2. Extract the ZIP archive. This installs a clean instance of the new JBoss EAP release.
  3. Copy the EAP_HOME/domain/ and EAP_HOME/standalone/ directories from the previous installation over the new installation directories.

    Important

    New features in the new release, such as new subsystems, may not be activated if the configuration files are copied from an older JBoss EAP installation. To use these new features, you must compare and update the old configuration files with the configuration files from the new version.

  4. Review the changes made to the bin directory of the previous installation, and make the equivalent modifications to the new directory.

    Warning

    Files in the bin directory should not be overwritten by the files from previous versions. Changes should be made manually.

  5. Review the remaining modified files from the previous installation, and move these changes into the new installation. These files may include:

    • The welcome-content directory.
    • Custom modules in the modules directory.
  6. Optional: If JBoss EAP was previously configured to run as a service, remove the existing service and configure a new service for the upgraded installation.

3.3. Upgrading an RPM Installation

Prerequisites

  • Ensure that the base operating system is up to date, and is subscribed and enabled to get updates from the standard Red Hat Enterprise Linux repositories.
  • Ensure that you are subscribed to the relevant JBoss EAP repository for the upgrade.

    If you are subscribed to the 'current' JBoss EAP repository, the upgrade will be available as soon as it is released. If you are subscribed to a previous minor JBoss EAP repository, you will need to change to the latest minor repository to get the upgrade.

    For more information on JBoss EAP repositories, see the information on choosing a JBoss EAP repository and changing JBoss EAP repositories in the Installation Guide.

  • Back up all configuration files, deployments, and user data.
Important

For a managed domain, the JBoss EAP domain controller should be upgraded first.

An upgraded JBoss EAP 7 domain controller can still manage other JBoss EAP 7 hosts in a managed domain, as long as the domain controller is running the same or more recent version than the rest of the domain.

  1. After you have subscribed to the relevant JBoss EAP repository and the upgrade is available, run the following command to upgrade your JBoss EAP installation:

    yum update
  2. The RPM upgrade process will not replace any of your modified configuration files, and will instead create .rpmnew files for the default configuration of the new JBoss EAP version.

    To activate any new features in the new release, such as new subsystems, you must manually merge each .rpmnew file into your existing configuration files.

3.4. Upgrading a Cluster

JBoss EAP does not support the creation of clusters where the nodes are made up of different versions of JBoss EAP servers. All nodes within a cluster must be the same JBoss EAP version.

The upgrade process for a cluster involves creating a new JBoss EAP cluster comprised of nodes running the newer JBoss EAP version, and then migrating all clustered traffic from the previous cluster to the new cluster. After this is completed, the previous JBoss EAP cluster can be shut down and removed.

See the chapter on configuring high availability in the Configuration Guide for creating a new cluster, and the section on migrating traffic between clusters to migrate traffic from the old cluster to the new one.





Revised on 2018-02-08 10:18:25 EST