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

eSight V300R010C00 Maintenance Guide 07

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).
Manual Switchover Between Active and Standby Servers

Manual Switchover Between Active and Standby Servers

This topic describes how to manually switch over the eSight applications from the active server to the standby server and then from the standby server to the active server. In this way, you can check the system reliability and maintain the system.

Prerequisites

Ensure that the following prerequisites are met before performing the operation.
  • The heartbeat connection between the active server and the standby server is normal.
  • The data replication between the active server and the standby server is normal.
  • Data has been synchronized between active server and standby server.
  • The active server and the standby server are normal and no fault occurs. If there is a fault tag, clear it by referring to Clearing a Resource Fault Flag.

Context

After the active server is switched over to the standby server, the original standby server in the cluster changes to the active server. In addition, the replication relation between the active server and the standby server is repaired and the replication direction is specified again.

Procedure

  1. Run the following command to check the replication status.

    In the SUSE Linux OS:

    # vradmin -g <diskgroupname> repstatus <rvgname>

    Command example:

    # vradmin -g datadg repstatus datarvg

    The following information appears.
    Replicated Data Set: datarvg 
    Primary: 
      Host name:                  10.71.210.78 
      RVG name:                   datarvg 
      DG name:                    datadg 
      RVG state:                  enabled for I/O 
      Data volumes:               4 
      VSets:                      0 
      SRL name:                   lv_srl 
      SRL size:                   3.00 G 
      Total secondaries:          1 
     
    Secondary: 
      Host name:                  10.71.210.76 
      RVG name:                   datarvg 
      DG name:                    datadg 
      Data status:                consistent, up-to-date 
      Replication status:         replicating (connected) 
      Current mode:               asynchronous 
      Logging to:                 SRL 
      Timestamp Information:      behind by 0h 0m 0s
    NOTE:

    You can perform the active/standby replication switchover only when Data status is consistent, up-to-date.

  2. Run the following command to manually switch over the active and standby servers:

    • To switch eSight and database applications from the active server to the standby server, log in to the standby server as the root user and run the following command:
      # hagrp -switch AppService -any -clus localclus
    • To switch eSight and database applications from the standby server to the active server, log in to the active server as the root user and run the following command:
      # hagrp -switch AppService -any -clus localclus
      NOTE:

      Run the hastatus -sum command to query the status of services and service groups as the root user.

Translation
Download
Updated: 2019-06-30

Document ID: EDOC1100044373

Views: 25028

Downloads: 74

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