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.
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-releaseor
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 --permanent --add-port=9090/tcp
# 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
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