- Upgrading CentOS version
- Downgrading CentOS version
- Using RPM to upgrade/downgrade only CentOS release or any other package
- Upgrading/downgrading Kernel version
- Installing Mediagrid FSD
Upgrading CentOS version
If you want to upgrade to latest CentOS version, you just need to run
|
However, if you want to jump into specific version, you need to use below command, which will fail if your repository isn't pointing to the correct URLs:
|
By default, on CentOS7 CentOS-Base.repo repository located at /etc/yum.repos.d/CentOS-Base.repo will point to mirror containing only latest release of CentOS. This is the original content of this file:
|
As you can see, baseurl line is # and "yum upgrade" will only look at mirrorlist.centos.org. Luckily, CentOS does offer all of their versions (seriously, like all of them) on their vault repository. All you need to do to make the above command work is modify the yum configuration file to point that the vault repo instead of the standard mirror. Your CentOS-Base.repo should be changed as shown bellow:
|
Now you can run below command and desired version will be installed.
|
Assuming you don’t need to do this all the time, you might want to undo the changes to the CentOS-Base.repo
file, but if you plan to be very gentle with this server and always carefully update it to something other than the latest version, then just leave the config file as is.
Downgrading CentOS version
If you want to rollback a recent CentOS upgrade, you can run below command to list the last yum commands and locate the one that triggered the upgrade
|
In this case, latest yum with ID = 6 was the one which triggered the upgrade from 7.5 to 7.7. To rollback can undo this operation with below command:
|
However, it will complain about packages to downgrade can't be found and rollback will fail.
For the command to work, you need to enable the previous version where you want to downgrade to by modifying CentOS-Vault.repo
located in /etc/yum.repos.d
and changing "enable=0
" to "enable=1
". In our case, it would be;
|
If you try again yum history undo
, it may fail again saying "Error: Trying to remove "systemd", which is protected
". If that's the case, as this systemd will be erased during downgrade, you can just rename it to systemd.bak:
|
Rollback downgrade will be performed now with yum history undo
command.
Using RPM to upgrade/downgrade only CentOS release or any other package
You can easily upgrade or downgrade CentOS release by using yum upgrade
or yum downgrade
command pointing to a specific centos-release
from the vault. Below there's an example of downgrade and upgrade:
|
Note
Need to verify if upgrading/downgrading centos-release rpm with above command is enough to consider a complete upgrade/downgrade. It seems further packages will need to be upgraded/downgraded.
Upgrading/downgrading Kernel version
- Download required kernel rpm from CentOS Vault storeage with required OS version http://vault.centos.org/<release_version>/os/x86_64/Packages/ or http://vault.centos.org/<release_version>/updates/x86_64/Packages/. For example kernel-3.10.0-1062.el7.x86_64.rpm.
-
Install it
rpm -ihv --force kernel-
3.10
.
0
-
1062
.el7.x86_64.rpm
Change boot options, to boot required kernel #
|
Installing Mediagrid FSD
If the VOS cluster is connected to Mediagrid storage, do not forget to load the compatible FSD driver in every node.
Check MG Release Notes to find the appropiate version for your OS and kernel version → Linux FSD
Then install it → Installation Instructions for Linux FSD 4.0.1.2.E4