Hi,
I'm doing some tests of upgrading CentOS from 7 to 8 reading this step-by-step guide: https://netshopisp.medium.com/how-to-upgrade-linux-servecentos-7-to-centos-8...
I'm trying this upgrade in a VM, so I can save "snapshots" and restart in a past saved point. However, all my test ends wrong, exacly in Step 4 when I run "rpm -e `rpm -q kernel`". Then, systems says that some packages are kernel dependencies. After I remove that dependencies, I can't remove kernel...
Anybody has tested process upgrade from 7 to 8?
Thanks.
It's not supported. RH has a method that sometimes works for RHEL, but there is no safe CentOS way to do a major upgrade. You need to reinstall the OS and migrate your applications.
On 29/09/2021 14:24, Gestió Servidors wrote:
Hi,
I'm doing some tests of upgrading CentOS from 7 to 8 reading this step-by-step guide: https://netshopisp.medium.com/how-to-upgrade-linux-servecentos-7-to-centos-8...
I'm trying this upgrade in a VM, so I can save "snapshots" and restart in a past saved point. However, all my test ends wrong, exacly in Step 4 when I run "rpm -e `rpm -q kernel`". Then, systems says that some packages are kernel dependencies. After I remove that dependencies, I can't remove kernel...
Anybody has tested process upgrade from 7 to 8?
Thanks.
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On 9/29/21 8:29 AM, J Martin Rushton via CentOS wrote:
It's not supported. RH has a method that sometimes works for RHEL, but there is no safe CentOS way to do a major upgrade. You need to reinstall the OS and migrate your applications.
+1 The system "binary clone" of which CentOS is (or was rather) is not designed to be "upgraded". The routine way is: install new release, copy all accounts, and data from old system to it, install services, configure them to a degree possible close to what was on old system.
This horse have been beaten to death. The problem someone asking this is a consequence it people not doing search first (I for one use duckduckgo), and reading all search reveals with open eyes, not picking something to one's liking. Like: I want to do an upgrade. No matter all search shows is: "install new release,...". I did find one post about upgrade. But why it doesn't work?! Just read any of other posts about upgrade, saying to the effect: it doesn't, shouldn't work, and going into various lengts of explaining why.
I know what I said doesn't make pleasant reading, but it hopefully will help someone with "modus operandi".
Valeri
On 29/09/2021 14:24, Gestió Servidors wrote:
Hi,
I'm doing some tests of upgrading CentOS from 7 to 8 reading this step-by-step guide: https://netshopisp.medium.com/how-to-upgrade-linux-servecentos-7-to-centos-8...
I'm trying this upgrade in a VM, so I can save "snapshots" and restart in a past saved point. However, all my test ends wrong, exacly in Step 4 when I run "rpm -e `rpm -q kernel`". Then, systems says that some packages are kernel dependencies. After I remove that dependencies, I can't remove kernel...
Anybody has tested process upgrade from 7 to 8?
Thanks.
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
El 29/9/21 a las 15:24, Gestió Servidors escribió:
Hi,
I'm doing some tests of upgrading CentOS from 7 to 8 reading this step-by-step guide: https://netshopisp.medium.com/how-to-upgrade-linux-servecentos-7-to-centos-8...
I'm trying this upgrade in a VM, so I can save "snapshots" and restart in a past saved point. However, all my test ends wrong, exacly in Step 4 when I run "rpm -e `rpm -q kernel`". Then, systems says that some packages are kernel dependencies. After I remove that dependencies, I can't remove kernel...
Anybody has tested process upgrade from 7 to 8?
Thanks.
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Me!, some worked, Others no. It's easier in machines without a GUI, but failed without it also. A few got "upgraded". Unable to say why ones worked and others no.
On Wed, Sep 29, 2021 at 10:51 AM José María Terry Jiménez jtj@tssystems.net wrote:
El 29/9/21 a las 15:24, Gestió Servidors escribió: Me!, some worked, Others no. It's easier in machines without a GUI, but failed without it also. A few got "upgraded". Unable to say why ones worked and others no.
That's the base problem. There is no reliable way to know which systems and installed software will work through an upgrade. So, you can do all the work of attempting an upgrade that will likely fail and still have to end up doing a fresh install and migration anyway. Might as well have saved all the time and effort and just started with the migration in the first place.
On 9/29/21 3:24 PM, Gestió Servidors wrote:
Hi,
I'm doing some tests of upgrading CentOS from 7 to 8 reading this step-by-step guide: https://netshopisp.medium.com/how-to-upgrade-linux-servecentos-7-to-centos-8...
I'm trying this upgrade in a VM, so I can save "snapshots" and restart in a past saved point. However, all my test ends wrong, exacly in Step 4 when I run "rpm -e `rpm -q kernel`". Then, systems says that some packages are kernel dependencies. After I remove that dependencies, I can't remove kernel...
That specific step is probably useless. Installing new kernels for Centos8 will sooner or later remove older kernels coming form C7. If you really want to do this manually you could specify the version on your "rpm -e" command.
If you are not ready to tweak the process a bit while upgrading and just expect a straightforward list of commands, well, as others have explained, there is no guaranteed script or method. If instead you have enough familiarity with the system to work around the obstacles, "impossible" things can often be done: for example, years ago I've managed to upgrade a Fedora 16 from i386 to x86_64, and everybody was swearing it was impossible to do.
Regards.
On 9/29/21 3:24 PM, Gestió Servidors wrote:
Hi,
I'm doing some tests of upgrading CentOS from 7 to 8 reading this step-by-step guide: https://netshopisp.medium.com/how-to-upgrade-linux-servecentos-7-to-centos-8...
I'm trying this upgrade in a VM, so I can save "snapshots" and restart in a past saved point. However, all my test ends wrong, exacly in Step 4 when I run "rpm -e `rpm -q kernel`". Then, systems says that some packages are kernel dependencies. After I remove that dependencies, I can't remove kernel...
One problem which could show up here is that kernel packages have changed/splitted and therefore things are more complicated. At least that's what has happened in the past, don't know about 7->8.
That specific step is probably useless. Installing new kernels for Centos8 will sooner or later remove older kernels coming form C7. If you really want to do this manually you could specify the version on your "rpm -e" command.
If you are not ready to tweak the process a bit while upgrading and just expect a straightforward list of commands, well, as others have explained, there is no guaranteed script or method. If instead you have enough familiarity with the system to work around the obstacles, "impossible" things can often be done: for example, years ago I've managed to upgrade a Fedora 16 from i386 to x86_64, and everybody was swearing it was impossible to do.
I can confirm that because I also migrated a server from i386 to x86_64 in place. That was with an old RHEL release.
I don't remember exactly how I did it but I think I only used rpm for it, no yum.
Unfortunately upgrading complex systems is still a lot of work these days, no matter what all the cloud experts try to tell you :-)
Simon
On 9/30/21 5:49 AM, Simon Matter wrote:
On 9/29/21 3:24 PM, Gestió Servidors wrote:
Hi,
I'm doing some tests of upgrading CentOS from 7 to 8 reading this step-by-step guide: https://netshopisp.medium.com/how-to-upgrade-linux-servecentos-7-to-centos-8...
I'm trying this upgrade in a VM, so I can save "snapshots" and restart in a past saved point. However, all my test ends wrong, exacly in Step 4 when I run "rpm -e `rpm -q kernel`". Then, systems says that some packages are kernel dependencies. After I remove that dependencies, I can't remove kernel...
One problem which could show up here is that kernel packages have changed/splitted and therefore things are more complicated. At least that's what has happened in the past, don't know about 7->8.
That specific step is probably useless. Installing new kernels for Centos8 will sooner or later remove older kernels coming form C7. If you really want to do this manually you could specify the version on your "rpm -e" command.
If you are not ready to tweak the process a bit while upgrading and just expect a straightforward list of commands, well, as others have explained, there is no guaranteed script or method. If instead you have enough familiarity with the system to work around the obstacles, "impossible" things can often be done: for example, years ago I've managed to upgrade a Fedora 16 from i386 to x86_64, and everybody was swearing it was impossible to do.
I can confirm that because I also migrated a server from i386 to x86_64 in place. That was with an old RHEL release.
I don't remember exactly how I did it but I think I only used rpm for it, no yum.
Unfortunately upgrading complex systems is still a lot of work these days, no matter what all the cloud experts try to tell you :-)
Simon
There is no reason to do an in-place upgrade. It is just too risky.
When you are going to do a major OS upgrade, one huge major issue is your actual data may not be usable as is on the new system and will require changes.
This quite frequently happens with databases, either mysqlmMariadb or postgresql. It happens with php based scripts. It happens iwth major apache configurations.
It happens to a lesser extent with many other executable program configurations (samba configurations, for example).
So, while you MIGHT be able to find a proper binary rpm to replace the actual running programs, the configuration files for all these binaries from the old system are not going to work and each one most likely will require individual changes.
If you do an in-place upgrade, none of your services are likely going to start. That is why in every major upgrade I have ever conducted, I did so on newer installs while still running the previous version until I could duplicate everything working on new machine. Once everything is working and on the new machine and I know HOW and have developed steps to convert the data and configurations, THEN I convert anything newer than what i have already running .. and move that over to working system.
This is by far the safest and cleanest way to migrate. It is the only way I would ever do it with my own data / systems and how I did do it for many many years as a system administrator.
On 9/30/21 8:58 AM, Johnny Hughes wrote:
On 9/30/21 5:49 AM, Simon Matter wrote:
On 9/29/21 3:24 PM, Gestió Servidors wrote:
Hi,
I'm doing some tests of upgrading CentOS from 7 to 8 reading this step-by-step guide: https://netshopisp.medium.com/how-to-upgrade-linux-servecentos-7-to-centos-8...
I'm trying this upgrade in a VM, so I can save "snapshots" and restart in a past saved point. However, all my test ends wrong, exacly in Step 4 when I run "rpm -e `rpm -q kernel`". Then, systems says that some packages are kernel dependencies. After I remove that dependencies, I can't remove kernel...
One problem which could show up here is that kernel packages have changed/splitted and therefore things are more complicated. At least that's what has happened in the past, don't know about 7->8.
That specific step is probably useless. Installing new kernels for Centos8 will sooner or later remove older kernels coming form C7. If you really want to do this manually you could specify the version on your "rpm -e" command.
If you are not ready to tweak the process a bit while upgrading and just expect a straightforward list of commands, well, as others have explained, there is no guaranteed script or method. If instead you have enough familiarity with the system to work around the obstacles, "impossible" things can often be done: for example, years ago I've managed to upgrade a Fedora 16 from i386 to x86_64, and everybody was swearing it was impossible to do.
I can confirm that because I also migrated a server from i386 to x86_64 in place. That was with an old RHEL release.
I don't remember exactly how I did it but I think I only used rpm for it, no yum.
Unfortunately upgrading complex systems is still a lot of work these days, no matter what all the cloud experts try to tell you :-)
Simon
There is no reason to do an in-place upgrade. It is just too risky.
When you are going to do a major OS upgrade, one huge major issue is your actual data may not be usable as is on the new system and will require changes.
This quite frequently happens with databases, either mysqlmMariadb or postgresql. It happens with php based scripts. It happens iwth major apache configurations.
It happens to a lesser extent with many other executable program configurations (samba configurations, for example).
So, while you MIGHT be able to find a proper binary rpm to replace the actual running programs, the configuration files for all these binaries from the old system are not going to work and each one most likely will require individual changes.
If you do an in-place upgrade, none of your services are likely going to start. That is why in every major upgrade I have ever conducted, I did so on newer installs while still running the previous version until I could duplicate everything working on new machine. Once everything is working and on the new machine and I know HOW and have developed steps to convert the data and configurations, THEN I convert anything newer than what i have already running .. and move that over to working system.
This is by far the safest and cleanest way to migrate. It is the only way I would ever do it with my own data / systems and how I did do it for many many years as a system administrator. _______________________________________________
I also want to point out .. CentOS Linux 8 is not what you want to upgrade to. CentOS Linux 8 has an EOL of 31 Dec 2021. If you want to upgrade to something CentOS 8 .. you will want to upgrade to CentOS Stream 8.
If you don't want to use CentOS Stream, and if you don't want to use RHEL (you can now do that for up to 16 machines for free .. see the RHEL licensing for details) .. then there are any number of other options. This isn't really the list to discuss how to use the other distros. Those distros all have lists and resources to discuss how to make a transition.
But absolutely do not convert to CentOS Linux 8 at this point.
CentOS Linux 7 will continue to be supported until 2024 June 30.