Skip to content

Commit c0cc571

Browse files
committed
Correcting syntax
1 parent 9886543 commit c0cc571

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

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

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,9 @@ sapcontrol -nr <instance number> -function StopSystem
368368
2. **[A]** Install the HANA system replication hooks. The hooks must be installed on both HANA database nodes.
369369

370370
> [!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.
374374

375375
#### [SAPHanaSR](#tab/saphanasr)
376376

@@ -400,6 +400,7 @@ sapcontrol -nr <instance number> -function StopSystem
400400

401401
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.
402402

403+
```bash
403404
cat << EOF > /etc/sudoers.d/20-saphana
404405
# Needed for SAPHanaSR and susChkSrv Python hooks
405406
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
452453
Cmnd_Alias SOK_SITEB = /usr/sbin/crm_attribute -n hana_<sid>_site_srHook_<siteB> -v SOK -t crm_config -s SAPHanaSR
453454
Cmnd_Alias SFAIL_SITEB = /usr/sbin/crm_attribute -n hana_<sid>_site_srHook_<siteB> -v SFAIL -t crm_config -s SAPHanaSR
454455
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
456457
457458
<sid>adm ALL=(ALL) NOPASSWD: SOK_SITEA, SFAIL_SITEA, SOK_SITEB, SFAIL_SITEB, HELPER_TAKEOVER, HELPER_FENCE
458459
EOF
@@ -528,14 +529,18 @@ sudo crm configure clone cln_SAPHanaTopology_<HANA SID>_HDB<instance number> rsc
528529
### [SAPHanaSR-angi](#tab/saphanasr-angi)
529530
530531
Run the following commands on one of the Pacemaker cluster nodes:
532+
531533
```bash
532534
sudo crm configure property maintenance-mode=true
535+
533536
# Replace <placeholders> with your instance number and HANA system ID
537+
534538
sudo crm configure primitive rsc_SAPHanaTopology_<HANA SID>_HDB<instance number> ocf:suse:SAPHanaTopology \
535539
op monitor interval="50" timeout="600" \
536540
op start interval="0" timeout="600" \
537541
op stop interval="0" timeout="300" \
538542
params SID="<HANA SID>" InstanceNumber="<instance number>"
543+
539544
sudo crm configure clone cln_SAPHanaTopology_<HANA SID>_HDB<instance number> rsc_SAPHanaTopology_<HANA SID>_HDB<instance number> \
540545
meta clone-node-max="1" interleave="true"
541546
```
@@ -589,14 +594,14 @@ sudo crm configure primitive rsc_SAPHanaCon_<HANA SID>_HDB<instance number> ocf:
589594
params SID="<HANA SID>" InstanceNumber="<instance number>" PREFER_SITE_TAKEOVER="true" \
590595
DUPLICATE_PRIMARY_TIMEOUT="7200" AUTOMATED_REGISTER="false" \
591596
meta priority=100
597+
592598
sudo crm configure clone mst_SAPHanaCon_<HANA SID>_HDB<instance number> rsc_SAPHanaCon_<HANA SID>_HDB<instance number> \
593599
meta clone-node-max="1" interleave="true" promotable="true"
594600
```
595601
596602
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.
597603
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.
600605
601606
```bash
602607
# 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:
605610
op stop interval="0" timeout="20" \
606611
op monitor interval="120" timeout="120" \
607612
params SID="<HANA SID>" InstanceNumber="<instance number>" ON_FAIL_ACTION="fence"
613+
608614
sudo crm configure clone cln_SAPHanaFil_<HANA SID>_HDB<instance number> rsc_SAPHanaFil_<HANA SID>_HDB<instance number> \
609615
meta clone-node-max="1" interleave="true"
610616
```
611617
612618
---
613619
614620
3. **[1]** Continue with cluster resources for virtual IPs, defaults, and constraints.
615-
1.
621+
616622
### [SAPHanaSR](#tab/saphanasr)
617623
618624
```bash
@@ -650,6 +656,7 @@ sudo crm configure rsc_defaults migration-threshold=5000
650656
```bash
651657
# Replace <placeholders> with your instance number, HANA system ID, and the front-end IP address of the Azure load balancer.
652658
sudo crm configure primitive rsc_ip_<HANA SID>_HDB<instance number> ocf:heartbeat:IPaddr2 \
659+
meta target-role="Started" \
653660
op monitor interval="10s" timeout="20s" \
654661
params ip="<front-end IP address>"
655662
@@ -871,6 +878,7 @@ Resource promotable
871878
-----------------------------------------
872879
mst_SAPHanaCon_HN1_HDB03 true
873880
cln_SAPHanaTopology_HN1_HDB03
881+
874882
Site lpt lss mns opMode srHook srMode srPoll srr
875883
-----------------------------------------------------------------------
876884
SITE1 1722604101 4 hn1-db-0 logreplay PRIM sync PRIM P

0 commit comments

Comments
 (0)