Venkateswara Rao Dokku
2016-May-10 07:08 UTC
[CentOS] Upgrade path from CentOS 7 to future versions
Hi, I would like to know whether the valid upgrade path will be present from CentOS 7 to future versions like we get for Ubuntu or some other operating systems. Right now, I am sure that we do not have proper update path in CentOS to move from one version to another. -- Thanks & Regards, Venkateswara Rao Dokku.
Johnny Hughes
2016-May-10 07:19 UTC
[CentOS] Upgrade path from CentOS 7 to future versions
On 05/10/2016 02:08 AM, Venkateswara Rao Dokku wrote:> Hi, > > I would like to know whether the valid upgrade path will be present from > CentOS 7 to future versions like we get for Ubuntu or some other operating > systems. > > Right now, I am sure that we do not have proper update path in CentOS to > move from one version to another. >If you mean upgrade to all CentOS-7 point releases, yes (from source code for RHEL-7.0 to RHEL-7.1, to RHEL-7.2). If you mean from CentOS-7 to CentOS-8, there is no way to know. There is no RHEL-8 to look at. Red Hat has source code for preupgrade-assistant and redhat-upgrade-tool. That is created for inplace upgrades from one major version to another. Currently those tools are community and maintained and they are several updates behind because currently no one in the community has stepped up to maintain them. But, CentOS-7 has an EOL of June 30, 2024 .. so there is security updates for 8 more years. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20160510/0b4345d6/attachment-0001.sig>
Valeri Galtsev
2016-May-10 15:44 UTC
[CentOS] Upgrade path from CentOS 7 to future versions
On Tue, May 10, 2016 2:19 am, Johnny Hughes wrote:> On 05/10/2016 02:08 AM, Venkateswara Rao Dokku wrote: >> Hi, >> >> I would like to know whether the valid upgrade path will be present from >> CentOS 7 to future versions like we get for Ubuntu or some other >> operating >> systems. >> >> Right now, I am sure that we do not have proper update path in CentOS to >> move from one version to another. >> > > If you mean upgrade to all CentOS-7 point releases, yes (from source > code for RHEL-7.0 to RHEL-7.1, to RHEL-7.2). If you mean from CentOS-7 > to CentOS-8, there is no way to know. There is no RHEL-8 to look at. > > Red Hat has source code for preupgrade-assistant and > redhat-upgrade-tool. That is created for inplace upgrades from one > major version to another. Currently those tools are community and > maintained and they are several updates behind because currently no one > in the community has stepped up to maintain them. > > But, CentOS-7 has an EOL of June 30, 2024 .. so there is security > updates for 8 more years.I would add to nice Johnny's explanation one more thing. "Other systems" you mention I bet are Debian and its clones (Ubuntu being one of them). These systems have different update philosophy than that of RedHat Enterprise Linux (and hence what CentOS is, which is derived from RHEL). Namely, these "other systems" do constant micro-upgrades of components installed on the system to latest release, whenever new release of given piece of software happens. To the contrary, RHEL mostly backports important security fixes to a version that was included in original system release (but occasionally does make upgrades). Hence the differences: 1. Debian (and clones): you keep the components of the system pretty much on the level of latest release of each of components. Therefore "upgrade" to new release of the system is pretty close to just a regular routine update. This apparent advantage comes with a disadvantage, namely: every update has a potential to break something on your machine, as new release may have different internals, then you will need to work on migration to them, and this can come as a surprise with any of routine updates. 2. RHEL (and derivatives): you do routine updates, and all is guaranteed to keep working as it did when you originally configured your machine. This is great advantage for those of us who prefer stability. It comes at some price, namely: more work of the side of RedHat team (backporting important patches), and you have to live with slightly outdated components. The last can be seen differently, as slightly outdated is the same as being used by many, so all trouble in them are already discovered and fixed. (Yes, there are upgrades occasionally, still...). Now, when you upgrade to new system version, very many of the components go versions up, thus the safe way to deal with them is to have everything freshly installed, freshly configured, and then migrate your custom configurations to this new level. Now to comment of what one can choose, I would say about Debian (and clones) what I would say about Fedora, which definitely is "bleeding edge". If you want "bleeding edge", be ready for some bleeding sometimes. All in all it is your choice. If you are to maintain solid server and can not tolerate 10 min outage in anything happen out of blue, CentOS is for you. If you don't care about that, then Debian or one of its clones may be more convenient for your way of system maintenance. I hope, this helps. Valeri ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++
On 05/10/2016 12:19 AM, Johnny Hughes wrote:> On 05/10/2016 02:08 AM, Venkateswara Rao Dokku wrote: >> Hi, >> >> I would like to know whether the valid upgrade path will be present from >> CentOS 7 to future versions like we get for Ubuntu or some other operating >> systems. >> >> Right now, I am sure that we do not have proper update path in CentOS to >> move from one version to another. >> > > If you mean upgrade to all CentOS-7 point releases, yes (from source > code for RHEL-7.0 to RHEL-7.1, to RHEL-7.2). If you mean from CentOS-7 > to CentOS-8, there is no way to know. There is no RHEL-8 to look at. > > Red Hat has source code for preupgrade-assistant and > redhat-upgrade-tool. That is created for inplace upgrades from one > major version to another. Currently those tools are community and > maintained and they are several updates behind because currently no one > in the community has stepped up to maintain them. > > But, CentOS-7 has an EOL of June 30, 2024 .. so there is security > updates for 8 more years. > >I tend to keep all server content in /srv and all user content in /home Upgrading from one major version to another then is pretty simple - but not on the same machine. I do a fresh install of the new version in a new vm, make sure all the services are in place, and all the user and group ids match. I can then rsync the old /home and /srv to the new system. Yes there are server migration files that need to be migrated but what I like about this approach is I can keep serving from the old server until this is done and tested in the new server, and then it is just a simple DNS change and the new server is used. Migrating configuration files to me means starting with the defaults in the new version and modifying them to match the needs of the service, not replacing them with the old files. I have tried updating between major versions in Fedora before and there were always too many glitches, it really is better to clean install and migrate the data. In my opinion. Especially if you skip a release like I tend to do.