-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CentOS 7 is end of life as of June 30, 2024, need to upgrade OS on freezingsaddles.org #280
Comments
To prepare a dry run for this, I wanted to try an OS upgrade procedure using did the following:
|
Changes needed for Rocky Linux 8+. Partially addresses freezingsaddles/freezing-web#280
I restored the backup to Upgrading to Rocky Linux 8 with a dry run using The basic services came over OK. I added some host name variants to test with, such as tmp-www.freezingsaddles.org and tweaked the environment file so those hosts would resolve. Next up: upgrade to Rocky Linux 9, after making another backup of the temporary instance with AWS Backup. |
To get from CentOS 8 to 9
But then the system upgrade bombed with errors about not finding some python2 packages in the preupgrade area... That was a dead end so I discovered I had to edit /etc/dnf/dnf.conf and remove the excludes
Then I was able to do It looks like a bunch of things are still installed with |
Instead of doing an upgrade, it's probably time to rebuild the system on a fresh Rocky Linux 9 system. I subscribed to the Rocky Linux 9 AWS Marketplace offering in the Freezing Saddles AWS account to make this easier. I'll put the scripts in freezingsaddles/freezing-compose#36 for this. I'm going to adapt the provisioning scripts from obscure-scripts and Docker-for-Developers to get the Rocky Linux 9 provisioned a bit more cleanly. |
It's done! The new server is provisioned The old server running CentOs 7 had over 1000 days of uptime, it had not been rebooted since January of 2021:
Most of the provisioning was done in a scripted way, but there are some fixups I made by hand, this bash history gives the gist of how it went down. I had made backups by hand on the old server and selectively restored them. freezingsaddles-bash-history.txt To finish this off I should probably fix up the Icinga monitoring - that's severed into freezingsaddles/freezing-compose#37 |
CentOS 7 had its end of life on June 30, 2024. We need to upgrade to a newer, supported operating system, such as Rocky Linux 8 or 9, or maybe Amazon Linux 2023.
You usually need to install a fresh system and reinstall all the packages but it is really tempting in this case to try an upgrade path. Normally that's not supported but there is a path to do it using the AlmaLinux ELevate project and the Leapp utility. You have to do an upgrade between 7 and 8, and then to 9, with a supported RHEL-compatible distribution.
The text was updated successfully, but these errors were encountered: