Updated on 2023-05-29 GMT+08:00

Configuring the System Replication

Prerequisites

Procedure

  1. Configure the System Replication for the active SAP HANA node.

    1. Log in to the active SAP HANA ECS hana001.
    2. Run the following command to set the node as the active node:

      hdbnsutil -sr_enable --name=siteA

      In the preceding command, siteA indicates the node name, which can be customized.

      Example: hdbnsutil -sr_enable --name=hana001

  2. Copy the files on the active node to the standby node.

    1. Log in to the active SAP HANA ECS hana001.
    2. 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

  3. Configure the System Replication for the standby HANA node.

    1. Run the following command to enter the administrator mode:

      su – s00adm

    2. Run the following command to stop the SAP HANA database:

      HDB stop

    3. 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.

    4. Run the following command to start the SAP HANA database:

      HDB start

  4. 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: