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

HUAWEI CLOUD Stack 6.5.0 Backup and Restoration Guide 03

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).
How Do I Query the Name of a Database Instance

How Do I Query the Name of a Database Instance

This section describes how to query the name of a database instance.

Context

instid in the database backup command indicates the database instance name corresponding to the database service name on the specific node. You can use the dbsvc_adm tool to query the database instance name. The tool is stored in /opt/paas/oss/manager/apps/DBAgent/bin/dbsvc_adm. The following section describes how to obtain the database instance name instid.

Procedure

  1. Use PuTTY to log in to the manage_lb1_ip node.

    The default username is paas, and the default password is QAZ2wsx@123!.

  2. Run the following command and enter the password of the root user to switch to the root user:

    su - root

    Default password: QAZ2wsx@123!

  3. Query the node where the Datamgmtservice service resides.

    kubectl get pod -nfst-manage -oyaml `kubectl get pod -nfst-manage | grep datamgmtservice | awk '{print $1}'` | grep hostIP

  4. Use PuTTY to log in to the node queried in Step 3.

    The default username is paas, and the default password is QAZ2wsx@123!.

  5. Run the following command to view information about the database instances:

    cd /opt/paas/oss/manager/apps/DBAgent/bin

    ./dbsvc_adm -cmd query-db-instance

    The command output is as follows:

    DBInstanceId                                   ClassId  Service Name                  Tenant      IP              Port   State  DBType  Version  Role    Rpl Status  MasterID                      GuardMode  DataCheckSum  
    dbmgr_rdb-10_177_120_171-1@10_177_118_106-1    primary  dbmgr_rdb-10_177_118_106-1    fst-manage  10.177.118.106  32090  Up     redis   3.0.7.7  Slave   Normal      dbmgr_rdb-10_177_120_171-1    --         --            
    dbmgr_rdb-10_177_120_171-1@10_177_118_106-1    primary  dbmgr_rdb-10_177_120_171-1    fst-manage  10.177.120.171  32090  Up     redis   3.0.7.7  Master  Normal      --                            --         --            

Translation
Download
Updated: 2019-06-14

Document ID: EDOC1100062366

Views: 731

Downloads: 9

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