Page 2 of 2

Re: CentOS 7 to CentOS 8 upgrade script

Posted: 2020/02/17 19:17:16
by jlehtone
TrevorH wrote:
2020/02/17 17:07:53
always do a fresh install. With everything in configuration management it really isn't that much effort and you end up with a supported machine with no cruft and no legacy crap on it.
This. One can put their effort on setting up configuration management script that is likely to work time and again, or one can spend the time on creating upgrade magic that might possess undefined behaviour.

Everyone is naturally free to choose ... as long as they assign blame truthfully.


[Edit]
The configuration management implies that configuration is not stored in a machine; it is applied to a machine. Management is hosted outside a machine.
This also implies that user data is "not part of the system". User data could be on separate partition (that needs not to be overwritten due to OS install). For example, on network share.

Re: CentOS 7 to CentOS 8 upgrade script

Posted: 2020/06/17 11:14:44
by neondiet
_"isn't that much effort"_

At my place of work we currently have ~32k hosts (physical and virtual) running CentOS of which ~29k are currently running CentOS 7. Replacing them with new builds of CentOS 8, even with heavily automated processes and not disrupting the business is quite a considerable effort. A supported in-place upgrade would speed that up and save many months of work.

Re: CentOS 7 to CentOS 8 upgrade script

Posted: 2020/06/17 11:51:52
by TrevorH
It will never happen. Start designing your deployment practices to make it easier to replace them not upgrade them.

Re: CentOS 7 to CentOS 8 upgrade script

Posted: 2020/06/17 12:45:34
by KernelOops
I have a large number of centos 7 servers with linode, I've created a semi-automated method with ansible. My playbook creates a new centos 8 server, generates ssh keys, migrates data between the two servers (via the local interface), switches the public IP addresses between the two servers, thus the new server becomes visible to the outside world. Finally, the old server is destroyed.

In most cases its easy to migrate the data, but in some limited cases the migration is rather difficult and can only be done with a live cluster that allows servers to shut down without affecting performance.