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).
Querying the Deployment Mode Status and Service Information

Querying the Deployment Mode Status and Service Information

Function

Query the status and service information of the current deployment mode. The system displays the corresponding parameters based on the current deployment mode.

Format

showSystemStatus.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 check the status and service information of the current deployment mode:

    sh showSystemStatus.sh

Example

  • Instance in HA mode:
    zxm1:/opt/BCManager/Runtime/bin # sh showSystemStatus.sh 
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    eReplication Mode 
    HA 
    
    NodeName                                 HostName                                HAVersion               StartTime               HAActive            HAAllResOK          HARunPhae       
    ha2                                      linux-node6                             V100R001C01             2017-02-20 23:02:29     active              normal              Actived            
    ha1                                      zxm-node5                               V100R001C01             2017-02-20 23:44:17     standby             normal              Deactived           
    
    NodeName                                 ResName                                 ResStatus               ResHAStatus             ResType             
    ha2                                      eReplicationServer                      Normal                  Normal                  Single_active       
    ha2                                      floatIP                                 Normal                  Normal                  Single_active       
    ha2                                      gaussdb                                 Active_normal           Normal                  Active_standby      
    ha2                                      webServer                               Normal                  Normal                  Single_active       
    ha1                                      eReplicationServer                      Stopped                 Unknown                 Single_active       
    ha1                                      floatIP                                 Stopped                 Unknown                 Single_active       
    ha1                                      gaussdb                                 Repairing               Non_steady              Active_standby      
    ha1                                      webServer                               Stopped                 Unknown                 Single_active       
    
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  • Instance in active/standby mode:
    zxm1:/opt/BCManager/Runtime/bin # sh showSystemStatus.sh
    
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    eReplication Mode:                  Active/Standby
    Local Role:                         standby
    Data Sync Link:                     100.136.28.60:37596 -- 100.136.28.58:25210(connected)
    Data Sync Percent:                  100%(Build Completed)
    eReplicationServer:                 Stopped
    webServer:                          Stopped
    gaussdb:                            Standby_normal
    
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    

System Response

  • Table 7-25 describes the status parameters in HA mode.
    Table 7-25  Status parameters in HA mode

    Name

    Description

    Value

    eReplication Mode

    Current deployment mode

    • Single-node: single-node deployment mode
    • HA: HA deployment mode
    • Active/standby: active/standby deployment mode

    NodeName

    HA node name

    -

    HostName

    Host name

    -

    HAVersion

    HA version

    -

    StartTime

    HA start time

    -

    HAActive

    HA role

    • active: management node of the active end
    • standby: management node of the standby end
    • NULL: unknown

    HAAllResOK

    Whether all resources are normal

    • normal: indicates that all resources are normal.
    • abnormal: indicates that abnormal resources exist.
    • NULL: unknown

    HARunPhase

    Node running phase

    There are 11 states:
    • Init: being initialized
    • InitEnd: initialization completed
    • PreStarting: pre-starting
    • PreStarted: pre-startup completed
    • Activing: being activated
    • Actived: activation completed
    • Deactiving: being deactivated
    • Deactived: deactiviation completed
    • Exiting: exiting
    • Exited: exited
    • NULL: unknown

    ResName

    Resource name

    -

    ResStatus

    Resource running status

    There are 13 states:
    • Normal
    • Abnormal
    • Stopped
    • Unknown: unknown status
    • Starting: starting
    • Stopping: being Stopped
    • Active_normal: indicates that the active end runs correctly.
    • Standby_normal: indicates that the standby end runs correctly.
    • Raising_active: activating
    • Lowing_standby: deactivating
    • No_action: no such an action
    • Repairing: being repaired
    • NULL: unknown

    ResHAStatus

    Resource HA status

    • Normal
    • Exception: malfunction
    • Non_steady: unstable
    • Unknown: unknown status
    • NULL: unknown

    ResType

    Resource type

    • Single_active: indicates that resources are running on the active server only.
    • Double_active: indicates that resources are running on the two active servers.
    • Active_standby: indicates that resources are only running on the servers where they reside.
    • NULL: unknown
  • Table 7-26 describes the status parameters in HA mode.
    Table 7-26  Status parameters in HA mode

    Name

    Description

    Value

    eReplication Mode

    Current deployment mode

    • Single-node: single-node deployment mode
    • HA: HA deployment mode
    • Active/standby: active/standby deployment mode

    Local Role

    Active/standby state

    • active: active server
    • standby: standby server

    Data Sync Link

    The data replication link information includes the IP addresses of the local and standby data replication links and the link status of the data replication links.

    The status of the data replication link has the following two phases:
    • connected: indicates that the data replication link is connected.
    • disconnect: indicates that the data replication link is disconnected.

    Data Sync Percent

    The data synchronization information includes the progress and status of data synchronization.

    The status of the data synchronization link has the following three phases:
    • Building: indicates that the data is being synchronized.
    • Build Completed: indicates that data synchronization has been completed.
    • NeedRepair: indicates that the data synchronization status is abnormal.

    eReplicationServer

    Status of the background process

    There are 13 states:
    • Normal
    • Abnormal
    • Stopped
    • Unknown: unknown status
    • Starting: starting
    • Stopping: being Stopped
    • Active_normal: indicates that the active end runs correctly.
    • Standby_normal: indicates that the standby end runs correctly.
    • Raising_active: activating
    • Lowing_standby: deactivating
    • No_action: no such an action
    • Repairing: being repaired
    • NULL: unknown

    webServer

    Status of the foreground process

    There are 13 states:
    • Normal
    • Abnormal
    • Stopped
    • Unknown: unknown status
    • Starting: starting
    • Stopping: being Stopped
    • Active_normal: indicates that the active end runs correctly.
    • Standby_normal: indicates that the standby end runs correctly.
    • Raising_active: activating
    • Lowing_standby: deactivating
    • No_action: no such an action
    • Repairing: being repaired
    • NULL: unknown

    gaussdb

    Status of the GaussDB database

    There are 13 states:
    • Normal
    • Abnormal
    • Stopped
    • Unknown: unknown status
    • Starting: starting
    • Stopping: being Stopped
    • Active_normal: indicates that the active end runs correctly.
    • Standby_normal: indicates that the standby end runs correctly.
    • Raising_active: activating
    • Lowing_standby: deactivating
    • No_action: no such an action
    • Repairing: being repaired
    • NULL: unknown
Translation
Download
Updated: 2019-05-21

Document ID: EDOC1100075861

Views: 18433

Downloads: 76

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