@@ -368,9 +368,9 @@ sapcontrol -nr <instance number> -function StopSystem
368
368
2. ** [A]** Install the HANA system replication hooks. The hooks must be installed on both HANA database nodes.
369
369
370
370
> [! TIP]
371
- > The SAPHanaSR Python hook can be implemented only for HANA 2.0. The SAPHanaSR package must be at least version 0.153.
372
- > The SAPHanaSR-angi Python hook can be implemented only for HANA 2.0 SPS 05 and later.
373
- > The susChkSrv Python hook requires SAP HANA 2.0 SPS 05, and SAPHanaSR version 0.161.1_BF or later must be installed.
371
+ > The SAPHanaSR Python hook can be implemented only for HANA 2.0. The SAPHanaSR package must be at least version 0.153.
372
+ > The SAPHanaSR-angi Python hook can be implemented only for HANA 2.0 SPS 05 and later.
373
+ > The susChkSrv Python hook requires SAP HANA 2.0 SPS 05, and SAPHanaSR version 0.161.1_BF or later must be installed.
374
374
375
375
# ### [SAPHanaSR](#tab/saphanasr)
376
376
@@ -400,6 +400,7 @@ sapcontrol -nr <instance number> -function StopSystem
400
400
401
401
Run the following command as root. Replace \< sid\> by lowercase SAP system ID, \< SID\> by uppercase SAP system ID and \< siteA/B\> with HANA site names chosen.
402
402
403
+ ` ` ` bash
403
404
cat << EOF > /etc/sudoers.d/20-saphana
404
405
# Needed for SAPHanaSR and susChkSrv Python hooks
405
406
Cmnd_Alias SOK_SITEA = /usr/sbin/crm_attribute -n hana_<sid>_site_srHook_<siteA> -v SOK -t crm_config -s SAPHanaSR
@@ -452,7 +453,7 @@ sapcontrol -nr <instance number> -function StopSystem
452
453
Cmnd_Alias SOK_SITEB = /usr/sbin/crm_attribute -n hana_<sid>_site_srHook_<siteB> -v SOK -t crm_config -s SAPHanaSR
453
454
Cmnd_Alias SFAIL_SITEB = /usr/sbin/crm_attribute -n hana_<sid>_site_srHook_<siteB> -v SFAIL -t crm_config -s SAPHanaSR
454
455
Cmnd_Alias HELPER_TAKEOVER = /usr/bin/SAPHanaSR-hookHelper --sid=<SID> --case=checkTakeover
455
- Cmnd_Alias HELPER_FENCE = /usr/bin/SAPHanaSR-hookHelper --sid=<SID> --case=fenceMe
456
+ Cmnd_Alias HELPER_FENCE = /usr/bin/SAPHanaSR-hookHelper --sid=<SID> --case=fenceMe
456
457
457
458
<sid>adm ALL=(ALL) NOPASSWD: SOK_SITEA, SFAIL_SITEA, SOK_SITEB, SFAIL_SITEB, HELPER_TAKEOVER, HELPER_FENCE
458
459
EOF
@@ -528,14 +529,18 @@ sudo crm configure clone cln_SAPHanaTopology_<HANA SID>_HDB<instance number> rsc
528
529
### [SAPHanaSR-angi](#tab/saphanasr-angi)
529
530
530
531
Run the following commands on one of the Pacemaker cluster nodes:
532
+
531
533
```bash
532
534
sudo crm configure property maintenance-mode=true
535
+
533
536
# Replace <placeholders> with your instance number and HANA system ID
537
+
534
538
sudo crm configure primitive rsc_SAPHanaTopology_<HANA SID>_HDB<instance number> ocf:suse:SAPHanaTopology \
535
539
op monitor interval="50" timeout="600" \
536
540
op start interval="0" timeout="600" \
537
541
op stop interval="0" timeout="300" \
538
542
params SID="<HANA SID>" InstanceNumber="<instance number>"
543
+
539
544
sudo crm configure clone cln_SAPHanaTopology_<HANA SID>_HDB<instance number> rsc_SAPHanaTopology_<HANA SID>_HDB<instance number> \
540
545
meta clone-node-max="1" interleave="true"
541
546
```
@@ -589,14 +594,14 @@ sudo crm configure primitive rsc_SAPHanaCon_<HANA SID>_HDB<instance number> ocf:
589
594
params SID=" <HANA SID>" InstanceNumber=" <instance number>" PREFER_SITE_TAKEOVER=" true" \
590
595
DUPLICATE_PRIMARY_TIMEOUT=" 7200" AUTOMATED_REGISTER=" false" \
591
596
meta priority=100
597
+
592
598
sudo crm configure clone mst_SAPHanaCon_< HANA SID> _HDB< instance number> rsc_SAPHanaCon_< HANA SID> _HDB< instance number> \
593
599
meta clone-node-max=" 1" interleave=" true" promotable=" true"
594
600
` ` `
595
601
596
602
SAPHanaSR-angi adds a new resource agent SAPHanaFilesystem to monitor read/write access to /hana/shared/SID. OS static mounts the /hana/shared/SID filesystem with each host having entries in /etc/fstab. SAPHanaFilesystem and Pacemaker doesn' t mount the filesystem for HANA.
597
603
598
- > [!NOTE]
599
- > We recommend implementing SAPHanaFilesystem if using NFS for /hana/shared/SID location. When /hana/shared/SID is located on a block device, such as Azure managed disk, the use of SAPHanaFilesystem is optional.
604
+ We recommend implementing SAPHanaFilesystem if using NFS for /hana/shared/SID location. When /hana/shared/SID is located on a block device, such as Azure managed disk, the use of SAPHanaFilesystem is optional.
600
605
601
606
```bash
602
607
# Replace <placeholders> with your instance number and HANA system ID.
@@ -605,14 +610,15 @@ sudo crm configure primitive rsc_SAPHanaFil_<HANA SID>_HDB<instance number> ocf:
605
610
op stop interval="0" timeout="20" \
606
611
op monitor interval="120" timeout="120" \
607
612
params SID="<HANA SID>" InstanceNumber="<instance number>" ON_FAIL_ACTION="fence"
613
+
608
614
sudo crm configure clone cln_SAPHanaFil_<HANA SID>_HDB<instance number> rsc_SAPHanaFil_<HANA SID>_HDB<instance number> \
609
615
meta clone-node-max="1" interleave="true"
610
616
```
611
617
612
618
---
613
619
614
620
3. **[1]** Continue with cluster resources for virtual IPs, defaults, and constraints.
615
- 1.
621
+
616
622
### [SAPHanaSR](#tab/saphanasr)
617
623
618
624
```bash
@@ -650,6 +656,7 @@ sudo crm configure rsc_defaults migration-threshold=5000
650
656
```bash
651
657
# Replace <placeholders> with your instance number, HANA system ID, and the front-end IP address of the Azure load balancer.
652
658
sudo crm configure primitive rsc_ip_<HANA SID>_HDB<instance number> ocf:heartbeat:IPaddr2 \
659
+ meta target-role="Started" \
653
660
op monitor interval="10s" timeout="20s" \
654
661
params ip="<front-end IP address>"
655
662
@@ -871,6 +878,7 @@ Resource promotable
871
878
-----------------------------------------
872
879
mst_SAPHanaCon_HN1_HDB03 true
873
880
cln_SAPHanaTopology_HN1_HDB03
881
+
874
882
Site lpt lss mns opMode srHook srMode srPoll srr
875
883
-----------------------------------------------------------------------
876
884
SITE1 1722604101 4 hn1-db-0 logreplay PRIM sync PRIM P
0 commit comments