You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/workloads/sap/sap-hana-high-availability-scale-out-hsr-suse.md
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -820,24 +820,24 @@ Create a dummy file system cluster resource, which will monitor and report failu
820
820
821
821
## Implement HANA hooks SAPHanaSR and susChkSrv
822
822
823
-
This important step is to optimize the integration with the cluster and detection when a cluster failover is possible. It is highly recommended to configure the SAPHanaSR-ScaleOut Python hook. For HANA 2.0 SP5 and above, implementing SAPHanaSR, along with susChkSrv hook is recommended.
823
+
This important step is to optimize the integration with the cluster and detection when a cluster failover is possible. It is highly recommended to configure the SAPHanaSR Python hook. For HANA 2.0 SP5 and above, implementing both SAPHanaSR and susChkSrv hook is recommended.
824
824
825
825
SusChkSrv extends the functionality of the main SAPHanaSR HA provider. It acts in the situation when HANA process hdbindexserver crashes. If a single process crashes typically HANA tries to restart it. Restarting the indexserver process can take a long time, during which the HANA database is not responsive.
826
826
827
-
With susChkSrv implemented, an immediate and configurable action is executed, instead of waiting on hdbindexserver process to restart on the same node. In HANA scale-out susChkSrv acts independently forevery HANA VM. The configured action will kill HANA or fence the affected VM, which triggers a failover by SAPHanaSRin the configured timeout period.
827
+
With susChkSrv implemented, an immediate and configurable action is executed, instead of waiting on hdbindexserver process to restart on the same node. In HANA scale-out susChkSrv acts forevery HANA VM independently. The configured action will kill HANA or fence the affected VM, which triggers a failover by SAPHanaSRin the configured timeout period.
828
828
829
829
> [!NOTE]
830
830
> susChkSrv Python hook requires SAP HANA 2.0 SP5 and SAPHanaSR-ScaleOut version 0.184.1 or higher must be installed.
831
831
832
-
1. **[1,2]**Install the HANA "system replication hook". The hook needs to be installed on one HANA DB node on each system replication site.
832
+
1. **[1,2]**Stop HANA on both system replication sites. Execute as <sid\>adm:
833
833
834
-
1. Stop HANA on both system replication sites. Execute as <sid\>adm:
835
-
```bash
836
-
sapcontrol -nr 03 -function StopSystem
837
-
```
834
+
```bash
835
+
sapcontrol -nr 03 -function StopSystem
836
+
```
837
+
838
+
2. **[1,2]** Adjust `global.ini` on each cluster site. If the requirements for susChkSrv hook are not met, remove the entire block `[ha_dr_provider_suschksrv]` from below section.
839
+
You can adjust the behavior of susChkSrv with parameter action_on_lost. Valid values are [ ignore | stop |kill| fence ].
838
840
839
-
3. Adjust `global.ini` on each cluster site. If the requirements for susChkSrv hook are not met, remove the entire block `[ha_dr_provider_suschksrv]` from below section.
840
-
You can adjust the behavior of susChkSrv with parameter action_on_lost. Valid values are [ ignore | stop |kill| fence ].
841
841
```bash
842
842
# add to global.ini
843
843
[ha_dr_provider_SAPHanaSR]
@@ -850,14 +850,15 @@ With susChkSrv implemented, an immediate and configurable action is executed, in
850
850
path = /usr/share/SAPHanaSR-ScaleOut
851
851
execution_order = 3
852
852
action_on_lost = kill
853
-
853
+
854
854
[trace]
855
855
ha_dr_saphanasr = info
856
856
```
857
857
858
-
Configuration pointing to the standard location /usr/share/SAPHanaSR-ScaleOut, brings a benefit, that the python hook code is automatically updated through OS or package updates and it gets used by HANA at next restart. With an optional, own path, such as /hana/shared/myHooks you can decouple OS updates from the used hook version.
858
+
Configuration pointing to the standard location /usr/share/SAPHanaSR-ScaleOut brings a benefit, that the python hook code is automatically updated through OS or package updates and it gets used by HANA at next restart. With an optional, own path, such as /hana/shared/myHooks you can decouple OS updates from the used hook version.
859
+
860
+
3. **[AH]** The cluster requires sudoers configuration on the cluster node for<sid\>adm. In this example that is achieved by creating a new file. Execute the commands as `root` adapt the values of hn1/HN1 with correct SID.
859
861
860
-
2. **[AH]** The cluster requires sudoers configuration on the cluster node for<sid\>adm. In this example that is achieved by creating a new file. Execute the commands as `root` adapt the values of hn1/HN1 with correct SID.
861
862
```bash
862
863
cat <<EOF > /etc/sudoers.d/20-saphana
863
864
# SAPHanaSR-ScaleOut needs for srHook
@@ -868,13 +869,13 @@ With susChkSrv implemented, an immediate and configurable action is executed, in
868
869
EOF
869
870
```
870
871
871
-
3. **[1,2]** Start SAP HANA on both replication sites. Execute as <sid\>adm.
872
+
4. **[1,2]** Start SAP HANA on both replication sites. Execute as <sid\>adm.
872
873
873
874
```bash
874
875
sapcontrol -nr 03 -function StartSystem
875
876
```
876
877
877
-
4. **[1]** Verify the hook installation. Execute as <sid\>adm on the active HANA system replication site.
878
+
5. **[1]** Verify the hook installation. Execute as <sid\>adm on the active HANA system replication site.
878
879
879
880
```bash
880
881
cdtrace
@@ -889,7 +890,7 @@ With susChkSrv implemented, an immediate and configurable action is executed, in
889
890
# 2021-03-31 01:04:15.062181 ha_dr_SAPHanaSR SOK
890
891
```
891
892
892
-
Verify the susChkSrv hook installation. Execute as <sid\>adm on all HANA VMs
893
+
Verify the susChkSrv hook installation. Execute as <sid\>adm on all HANA VMs
0 commit comments