Skip to content

Commit fa3c41c

Browse files
Merge pull request #210054 from dennispadia/depadia-updatedoc
Steps sequence alignment in RHEL doc
2 parents 3c2a5a4 + 1b2ebc5 commit fa3c41c

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

articles/virtual-machines/workloads/sap/sap-hana-high-availability-rhel.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.service: virtual-machines-sap
1010
ms.topic: article
1111
ms.tgt_pltfrm: vm-linux
1212
ms.workload: infrastructure
13-
ms.date: 03/24/2021
13+
ms.date: 09/02/2022
1414
ms.author: radeltch
1515

1616
---
@@ -557,12 +557,21 @@ Follow the steps in [Setting up Pacemaker on Red Hat Enterprise Linux in Azure](
557557

558558
## Implement the Python system replication hook SAPHanaSR
559559

560-
This is important step to optimize the integration with the cluster and improve the detection when a cluster failover is needed. It is highly recommended to configure the SAPHanaSR Python hook.
560+
This is important step to optimize the integration with the cluster and improve the detection when a cluster failover is needed. It is highly recommended to configure the SAPHanaSR Python hook.
561561

562-
1. **[A]** Install the HANA "system replication hook". The hook needs to be installed on both HANA DB nodes.
562+
1. **[A]** Install the SAP HANA resource agents on **all nodes**. Make sure to enable a repository that contains the package. You don't need to enable additional repositories, if using RHEL 8.x HA-enabled image.
563+
564+
```bash
565+
# Enable repository that contains SAP HANA resource agents
566+
sudo subscription-manager repos --enable="rhel-sap-hana-for-rhel-7-server-rpms"
567+
568+
sudo yum install -y resource-agents-sap-hana
569+
```
570+
571+
2. **[A]** Install the HANA "system replication hook". The hook needs to be installed on both HANA DB nodes.
563572

564573
> [!TIP]
565-
> The Python hook can only be implemented for HANA 2.0.
574+
> The Python hook can only be implemented for HANA 2.0.
566575
567576
1. Prepare the hook as `root`.
568577

@@ -591,7 +600,7 @@ This is important step to optimize the integration with the cluster and improve
591600
ha_dr_saphanasr = info
592601
```
593602

594-
2. **[A]** The cluster requires sudoers configuration on each cluster node for <sid\>adm. In this example that is achieved by creating a new file. Execute the commands as `root`.
603+
3. **[A]** The cluster requires sudoers configuration on each cluster node for <sid\>adm. In this example that is achieved by creating a new file. Execute the commands as `root`.
595604
```bash
596605
sudo visudo -f /etc/sudoers.d/20-saphana
597606
# Insert the following lines and then save
@@ -603,13 +612,13 @@ This is important step to optimize the integration with the cluster and improve
603612
Defaults!SITE1_SOK, SITE1_SFAIL, SITE2_SOK, SITE2_SFAIL !requiretty
604613
```
605614

606-
3. **[A]** Start SAP HANA on both nodes. Execute as <sid\>adm.
615+
4. **[A]** Start SAP HANA on both nodes. Execute as <sid\>adm.
607616

608617
```bash
609618
sapcontrol -nr 03 -function StartSystem
610619
```
611620

612-
4. **[1]** Verify the hook installation. Execute as <sid\>adm on the active HANA system replication site.
621+
5. **[1]** Verify the hook installation. Execute as <sid\>adm on the active HANA system replication site.
613622

614623
```bash
615624
cdtrace
@@ -619,22 +628,13 @@ This is important step to optimize the integration with the cluster and improve
619628
# 2021-04-12 21:36:16.911343 ha_dr_SAPHanaSR SFAIL
620629
# 2021-04-12 21:36:29.147808 ha_dr_SAPHanaSR SFAIL
621630
# 2021-04-12 21:37:04.898680 ha_dr_SAPHanaSR SOK
622-
623631
```
624632

625633
For more details on the implementation of the SAP HANA system replication hook see [Enable the SAP HA/DR provider hook](https://access.redhat.com/articles/3004101#enable-srhook).
626-
627-
## Create SAP HANA cluster resources
628-
629-
Install the SAP HANA resource agents on **all nodes**. Make sure to enable a repository that contains the package. You don't need to enable additional repositories, if using RHEL 8.x HA-enabled image.
630634

631-
<pre><code># Enable repository that contains SAP HANA resource agents
632-
sudo subscription-manager repos --enable="rhel-sap-hana-for-rhel-7-server-rpms"
633-
634-
sudo yum install -y resource-agents-sap-hana
635-
</code></pre>
635+
## Create SAP HANA cluster resources
636636

637-
Next, create the HANA topology. Run the following commands on one of the Pacemaker cluster nodes:
637+
Create the HANA topology. Run the following commands on one of the Pacemaker cluster nodes:
638638

639639
<pre><code>sudo pcs property set maintenance-mode=true
640640

@@ -652,7 +652,7 @@ Next, create the HANA resources.
652652
If building a cluster on **RHEL 7.x**, use the following commands:
653653

654654
<pre><code># Replace the bold string with your instance number, HANA system ID, and the front-end IP address of the Azure load balancer.
655-
#
655+
656656
sudo pcs resource create SAPHana_<b>HN1</b>_<b>03</b> SAPHana SID=<b>HN1</b> InstanceNumber=<b>03</b> PREFER_SITE_TAKEOVER=true DUPLICATE_PRIMARY_TIMEOUT=7200 AUTOMATED_REGISTER=false \
657657
op start timeout=3600 op stop timeout=3600 \
658658
op monitor interval=61 role="Slave" timeout=700 \
@@ -673,7 +673,7 @@ sudo pcs property set maintenance-mode=false
673673
If building a cluster on **RHEL 8.x**, use the following commands:
674674

675675
<pre><code># Replace the bold string with your instance number, HANA system ID, and the front-end IP address of the Azure load balancer.
676-
#
676+
677677
sudo pcs resource create SAPHana_<b>HN1</b>_<b>03</b> SAPHana SID=<b>HN1</b> InstanceNumber=<b>03</b> PREFER_SITE_TAKEOVER=true DUPLICATE_PRIMARY_TIMEOUT=7200 AUTOMATED_REGISTER=false \
678678
op start timeout=3600 op stop timeout=3600 \
679679
op monitor interval=61 role="Slave" timeout=700 \

0 commit comments

Comments
 (0)