Upgrading from Oracle Linux 8 to Oracle Linux 9 using Leapp – Bacula

Preparing for the Upgrade

You can find the details of this preparation in Chapter 2 of the Oracle Linux 9 manual: Performing System Upgrades With Leapp. Here’s an overview:

  • Make a backup. Always make a backup of the system so it can be restored to its previous state if the upgrade fails. In the case of Bacula, store a dump of the catalog and a copy of the configuration files (/opt/bacula/etc).
  • Shut down all production workloads on the system, as the upgrade is invasive and requires multiple reboots.
  • Disable Secure Boot if enabled.
  • Ensure the locale is set to en_US.UTF-8.
  • On Oracle Cloud Infrastructure instances, disable the Oracle Management Service agent.
  • If the system has network-mounted file systems, unmount them and comment out the related entries in the /etc/fstab file.
  • If yum-plugin-versionlock is installed, remove any packages with locked versions.
  • If the system is a KVM host, stop all running virtual machines.

The Leapp requires the system to be upgraded to be fully up-to-date with the latest patches.

Update the Oracle Linux 8 machine with the latest available patches

sudo dnf update

Restart the system to apply all updates:

sudo reboot

Log in as the ‘demo’ user and install the Leapp utility:

sudo dnf install leapp-upgrade --enablerepo=ol8_leapp,ol8_appstream,ol8_baseos_latest

Note that there are no spaces in the parameters passed to the –enablerepo command line switch.

Running the Pre-Upgrade

You can find the details in Chapter 3 of Oracle Linux 9 Performing System Upgrades with Leapp.

Run the pre-upgrade command.

sudo leapp preupgrade --oraclelinux

In the demo system, the pre-upgrade process took about 2 minutes to complete. This time depends on various variables, including the number of installed packages, CPU speed, storage speed, etc. Reviewing the Leapp report

Read this section in Oracle Linux 9 Performing System Upgrades with Leapp.

Understanding any high-risk inhibitors is very important. After addressing some of your high-risk issues, you can always run the pre-upgrade process again. Continue to resolve issues and run the pre-upgrade until you have no more inhibitors or high-risk issues. Performing the Upgrade

Read this section in Oracle Linux 9 Performing System Upgrades with Leapp.

Run the upgrade command.

sudo leapp upgrade --oraclelinux

You will see MANY pieces of information as the upgrade proceeds. Some of the messages may say “completed,” but those are only conclusions of a specific step! This might be a good time to take a break as the upgrade progresses. In the demo system, here are the top three “stages” of the Leapp process and the approximate time for each one:

  • Initial upgrade pass: 8:37
  • Second upgrade pass: 7:42
  • First boot: about 1 minute

Checking the Upgrade

After completion, the upgrade process generates the same files as the pre-upgrade phase: a process log, a report, and the /var/log/leapp/answerfile file.

Examine the /var/log/leapp/leapp-report.txt and follow any important recommendations to be completed after the upgrade process.

After performing the upgrade, it is necessary to update or reinstall the Bacula packages for the RHEL-9 equivalent architecture.

We have the best backup tool, certified for Oracle Linux servers and clients in all versions.
Contact us – Bacula Brazil and Latin America: https://www.bacula.lat
Reference: Oracle Linux Blog
David GilpinPrincipal Product Manager

Disponível em: pt-brPortuguês (Portuguese (Brazil))enEnglishesEspañol (Spanish)

Leave a Reply