Skip to content

Commit fe85512

Browse files
author
rdeltcheva
committed
Adjustments for RHEL 9.0
1 parent 5035fb0 commit fe85512

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

articles/sap/workloads/high-availability-guide-rhel-pacemaker.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.topic: article
1414
ms.tgt_pltfrm: vm-windows
1515
ms.workload: infrastructure-services
1616
ms.custom: subject-rbac-steps
17-
ms.date: 09/22/2022
17+
ms.date: 03/31/2022
1818
ms.author: radeltch
1919

2020
---
@@ -36,7 +36,7 @@ ms.author: radeltch
3636

3737
[virtual-machines-linux-maintenance]:../../virtual-machines/maintenance-and-updates.md#maintenance-that-doesnt-require-a-reboot
3838

39-
The article describes how to configure basic Pacemaker cluster on Red Hat Enterprise Server(RHEL). The instructions cover both RHEL 7 and RHEL 8.
39+
The article describes how to configure basic Pacemaker cluster on Red Hat Enterprise Server(RHEL). The instructions cover RHEL 7, RHEL 8 and RHEL 9.
4040

4141
## Prerequisites
4242
Read the following SAP Notes and papers first:
@@ -78,11 +78,11 @@ Read the following SAP Notes and papers first:
7878
> Red Hat doesn't support software-emulated watchdog. Red Hat doesn't support SBD on cloud platforms. For details see [Support Policies for RHEL High Availability Clusters - sbd and fence_sbd](https://access.redhat.com/articles/2800691).
7979
> The only supported fencing mechanism for Pacemaker Red Hat Enterprise Linux clusters on Azure, is Azure fence agent.
8080
81-
The following items are prefixed with either **[A]** - applicable to all nodes, **[1]** - only applicable to node 1 or **[2]** - only applicable to node 2. Differences in the commands or the configuration between RHEL 7 and RHEL 8 are marked in the document.
81+
The following items are prefixed with either **[A]** - applicable to all nodes, **[1]** - only applicable to node 1 or **[2]** - only applicable to node 2. Differences in the commands or the configuration between RHEL 7 and RHEL 8 and above are marked in the document.
8282

8383
1. **[A]** Register - optional step. This step is not required, if using RHEL SAP HA-enabled images.
8484

85-
Register your virtual machines and attach it to a pool that contains repositories for RHEL 7.
85+
For example, if deploying on RHEL 7, register your virtual machine and attach it to a pool that contains repositories for RHEL 7.
8686

8787
<pre><code>sudo subscription-manager register
8888
# List the available pools
@@ -105,9 +105,9 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
105105

106106
1. **[A]** Install RHEL HA Add-On
107107

108-
<pre><code>sudo yum install -y pcs pacemaker fence-agents-azure-arm nmap-ncat
109-
</code></pre>
110-
108+
```sudo yum install -y pcs pacemaker fence-agents-azure-arm nmap-ncat
109+
```
110+
111111
> [!IMPORTANT]
112112
> We recommend the following versions of Azure Fence agent (or later) for customers to benefit from a faster failover time, if a resource stop fails or the cluster nodes cannot communicate which each other anymore:
113113
> RHEL 7.7 or higher use the latest available version of fence-agents package
@@ -123,6 +123,12 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
123123
> RHEL 8.1: fence-agents-4.2.1-30.el8_1.4
124124
> RHEL 7.9: fence-agents-4.2.1-41.el7_9.4.
125125
126+
> [!IMPORTANT]
127+
> On RHEL 9, we recommend the following package versions (or later) to avoid issues with Azure Fence agent:
128+
> fence-agents-4.10.0-20.el9_0.7
129+
> fence-agents-common-4.10.0-20.el9_0.6
130+
> ha-cloud-support-4.10.0-20.el9_0.6.x86_64.rpm
131+
126132
Check the version of the Azure fence agent. If necessary, update it to a version equal to or later than the stated above.
127133

128134
<pre><code># Check the version of the Azure Fence Agent
@@ -132,6 +138,10 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
132138
> [!IMPORTANT]
133139
> If you need to update the Azure Fence agent, and if using custom role, make sure to update the custom role to include action **powerOff**. For details see [Create a custom role for the fence agent](#1-create-a-custom-role-for-the-fence-agent).
134140
141+
1. If deploying on RHEL 9, install also the resource agents for cloud deployment:
142+
```sudo yum install -y resource-agents-cloud
143+
```
144+
135145
1. **[A]** Setup host name resolution
136146

137147
You can either use a DNS server or modify the /etc/hosts on all nodes. This example shows how to use the /etc/hosts file.
@@ -183,7 +193,7 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
183193
sudo pcs cluster start --all
184194
</code></pre>
185195

186-
If building a cluster on **RHEL 8.x**, use the following commands:
196+
If building a cluster on **RHEL 8.x/RHEL 9.x**, use the following commands:
187197
<pre><code>sudo pcs host auth <b>prod-cl1-0</b> <b>prod-cl1-1</b> -u hacluster
188198
sudo pcs cluster setup <b>nw1-azr</b> <b>prod-cl1-0</b> <b>prod-cl1-1</b> totem token=30000
189199
sudo pcs cluster start --all
@@ -233,7 +243,7 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
233243
The fencing device uses either a managed identity for Azure resource or service principal to authorize against Microsoft Azure.
234244

235245
### Using Managed Identity
236-
To create a managed identity (MSI), [create a system-assigned](../../active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm.md#system-assigned-managed-identity) managed identity for each VM in the cluster. Should a system-assigned managed identity already exist, it will be used. User assigned managed identities should not be used with Pacemaker at this time. Fence device, based on managed identity is supported on RHEL 7.9 and RHEL 8.x.
246+
To create a managed identity (MSI), [create a system-assigned](../../active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm.md#system-assigned-managed-identity) managed identity for each VM in the cluster. Should a system-assigned managed identity already exist, it will be used. User assigned managed identities should not be used with Pacemaker at this time. Fence device, based on managed identity is supported on RHEL 7.9 and RHEL 8.x/RHEL 9.
237247

238248
### Using Service Principal
239249
Follow these steps to create a service principal, if not using managed identity.
@@ -312,7 +322,7 @@ power_timeout=240 pcmk_reboot_timeout=900 pcmk_monitor_timeout=120 pcmk_monitor_
312322
op monitor interval=3600
313323
</code></pre>
314324

315-
For RHEL **8.X**, use the following command to configure the fence device:
325+
For RHEL **8.X/9.X**, use the following command to configure the fence device:
316326
<pre><code>sudo pcs stonith create rsc_st_azure fence_azure_arm <b>msi=true</b> resourceGroup="<b>resource group</b>" \
317327
subscriptionId="<b>subscription id</b>" <b>pcmk_host_map="prod-cl1-0:prod-cl1-0-vm-name;prod-cl1-1:prod-cl1-1-vm-name"</b> \
318328
power_timeout=240 pcmk_reboot_timeout=900 pcmk_monitor_timeout=120 pcmk_monitor_retries=4 pcmk_action_limit=3 pcmk_delay_max=15 \
@@ -329,7 +339,7 @@ power_timeout=240 pcmk_reboot_timeout=900 pcmk_monitor_timeout=120 pcmk_monitor_
329339
op monitor interval=3600
330340
</code></pre>
331341

332-
For RHEL **8.x**, use the following command to configure the fence device:
342+
For RHEL **8.X/9.X**, use the following command to configure the fence device:
333343
<pre><code>sudo pcs stonith create rsc_st_azure fence_azure_arm username="<b>login ID</b>" password="<b>password</b>" \
334344
resourceGroup="<b>resource group</b>" tenantId="<b>tenant ID</b>" subscriptionId="<b>subscription id</b>" \
335345
<b>pcmk_host_map="prod-cl1-0:prod-cl1-0-vm-name;prod-cl1-1:prod-cl1-1-vm-name"</b> \

0 commit comments

Comments
 (0)