Search Our Database

Transitioning from CentOS 7 to RHEL 8-Compatible Distributions Using Elevate (cPanel)

Last updated on |

Introduction

This guide details the steps required to upgrade a CentOS 7 system to another RHEL-based operating system, such as AlmaLinux 8, using the Elevate upgrade script. The process involves updating the system, ensuring sufficient disk space, running pre-upgrade checks, and finally performing the upgrade.

 

Prerequisites

  • Ensure your system is running CentOS 7.
  • You must have root or sudo access to the server.
  • Ensure all critical data is backed up before starting the upgrade process.
  • Verify your cPanel version. If it is older than version 102, you must upgrade cPanel before proceeding.

 

Steps

Step 1: Update System and Check cPanel Version

1. Update the system and reboot:

yum update -y
reboot

2. Check the current cPanel version:

/usr/local/cpanel/cpanel -V

If the cPanel version is older than 102, upgrade cPanel:

/scripts/upcp

 

Step 2: Ensure Sufficient Disk Space

1. Make sure the following mount points have additional space available for the upgrade:

/boot: 120 MB 
/usr/local/cpanel: 1.5 GB 
/var/lib: 5 GB

If all mount points are under /, ensure / has enough space to accommodate these requirements.

 

Step 3: Download the Elevate-cPanel Script

1. Download the script:

wget -O /scripts/elevate-cpanel https://raw.githubusercontent.com/cpanel/elevate/release/elevate-cpanel

chmod 700 /scripts/elevate-cpanel

 

Step 4: Run Pre-Upgrade Check

1. Check the upgrade (dry run mode):

/scripts/elevate-cpanel --check --upgrade-to=almalinux

2. If the pre-upgrade check identifies issues, address them as instructed and run the pre-check again.

 

Step 5: Perform the Upgrade

1. Can start the upgrade by:

/scripts/elevate-cpanel --start --upgrade-to=almalinux

2. The upgrade process consists of five stages. The VM will reboot during the process, so it is recommended to monitor the upgrade via SSH and console.

 

Step 6: Verify the OS Version

1. After the upgrade completes, verify the new OS version:

cat /etc/redhat-release

 

Conclusion

Following these steps will guide you through upgrading your CentOS 7 system to AlmaLinux 8 using the Elevate script. Ensure to follow each step carefully and monitor the upgrade process to address any issues promptly.

For additional assistance or if you encounter any issues, please contact our support team at support@ipserverone.com

 

Article posted on 29 May 2024 by Tze Hing