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.


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).
Clearing GaussDB Run Logs

Clearing GaussDB Run Logs

The GaussDB database generates a large volume of run logs during operation. You are advised to retain run logs generated in the latest one month only and clear other logs to prevent disk space waste.


  • A cross-platform remote access tool, such as PuTTY, has been obtained.
  • The management IP address of the management server where the eReplication Server resides has been obtained.
  • The login password of user root or DRManager in Linux or that of the administrator in Windows has been obtained.


  • The names of logs generated by the GaussDB processes start with gaussdb. In Linux, these logs are saved to /opt/gs/app/data/pg_log. In Windows, these logs are saved to the /GaussDB database installation file path\gs\app\data\pg_log.
  • The log files are named in the format of gaussdb-Year-Month-Day_HHMMSS.log.


  • In Linux, clear GaussDB run logs.
    1. Use PuTTY to log in to the eReplication 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.

      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 TMOUT=0 command to prevent PuTTY from exiting due to session timeout.


      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 exit to exit the system after completing your operations.

    3. Clear logs.

      1. Run the cd /opt/gs/app/data/pg_log command to go to the directory where the logs reside.
      2. Back up logs that are generated more than one month ago.
      3. Run the rm log name command to delete logs.

  • In Windows, clear GaussDB run logs.
    1. Log in to the management server where the eReplication Server resides as the administrator.
    2. Clear logs.

      1. Go to the GaussDB database installation file path\gs\app\data\pg_log directory.
      2. Back up logs generated one month before.
      3. Clear GaussDB logs.

Updated: 2019-05-21

Document ID: EDOC1100075861

Views: 17865

Downloads: 76

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