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 Active/Standby Mode

Manually Performing an Active/Standby Switchover in Active/Standby Mode

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.

Prerequisites

  • A cross-platform remote access tool, such as PuTTY, has been obtained.
  • You have obtained the passwords of user root used to log in to the Linux operating system of the active and standby servers.

Context

  • Manual switchover must be performed on both the active and standby servers to ensure that DR services can run properly after the switchover.
  • If both the active and standby servers are running properly, perform a manual switchover on the active server and then on the standby server.
  • If the active server is faulty, perform a manual switchover on the standby server. After the active server recovers, perform a manual switchover on the active server.
  • This operation will interrupt the running DR service and the DR service will be unavailable during the switchover. You are advised to perform HA switchover manually when the service load is light.
  • The original active server changes to the standby server after a manual switchover, and the original standby server becomes the active server after another manual switchover. After this operation, the DR service is switched from the original active server to the original standby server.
  • When a service instance is performing reprotection, planned migration, or fault recovery, the active/standby relationship cannot be manually switched.

Procedure

  1. Performing a switchover at the active server
    1. Use PuTTY to log in to the active server as user root.
    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

      NOTE:

      In Linux, the installation path of the eReplication Server is /opt/BCManager. The path is fixed.

    4. Run the following command to switch the active server to the standby 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: Ensure that this operation is performed when no protection task is being executed. After this operation, switch the standby eReplication to the active server to ensure that the Active/Standby mode is normal.
      
      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)

    5. Input y and press Enter.

      The following command output is displayed:

      Has the standby eReplication completed data synchronization. (y/n)

    6. Log in to the standby server and run the sh showSystemStatus.sh command to check whether data synchronization has been completed on the standby server. For details, see Querying the Deployment Mode Status and Service Information. After data synchronization has been completed on the standby server, input y and press Enter.

      The switchover is successful if the following command output is displayed:

      System is switching. Please wait...
      
      switching the active server to the standby server is successful.
      

  2. Performing a switchover at the standby server
    1. Use PuTTY to log in to the standby server as user root.
    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

      NOTE:

      In Linux, the installation path of the eReplication Server is /opt/BCManager. The path is fixed.

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

    5. 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)

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

Translation
Download
Updated: 2019-05-21

Document ID: EDOC1100075861

Views: 12204

Downloads: 64

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