Skip to content

Commit 200f00c

Browse files
Merge pull request #5970 from EnterpriseDB/release/2024-08-21a
Production Release: 2024-08-21a
2 parents a4f5609 + 85f5d62 commit 200f00c

File tree

48 files changed

+406
-88
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+406
-88
lines changed

install_template/templates/products/failover-manager/base.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ redirects:
2121
{{ super() }}
2222
{% endblock product_prerequisites %}
2323
{% block postinstall %}
24-
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.9, the package name is `edb-efm49`.
24+
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.10, the package name is `edb-efm410`.
2525

2626
The installation process creates a user named efm that has privileges to invoke scripts that control the Failover Manager service for clusters owned by enterprisedb or postgres.
2727

product_docs/docs/efm/4/04_configuring_efm/01_cluster_properties.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Each node in a Failover Manager cluster has a properties file (by default, named
1515
After completing the Failover Manager installation, make a working copy of the template before modifying the file contents:
1616

1717
```text
18-
# cp /etc/edb/efm-4.9/efm.properties.in /etc/edb/efm-4.9/efm.properties
18+
# cp /etc/edb/efm-4.10/efm.properties.in /etc/edb/efm-4.10/efm.properties
1919
```
2020

2121
After copying the template file, change the owner of the file to efm:

product_docs/docs/efm/4/04_configuring_efm/02_encrypting_database_password.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This example shows using the `encrypt` utility to encrypt a password for the `ac
3535
# efm encrypt acctg
3636
This utility will generate an encrypted password for you to place in
3737
your Failover Manager cluster property file:
38-
/etc/edb/efm-4.9/acctg.properties
38+
/etc/edb/efm-4.10/acctg.properties
3939
Please enter the password and hit enter:
4040
Please enter the password again to confirm:
4141
The encrypted password is: 516b36fb8031da17cfbc010f7d09359c
@@ -49,8 +49,8 @@ db.password.encrypted=516b36fb8031da17cfbc010f7d09359c
4949
After receiving your encrypted password, paste the password into the properties file and start the Failover Manager service. If there's a problem with the encrypted password, the Failover Manager service doesn't start:
5050

5151
```text
52-
[witness@localhost ~]# systemctl start edb-efm-4.9
53-
Job for edb-efm-4.9.service failed because the control process exited with error code. See "systemctl status edb-efm-4.9.service" and "journalctl -xe" for details.
52+
[witness@localhost ~]# systemctl start edb-efm-4.10
53+
Job for edb-efm-4.10.service failed because the control process exited with error code. See "systemctl status edb-efm-4.10.service" and "journalctl -xe" for details.
5454
```
5555

5656
If you receive this message when starting the Failover Manager service, see the startup log `/var/log/efm-4.<x>/startup-efm.log` for more information.

product_docs/docs/efm/4/04_configuring_efm/03_cluster_members.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Each node in a Failover Manager cluster has a cluster members file (by default n
1515
After completing the Failover Manager installation, make a working copy of the template:
1616

1717
```shell
18-
cp /etc/edb/efm-4.9/efm.nodes.in /etc/edb/efm-4.9/efm.nodes
18+
cp /etc/edb/efm-4.10/efm.nodes.in /etc/edb/efm-4.10/efm.nodes
1919
```
2020

2121
After copying the template file, change the owner of the file to efm:

product_docs/docs/efm/4/04_configuring_efm/04_extending_efm_permissions.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The `sudoers` file contains entries that allow the user efm to control the Failo
2424
The `efm-49` file is located in `/etc/sudoers.d` and contains the following entries:
2525

2626
```text
27-
# Copyright EnterpriseDB Corporation, 2014-2021. All Rights Reserved.
27+
# Copyright EnterpriseDB Corporation, 2014-2024. All Rights Reserved.
2828
#
2929
# Do not edit this file. Changes to the file may be overwritten
3030
# during an upgrade.
@@ -36,18 +36,18 @@ The `efm-49` file is located in `/etc/sudoers.d` and contains the following entr
3636
# If you run your db service under a non-default account, you will need to copy
3737
# this file to grant the proper permissions and specify the account in your efm
3838
# cluster properties file by changing the 'db.service.owner' property.
39-
efm ALL=(postgres) NOPASSWD: /usr/edb/efm-4.9/bin/efm_db_functions
40-
efm ALL=(enterprisedb) NOPASSWD: /usr/edb/efm-4.9/bin/efm_db_functions
39+
efm ALL=(postgres) NOPASSWD: /usr/edb/efm-4.10/bin/efm_db_functions
40+
efm ALL=(enterprisedb) NOPASSWD: /usr/edb/efm-4.10/bin/efm_db_functions
4141
4242
# Allow user 'efm' to sudo efm_root_functions as 'root' to write/delete the PID file,
4343
# validate the db.service.owner property, etc.
44-
efm ALL=(ALL) NOPASSWD: /usr/edb/efm-4.9/bin/efm_root_functions
44+
efm ALL=(ALL) NOPASSWD: /usr/edb/efm-4.10/bin/efm_root_functions
4545
4646
# Allow user 'efm' to sudo efm_address as root for VIP tasks.
47-
efm ALL=(ALL) NOPASSWD: /usr/edb/efm-4.9/bin/efm_address
47+
efm ALL=(ALL) NOPASSWD: /usr/edb/efm-4.10/bin/efm_address
4848
4949
# Allow user 'efm' to sudo efm_pgpool_functions as root for pgpool tasks.
50-
efm ALL=(ALL) NOPASSWD: /usr/edb/efm-4.9/bin/efm_pgpool_functions
50+
efm ALL=(ALL) NOPASSWD: /usr/edb/efm-4.10/bin/efm_pgpool_functions
5151
5252
# relax tty requirement for user 'efm'
5353
Defaults:efm !requiretty
@@ -89,17 +89,17 @@ To run Failover Manager without sudo, you must select a database process owner w
8989
```shell
9090
su - enterprisedb
9191

92-
cp /etc/edb/efm-4.9/efm.properties.in <directory/cluster_name>.properties
92+
cp /etc/edb/efm-4.10/efm.properties.in <directory/cluster_name>.properties
9393

94-
cp /etc/edb/efm-4.9/efm.nodes.in <directory>/<cluster_name>.nodes
94+
cp /etc/edb/efm-4.10/efm.nodes.in <directory>/<cluster_name>.nodes
9595
```
9696

9797
Then, modify the cluster properties file, providing the name of the user in the `db.service.owner` property. Also make sure that the `db.service.name` property is blank. Without sudo, you can't run services without root access.
9898

9999
After modifying the configuration, the new user can control Failover Manager with the following command:
100100

101101
```shell
102-
/usr/edb/efm-4.9/bin/runefm.sh start|stop <directory/cluster_name>.properties
102+
/usr/edb/efm-4.10/bin/runefm.sh start|stop <directory/cluster_name>.properties
103103
```
104104

105105
Where `<directory/cluster_name.properties>` specifies the full path of the cluster properties file. The user provides the full path to the properties file whenever the nondefault user is controlling agents or using the `efm` script.

product_docs/docs/efm/4/04_configuring_efm/06_configuring_for_eager_failover.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ redirects:
88

99
In default run mode, if a primary Failover Manager process fails, there's no failover protection until the agent restarts. To avoid this case, you can set up the primary node through `systemd` to cause a failover when the primary agent exits, which is called Eager Failover.
1010

11-
You can set up Eager Failover by performing the following steps. The example uses EDB Postgres Advanced Server version 12 and Failover Manager version 4.5.
11+
You can set up Eager Failover by performing the following steps. The example uses EDB Postgres Advanced Server. Replace `<x>` with the appropriate version numbers in the following.
1212

1313
<div id="enabling_the_eager_failover" class="registered_link"></div>
1414

@@ -29,17 +29,17 @@ You can set up Eager Failover by performing the following steps. The example us
2929

3030
- Ensure that the database server and the local Failover Manager agent are running.
3131

32-
- As root, edit the service `edb-as-12.service` file using the command:
32+
- As root, edit the service `edb-as-<x>.service` file using the command:
3333

3434
```shell
35-
systemctl edit edb-as-12.service
35+
systemctl edit edb-as-<x>.service
3636
```
3737

3838
- Add the following lines into the text editor, then save:
3939

4040
```ini
4141
[Unit]
42-
BindsTo=edb-efm-4.5.service
42+
BindsTo=edb-efm-4.<x>.service
4343
```
4444

4545
With these changes, when the Failover Manager agent is stopped or ended, the rest of the cluster treats this situation as a failure and attempts a failover.
@@ -48,9 +48,9 @@ With these changes, when the Failover Manager agent is stopped or ended, the res
4848

4949
## Disabling Eager Failover
5050

51-
- If you want to stop Failover Manager without stopping the database, comment out the following line in `/etc/systemd/system/edb-as-12.service`:
51+
- If you want to stop Failover Manager without stopping the database, comment out the following line in `/etc/systemd/system/edb-as-<x>.service`:
5252
```ini
53-
BindsTo=edb-efm-4.5.service
53+
BindsTo=edb-efm-4.<x>.service
5454
```
5555
- Run the following command to reload the configuration files:
5656
```shell

product_docs/docs/efm/4/05_using_efm.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,11 @@ After creating the `acctg.properties` and `sales.properties` files, create a ser
271271

272272
If you're using RHEL/Rocky Linux/AlmaLinux 8.x or later, copy the service file `/usr/lib/systemd/system/edb-efm-4.<x>.service` to `/etc/systemd/system` with a new name that's unique for each cluster.
273273

274-
For example, if you have two clusters named `acctg` and `sales` managed by Failover Manager 4.9, the unit file names might be `efm-acctg.service` and `efm-sales.service`. You can create them with:
274+
For example, if you have two clusters named `acctg` and `sales` managed by Failover Manager 4.10, the unit file names might be `efm-acctg.service` and `efm-sales.service`. You can create them with:
275275

276276
```shell
277-
cp /usr/lib/systemd/system/edb-efm-4.9.service /etc/systemd/system/efm-acctg.service
278-
cp /usr/lib/systemd/system/edb-efm-4.9.service /etc/systemd/system/efm-sales.service
277+
cp /usr/lib/systemd/system/edb-efm-4.10.service /etc/systemd/system/efm-acctg.service
278+
cp /usr/lib/systemd/system/edb-efm-4.10.service /etc/systemd/system/efm-sales.service
279279
```
280280

281281
Then use `systemctl edit` to edit the `CLUSTER` variable in each unit file, changing the specified cluster name from `efm` to the new cluster name.
@@ -286,15 +286,15 @@ In this example, edit the `acctg` cluster by running `systemctl edit efm-acctg.s
286286
```ini
287287
[Service]
288288
Environment=CLUSTER=acctg
289-
PIDFile=/run/efm-4.9/acctg.pid
289+
PIDFile=/run/efm-4.10/acctg.pid
290290
```
291291

292292
Edit the `sales` cluster by running `systemctl edit efm-sales.service` and write:
293293

294294
```ini
295295
[Service]
296296
Environment=CLUSTER=sales
297-
PIDFile=/run/efm-4.9/sales.pid
297+
PIDFile=/run/efm-4.10/sales.pid
298298
```
299299

300300
!!!Note

product_docs/docs/efm/4/08_controlling_efm_service.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ Stop the Failover Manager on the current node. This command must be invoked by r
4040
The `status` command returns the status of the Failover Manager agent on which it is invoked. You can invoke the status command on any node to instruct Failover Manager to return status and server startup information.
4141

4242
```text
43-
[root@ONE ~]}> systemctl status edb-efm-4.9
44-
edb-efm-4.9.service - EnterpriseDB Failover Manager 4.9
45-
Loaded: loaded (/usr/lib/systemd/system/edb-efm-4.9.service; disabled; vendor preset: disabled)
43+
[root@ONE ~]}> systemctl status edb-efm-4.10
44+
edb-efm-4.10.service - EnterpriseDB Failover Manager 4.10
45+
Loaded: loaded (/usr/lib/systemd/system/edb-efm-4.10.service; disabled; vendor preset: disabled)
4646
Active: active (running) since Thu 2024-04-11 11:02:31 EDT; 4h 11min ago
47-
Process: 58125 ExecStart=/bin/bash -c /usr/edb/edb-efm-4.9/bin/runefm.sh start ${CLUSTER} (code=exited, status=0/SUCCESS)
47+
Process: 58125 ExecStart=/bin/bash -c /usr/edb/edb-efm-4.10/bin/runefm.sh start ${CLUSTER} (code=exited, status=0/SUCCESS)
4848
Main PID: 58180 (java)
49-
CGroup: /system.slice/edb-efm-4.9.service
50-
└─58180 /usr/lib/jvm/java-11-openjdk-11.0.20.0.8-1.el7_9.x86_64/bin/java -cp /usr/edb/efm-4.9/lib/EFM-4.9.jar -Xmx128m...
49+
CGroup: /system.slice/edb-efm-4.10.service
50+
└─58180 /usr/lib/jvm/java-11-openjdk-11.0.20.0.8-1.el7_9.x86_64/bin/java -cp /usr/edb/efm-4.10/lib/EFM-4.10.jar -Xmx128m...
5151
```

product_docs/docs/efm/4/efm_quick_start/index.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Start the configuration process on a primary or standby node. Then, copy the con
3131
1. Create working configuration files. Copy the provided sample files to create Failover Manager configuration files, and correct the ownership and version number if you are installing a different version:
3232

3333
```shell
34-
cd /etc/edb/efm-4.9
34+
cd /etc/edb/efm-4.10
3535

3636
cp efm.properties.in efm.properties
3737

@@ -45,7 +45,7 @@ Start the configuration process on a primary or standby node. Then, copy the con
4545
1. Create an [encrypted password](/efm/latest/04_configuring_efm/02_encrypting_database_password/) needed for the properties file:
4646

4747
```shell
48-
/usr/edb/efm-4.9/bin/efm encrypt efm
48+
/usr/edb/efm-4.10/bin/efm encrypt efm
4949
```
5050

5151
Follow the onscreen instructions to produce the encrypted version of your database password.
@@ -83,38 +83,38 @@ Start the configuration process on a primary or standby node. Then, copy the con
8383

8484
The Failover Manager agent doesn't validate the addresses in the `efm.nodes` file. The agent expects that some of the addresses in the file can't be reached (for example, that another agent hasn’t been started yet).
8585

86-
1. Configure the other nodes. Copy the `efm.properties` and `efm.nodes` files to `/etc/edb/efm-4.9` on the other nodes in your sample cluster. After copying the files, change the file ownership so the files are owned by efm:efm. The `efm.properties` file can be the same on every node, except for the following properties:
86+
1. Configure the other nodes. Copy the `efm.properties` and `efm.nodes` files to `/etc/edb/efm-4.10` on the other nodes in your sample cluster. After copying the files, change the file ownership so the files are owned by efm:efm. The `efm.properties` file can be the same on every node, except for the following properties:
8787

8888
- Modify the `bind.address` property to use the node’s local address.
8989

9090
- Set `is.witness` to `true` if the node is a witness node. If the node is a witness node, the properties relating to a local database installation are ignored.
9191

92-
1. Start the Failover Manager cluster. On any node, start the Failover Manager agent. The agent is named `edb-efm-4.9`; you can use your platform-specific service command to control the service. For example, on a RHEL 7.x or Rocky Linux/AlmaLinux/RHEL 8.x host, use the command:
92+
1. Start the Failover Manager cluster. On any node, start the Failover Manager agent. The agent is named `edb-efm-4.10`; you can use your platform-specific service command to control the service. For example, on a RHEL 7.x or Rocky Linux/AlmaLinux/RHEL 8.x host, use the command:
9393

9494
```shell
95-
systemctl start edb-efm-4.9
95+
systemctl start edb-efm-4.10
9696
```
9797

9898
1. After the agent starts, run the following command to see the status of the single-node cluster. The addresses of the other nodes appear in the `Allowed node host` list.
9999

100100
```shell
101-
/usr/edb/efm-4.9/bin/efm cluster-status efm
101+
/usr/edb/efm-4.10/bin/efm cluster-status efm
102102
```
103103

104104
1. Start the agent on the other nodes. Run the `efm cluster-status efm` command on any node to see the cluster status.
105105

106106
If any agent fails to start, see the startup log for information about what went wrong:
107107

108108
```shell
109-
cat /var/log/efm-4.9/startup-efm.log
109+
cat /var/log/efm-4.10/startup-efm.log
110110
```
111111

112112
## Perform a switchover
113113

114114
If the cluster status output shows that the primary and standby nodes are in sync, you can perform a switchover:
115115

116116
```shell
117-
/usr/edb/efm-4.9/bin/efm promote efm -switchover
117+
/usr/edb/efm-4.10/bin/efm promote efm -switchover
118118
```
119119

120120
The command promotes a standby and reconfigures the primary database as a new standby in the cluster. To switch back, run the command again.
@@ -124,5 +124,5 @@ The command promotes a standby and reconfigures the primary database as a new st
124124
For quick access to online help, use:
125125

126126
```shell
127-
/usr/edb/efm-4.9/bin/efm --help
127+
/usr/edb/efm-4.10/bin/efm --help
128128
```
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "Version 4.10"
3+
---
4+
5+
Enhancements, bug fixes, and other changes in EFM 4.10 include:
6+
7+
| Type | Description |
8+
| ---- |------------ |
9+
| Enhancement | Failover Manager was upgraded to use the Bouncy Castle cryptographic library version 1.0.2.5. |
10+
| Bug Fix | Improve handling of rare case where the standby to promote becomes unavailable during a switchover. [Support ticket: #37266] |
11+
| Bug Fix | The `efm upgrade-conf` command will not lose .nodes file information when the `-source` and destination directories are the same. [Support ticket: #37479] |
12+
| Bug Fix | Fixed an issue where the `efm cluster-status` command hid connection errors if every database connection failed. [Support ticket: #39108] |
13+
| Bug Fix | At startup, if an agent with a primary database sees that there is already a primary in the cluster, it will drop the VIP if applicable when fencing off the database. |

product_docs/docs/efm/4/efm_rel_notes/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ cover what was new in each release.
66

77
| Version | Release Date |
88
| ------- | ------------ |
9+
| [4.10](01_efm_410_rel_notes) | 21 Aug 2024|
910
| [4.9](01_efm_49_rel_notes) | 14 May 2024|
1011
| [4.8](02_efm_48_rel_notes) | 15 Nov 2023|
1112
| [4.7](03_efm_47_rel_notes) | 20 Jun 2023|

product_docs/docs/efm/4/installing/linux_arm64/efm_debian_12.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Before you begin the installation process:
4444
sudo apt-get -y install edb-efm<4x>
4545
```
4646

47-
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.9, the package name is `edb-efm49`.
47+
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.10, the package name is `edb-efm410`.
4848

4949
The installation process creates a user named efm that has privileges to invoke scripts that control the Failover Manager service for clusters owned by enterprisedb or postgres.
5050

product_docs/docs/efm/4/installing/linux_ppc64le/efm_rhel_8.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Before you begin the installation process:
5353
sudo dnf -y install edb-efm<4x>
5454
```
5555

56-
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.9, the package name is `edb-efm49`.
56+
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.10, the package name is `edb-efm410`.
5757

5858
The installation process creates a user named efm that has privileges to invoke scripts that control the Failover Manager service for clusters owned by enterprisedb or postgres.
5959

product_docs/docs/efm/4/installing/linux_ppc64le/efm_rhel_9.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Before you begin the installation process:
5353
sudo dnf -y install edb-efm<4x>
5454
```
5555

56-
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.9, the package name is `edb-efm49`.
56+
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.10, the package name is `edb-efm410`.
5757

5858
The installation process creates a user named efm that has privileges to invoke scripts that control the Failover Manager service for clusters owned by enterprisedb or postgres.
5959

product_docs/docs/efm/4/installing/linux_ppc64le/efm_sles_12.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Before you begin the installation process:
5555
sudo zypper -n install edb-efm<4x>
5656
```
5757

58-
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.9, the package name is `edb-efm49`.
58+
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.10, the package name is `edb-efm410`.
5959

6060
The installation process creates a user named efm that has privileges to invoke scripts that control the Failover Manager service for clusters owned by enterprisedb or postgres.
6161

product_docs/docs/efm/4/installing/linux_ppc64le/efm_sles_15.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Before you begin the installation process:
5656
sudo zypper -n install edb-efm<4x>
5757
```
5858

59-
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.9, the package name is `edb-efm49`.
59+
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.10, the package name is `edb-efm410`.
6060

6161
The installation process creates a user named efm that has privileges to invoke scripts that control the Failover Manager service for clusters owned by enterprisedb or postgres.
6262

product_docs/docs/efm/4/installing/linux_x86_64/efm_debian_11.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Before you begin the installation process:
4444
sudo apt-get -y install edb-efm<4x>
4545
```
4646

47-
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.9, the package name is `edb-efm49`.
47+
Where `<4x>` is the version of Failover Manager that you're installing. For example, if you're installing version 4.10, the package name is `edb-efm410`.
4848

4949
The installation process creates a user named efm that has privileges to invoke scripts that control the Failover Manager service for clusters owned by enterprisedb or postgres.
5050

0 commit comments

Comments
 (0)