No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

OceanStor BCManager 6.5.0 eReplication User Guide 02

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Manually Performing an Active/Standby Switchover in HA Mode

Manually Performing an Active/Standby Switchover in HA Mode

After HA mode is deployed on the eReplication Server, when the active server needs to be upgraded or powered off, you need to manually switch the eReplication Server service from the active server to the standby server.

Function

When the active server needs to be upgraded or powered off, you need to manually switch the eReplication Server service from the active server to the standby server.

Format

switchOverSystem.sh

Parameters

None

Usage Guidelines

  1. Use PuTTY to log in to the eReplication Server management server.
    • In template-based installation mode: Log in as user DRManager, and run the su root command to switch to user root.
    • In software package-based installation mode: Log in as user root.
    NOTE:
    The default password of user DRManager is Huawei@CLOUD8. In template-based installation mode, the default password of user root is Huawei@CLOUD8!.
  2. Run the following command to prevent PuTTY from exiting due to session timeout:

    TMOUT=0

    NOTE:

    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.

  3. Run the following command to go to the save directory of the script.

    cd /opt/BCManager/Runtime/bin

  4. Run the following command to switch the active/standby relationship manually..

    sh switchOverSystem.sh

    This operation will automatically check whether the replication between the active and standby GaussDB databases is interrupted. If the replication is interrupted, the system informs you of data loss risks. You can determine whether to continue this operation based on actual situations.

  5. Enter y and press Enter.

Example

linux-h8g4:/opt/BCManager/Runtime/bin # sh switchOverSystem.sh 
You are about to switch the DR system to the standby server.
This operation will stop the DR system on the active server and switch the DR system to the standby server. The DR protection configured during the switchover is invalid.

Suggestion: Ensure that this operation is performed when no protection task is being executed.

Are you sure you want to switch the DR system to the standby server? (y/n): [y]
CST 2017-02-22 00:55:54   Switchover in progress. Please check the HA status later.
Translation
Download
Updated: 2019-05-21

Document ID: EDOC1100075861

Views: 14394

Downloads: 70

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next