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).
Backing Up Data

Backing Up Data

Viewing Automatic Backup Data

  • After the OceanStor DJ system is successfully installed, it automatically backs up the Gauss database, KMC key, WCC key, and certificate at 00:00 every day, using the default password CloudService@123! to encrypt backup data. It retains the latest seven copies of backup data. If OceanStor DJ is installed as a three-node cluster, backup data is stored in /opt/djbackup/db on the active GaussDB node.
  • Configuring an FTP or SFTP server for backup. OceanStor DJ first automatically backs up the GaussDB database, KMC key, WCC key, and certificate based on the configured time and then immediately copies the backup data to the FTP or SFTP server. The backup data is stored in the specified path on the server. The path is specified in the Step 6.
  • Configuring an NFS shared path for backup. OceanStor DJ first automatically backs up the GaussDB database, KMC key, WCC key, and certificate based on the configured time and then immediately copies the backup data to the path of an OceanStor DJ node to which the NFS shared space is mounted. The default path is /opt/huawei/dj/bin/backup/log_agent. If the shared path has been changed, the backup data will be saved in the path on the NFS server configured in Step 9.

Manual Backup

If the period of automatic backup cannot meet backup requirements, you can manually back up data.

Prerequisites

The management IP address of an OceanStor DJ node and the password of the djmanager account have been obtained.

  • Manual backup can be performed only on the active GaussDB node.
  • During the automatic backup of the system, do not perform manual backup. Otherwise, the backup will fail.
Procedure
  1. Run the PuTTY software.
  2. Use the djmanager account and its password to log in to an OceanStor DJ node.

    The default password of the djmanager account is CloudService@123!. To ensure system security, change the password periodically.

  3. Run the sudo /opt/huawei/dj/bin/backup/backup/gaussdb_backup_base.sh role command to check whether this node is the active node.

    • If the command output contains Primary, this node is the active node. In this case, go to Step 4.
    • If the command output does not contain Primary, this node is not the active node. In this case, go to Step 2 to log in to another OceanStor DJ node.

  4. Run the sudo /opt/huawei/dj/bin/backup/backup/gaussdb_backup_entry.sh command to back up data in the Gauss database.

    When the system displays the message backup gaussdb successfully, data has been backed up successfully.

    sudo /opt/huawei/dj/bin/backup/backup/gaussdb_backup_entry.sh 
    gaussdbBackup: INFO | Starting to back up data  
    gaussdbBackup: INFO | backup file path is: /opt/djbackup/db/manualbk/gaussdb_backup_20170419233311199053704.all.tar.gz  
    gaussdbBackup: INFO | backup gaussdb successfully.

  5. Run the cd /opt/djbackup/db/manualbk command to access the directory for storing backup data to view backup files.
Translation
Download
Updated: 2019-06-14

Document ID: EDOC1100062366

Views: 835

Downloads: 10

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