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
*[Red Hat Enterprise Linux Networking Guide](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide)
78
78
*[How do I configure SAP HANA Scale-Out System Replication in a Pacemaker cluster with HANA file systems on NFS shares](https://access.redhat.com/solutions/5423971)
79
+
*[Active/Active (Read-Enabled):RHEL HA Solution for SAP HANA Scale Out and System Replication](https://access.redhat.com/sites/default/files/attachments/v8_ha_solution_for_sap_hana_scale_out_system_replication_1.pdf)
79
80
* Azure-specific RHEL documentation:
80
81
*[Install SAP HANA on Red Hat Enterprise Linux for Use in Microsoft Azure](https://access.redhat.com/public-cloud/microsoft-azure)
81
82
*[Red Hat Enterprise Linux Solution for SAP HANA Scale-Out and System Replication](https://access.redhat.com/solutions/4386601)
@@ -873,7 +874,7 @@ Include all virtual machines, including the majority maker in the cluster.
873
874
```
874
875
875
876
> [!TIP]
876
-
> If your configuration includes other file systems, besides /`hana/shared`, which are NFS mounted, then include `sequential=false` option, so that there are no ordering dependencies among the file systems. All NFS mounted file systems must start, before the corresponding attribute resource, but they do not need to start in any order relative to each other. For more information see [How do I configure SAP HANA Scale-Out HSR in a pacemaker cluster when the HANA file systems are NFS shares](https://access.redhat.com/solutions/5423971).
877
+
> If your configuration includes other file systems, besides /`hana/shared`, which are NFS mounted, then include `sequential=false` option, so that there are no ordering dependencies among the file systems. All NFS mounted file systems must start, before the corresponding attribute resource, but they do not need to start in any order relative to each other. For more information, see [How do I configure SAP HANA Scale-Out HSR in a pacemaker cluster when the HANA file systems are NFS shares](https://access.redhat.com/solutions/5423971).
877
878
878
879
8. **[1]** Place pacemaker in maintenance mode, in preparation for the creation of the HANA cluster resources.
879
880
```bash
@@ -995,7 +996,7 @@ Include all virtual machines, including the majority maker in the cluster.
995
996
meta master-max="1" clone-node-max=1 interleave=true
996
997
```
997
998
> [!IMPORTANT]
998
-
> We recommend as a best practice that you only set AUTOMATED_REGISTER to **no**, while performing thorough fail-over tests, to prevent failed primary instance to automatically register as secondary. Once the fail-over tests have completed successfully, set AUTOMATED_REGISTER to **yes**, so that after takeover system replication can resume automatically.
999
+
> We recommend as a best practice that you set AUTOMATED_REGISTER to **false**, while performing fail-over tests, to prevent a failed primary instance to automatically register as secondary. After testing, as a best practice set AUTOMATED_REGISTER to **true**, so that after takeover system replication can resume automatically.
999
1000
1000
1001
4. Create Virtual IP and associated resources.
1001
1002
```bash
@@ -1035,6 +1036,125 @@ Include all virtual machines, including the majority maker in the cluster.
1035
1036
> [!NOTE]
1036
1037
> The timeouts in the above configuration are just examples and may need to be adapted to the specific HANA setup. For instance, you may need to increase the start timeout, if it takes longer to start the SAP HANA database.
1037
1038
1039
+
## Configure HANA active/read enabled system replication in Pacemaker cluster
1040
+
1041
+
Starting with SAP HANA 2.0 SPS 01 SAP allows Active/Read-Enabled setups forSAP HANA System Replication, where the secondary systems of SAP HANA system replication can be used actively for read-intensive workloads. To support such setupin a cluster a second virtual IP address is required which allows clients to access the secondary read-enabled SAP HANA database. To ensure that the secondary replication site can still be accessed after a takeover has occurred, the cluster needs to move the virtual IP address around with the secondary of the SAPHana resource.
1042
+
1043
+
This section describes the additional steps that are required to manage HANA scale-out Active/Read enabled system replication in a Red Hat high availability cluster with second virtual IP.
1044
+
1045
+
Before proceeding further, make sure you have fully configured Red Hat High Availability Cluster managing SAP HANA database as described in the above segments of the documentation.
1046
+
1047
+

1048
+
1049
+
### Additional setup in Azure load balancer for active/read-enabled setup
1050
+
1051
+
To proceed with additional steps on provisioning second virtual IP, make sure you have configured Azure Load Balancer as described in [Deploy Azure load balancer](#deploy-azure-load-balancer) section.
1052
+
1053
+
For **standard** load balancer, follow below additional steps on the same load balancer that you had created in earlier section.
1054
+
1055
+
1. Create a second front-end IP pool:
1056
+
1057
+
1. Open the load balancer, select**frontend IP pool**, and select**Add**.
1058
+
1. Enter the name of the second front-end IP pool (for example, **hana-secondaryIP**).
1059
+
1. Set the **Assignment** to **Static** and enter the IP address (for example, **10.23.0.19**).
1060
+
1. Select **OK**.
1061
+
1. After the new front-end IP pool is created, note the pool IP address.
1062
+
1063
+
1. Next, create a health probe:
1064
+
1065
+
1. Open the load balancer, select**health probes**, and select**Add**.
1066
+
1. Enter the name of the new health probe (for example, **hana-secondaryhp**).
1067
+
1. Select **TCP** as the protocol and port **62603**. Keep the **Interval** value set to 5, and the **Unhealthy threshold** value set to 2.
1068
+
1. Select **OK**.
1069
+
1070
+
1. Next, create the load-balancing rules:
1071
+
1072
+
1. Open the load balancer, select**load balancing rules**, and select**Add**.
1073
+
1. Enter the name of the new load balancer rule (for example, **hana-secondarylb**).
1074
+
1. Select the front-end IP address, the back-end pool, and the health probe that you created earlier (for example, **hana-secondaryIP**, **hana-backend** and **hana-secondaryhp**).
1075
+
1. Select **HA Ports**.
1076
+
1. Make sure to **enable Floating IP**.
1077
+
1. Select **OK**.
1078
+
1079
+
### Configure HANA active/read enabled system replication
1080
+
1081
+
The steps to configure HANA system replication are described in [Configure SAP HANA 2.0 System Replication](#configure-sap-hana-20-system-replication) section. If you are deploying read-enabled secondary scenario, while configuring system replication on the second node, execute following command as **hanasid**adm:
pcs constraint order promote msl_SAPHana_HN1_HDB03 then start g_ip_HN1_03
1112
+
pcs constraint order start g_ip_HN1_03 then start g_secip_HN1_03
1113
+
pcs constraint colocation add g_secip_HN1_03 with Slave msl_SAPHana_HN1_HDB03 5
1114
+
1115
+
pcs property set maintenance-mode=false
1116
+
```
1117
+
Make sure that the cluster status is ok and that all of the resources are started. The second virtual IP will run on the secondary site along with SAPHana secondary resource.
# nc_HN1_03 (ocf::heartbeat:azure-lb): Started hana-s1-db1
1141
+
# vip_HN1_03 (ocf::heartbeat:IPaddr2): Started hana-s1-db1
1142
+
#Resource Group: g_secip_HN1_03
1143
+
# secnc_HN1_03 (ocf::heartbeat:azure-lb): Started hana-s2-db1
1144
+
# secvip_HN1_03 (ocf::heartbeat:IPaddr2): Started hana-s2-db1
1145
+
1146
+
```
1147
+
1148
+
In the next section, you can find the typical set of failover tests to execute.
1149
+
1150
+
Be aware of the second virtual IP behavior, while testing a HANA cluster configured with read-enabled secondary:
1151
+
1152
+
- When cluster resource **SAPHana_HN1_HDB03** moves to the secondary site (**S2**), the second virtual IP will move to the other site, i.e. to **hana-s1-db1**. If you have configured AUTOMATED_REGISTER="false" and HANA system replication is not registered automatically, then the second virtual IP will run on **hana-s2-db1**.
1153
+
1154
+
- When testing server crash, the second virtual IP resources (**secvip_HN1_HDB03**) and Azure load balancer port resource (**secnc_HN1_HDB03**) will run on the primary server alongside the primary virtual IP resources. While the secondary server is down, the applications that are connected to the read-enabled HANA database will connect to the primary HANA database. The behavior is expected - it allows applications that are connected to the read-enabled HANA database to operate, while a secondary server is unavailable.
1155
+
1156
+
- During failover and fallback, the existing connections for applications, using the second virtual IP to connect to the HANA database may be interrupted.
1157
+
1038
1158
## Test SAP HANA failover
1039
1159
1040
1160
1. Before you start a test, check the cluster and SAP HANA system replication status.
@@ -1143,7 +1263,7 @@ Include all virtual machines, including the majority maker in the cluster.
1143
1263
sudo mount -o ro 10.23.1.7/HN1-shared-s1 /hana/shared
1144
1264
```
1145
1265
1146
-
The HANA VM, that lost access to to `/hana/shared` should restart or stop, depending on the cluster configuration. The cluster resources are migrated to the other HANA system replication site.
1266
+
The HANA VM, that lost access to `/hana/shared` should restart or stop, depending on the cluster configuration. The cluster resources are migrated to the other HANA system replication site.
1147
1267
1148
1268
If the cluster has not started on the VM, that was restarted, start the cluster by executing:
0 commit comments