Tags

11g (5) 12c (6) 18c (3) 19c (4) ASM (1) Critical Patch (11) Data Pump (1) Dataguard (9) Diverse (3) GRID (7) GitLab (2) Linux (8) OEM (2) ORA Errors (13) Oracle (12) RMAN (4)

Wednesday, May 17, 2023

Linux update RHEL 7 to RHEL 8 using Leapp

Linux update RHEL 7 to RHEL 8 using Leapp

Upgrading the system from RHEL 7 to RHEL 8 using Leapp

PURPOSE: All documents are provided on this Blog just for educational purposes only.  Please make sure that you run it in your test environment before to move on to production environment. 


Linux update redhat 8.6 using leapp
subscription-manager list --installed
subscription-manager repos --enable rhel-7-server-rpms
subscription-manager repos --enable rhel-7-server-extras-rpms
subscription-manager release --unset

yum versionlock clear 

cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)

yum update -y # bring the current version to update first 
or 
yum --releasever=7.9 update -y

reboor -r now
uname -a

yum install leapp leapp-repository cockpit-leapp wget -y

# Download letest leapp-data file:

https://access.redhat.com/articles/3664871

tar -xzf leapp-data21.tar.gz -C /etc/leapp/files && rm leapp-data21.tar.gz

y

ll /etc/leapp/files


# This enable GUI for report:

systemctl enable --now cockpit

https://hostname:9090

firewall-cmd --list-all
firewall-cmd --permanent --add-port=9090/tcp
firewall-cmd --reload

# Preupgrade task:

leapp preupgrade

UI for report

https://[hostname]:9090/leapp

https://hostname:9090


Fix the errors 

1. symbolic links point to absolute paths that have non-utf8 encoding and need to be fixed additionally

SOLUTION:

https://access.redhat.com/solutions/6989732

ls -l / | grep ^l

unlink /oracle 

ln -s oracle12.2 /oracle

ll / | grep ^l


2. The following packages have not been signed by Red Hat and may be removed during the upgrade...

SOLUTION:

Ignore this error for now.


3. Support for the following RHEL 7 device drivers has been removed in RHEL 8: - pata_acpi

# do this after reboot ther server.

rmmod pata_acpi

or

modprobe -r pata_acpi


4. If you depend on remote root logins using passwords, consider setting up a different user for remote administration or adding "PermitRootLogin yes" to sshd_config.

vi /etc/ssh/sshd_config

uncommit parameter

PermitRootLogin yes

systemctl restart sshd


5. The following RHEL 7 device drivers are no longer maintained RHEL 8: - e1000 - mptspi - mptbase - mptscsih - mptspi - e1000

# you need to remove Network adapter and recreat it via VCenter

# before you remove network adapter. Create an new interface:

cd /etc/sysconfig/network-scripts


vi ifcfg-ens192_NEW

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
IPADDR=xxx.xx.xx.xx
PREFIX=22
GATEWAY=xxx.xx.xx.x
DNS1=xxx.xx.xx.x
DNS2=xxx.xx.xx.x
DNS3=xxx.xx.xx.x
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=eui64
NAME=ens160
DEVICE=ens160
ONBOOT=yes
NM_CONTROLLED=no


Login to VCenter:

Edit Setting ==> Network adapter 1 (remove) 

Edit Setting ==> Add New Device ==> Network Adapter (It will automatically create the correct one VMXNET 3)

# Via Launch Concole do following:

mv ifcfg-ens32 ifcfg-ens32_OLD

mv ifcfg-ens192_NEW ifcfg-ens192


6. On legacy (BIOS) systems, GRUB core...

# can be ignored at this point


7. Please register user choices with leapp answer cli command or by manually editing the answerfile.

leapp answer --section remove_pam_pkcs11_module_check.confirm=True


8. 16 packages will be skipped because

# can be ignored for now


#Do again.

leapp preupgrade

#check the report again


# IMPORTENT: Before update do following export command. Otherwise you will get following error. 

Disk Requirements:

   At least 1597MB more space needed on the / filesystem.

export LEAPP_OVL_SIZE=4096

leapp upgrade

#check the logs 

reboot the system ==> IMPORTENT open the console über VMWare

-- The actual update will started. Watch the over the console

-- The system will be rebooted automatecally or you do by your self after update

-- Now login via ssh

uname -a


After upgrade:

alternatives --set python /usr/bin/python3

# if needed 
getenforce
setenforce 1
getenforce

# Check any rmp von el7. Be carefully

rpm -qa | grep -i el7

yum erase xxx xxx xxx -y

yum list kernel   # check any old kernal availabel

df -h

# If your environment needed. 

cat /etc/default/grub

cat /proc/cmdline

grub2-mkconfig -o /boot/grub2/grub.cfg


yum --releasever=8.7 update -y

done!!

Your comments are most valuable and it would help me to come up with better posts. 


No comments:

Post a Comment

physical standby without duplicate command

physical standby without duplicate command create a physical standby database using RMAN without using duplicate command PURPOSE:   All docu...