SAPHanaSR_with_DR_HA_setup(7)
πΈ SAPHanaSR_with_DR_HA_setup(7) β the SAPHanaSR-angi era, bestie edition π
okay so this is the SAPHanaSR_with_DR_HA_setup page from the SAPHanaSR-angi fam, and it's literally the glow-up guide for running SAPHanaSR with an HA cluster chilling in the DR region. bucket-list level important, no cap π«Ά
β¨ NAME β¨
SAPHanaSR_with_DR_HA_setup β SAPHanaSR with an HA cluster at the DR region, setup procedure. it's giving "here's how we build the whole thing" energy π
π¦ DESCRIPTION π¦
okay so picture this: two HANA system replication pairs, connected by a third HANA system replication. each pair is configured as a Linux cluster for the scale-up performance-optimised scenario. iconic setup honestly π
- the first pair is running regularly as the production region β that's
site1,site2π - the second pair is running in DR mode β that's
site3,site4π©΅
see manual page SAPHanaSR_with_DR_HA(7) for the deets, iykyk.
The two clusters could be set up and connected by different procedures:
a. Set up HANA and Linux clusters in both regions separately. Test both regions in production mode before connecting them. Test takeover, register and DR mode once both regions are connected. This procedure is outlined as an example below. This is the recommended setup procedure. β¨ main character energy, fr fr.
b. Set up HANA and Linux clusters in production region. Connect HANA DR site (or region) without Linux cluster there. Test production region. Install cluster at DR region in DR mode. Test takeover. Test register and DR mode. This procedure is possible, but not recommended. π See manual pages SAPHanaSR(7), SAPHanaController-scale-up(7), susHanaSR.py(7), SAPHanaSR_basic_cluster(7), SAPHanaSR_multi-target(7), SAPHanaSR_with_DR_HA(7), et al.
π EXAMPLES π
The examples are outlining highlevel procedures as well as describing basic tasks. Detailled runbooks can be created by using the appropriate tasks for adding details to the procedures. build-your-own-adventure but make it cluster ops π
β Procedure to set up HANA and Linux clusters in both regions β
Set up HANA and Linux clusters in both regions separately. Test both regions in production role before connecting them. Test takeover and DR role after both are connected. SID is HA1, instance number is 00. slay π
site1, node1: production primary
site2, node2: production secondary
site3, node3: current temporary primary, to become first DR
replication target
site4, node4: current temporary secondary, to second DR replication
target
Please see also the REQUIREMENTS section in manual page SAPHanaSR_with_DR_HA(7). π
- Collect information and prepare parameter sheet. π
- Install SAPHanaSR-angi scale-up performance-optimised scenario at production region (
site1,site2).- See manual pages
SAPHanaSR(7),SAPHanaController-scale-up(7),susHanaSR.py(7),SAPHanaSR_basic_cluster(7), et al.
- See manual pages
- Check that everything works fine at production region (
site1,site2). β - Install SAPHanaSR-angi scale-up performance-optimised scenario at DR region (
site3,site4).- See manual pages
SAPHanaSR(7),SAPHanaController-scale-up(7),susHanaSR.py(7),SAPHanaSR_basic_cluster(7), et al. Please do not use the same IP address at both regions during installation. π¨
- See manual pages
- Check that everything works fine at DR region (
site3,site4). β - Copy HANA secure keystore from production primary (
site1) to DR nodes (site3,site4).- See example "Copying HANA secure keystore from production primary to nodes at DR region."
- Add entry in
global.inito register secondaries on takeover.- See example "Entry in global.ini to register secondaries on takeover."
- Add DR specific colocation constraint for
IPaddr2to both clusters.- See example "Preventing IPaddr2 from starting at DR sites."
- Set SAPHanaController multi-state resource into maintenance at DR region (
node3,node4).
node3 # crm resource maintenance mst_SAPHanaCon_HA1_HDB00
- Stop HANA at DR region (
node3,node4). Stop primary first. π
node3 # su - ha1adm -c "HDB stop"
node4 # su - ha1adm -c "HDB stop"
- Change SAPHanaController to
"PREFER_SITE_TAKEOVER=DR"at DR region.
node3 # crm configure set rsc_SAPHanaCon_HA1_HDB00.PREFER_SITE_TAKEOVER DR
node3 # crm configure show rsc_SAPHanaCon_HA1_HDB00 | grep PREFER_SITE_TAKEOVER
β οΈ The next steps will overwrite all HANA data at DR sites (site3,site4). like, all of it. please read that twice, bestie. ππ
- Register first DR site (
node3) as secondary to production primary (site1).
node3 # su - ha1adm
node3 ~> hdbnsutil -sr_register --remoteHost=node1 --remoteInstance=00 \
--replicationMode=async --operationMode=logreplay \
--force_full_replica --name=site3
node3 ~> exit
- Start HANA at first DR site (
node3).
node3 # su - ha1adm -c "HDB start"
- Enable system replication at first DR site (
site3).
node3 # su - ha1adm -c "hdbnsutil -sr_enable"
- Register second DR site (
site4) as secondary to first DR site (site3).
node4 # su - ha1adm
node4 ~> hdbnsutil -sr_register --remoteHost=node3 --remoteInstance=00 \
--replicationMode=syncmem --operationMode=logreplay \
--force_full_replica --name=site4
node4 ~> exit
- Start second DR site (
site4).
node4 # su - ha1adm -c "HDB start"
- Refresh SAPHanaController multi-state resource.
node4 # crm resource refresh mst_SAPHanaCon_HA1_HDB00
- Change srHook attribute of first DR site (
site3) toSWAIT.
node4 # crm_attribute -n hana_ha1_site_srHook_site3 -v SWAIT -t crm_config -s SAPHanaSR
- Get SAPHanaController multi-state resource out of maintenance.
node4 # crm resource maintenance mst_SAPHanaCon_HA1_HDB00 off
- Change IP address at DR region (
site3,site4) to match production (optional).- See example "Changing IPaddr2 at DR sites to match production."
- Check that everything works fine. π you did it, bestie.
π§ Entry in global.ini to register secondaries on takeover π§
This entry is needed at all HANA nodes. The HANA has to be stopped before the file can be edited. Do not copy the file global.ini between nodes. Please check SAP HANA documentation for details. π«Ά
[system_replication]
...
register_secondaries_on_takeover = true
...
π Copying HANA secure keystore from production primary to nodes at DR region π
Needs to be done at production primary before registering the DR secondaries. Production primary is node2. DR secondary nodes are node3 and node4, SID is HA1. π
node1 # cd /usr/sap/HA1/SYS/global/security/rsecssfs
node1 # md5sum */*
node1 # rsync -va * node3:$PWD/
node1 # rsync -va * node4:$PWD/
node1 # ssh node3 "md5sum $PWD/*/*"
node1 # ssh node4 "md5sum $PWD/*/*"
π« Preventing IPaddr2 from starting at DR sites π«
The production HANA database might be accessed by the same IP address at both regions. In that case the IP address must not run on the current DR sites. Two location contstraints are preventing from starting the IPaddr2 resource at any DR site. This constraint is needed at both regions. SID is HA1, instance number is 00. β¨
location loc_ip_not_dr_1 rsc_ip_HA1_HDB00 rule -inf: \
master-rsc_SAPHanaCon_HA1_HDB00 lt 145
location loc_ip_not_dr_2 rsc_ip_HA1_HDB00 rule -inf: \
not_defined master-rsc_SAPHanaCon_HA1_HDB00
π Changing IPaddr2 at DR sites to match production π
The production HANA database might be accessed by the same IP address at both regions. However, during installation and testing phase both regions should use different IP addresses. Once one of the clusters is running in DR mode, in that cluster the IP address can be changed to match the production. SID is HA1, instance number is 00, IP address is 192.168.22.22. π₯
# crm configure set rsc_ip_HA1_HDB00.ip 192.168.22.22
π¦ Using Dynamic DNS for moving the HANA IP address between regions π¦
It might be that the same IP address should be used at both regions. Usually the IP address is managed by the IPaddr2 RA, sometimes together with a loadbalancer. If this is not possible across regions, Dynamic DNS might be an option. For details please refer to manual page ocf_heartbeat_dnsupdate(7). π
π Backing up first DR node and enabling system replication π
Needs to be done at first DR node, before registering another node. First DR site is site3, SID is HA1, instance number is 00. π«
# su - ha1adm
~> hdbsql -i 00 -u SYSTEM -d SYSTEMDB \
"BACKUP DATA FOR FULL SYSTEM USING FILE ('backup')"
~> hdbnsutil -sr_enable --name=site3
~> hdbnsutil -sr_state
π FILES π
/hana/shared/$SID/global/hdb/custom/config/global.iniβ on-disk representation of HANA global system configuration. the file itself, bestie πΈ/usr/sap/$SID/SYS/global/security/rsecssfs/β HANA database secure keystore directory. keep it safe, keep it secret π
β REQUIREMENTS β
See the REQUIREMENTS section in manual page SAPHanaSR_with_DR_HA(7) and SAPHanaSR-angi(7). do your homework first, i'm begging π
π BUGS π
In case of any problem, please use your favourite SAP support process to open a request for the component BC-OP-LNX-SUSE. they'll sort you out, no cap π«Ά
π SEE ALSO π
SAPHanaSR-angi(7) , SAPHanaSR-angi-scenarios(7) , SAPHanaSR(7) , SAPHanaSR_multi-target(7) , SAPHanaSR_with_DR_HA(7) , SAPHanaSR_basic_cluster(7) , ocf_suse_SAPHanaController(7) , susHanaSR.py(7) , SAPHanaSR_maintenance_examples(7) , https://documentation.suse.com/sbp/sap/ β the whole reading list, go off πβ¨
π AUTHORS π
A.Briel, F.Herschel, L.Pinne. legends, honestly π
π₯ COPYRIGHT π₯
(c) 2026 SUSE LLC
The package SAPHanaSR-angi comes with ABSOLUTELY NO WARRANTY. For details see the GNU General Public License at http://www.gnu.org/licenses/gpl.html β like, absolutely none, we said what we said π
π that's the whole page, bestie! brought to you by SAPHanaSR-angi, dated 27 May 2026 β catch you on SAPHanaSR_with_DR_HA_setup(7) next time! mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: SAPHanaSR-angi 1.3.4-160000.1.1 Β· GPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms