Configuring the System Replication
Prerequisites
- Before configuring HA, make sure that you have enabled data backup and backed up the database on the two SAP HANA nodes. For details, see section Configuring the Backup Path.
- Before configuring HA, make sure that you have written the mappings between the IP addresses and names of the two SAP HANA ECSs to the /etc/hosts files of the two ECSs in Configuring the Mappings Between IP Addresses and Hostnames.
Procedure
- Configure the System Replication for the active SAP HANA node.
- Copy the files on the active node to the standby node.
- Log in to the active SAP HANA ECS hana001.
- Run the following commands to copy the /usr/sap/S00/SYS/global/security/rsecssfs/data/SSFS_S00.DAT and /usr/sap/S00/SYS/global/security/rsecssfs/key/SSFS_S00.KEY files from the active node to the standby node. Ensure that the user group and user to which the copied file belongs are the same as those of the original file. If they are not consistent, make a manual adjustment.
scp hana001:/usr/sap/S00/SYS/global/security/rsecssfs/data/SSFS_S00.DAT
scp hana001:/usr/sap/S00/SYS/global/security/rsecssfs/key/SSFS_S00.KEY
- Configure the System Replication for the standby HANA node.
- Run the following command to enter the administrator mode:
- Run the following command to stop the SAP HANA database:
- Run the following command to enable System Replication:
hdbnsutil -sr_register --remoteHost=remoteHostName --remoteInstance=remoteInstanceNumber --replicationMode=sync --name=siteB
In the preceding command, remoteHostName indicates the hostname of the active node, remoteInstanceNumber indicates the instance ID of the active node, and SiteB indicates the name of the standby node, which can be customized.
- Run the following command to start the SAP HANA database:
- Query the System Replication status in the SAP HANA system.
Run the following command in the administrator mode on the active node:
hdbnsutil -sr_state
Information similar to the following is displayed:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot