Managing HP Serviceguard Extension for SAP for Linux, December 2013

6.2 Configuring HANA replication
To configure the replication relationship between the two HANA instances:
NOTE: Configure the replication relationship on one of the HANA nodes.
1. Backup your primary HANA system using hdbstudio utility.
2. Edit /hana/shared/<SID>/global/hdb/custom/config/global.ini on both nodes.
a. In the communication section, set listeninterface to .global.
b. In the persistence section, set log_mode to normal.
3. Enable the replication of HANA system configuration. Run the following command on the
primary node (node1) as <sid> adm:
hdbnsutil -sr_enable --name=<alphanumeric_primary_sitename>
checking local nameserver:
checking for active nameserver ...
nameserver is running, proceeding ...
configuring ini files ...
successfully enabled system as primary site ...
done
4. Register the secondary instance with the primary instance. Run the following command on the
secondary node (node 2):
hdbnsutil -sr_register --name=<alphanumeric_secondary_sitename>
--remoteHost=<node_1> --remoteInstance=<nr> --mode=sync
adding site ...
checking for inactive nameserver ...
nameserver node_2:30001 not responding.collecting information ...
sending registration request to primary site host node_1:30001updating local ini files ...
done.
5. Define the cluster awareness library in the SAP instance profiles. Add the following line the
SAP HANA instance profile:
/usr/sap/<SID>/SYS/profile/<SID>_<INST>_<nodename>.
service/halib = /opt/cmcluster/lib64/saphpsghalib.so
6. Restart the HANA startup services on both the nodes.
sapcontrol -nr <INSTNR> -function RestartService
If the command displays the following message, then verify if the process sapstartsrv
pf=<instance_profile> is running:
"FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()
Configuring the cluster
To create a two-node Serviceguard cluster for a HANA System Replication instance pair:
NOTE: Configure the replication relationship on one of the HANA nodes.
1. Check if xinetd service runs on both the HANA nodes (node1 and node2).
# service xinetd start
# chkconfig xinetd on
2. Install the following rpms on both HANA nodes.
# rpm -ivh pidentd-3.1a25-313.22.x86_64.rpm
# rpm -ivh serviceguard-A.11.20.20-0.sles11.x86_64.rpm (or version
A.11.20.20)
90 Clustering SAP HANA System Replication using SGeSAP packages