Upgrading an Existing Cluster v4
Failover Manager provides a utility to assist you when upgrading a Failover Manager cluster. To upgrade an existing cluster, you must:
Install Failover Manager 4.2 on each node of the cluster. For detailed information about installing Failover Manager, see Installing Failover Manager.
After installing Failover Manager, invoke the
efm upgrade-confutility to create the
.nodesfiles for Failover Manager 4.2. The Failover Manager installer installs the upgrade utility (efm upgrade-conf) to the
/usr/edb/efm-4.2/bin directory. To invoke the utility, assume root privileges, and invoke the command:
upgrade-conf utility locates the
.nodes files of pre-existing clusters and copies the parameter values to a new configuration file for use by Failover Manager. The utility saves the updated copy of the configuration files in the
- Modify the
.nodesfiles for EFM 4.2, specifying any new preferences. Use your choice of editor to modify any additional properties in the properties file (located in the
/etc/edb/efm-4.2directory) before starting the service for that node. For detailed information about property settings, see The Cluster Properties File.
db.bin is a required property. When modifying the properties file, ensure that the
db.bin property specifies the location of the Postgres
If you are using Eager Failover, you must disable it before stopping the EFM cluster. For more information, see Disabling Eager Failover.
Use a version-specific command to stop the old Failover Manager cluster; for example, you can use the following command to stop a version 4.1 cluster:
- Start the new Failover manager service (
edb-efm-4.2) on each node of the cluster.
The following example demonstrates invoking the upgrade utility to create the
.nodes files for a Failover Manager installation:
If you are using a Failover Manager configuration without sudo, include the
-source flag and specify the name of the directory in which the configuration files reside when invoking
upgrade-conf. If the directory is not the configuration default directory, the upgraded files will be created in the directory from which the
upgrade-conf command was invoked.
Please note: If you are using a unit file, you must manually update the file to reflect the new Failover Manager service name when you perform an upgrade.
After upgrading to Failover Manager 4.2, you can use your native package manager to remove previous installations of Failover Manager. For example, use the following command to remove Failover Manager 4.1 and any unneeded dependencies:
- On RHEL or CentOS 7.x:
- On RHEL or CentOS 8.x:
- On Debian or Ubuntu:
- On SLES:
This section describes how to perform a quick minor database version upgrade. You can use the steps that follow to upgrade from one minor version to another (for example, from 10.1.5 to version 10.2.7), or to apply a patch release for a version.
You should first update the database server on each Standby node of the Failover Manager cluster. Then, perform a switchover, promoting a Standby node to the role of Primary within the Failover Manager cluster. Then, perform a database update on the old primary node.
On each node of the cluster you must perform the following steps to update the database server:
- Stop the Failover Manager agent.
- Stop the database server.
- Update the database server.
- Start the database service.
- Start the Failover Manager agent.
For detailed information about controlling the Advanced Server service, or upgrading your version of Advanced Server, please see the EDB Postgres Advanced Server Guide, available at:
When your updates are complete, you can use the efm set-priority command to add the old primary to the front of the standby list (if needed), and then switchover to return the cluster to its original state.