Update Rocks

Jump to: navigation, search

System update using update roll


This approach is preferred over the other because it allows to test the effect of updates on compute nodes and in case of problems there is an easy way to roll back the system to the previous configuration.

Use rocks create mirror to create an update roll

   # rocks create mirror http://mirror.centos.org/centos/6/updates/x86_64/Packages/ rollname=Centos_6_X_update_2014_03_21

Where X should be the current minor release number (if latest stable version of Centos is 6.5 X should be 5).

If the current minor release number changed since you installed your Rocks Cluster or if it changed since last upgrade using this procedure you must also create a new OS roll relative to the current release minor. For example if the current release number of Centos is 6.5 run the following command:

   # rocks create mirror http://mirror.centos.org/centos/6/os/<arch>/Packages/  rollname=Centos_6_X

If you are in doubt, you should run also the previous command, since the only drow back is that you will waste some disk space. X should be substituted with the current minor release.

Add the update roll created by the previous command to your distribution

   # rocks add roll Centos_6_X_update_2014_03_21-6.1-0.x86_64.disk1.iso
   # rocks add roll Centos_6_X-6.1-0.x86_64.disk1.iso
   # rocks enable roll Centos_6_X
   # rocks enable roll Centos_6_X_update_2014_03_21
   # cd /export/rocks/install
   # rocks create distro 

New installed nodes will automatically get the updated packages. It is wise to test the update on a compute nodes to verify that updates did not break anything. To force a node to reinstall, run the command:

   # ssh hostname-0-0 /boot/kickstart/cluster-kickstart 

If something goes wrong you can always revert the updates removing the update roll.

   # rocks remove roll Centos_6_X_update_2014_03_21
   # rocks remove roll Centos_6_X
   # cd /export/rocks/install
   # rocks create distro 

After you tested the update on some nodes with the previous step, you can update the frontend using the standard yum command

   # yum update 

Then reboot the frontend to make the update effective.

Personal tools
MediaWiki Appliance - Powered by TurnKey Linux