Active8
Verified User
- Joined
- Jul 13, 2013
- Messages
- 1,854
Just converted (in place upgrade) an DA Centos 7 box to Almalinux 8.5
As promised short tutorial that I made, many thanks and credits to @dmtinc to his support, good to mention that I did not had any network problems
It took almost 1,5 hour on an VPS 6 vCPU and 16 gb of ram so do your math
1. No guarantees
2. Make an backup or snapshot of your server !
After remove the package: (this remove exim from the system too but after upgrade with ./build all exim will be back)
Check any errors in :/var/log/leapp/leapp-report.txt
In the text file there are also hints how to fix, I had two erros, device driver loaded into kernel and old kernels
This was my solution to my error (check your own error !)
modprobe floppy -r
yum -y remove kernel-devel-3.10.0-1160.45.1.el7 kernel-devel-3.10.0-1160.31.1.el7 kernel-devel-3.10.0-1160.36.2.el7 kernel-devel-3.10.0-1160.42.2.el7
Start an upgrade. You'll be offered to reboot the system after this process is completed.
A new entry in GRUB called ELevate-Upgrade-Initramfs will appear. The system will be automatically booted into it.
See how the update process goes in the console. << you must have console access to follow the process !!
Dont intterrupt the process, can take some time
After reboot, login to the system and check how the migration went. Verify that the current OS is the one you need.
To be sure that everything is updated to the latest version:
cat /etc/redhat-release
AlmaLinux release 8.5 (Arctic Sphynx)
Now reinstall / build DA
Override the OS in directadmin.conf (only if you don't want to change it at license level) and redownload directadmin:
(this step is not needed anymore)
Now reboot your server and check your logs for any errors
As promised short tutorial that I made, many thanks and credits to @dmtinc to his support, good to mention that I did not had any network problems
It took almost 1,5 hour on an VPS 6 vCPU and 16 gb of ram so do your math
1. No guarantees
2. Make an backup or snapshot of your server !
Code:
mv /usr/sbin/chkconfig /usr/sbin/chkconfig.orig
touch /usr/sbin/chkconfig
chmod +x /usr/sbin/chkconfig
yum remove da_exim -y
After remove the package: (this remove exim from the system too but after upgrade with ./build all exim will be back)
Code:
rm -f /usr/sbin/chkconfig
mv /usr/sbin/chkconfig.orig /usr/sbin/chkconfig
sudo yum update -y
sudo reboot
Code:
sudo yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm
sudo yum install -y leapp-upgrade leapp-data-almalinux
sudo leapp preupgrade
Check any errors in :/var/log/leapp/leapp-report.txt
In the text file there are also hints how to fix, I had two erros, device driver loaded into kernel and old kernels
This was my solution to my error (check your own error !)
modprobe floppy -r
yum -y remove kernel-devel-3.10.0-1160.45.1.el7 kernel-devel-3.10.0-1160.31.1.el7 kernel-devel-3.10.0-1160.36.2.el7 kernel-devel-3.10.0-1160.42.2.el7
Code:
sudo rmmod pata_acpi
echo PermitRootLogin yes | sudo tee -a /etc/ssh/sshd_config
sudo leapp answer --section remove_pam_pkcs11_module_check.confirm=True
Start an upgrade. You'll be offered to reboot the system after this process is completed.
Code:
sudo leapp upgrade
sudo reboot
A new entry in GRUB called ELevate-Upgrade-Initramfs will appear. The system will be automatically booted into it.
See how the update process goes in the console. << you must have console access to follow the process !!
Dont intterrupt the process, can take some time
After reboot, login to the system and check how the migration went. Verify that the current OS is the one you need.
To be sure that everything is updated to the latest version:
Code:
dnf update -y
sudo reboot
Code:
cat /etc/redhat-release
cat /etc/os-release
AlmaLinux release 8.5 (Arctic Sphynx)
Now reinstall / build DA
Code:
dnf install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio \
libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 cyrus-sasl-devel perl-ExtUtils-Embed \
autoconf automake libtool which patch mailx bzip2-devel lsof glibc-headers kernel-devel expat-devel \
psmisc net-tools systemd-devel libdb-devel perl-DBI perl-libwww-perl xfsprogs rsyslog logrotate crontabs file kernel-headers hostname
rm -rf /usr/local/uw-imap
(this step is not needed anymore)
Code:
wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh
chmod +x updateda.sh
./updateda.sh save_os --os=c10
./updateda.sh stable --os=c10
Code:
dnf config-manager --set-enabled powertools
Code:
cd /usr/local/directadmin/custombuild/
./build update
./build update_script
./build clean
./build clean_old_webapps
./build all
Now reboot your server and check your logs for any errors
Last edited: