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


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


HUAWEI CLOUD Stack 6.5.0 Troubleshooting 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).
How Do I Enable Automatic MongoDB Recovery?

How Do I Enable Automatic MongoDB Recovery?


If a fault occurs, such as unexpected host power-off, network jitters, and disk link interruption, data of a MongoDB instance may be damaged or the index rollback fails occasionally, and the MongoDB component will become faulty. If this happens, you can use the automatic recovery mechanism to restore the component.

  • When the automatic recovery is enabled, there may be MongoDB data loss. The alarm data can be restored using MongDB backup (for details, see How Do I Resolve Database Status Exceptions?). Monitoring data cannot be restored.
  • During the automatic restoration, the disk input/output (I/O) and internal network bandwidth usage of the node where the MongoDB instance is deployed increases.
  • If three MongoDB instances are faulty at the same time, the automatic recovery cannot be enabled.
  • If MongoDB is faulty, the automatic recovery may not be enabled by following the instructions provided in this section.


The system is running properly.


  1. Use PuTTY to log in to FusionSphere OpenStack through the IP address of the External OM plane.

    The username is fsp, and the default password is Huawei@CLOUD8.
    • The system supports identity authentication using both the passwords and public-private key pairs. For details about login authentication using the public-private key pairs, see Using PuTTY to Log In to a Node in Key Pair Authentication Mode.
    • To obtain the IP address of the External OM plane, search for the required parameter on the 2.1 Tool-generated IP Parameters sheet of the xxx_export_all.xlsm file exported from HUAWEI CLOUD Stack Deploy during software installation. The parameter names in different scenarios are as follows:
      • Region Type I scenario:

        Cascading system: Cascading-ExternalOM-Reverse-Proxy

        Cascaded system: Cascaded-ExternalOM-Reverse-Proxy

      • Region Type II and Region Type III scenarios: ExternalOM-Reverse-Proxy

  2. Run the following command to switch to the root user:

    su - root

    The default password of the root user is Huawei@CLOUD8!.

  3. Run the TMOUT=0 command to disable user logout upon system timeout.
  4. Import environment variables. For details, see Importing Environment Variables.
  5. Run the following commands to enable automatic MongoDB recovery:

    cps template-params-update --service mongodb mongodb --parameter auto_recovery=true

    cps commit

  6. Run the following command to check whether the configuration is updated:

    cps template-params-show --service mongodb mongodb

    If the value of auto_recovery is true in the command output, the automatic recovery mechanism has been enabled.

Updated: 2019-06-01

Document ID: EDOC1100062375

Views: 1678

Downloads: 12

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