Skip to content

Commit 2e76a36

Browse files
Merge pull request #288564 from dennispadia/dp-rhelhananfs
Include constraints in HANA HA with ANF document
2 parents 9ddd534 + 73f1465 commit 2e76a36

File tree

2 files changed

+44
-20
lines changed

2 files changed

+44
-20
lines changed

articles/sap/workloads/sap-hana-high-availability-netapp-files-red-hat.md

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.subservice: sap-vm-workloads
99
ms.topic: article
1010
ms.tgt_pltfrm: vm-linux
1111
ms.custom: devx-track-azurecli, devx-track-azurepowershell
12-
ms.date: 06/18/2024
12+
ms.date: 10/16/2024
1313
ms.author: radeltch
1414
---
1515

@@ -271,7 +271,7 @@ For more information about the required ports for SAP HANA, read the chapter [Co
271271
sudo echo "options nfs nfs4_disable_idmapping=Y" >> /etc/modprobe.d/nfs.conf
272272
```
273273

274-
For more information on how to change the `nfs_disable_idmapping` parameter, see the [Red Hat Knowledge Base](https://access.redhat.com/solutions/1749883).
274+
For more information on how to change the `nfs_disable_idmapping` parameter, see the [Red Hat Knowledge Base](https://access.redhat.com/solutions/1749883).
275275

276276
## SAP HANA installation
277277

@@ -507,22 +507,43 @@ In this example, each cluster node has its own HANA NFS file systems `/hana/shar
507507
Location rule constraints are set so that the SAP HANA resources can run on a node only if all of the node's NFS mounts are mounted.
508508

509509
```bash
510-
sudo pcs constraint location SAPHanaTopology_HN1_03-clone rule score=-INFINITY hana_nfs1_active ne true and hana_nfs2_active ne true
510+
sudo pcs constraint location SAPHanaTopology_HN1_03-clone rule score=-INFINITY hana_nfs1_active ne true and hana_nfs2_active ne true
511511
```
512512

513513
On RHEL 7.x:
514514

515515
```bash
516-
sudo pcs constraint location SAPHana_HN1_03-master rule score=-INFINITY hana_nfs1_active ne true and hana_nfs2_active ne true
516+
sudo pcs constraint location SAPHana_HN1_03-master rule score=-INFINITY hana_nfs1_active ne true and hana_nfs2_active ne true
517517
```
518518

519519
On RHEL 8.x/9.x:
520520

521521
```bash
522-
sudo pcs constraint location SAPHana_HN1_03-clone rule score=-INFINITY hana_nfs1_active ne true and hana_nfs2_active ne true
522+
sudo pcs constraint location SAPHana_HN1_03-clone rule score=-INFINITY hana_nfs1_active ne true and hana_nfs2_active ne true
523523
```
524524

525-
Take the cluster out of maintenance mode.
525+
1. **[1]** Configure ordering constraints so that the SAP resources on a node will stop ahead of a stop for any of the NFS mounts.
526+
527+
```bash
528+
pcs constraint order stop SAPHanaTopology_HN1_03-clone then stop hanadb1_nfs
529+
pcs constraint order stop SAPHanaTopology_HN1_03-clone then stop hanadb2_nfs
530+
```
531+
532+
On RHEL 7.x:
533+
534+
```bash
535+
pcs constraint order stop SAPHana_HN1_03-master then stop hanadb1_nfs
536+
pcs constraint order stop SAPHana_HN1_03-master then stop hanadb2_nfs
537+
```
538+
539+
On RHEL 8.x/9.x:
540+
541+
```bash
542+
pcs constraint order stop SAPHana_HN1_03-clone then stop hanadb1_nfs
543+
pcs constraint order stop SAPHana_HN1_03-clone then stop hanadb2_nfs
544+
```
545+
546+
Take the cluster out of maintenance mode.
526547

527548
```bash
528549
sudo pcs property set maintenance-mode=false
@@ -610,27 +631,27 @@ This section describes how you can test your setup.
610631
```output
611632
Full list of resources:
612633
rsc_hdb_azr_agt (stonith:fence_azure_arm): Started hanadb1
613-
634+
614635
Resource Group: hanadb1_nfs
615636
hana_data1 (ocf::heartbeat:Filesystem): Started hanadb1
616637
hana_log1 (ocf::heartbeat:Filesystem): Started hanadb1
617638
hana_shared1 (ocf::heartbeat:Filesystem): Started hanadb1
618-
639+
619640
Resource Group: hanadb2_nfs
620641
hana_data2 (ocf::heartbeat:Filesystem): Started hanadb2
621642
hana_log2 (ocf::heartbeat:Filesystem): Started hanadb2
622643
hana_shared2 (ocf::heartbeat:Filesystem): Started hanadb2
623-
644+
624645
hana_nfs1_active (ocf::pacemaker:attribute): Started hanadb1
625646
hana_nfs2_active (ocf::pacemaker:attribute): Started hanadb2
626-
647+
627648
Clone Set: SAPHanaTopology_HN1_03-clone [SAPHanaTopology_HN1_03]
628649
Started: [ hanadb1 hanadb2 ]
629-
650+
630651
Master/Slave Set: SAPHana_HN1_03-master [SAPHana_HN1_03]
631652
Masters: [ hanadb1 ]
632653
Slaves: [ hanadb2 ]
633-
654+
634655
Resource Group: g_ip_HN1_03
635656
nc_HN1_03 (ocf::heartbeat:azure-lb): Started hanadb1
636657
vip_HN1_03 (ocf::heartbeat:IPaddr2): Started hanadb1
@@ -652,30 +673,30 @@ This section describes how you can test your setup.
652673
653674
```output
654675
Full list of resources:
655-
676+
656677
rsc_hdb_azr_agt (stonith:fence_azure_arm): Started hanadb2
657-
678+
658679
Resource Group: hanadb1_nfs
659680
hana_data1 (ocf::heartbeat:Filesystem): Stopped
660681
hana_log1 (ocf::heartbeat:Filesystem): Stopped
661682
hana_shared1 (ocf::heartbeat:Filesystem): Stopped
662-
683+
663684
Resource Group: hanadb2_nfs
664685
hana_data2 (ocf::heartbeat:Filesystem): Started hanadb2
665686
hana_log2 (ocf::heartbeat:Filesystem): Started hanadb2
666687
hana_shared2 (ocf::heartbeat:Filesystem): Started hanadb2
667-
688+
668689
hana_nfs1_active (ocf::pacemaker:attribute): Stopped
669690
hana_nfs2_active (ocf::pacemaker:attribute): Started hanadb2
670-
691+
671692
Clone Set: SAPHanaTopology_HN1_03-clone [SAPHanaTopology_HN1_03]
672693
Started: [ hanadb2 ]
673694
Stopped: [ hanadb1 ]
674-
695+
675696
Master/Slave Set: SAPHana_HN1_03-master [SAPHana_HN1_03]
676697
Masters: [ hanadb2 ]
677698
Stopped: [ hanadb1 ]
678-
699+
679700
Resource Group: g_ip_HN1_03
680701
nc_HN1_03 (ocf::heartbeat:azure-lb): Started hanadb2
681702
vip_HN1_03 (ocf::heartbeat:IPaddr2): Started hanadb2

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: sap-on-azure
88
ms.subservice: sap-vm-workloads
99
ms.topic: article
1010
ms.custom: devx-track-python, devx-track-azurecli, devx-track-azurepowershell, linux-related-content
11-
ms.date: 06/18/2024
11+
ms.date: 10/16/2024
1212
ms.author: radeltch
1313
---
1414

@@ -443,6 +443,9 @@ This important step optimizes the integration with the cluster and improves the
443443
sudo yum install -y resource-agents-sap-hana
444444
```
445445

446+
> [!NOTE]
447+
> For RHEL 8.x and RHEL 9.x, verify that the installed resource-agents-sap-hana package is version 0.162.3-5 or later.
448+
446449
1. **[A]** Install the HANA `system replication hook`. The hook needs to be installed on both HANA DB nodes.
447450

448451
> [!TIP]

0 commit comments

Comments
 (0)