7.2.2. Rolling (node by node)
In this scenario, each node is removed from the cluster, upgraded, and then brought back online, until all nodes are running the newest version.
Special considerations when planning a rolling upgrade:
If you plan to upgrade other cluster software — such as the messaging layer — at the same time, consult that software’s documentation for its compatibility with a rolling upgrade.
If the major version number is changing in the Pacemaker version you are upgrading to, a rolling upgrade may not be possible. Read the new version’s release notes (as well the information here) for what limitations may exist.
If the CRM feature set is changing in the Pacemaker version you are upgrading to, you should run a mixed-version cluster only during a small rolling upgrade window. If one of the older nodes drops out of the cluster for any reason, it will not be able to rejoin until it is upgraded.
If the Pacemaker Remote protocol version is changing, all cluster nodes should be upgraded before upgrading any Pacemaker Remote nodes.
See the ClusterLabs wiki’s
Release Calendar to figure out whether the CRM feature set and/or Pacemaker Remote protocol version changed between the the Pacemaker release versions in your rolling upgrade.
To perform a rolling upgrade, on each node in turn:
Put the node into standby mode, and wait for any active resources to be moved cleanly to another node. (This step is optional, but allows you to deal with any resource issues before the upgrade.)
Shutdown the cluster software (pacemaker and the messaging layer) on the node.
Upgrade the Pacemaker software. This may also include upgrading the messaging layer and/or the underlying operating system.
If this is the first node to be upgraded, check the configuration with the crm_verify
tool.
Start the messaging layer. This must be the same messaging layer (currently only Corosync version 2 and greater is supported) that the rest of the cluster is using.
Even if a rolling upgrade from the current version of the cluster to the newest version is not directly possible, it may be possible to perform a rolling upgrade in multiple steps, by upgrading to an intermediate version first.
Table 7.2. Version Compatibility Table
Version being Installed | Oldest Compatible Version |
---|
Pacemaker 2.y.z
|
|
Pacemaker 1.y.z
|
Pacemaker 1.0.0
|
Pacemaker 0.7.z
|
Pacemaker 0.6.z
|