Changing the Active/Standby Relationship of eReplication
After the eReplication Server is deployed in active/standby mode, when the active server is faulty or being upgraded, the eReplication Server service needs to be switched from the active server to the standby server.
Procedure
- Use PuTTY to log in to the Service-eReplication01 node using the IP address corresponding to the eReplication_Server01 field.
In the CSDR or VHA+ management plane cross-AZ HA scenario, the name of the node or management VM is Service-eReplication.
The default account and password are DRManager and Huawei@CLOUD8, respectively.
- Run the su root command to switch to user root.
Default account: root, default password: Cloud12#$.
- Run the following command to prevent PuTTY from exiting due to session timeout:
TMOUT=0
After you run this command, the system continues to run when no operation is performed, resulting a risk. For security purposes, you are advised to run the exit command to exit the system after completing your operations.
- Run the following command to go to the save directory of the script.
cd /opt/BCManager/Runtime/bin
In Linux, the installation path of the eReplication Server is /opt/BCManager. The path is fixed.
- Run the following command to switch the standby server to the active server.
sh switchOverSystem.sh
The following command output is displayed:
eReplication is running as the active server in Active/Standby mode and carrying the DR system. This operation will stop the DR system on the active server and switch the DR service to the standby server. Suggestion: Before this operation, switch the active eReplication to the standby server to ensure that the Active/Standby mode is normal. If the active server is not switched to the standby server, performing this operation may cause data loss of the eReplication DR server. Are you sure you want to stop the eReplication DR system and make eReplication at the local end run as the standby server? (y/n)
- Input y and press Enter.
The following command output is displayed:
The running status of the active eReplication is unknown. Are you sure you want to continue? (y/n)
- To continue the switchover, input y, and press Enter.
The switchover is successful if the following command output is displayed:
System is switching. Please wait... switching the standby server to the active server is successful.