Inplace Upgrade 6.x To 7.9 V1

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 3

Redhat Upgrade from 6 to 7

I- General action plan :


Step 1: Check with the owner the application compatibility with Redhat 7

Step 2: Perform the upgrade on Test Platform


a. Upgrade to 6.10
b. Package installation and run of the preupgrade tools
c. Fix all the issues
d. Prepare and enable extra repository (if required)
e. Perform the upgrade to 7.9
f. Install the grub2
g. Perform all the sanity checks of the upgrade

Step 3: Perform the upgrade on Prod platform now.

Step 4: If working , prepare the detailed action plan with all fixes done and the estimated down time

II- Technical action plan for upgrade :


The document for Upgrade reference is: https://access.redhat.com/solutions/637583

Step 1:
-Take backup

Take snapshot before starting


Save the /etc
Save network interface configuration
Save all packages installed
Save all the libraries
Save all scripts

Step 2:
-Upgrade to Redhat 6.10

clean subscription
# subscription-manager remove --all
# subscription-manager unregister
# subscription-manager clean

Configure Redhat 6.10 repos


yum update –y
Montion the time that the upgrade took.

Step 3:
-Reboot and Check Redhat version.

Step 4:

-Prepare the upgrade to 7.9 :

-Yum install : the following tools for preupgrade and upgrade :

openscap-1.2.13-2.el6.x86_64.rpm
openscap-engine-sce-1.2.13-2.el6.x86_64.rpm
openscap-scanner-1.2.13-2.el6.x86_64.rpm
openscap-utils-1.2.13-2.el6.x86_64.rpm
preupgrade-assistant-2.6.2-1.el6.noarch.rpm
preupgrade-assistant-el6toel7-0.8.0-3.el6.noarch.rpm
preupgrade-assistant-el6toel7-data-0.20200704-1.el6.noarch.rpm
redhat-upgrade-tool-0.8.0-9.el6.noarch.rpm

Step 5:
-Run preupgrade tools and perform checks.

-Run Preupgrage command : preupg


-Check and fix issues found in /root/preupgrade/result.html

Some common issue faced during the upgarde :

 Gnome fail, must uninstall Gnome : - yum groupremove "Desktop" "X Window System"
"Fonts".
 Upgrade Java from 1.6 to 1.7. using 6.10 ISO.
 Convert /usr from partition to directory:
 Reducing /usr space on rescue mode
https://access.redhat.com/solutions/9714
 Separate /usr https://access.redhat.com/solutions/909603
 Check if there is enough space on /boot:
 In case cleanup /boot from previous kernel version: yum remove `rpm -q kernel |
grep -v 'uname -r'`

Step 6 :
Perform the upgrade without Satellite due to some issue with Redhat OS version lower than 6.7 and
satellite 6.10 and up.

-Configure Repo for Redhat 7.9 -local ISO-.

 First case : without optional packages


-redhat-upgrade-tool --device /mnt --cleanup-post
-Reboot

 Second case : with optional packages


-redhat-upgrade-tool --device /mnt --addrepo
optional=http://host/repo
-Reboot

Perform the upgrade using Satellite : will be shared once ready.

Montion the time that the upgrade took.

Step 7:
-Reconfigure the network interfaces

Step 8:
-Install the grub2 :
Procedure available on https://access.redhat.com/solutions/2643721

Step 9:
Global Checks:
1. Check SELinux.
2. Check SMTP configuration, limit.conf, sysctl.conf, rsyslog, sshd_config.
3. Check data.
4. Check users.
5. Check packages.
6. Check librairies.
7. Check scripts.

Step 10:
Check Application and Database with owner

You might also like