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).
Restoring eBackup Data

Restoring eBackup Data

NFS

This section describes how to restore the eBackup management data and storage units when the eBackup management data is lost or damaged and the backup storage type of the management data is NFS.

Prerequisites
  • Under path /opt/huawei-data-protection/ebackup/db_bak/Region-AZ-POD, check whether configuration file storage_units.csv required for disaster recovery exists. Region-AZ-POD indicates the identifier of the backup data of the eBackup management data. If the configuration file does not exist, contact Huawei technical support.
  • A cross-platform remote access tool, such as PuTTY, has been obtained.
  • The password of user eBkDbAdmin has been obtained. The initial password is Huawei@CLOUD8!.
  • Backup and restore services of tenant data have been stopped (during disaster recovery, the system automatically stops the eBackup process).
  • If the HA function is configured, you need to remove the standby node from the HA relationship before a disaster recovery. After the disaster recovery is complete, add the standby node to the HA relationship. Perform the following steps to remove the standby node from the HA relationship:
    1. Log in to the backup manager or backup server GUI using a browser.

      Login address: https://IP address corresponding to the Workflow-Management-Float-IP field or IP address corresponding to the datamover_management_float_ip field:8088

      Default account: admin. Default password: Cloud12#$ for installation using HUAWEI CLOUD Stack Deploy, and PXU9@ctuNov17! for manual installation.

    2. On the navigation bar, choose > Server.
    3. Click HA Management and select Remove HA Members from the shortcut menu.
Context
  • The file name of the backup data is [Backup data type][Backup type][Service name][Year][Month][Day][Minute][Second][Backup period][No.].db. Backup data type can be F (full backup). Backup type can be AT (automatic) or MT (manual). Service name is fixed as EBACKUP. Backup period can be H(hour), D (daily), W (weekly), M (monthly), Y (yearly), or X (manual). Example: FATEBACKUP20160128000125Y001.db.
  • When restoring the system management data, ensure that versions of the backup data and system are consistent. Run the showsys command to view the current system version.
  • If backup system management data exists, only data generated between the backup point in time and the recovery point in time is inconsistent with the original system management data. If backup system management data does not exist, all the restored system management data is inconsistent with the original system management data. However, the preceding two scenarios do not affect the normal use of all functions after the system recovers from disasters.
  • After a disaster recovery task is executed, the system may automatically generates data records starting with Recover on the eBackup GUI (choosing Backup > Backup Policy or Backup Storage > Repository to view the data records). These data records are necessary for disaster recovery and are automatically generated by the system.
  • During the operation, you need to enter the database password. If you enter the password incorrectly for three times, the system will automatically exit from recovery program. In this case, perform this operation again.

Do not restore the system management data or storage units across versions. Otherwise, the management data or storage units cannot be restored.

Procedure

Preparing data

  1. If you need to restore the management data of the backup manager, refer to Logging In to the eBackup Server to log in to the primary node of backup manager.

    If you need to restore the management data of the backup server, refer to Logging In to the eBackup Server to log in to the primary node of backup server.

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

    The default password of root account is Cloud12#$.

    su root

  3. Run the following command to prevent the system from exiting due to timeout.

    TMOUT=0

    NOTE:

    After you run this command, the system continues to run when no operation is performed, resulting in a risk. For security purposes, you are advised to run the exit command to exit the system after completing your operations.

  4. If backup management data exist, go to Step 5; if backup management data does not exist, go to Step 20.

    Choose Settings > Configuration > Management Data Backup, and check whether the backup information about the management data is stored.

  5. Run the following command to go to the path for storing backup management data.

    cd /opt/huawei-data-protection/ebackup/db_bak/

  6. Run the following command to go to the save path of the restoration script.

    cd /opt/huawei-data-protection/ebackup/bin

  7. Run the following command to restore the backup management data to the running management data.

    sh hcp_admindb_restore.sh

    The following command output is displayed:

    NOTE:

    Only main command outputs are displayed in the following operation procedures.

    WARNING: Restore DB will stop eBackup service, are you sure to continue?(y/n)

  8. Enter y and press Enter.

    The following command output is displayed:

    [1] /opt/huawei-data-protection/ebackup/db_bak/eBackup03 
    [2] /opt/huawei-data-protection/ebackup/db_bak/eBackup01 
    [3] /opt/huawei-data-protection/ebackup/db_bak/eBackup02 
    Please select the sub-folder that saves backup data of management data of the eBackup you want to restore:

  9. Enter the digit before the subdirectory used to store eBackup system management data, and press Enter.

    For example, if you choose subdirectory /opt/huawei-data-protection/ebackup/db_bak/eBackup03 to store eBackup system management data, enter 1.

    eBackup03 is the value of identifier set when the eBackup management data backup storage is configured.

    The following command output is displayed:

    Backup Name                                      Version 
    [1] FATEBACKUP20180128000125Y001.db              xx 
    [2] FATEBACKUP20180129000125Y002.db              xx 
    [3] FATEBACKUP20180130000125Y003.db              xx 
    [4] FATEBACKUP20180130000127Y004.db              xx 
    please select a backup file from the list above:     

Performing a restore

  1. Select the backup file whose version is consistent with the version of the eBackup backup management system, and press Enter. For details, see the backup file naming rules in Context and the value of Version in the preceding command output.

    For example, select FATEBACKUP20160128000125Y001.db and enter 1.
    • If the versions are inconsistent, the following information is returned. You need to select backup data whose version is consistent with that of the eBackup backup management system.
      The system version don't match. 
      please select a backup file from the list above:     
    • The command output is as follows:
      select backup name:FATEBACKUP20160128000125Y001.db 
       
      Checking data... 
      Backup data...Correct. 
      BackFileName is:1352B2A8F5934D8DA1356A22A5671DA3.tar.gz 
      BackFileName is:4AD4744C8775498AAD1389174EC14512.tar.gz 
      BackFileName is:C8F86F3249A047F188D81779E3685545.tar.gz 
      BackFileName is:D1D9A2EF865D41A184EF6F2A250F9E55.tar.gz 
      Shutting down Huawei eBackup Service 
      service hcp stop:completed 
                                                                                                                                                                                                                                                                         done 
      This operation will drop the db, are you sure you want to continue?(y/n)

  2. Enter y and press Enter.

    The following command output is displayed during the execution:

    Please enter ADMINDB database password for user eBkDbAdmin:

  3. Enter the password of user admin, and press Enter.

    Enter the password within 90 seconds to prevent system timeout. The default password is Huawei@CLOUD8!. The system begins to restore admindb data.

    The following command output is displayed:
    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter LICENSEDB database password for user eBkDbAdmin:

  4. Enter the password of user license, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore licensedb data.

    The following command output is displayed:

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter ALARMDB database password for user eBkDbAdmin:

  5. Enter the password of user alarm, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore alarmdb data.

    The following command output is displayed:

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter IAMDB database password for user eBkDbAdmin:

  6. Enter the password of user IAM, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore iamdb data.

    The following command output is displayed:

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter GOVERNANCEDB database password for user eBkDbAdmin:

  7. Perform the following steps based on the role of the eBackup server:

    • If the role is the backup server, perform Step 17, Step 18.
    • If the role is the backup manager, perform Step 19.

  8. If the management role is the backup server, perform the following steps:

    Enter the password of user governance, and press Enter. The default password is Huawei@CLOUD8!. The system begins to restore governancedb data.

    Checking database...Success.
    Creating database...Success.
    Restoring database...Success.
    Dropping database...
    Success.
    Rename database...Success.
    Grant privileges to dbuser...Clean SERVICEINSTANCELIST in db.
    Success.
    Operation finished.
    start restore datamoverdb
    Please enter DATAMOVERDB database password for user eBkDbAdmin:

  9. If the management role is the backup server, enter the password of user datamover, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore datamoverdb data.

    If the following command output is displayed, management data is restored successfully.

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Restore DB success. 
    Starting Huawei eBackup Service 
    The service is starting, please wait for a moment... 
    serivce hcp start:completed 
                                                                                                                                                                                                                                                                       done 
    The ebk_governance agent of OceanStor BCManager eBackup was started successfully. 
    The ebk_license agent of OceanStor BCManager eBackup was started successfully. 
    The ebk_alarm agent of OceanStor BCManager eBackup was started successfully. 
    The ebk_iam agent of OceanStor BCManager eBackup was started successfully.

  10. If the management role is the backup manager, perform the following steps:

    1. Enter the password of user governance, and press Enter. The default password is Huawei@CLOUD8!.

      The system begins to restore governancedb data.

      The following command output is displayed:

      Checking database...Success. 
      Creating database...Success. 
      Restoring database...Success. 
      Dropping database... 
      Success. 
      Rename database...Success. 
      Grant privileges to dbuser...Success. 
      Operation finished. 
      Please enter WFCBSDB database password for user eBkDbAdmin:
    2. Enter the password of user wfcbs, and press Enter. The default password is Huawei@CLOUD8!.

      The system begins to restore wfcbsdb data.

      The following command output is displayed:

      Checking database...Success. 
      Creating database...Success. 
      Restoring database...Success. 
      Dropping database... 
      Success. 
      Rename database...Success. 
      Grant privileges to dbuser...Success. 
      Operation finished. 
      Please enter WFVMWAREDB database password for user eBkDbAdmin:
    3. Enter the password of user wfvmware, and press Enter. The default password is Huawei@CLOUD8!.

      The system begins to restore wfvmwaredb data. If the following command output is displayed, management data is restored successfully.

      The following command output is displayed:

      Checking database...Success. 
      Creating database...Success. 
      Restoring database...Success. 
      Dropping database... 
      Success. 
      Rename database...Success. 
      Grant privileges to dbuser...Success. 
      Operation finished. 
      Restore DB success. 
      Starting Huawei eBackup Service 
      The service is starting, please wait for a moment... 
      serivce hcp start:completed 
                                                                                                                                                                                                                                                                         done 
      The ebk_governance agent of OceanStor BCManager eBackup was started successfully. 
      The ebk_license agent of OceanStor BCManager eBackup was started successfully. 
      The ebk_alarm agent of OceanStor BCManager eBackup was started successfully. 
      The ebk_iam agent of OceanStor BCManager eBackup was started successfully.

  11. Restore a storage unit.

    For the backup manager and backup workflow servers, you do not need to restore their storage units. Log in to the backup server to perform the following steps:
    1. Run the following command to save $LD_LIBRARY_PATH.

      OLD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH

    2. Run the following command to copy the storage_units.csv file backed up before the disaster to the identifier after the disaster. Region-AZ-POD indicates the backup data identifier of the eBackup system management data before the disaster, and Region-AZ-POD02 indicates the backup data identifier of the eBackup system management data during disaster recovery.

      cp /opt/huawei-data-protection/ebackup/db_bak/Region-AZ-POD/storage_units.csv /opt/huawei-data-protection/ebackup/db_bak/Region-AZ-POD02

    3. Run the following command to go to the path of configuration file storage_units.csv. Region-AZ-POD02 indicates the identifier of the backup data of the eBackup system management data during disaster recovery.

      cd /opt/huawei-data-protection/ebackup/db_bak/Region-AZ-POD02

    4. Run the following command to restore a storage unit in the configuration file.

      service hcp recover /opt/huawei-data-protection/ebackup/db_bak/Region-AZ-POD02/storage_units.csv

      The following command output is displayed:

      WARNING: Recovery will stop services. Are you sure you want to continue?(y/n):
      NOTE:

      If the storage_units.csv configuration file cannot be accessed, run the chown hcp:hcp storage_units.csv command to enable the hcp account to read and write the storage_units.csv configuration files.

    5. Enter y and press Enter.

      The system starts restoring the storage unit. If the following command output is displayed, the storage unit is successfully restored.

       Backup Server metadata was recovered 
       please restart eBackup
    6. Run the following command to restart eBackup services.

      service hcp restart

    7. Run the following command to delete the copied storage_units.csv file.

      rm storage_units.csv

    8. Run the following command to restore $LD_LIBRARY_PATH:

      export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH

  12. After performing the preceding steps, wait for about 5 minutes and log in to the eBackup GUI. Click Backup Storage > Storage Unit. If Accessibility Status of the storage unit is All accessible, the restore is successful.

    If the restore fails, contact technical support engineers.

  13. If backup workflow servers or backup proxies exist in the backup management system, power on the servers where the backup workflow servers or backup proxies reside to ensure the normal running of eBackup services.

    Log in to the eBackup GUI, choose > Server, and check the status of backup workflow servers or backup proxies. Ensure that the values of Accessibility Status and Register Status for all backup workflow servers or backup proxies are accessible and registered respectively.

Follow-up Procedure
  • If backup system management data fails to be restored in the first time, perform the disaster recovery operations again.
  • After disaster recovery, change the license ESN under either of the following conditions:
    • A VM template has been re-imported.
    • Disaster recovery has been performed on a new server.
  • After disaster recovery, if the original license cannot be used, obtain an ESN again, obtain a new license through the ESN, and import the new license.

    For details, see section OceanStor BCManager eBackup in HUAWEI CLOUD Stack 6.5.0 License Guide.

  • If the internal communication plane IP addresses of the backup manager or backup server before and after disasters are different, you need to reconfigure backup workflow servers or backup proxies.
  • If the backup management plane floating IP addresses of the backup server before and after the disaster are different, you need to reconfigure the eBackup driver.
  • If the backup server and backup proxy are deployed on different nodes or the backup manager and backup workflow server are deployed on different nodes, the backup workflow server or backup proxy may fail to be accessed after only the backup manager or backup server is recovered.
    If a backup workflow server or backup proxy fails to be accessed, perform the following operations:
    1. Use PuTTY to log in to the workflow-eBackup01 node (backup manager) or backup server through a management IP address.
      Login addresses:
      • Management IP address of the workflow-eBackup01 node: IP address corresponding to the Workflow-PublicService-IP0 field
      • Management IP address of the backup server: IP address corresponding to the datamover_externalom_iplist field

      Default account: hcp. Default password: PXU9@ctuNov17!.

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

      The default password of user root is Cloud12#$.

      su root

    3. Run the following command to obtain the public key of the backup manager or backup server:

      cat /opt/huawei-data-protection/ebackup/conf/cert/AdminNode.pub

    4. Use PuTTY to log in to the workflow-eBackup02 node (backup workflow server) or backup proxy through a management IP address.
      Login addresses:
      • Management IP address of the workflow-eBackup02 node: IP address corresponding to the Workflow-PublicService-IP1 field
      • Management IP address of the backup proxy: IP address corresponding to the datamover_externalom_iplist field

      Default account: hcp. Default password: PXU9@ctuNov17!.

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

      The default password of user root is Cloud12#$.

      su root

    6. Run the following command to open the public key file:

      vi /opt/huawei-data-protection/ebackup/conf/cert/AdminNode.pub

    7. Delete the content in the file and write the public key of the backup manager or backup server obtained from 3 to the file.
    8. Log in to the backup manager or backup server node again and run the following command to restart the eBackup process:

      service hcp restart

S3

This section describes how to restore the eBackup management data and storage units when the eBackup management data is lost or damaged and the backup storage type of the management data is S3.

Prerequisites
  • Under S3 storage path /DBBakSubDir/ebackup/Region-AZ-POD, check whether configuration file storage_units.csv required for disaster recovery exists. DBBakSubDir indicates the bucket of S3 storage, and Region-AZ-POD indicates the identifier of the backup data of the eBackup management data. If the configuration file does not exist, contact Huawei technical support.
  • A cross-platform remote access tool, such as PuTTY, has been obtained.
  • The password of user eBkDbAdmin has been obtained. The initial password is Huawei@CLOUD8!.
  • Backup and restore services of tenant data have been stopped (during disaster recovery, the system automatically stops the eBackup process).
  • If the HA function is configured, you need to remove the standby node from the HA relationship before a disaster recovery. After the disaster recovery is complete, add the standby node to the HA relationship. Perform the following steps to remove the standby node from the HA relationship:
    1. Log in to the backup manager or backup server GUI using a browser.

      Login address: https://IP address corresponding to the Workflow-Management-Float-IP field or IP address corresponding to the datamover_management_float_ip field:8088

      Default account: admin. Default password: Cloud12#$ for installation using HUAWEI CLOUD Stack Deploy, and PXU9@ctuNov17! for manual installation.

    2. On the navigation bar, choose > Server.
    3. Click HA Management and select Remove HA Members from the shortcut menu.
Context
  • The file name of the backup data is [Backup data type][Backup type][Service name][Year][Month][Day][Minute][Second][Backup period][No.].db. Backup data type can be F (full backup). Backup type can be AT (automatic) or MT (manual). Service name is fixed as EBACKUP. Backup period can be H(hour), D (daily), W (weekly), M (monthly), Y (yearly), or X (manual). Example: FATEBACKUP20160128000125Y001.db.
  • When restoring the system management data, ensure that versions of the backup data and system are consistent. Run the showsys command to view the current system version.
  • If backup system management data exists, only data generated between the backup point in time and the recovery point in time is inconsistent with the original system management data. If backup system management data does not exist, all the restored system management data is inconsistent with the original system management data. However, the preceding two scenarios do not affect the normal use of all functions after the system recovers from disasters.
  • After a disaster recovery task is executed, the system may automatically generates data records starting with Recover on the eBackup GUI (choosing Backup > Backup Policy or Backup Storage > Repository to view the data records). These data records are necessary for disaster recovery and are automatically generated by the system.
  • During the operation, you need to enter the database password. If you enter the password incorrectly for three times, the system will automatically exit from recovery program. In this case, perform this operation again.

Do not restore the system management data or storage units across versions. Otherwise, the management data or storage units cannot be restored.

Procedure

Preparing data

  1. If you need to restore the management data of the backup manager, refer to Logging In to the eBackup Server to log in to the primary node of backup manager.

    If you need to restore the management data of the backup server, refer to Logging In to the eBackup Server to log in to the primary node of backup server.

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

    The default password of root account is Cloud12#$.

    su root

  3. Run the following command to prevent the system from exiting due to timeout.

    TMOUT=0

    NOTE:

    After you run this command, the system continues to run when no operation is performed, resulting in a risk. For security purposes, you are advised to run the exit command to exit the system after completing your operations.

  4. If backup management data exist, go to Step 5; if backup management data does not exist, go to Step 20.

    Choose Settings > Configuration > Management Data Backup, and check whether the backup information about the management data is stored.

  5. Run the following command to go to the path for storing backup management data.

    cd /opt/huawei-data-protection/ebackup/db_bak/

  6. Run the following command to go to the save path of the restoration script.

    cd /opt/huawei-data-protection/ebackup/bin

  7. Run the following command to restore the backup management data to the running management data.

    sh hcp_admindb_restore.sh

    The following command output is displayed:

    NOTE:

    Only main command outputs are displayed in the following operation procedures.

    WARNING: Restore DB will stop eBackup service, are you sure to continue?(y/n)

  8. Enter y and press Enter.

    The following command output is displayed:

    [1] eBackup03 
    [2] eBackup01 
    [3] eBackup02 
    Please select the sub-folder that saves backup data of management data of the eBackup you want to restore:

  9. Enter the digit before the subdirectory used to store eBackup system management data, and press Enter.

    For example, if you choose subdirectory eBackup03 to store eBackup system management data, enter 1.

    eBackup03 is the value of identifier set when the eBackup management data backup storage is configured.

    The following command output is displayed:

    Backup Name                                      Version 
    [1] FATEBACKUP20160128000125Y001.db              xx 
    [2] FATEBACKUP20160129000125Y002.db              xx 
    [3] FATEBACKUP20160130000125Y003.db              xx 
    [4] FATEBACKUP20160130000127Y004.db              xx 
    please select a backup file from the list above:     

Performing a restore

  1. Select the backup data that is consistent with the eBackup backup management system version, and press Enter. For details, see Context.

    For example, select FATEBACKUP20160128000125Y001.db and enter 1.
    • If the versions are inconsistent, the following information is returned. You need to select backup data whose version is consistent with that of the eBackup backup management system.
      The system version don't match. 
      please select a backup file from the list above:      
    • The command output is as follows:
      select backup name:FATEBACKUP20160128000125Y001.db 
       
      Checking data... 
      Backup data...Correct. 
      BackFileName is:1352B2A8F5934D8DA1356A22A5671DA3.tar.gz 
      BackFileName is:4AD4744C8775498AAD1389174EC14512.tar.gz 
      BackFileName is:C8F86F3249A047F188D81779E3685545.tar.gz 
      BackFileName is:D1D9A2EF865D41A184EF6F2A250F9E55.tar.gz 
      Shutting down Huawei eBackup Service 
      service hcp stop:completed 
                                                                                                                                                                                                                                                                         done 
      This operation will drop the db, are you sure you want to continue?(y/n)

  2. Enter y and press Enter.

    The following command output is displayed during the execution:

    Please enter ADMINDB database password for user eBkDbAdmin:

  3. Enter the password of user admin, and press Enter.

    Enter the password within 90 seconds to prevent system timeout. The default password is Huawei@CLOUD8!. The system begins to restore admindb data.

    The following command output is displayed:
    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter LICENSEDB database password for user eBkDbAdmin:

  4. Enter the password of user license, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore licensedb data.

    The following command output is displayed:

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter ALARMDB database password for user eBkDbAdmin:

  5. Enter the password of user alarm, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore alarmdb data.

    The following command output is displayed:

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter IAMDB database password for user eBkDbAdmin:

  6. Enter the password of user IAM, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore iamdb data.

    The following command output is displayed:

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter GOVERNANCEDB database password for user eBkDbAdmin:

  7. Perform the following steps based on the role of the eBackup server:

    • If the role is the backup server, perform Step 17, Step 18.
    • If the role is the backup manager, perform Step 19.

  8. If the management role is the backup server, perform the following steps:

    Enter the password of user governance, and press Enter. The default password is Huawei@CLOUD8!. The system begins to restore governancedb data.

    Checking database...Success.
    Creating database...Success.
    Restoring database...Success.
    Dropping database...
    Success.
    Rename database...Success.
    Grant privileges to dbuser...Clean SERVICEINSTANCELIST in db.
    Success.
    Operation finished.
    start restore datamoverdb
    Please enter DATAMOVERDB database password for user eBkDbAdmin:

  9. If the management role is the backup server, enter the password of user datamover, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore datamoverdb data.

    If the following command output is displayed, management data is restored successfully.

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Restore DB success. 
    Starting Huawei eBackup Service 
    The service is starting, please wait for a moment... 
    serivce hcp start:completed 
                                                                                                                                                                                                                                                                       done 
    The ebk_governance agent of OceanStor BCManager eBackup was started successfully. 
    The ebk_license agent of OceanStor BCManager eBackup was started successfully. 
    The ebk_alarm agent of OceanStor BCManager eBackup was started successfully. 
    The ebk_iam agent of OceanStor BCManager eBackup was started successfully.

  10. If the management role is the backup manager, perform the following steps:

    1. Enter the password of user governance, and press Enter. The default password is Huawei@CLOUD8!.

      The system begins to restore governancedb data.

      The following command output is displayed:

      Checking database...Success. 
      Creating database...Success. 
      Restoring database...Success. 
      Dropping database... 
      Success. 
      Rename database...Success. 
      Grant privileges to dbuser...Success. 
      Operation finished. 
      Please enter WFCBSDB database password for user eBkDbAdmin:
    2. Enter the password of user wfcbs, and press Enter. The default password is Huawei@CLOUD8!.

      The system begins to restore wfcbsdb data.

      The following command output is displayed:

      Checking database...Success. 
      Creating database...Success. 
      Restoring database...Success. 
      Dropping database... 
      Success. 
      Rename database...Success. 
      Grant privileges to dbuser...Success. 
      Operation finished. 
      Please enter WFVMWAREDB database password for user eBkDbAdmin:
    3. Enter the password of user wfvmware, and press Enter. The default password is Huawei@CLOUD8!.

      The system begins to restore wfvmwaredb data. If the following command output is displayed, management data is restored successfully.

      The following command output is displayed:

      Checking database...Success. 
      Creating database...Success. 
      Restoring database...Success. 
      Dropping database... 
      Success. 
      Rename database...Success. 
      Grant privileges to dbuser...Success. 
      Operation finished. 
      Restore DB success. 
      Starting Huawei eBackup Service 
      The service is starting, please wait for a moment... 
      serivce hcp start:completed 
                                                                                                                                                                                                                                                                         done 
      The ebk_governance agent of OceanStor BCManager eBackup was started successfully. 
      The ebk_license agent of OceanStor BCManager eBackup was started successfully. 
      The ebk_alarm agent of OceanStor BCManager eBackup was started successfully. 
      The ebk_iam agent of OceanStor BCManager eBackup was started successfully.

  11. Restore a storage unit.

    For the backup manager and backup workflow servers, you do not need to restore their storage units. Log in to the backup server to perform the following steps:

    1. Run the following command to save $LD_LIBRARY_PATH.

      OLD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH

    2. Run the following commands to configure environmental variables.

      export LD_LIBRARY_PATH=/opt/huawei-data-protection/ebackup/libs/:/lib64/

      export G_HCP_ROOT=/opt/huawei-data-protection/ebackup

      export LD_LIBRARY_PATH=${G_HCP_ROOT}/libs:${LD_LIBRARY_PATH}:${G_HCP_ROOT}/db/lib:/lib64

      export ODBCINI=${G_HCP_ROOT}/conf/odbc.ini

      export ODBCSYSINI=${G_HCP_ROOT}/conf

    3. Run the following command to go to the save path of uds_plug-in.

      cd /opt/huawei-data-protection/ebackup/sbin/

    4. Run the following command to download file storage_units.csv from the S3 storage to a local path on the backup server:

      ./uds_plug-in DownloadFile ebackup/Region-AZ-POD/storage_units.csv /opt/huawei-data-protection/ebackup/db_bak/Region-AZ-POD02

      NOTE:

      In the command, Region-AZ-POD indicates the backup data identifier of the eBackup system management data before the disaster, and Region-AZ-POD02 indicates the backup data identifier of the eBackup system management data during disaster recovery. /opt/huawei-data-protection/ebackup/db_bak/Region-AZ-POD02 indicates the local absolute path on the eBackup server storing file storage_units.csv.

    5. Run the following command to go to the save path of storage_units.csv.

      cd /opt/huawei-data-protection/ebackup/db_bak/Region-AZ-POD02

    6. Run the following command to enable the hcp account to read and write the storage_units.csv configuration files.

      chown hcp:hcp storage_units.csv

      chmod 644 storage_units.csv

    7. Run the following command to restore a storage unit in the configuration file.

      service hcp recover /opt/huawei-data-protection/ebackup/db_bak/Region-AZ-POD02/storage_units.csv

      The following command output is displayed:

      WARNING: Recovery will stop services. Are you sure you want to continue?(y/n):
    8. Enter y and press Enter.

      The system starts restoring the storage unit. If the following command output is displayed, the storage unit is successfully restored.

       Backup Server metadata was recovered 
       please restart eBackup
    9. Run the following command to restart eBackup services.

      service hcp restart

    10. Run the following command to delete the downloaded storage_units.csv file.

      rm storage_units.csv

    11. Run the following command to restore $OLD_LD_LIBRARY_PATH.

      export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH

  12. After performing the preceding steps, wait for about 5 minutes and log in to the eBackup GUI. Click Backup Storage > Storage Unit. If Accessibility Status of the storage unit is All accessible, the restore is successful.

    If the restore fails, contact technical support engineers.

  13. If backup workflow servers or backup proxies exist in the backup management system, power on the servers where the backup workflow servers or backup proxies reside to ensure the normal running of eBackup services.

    Log in to the eBackup GUI, choose > Server, and check the status of backup workflow servers or backup proxies. Ensure that the values of Accessibility Status and Register Status for all backup workflow servers or backup proxies are accessible and registered respectively.

Follow-up Procedure
  • If backup system management data fails to be restored in the first time, perform the disaster recovery operations again.
  • After disaster recovery, change the license ESN under either of the following conditions:
    • A VM template has been re-imported.
    • Disaster recovery has been performed on a new server.
  • After disaster recovery, if the original license cannot be used, obtain an ESN again, obtain a new license through the ESN, and import the new license.

    For details, see section OceanStor BCManager eBackup in HUAWEI CLOUD Stack 6.5.0 License Guide.

  • If the internal communication plane IP addresses of the backup manager or backup server before and after disasters are different, you need to reconfigure backup workflow servers or backup proxies.
  • If the backup management plane floating IP addresses of the backup server before and after the disaster are different, you need to reconfigure the eBackup driver.
  • If the backup server and backup proxy are deployed on different nodes or the backup manager and backup workflow server are deployed on different nodes, the backup workflow server or backup proxy may fail to be accessed after only the backup manager or backup server is recovered.
    If a backup workflow server or backup proxy fails to be accessed, perform the following operations:
    1. Use PuTTY to log in to the workflow-eBackup01 node (backup manager) or backup server through a management IP address.
      Login addresses:
      • Management IP address of the workflow-eBackup01 node: IP address corresponding to the Workflow-PublicService-IP0 field
      • Management IP address of the backup server: IP address corresponding to the datamover_externalom_iplist field

      Default account: hcp. Default password: PXU9@ctuNov17!.

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

      The default password of user root is Cloud12#$.

      su root

    3. Run the following command to obtain the public key of the backup manager or backup server:

      cat /opt/huawei-data-protection/ebackup/conf/cert/AdminNode.pub

    4. Use PuTTY to log in to the workflow-eBackup02 node (backup workflow server) or backup proxy through a management IP address.
      Login addresses:
      • Management IP address of the workflow-eBackup02 node: IP address corresponding to the Workflow-PublicService-IP1 field
      • Management IP address of the backup proxy: IP address corresponding to the datamover_externalom_iplist field

      Default account: hcp. Default password: PXU9@ctuNov17!.

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

      The default password of user root is Cloud12#$.

      su root

    6. Run the following command to open the public key file:

      vi /opt/huawei-data-protection/ebackup/conf/cert/AdminNode.pub

    7. Delete the content in the file and write the public key of the backup manager or backup server obtained from 3 to the file.
    8. Log in to the backup manager or backup server node again and run the following command to restart the eBackup process:

      service hcp restart

FTP

This section describes how to restore the eBackup management data and storage units when the eBackup management data is lost or damaged and the backup storage type of the management data is FTP.

Prerequisites
  • Under FTP storage path /DBBakSubDir/Region-AZ-POD, check whether configuration file storage_units.csv required for disaster recovery exists. DBBakSubDir indicates the directory of the backup storage on the FTP server, and Region-AZ-POD indicates the identifier of the backup data of the eBackup management data. If the configuration file does not exist, contact Huawei technical support.
  • A cross-platform remote access tool, such as PuTTY, has been obtained.
  • The password of user eBkDbAdmin has been obtained. The initial password is Huawei@CLOUD8!.
  • Backup and restore services of tenant data have been stopped (during disaster recovery, the system automatically stops the eBackup process).
  • If the HA function is configured, you need to remove the standby node from the HA relationship before a disaster recovery. After the disaster recovery is complete, add the standby node to the HA relationship. Perform the following steps to remove the standby node from the HA relationship:
    1. Log in to the backup manager or backup server GUI using a browser.

      Login address: https://IP address corresponding to the Workflow-Management-Float-IP field or IP address corresponding to the datamover_management_float_ip field:8088

      Default account: admin. Default password: Cloud12#$ for installation using HUAWEI CLOUD Stack Deploy, and PXU9@ctuNov17! for manual installation.

    2. On the navigation bar, choose > Server.
    3. Click HA Management and select Remove HA Members from the shortcut menu.
Context
  • The file name of the backup data is [Backup data type][Backup type][Service name][Year][Month][Day][Minute][Second][Backup period][No.].db. Backup data type can be F (full backup). Backup type can be AT (automatic) or MT (manual). Service name is fixed as EBACKUP. Backup period can be H(hour), D (daily), W (weekly), M (monthly), Y (yearly), or X (manual). Example: FATEBACKUP20160128000125Y001.db.
  • When restoring the system management data, ensure that versions of the backup data and system are consistent. Run the showsys command to view the current system version.
  • If backup system management data exists, only data generated between the backup point in time and the recovery point in time is inconsistent with the original system management data. If backup system management data does not exist, all the restored system management data is inconsistent with the original system management data. However, the preceding two scenarios do not affect the normal use of all functions after the system recovers from disasters.
  • After a disaster recovery task is executed, the system may automatically generates data records starting with Recover on the eBackup GUI (choosing Backup > Backup Policy or Backup Storage > Repository to view the data records). These data records are necessary for disaster recovery and are automatically generated by the system.
  • During the operation, you need to enter the database password. If you enter the password incorrectly for three times, the system will automatically exit from recovery program. In this case, perform this operation again.

Do not restore the system management data or storage units across versions. Otherwise, the management data or storage units cannot be restored.

Procedure

Preparing data

  1. If you need to restore the management data of the backup manager, refer to Logging In to the eBackup Server to log in to the primary node of backup manager.

    If you need to restore the management data of the backup server, refer to Logging In to the eBackup Server to log in to the primary node of backup server.

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

    The default password of root account is Cloud12#$.

    su root

  3. Run the following command to prevent the system from exiting due to timeout.

    TMOUT=0

    NOTE:

    After you run this command, the system continues to run when no operation is performed, resulting in a risk. For security purposes, you are advised to run the exit command to exit the system after completing your operations.

  4. If backup management data exist, go to Step 5; if backup management data does not exist, go to Step 20.

    Choose Settings > Configuration > Management Data Backup, and check whether the backup information about the management data is stored.

  5. Run the following command to go to the path for storing backup management data.

    cd /opt/huawei-data-protection/ebackup/db_bak/

  6. Run the following command to go to the save path of the restoration script.

    cd /opt/huawei-data-protection/ebackup/bin

  7. Run the following command to restore the backup management data to the running management data.

    sh hcp_admindb_restore.sh

    The following command output is displayed:

    NOTE:

    Only main command outputs are displayed in the following operation procedures.

    WARNING: Restore DB will stop eBackup service, are you sure to continue?(y/n)

  8. Enter y and press Enter.

    The following command output is displayed:

    [1] /opt/huawei-data-protection/ebackup/db_bak/eBackup03 
    [2] /opt/huawei-data-protection/ebackup/db_bak/eBackup01 
    [3] /opt/huawei-data-protection/ebackup/db_bak/eBackup02 
    Please select the sub-folder that saves backup data of management data of the eBackup you want to restore:

  9. Enter the digit before the subdirectory used to store eBackup system management data, and press Enter.

    For example, if you choose subdirectory /opt/huawei-data-protection/ebackup/db_bak/eBackup03 to store eBackup system management data, enter 1.

    eBackup03 is the value of identifier set when the eBackup management data backup storage is configured.

    The following command output is displayed:

    Backup Name                                      Version 
    [1] FATEBACKUP20180128000125Y001.db              xx 
    [2] FATEBACKUP20180129000125Y002.db              xx 
    [3] FATEBACKUP20180130000125Y003.db              xx 
    [4] FATEBACKUP20180130000127Y004.db              xx 
    please select a backup file from the list above:     

Performing a restore

  1. Select the backup file whose version is consistent with the version of the eBackup backup management system, and press Enter. For details, see the backup file naming rules in Context and the value of Version in the preceding command output.

    For example, select FATEBACKUP20160128000125Y001.db and enter 1.
    • If the versions are inconsistent, the following information is returned. You need to select backup data whose version is consistent with that of the eBackup backup management system.
      The system version don't match. 
      please select a backup file from the list above:     
    • The command output is as follows:
      select backup name:FATEBACKUP20160128000125Y001.db 
       
      Checking data... 
      Backup data...Correct. 
      BackFileName is:1352B2A8F5934D8DA1356A22A5671DA3.tar.gz 
      BackFileName is:4AD4744C8775498AAD1389174EC14512.tar.gz 
      BackFileName is:C8F86F3249A047F188D81779E3685545.tar.gz 
      BackFileName is:D1D9A2EF865D41A184EF6F2A250F9E55.tar.gz 
      Shutting down Huawei eBackup Service 
      service hcp stop:completed 
                                                                                                                                                                                                                                                                         done 
      This operation will drop the db, are you sure you want to continue?(y/n)

  2. Enter y and press Enter.

    The following command output is displayed during the execution:

    Please enter ADMINDB database password for user eBkDbAdmin:

  3. Enter the password of user admin, and press Enter.

    Enter the password within 90 seconds to prevent system timeout. The default password is Huawei@CLOUD8!. The system begins to restore admindb data.

    The following command output is displayed:
    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter LICENSEDB database password for user eBkDbAdmin:

  4. Enter the password of user license, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore licensedb data.

    The following command output is displayed:

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter ALARMDB database password for user eBkDbAdmin:

  5. Enter the password of user alarm, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore alarmdb data.

    The following command output is displayed:

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter IAMDB database password for user eBkDbAdmin:

  6. Enter the password of user IAM, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore iamdb data.

    The following command output is displayed:

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter GOVERNANCEDB database password for user eBkDbAdmin:

  7. Perform the following steps based on the role of the eBackup server:

    • If the role is the backup server, perform Step 17, Step 18.
    • If the role is the backup manager, perform Step 19.

  8. If the management role is the backup server, perform the following steps:

    Enter the password of user governance, and press Enter. The default password is Huawei@CLOUD8!. The system begins to restore governancedb data.

    Checking database...Success.
    Creating database...Success.
    Restoring database...Success.
    Dropping database...
    Success.
    Rename database...Success.
    Grant privileges to dbuser...Clean SERVICEINSTANCELIST in db.
    Success.
    Operation finished.
    start restore datamoverdb
    Please enter DATAMOVERDB database password for user eBkDbAdmin:

  9. If the management role is the backup server, enter the password of user datamover, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore datamoverdb data.

    If the following command output is displayed, management data is restored successfully.

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Restore DB success. 
    Starting Huawei eBackup Service 
    The service is starting, please wait for a moment... 
    serivce hcp start:completed 
                                                                                                                                                                                                                                                                       done 
    The ebk_governance agent of OceanStor BCManager eBackup was started successfully. 
    The ebk_license agent of OceanStor BCManager eBackup was started successfully. 
    The ebk_alarm agent of OceanStor BCManager eBackup was started successfully. 
    The ebk_iam agent of OceanStor BCManager eBackup was started successfully.

  10. If the management role is the backup manager, perform the following steps:

    1. Enter the password of user governance, and press Enter. The default password is Huawei@CLOUD8!.

      The system begins to restore governancedb data.

      The following command output is displayed:

      Checking database...Success. 
      Creating database...Success. 
      Restoring database...Success. 
      Dropping database... 
      Success. 
      Rename database...Success. 
      Grant privileges to dbuser...Success. 
      Operation finished. 
      Please enter WFCBSDB database password for user eBkDbAdmin:
    2. Enter the password of user wfcbs, and press Enter. The default password is Huawei@CLOUD8!.

      The system begins to restore wfcbsdb data.

      The following command output is displayed:

      Checking database...Success. 
      Creating database...Success. 
      Restoring database...Success. 
      Dropping database... 
      Success. 
      Rename database...Success. 
      Grant privileges to dbuser...Success. 
      Operation finished. 
      Please enter WFVMWAREDB database password for user eBkDbAdmin:
    3. Enter the password of user wfvmware, and press Enter. The default password is Huawei@CLOUD8!.

      The system begins to restore wfvmwaredb data. If the following command output is displayed, management data is restored successfully.

      The following command output is displayed:

      Checking database...Success. 
      Creating database...Success. 
      Restoring database...Success. 
      Dropping database... 
      Success. 
      Rename database...Success. 
      Grant privileges to dbuser...Success. 
      Operation finished. 
      Restore DB success. 
      Starting Huawei eBackup Service 
      The service is starting, please wait for a moment... 
      serivce hcp start:completed 
                                                                                                                                                                                                                                                                         done 
      The ebk_governance agent of OceanStor BCManager eBackup was started successfully. 
      The ebk_license agent of OceanStor BCManager eBackup was started successfully. 
      The ebk_alarm agent of OceanStor BCManager eBackup was started successfully. 
      The ebk_iam agent of OceanStor BCManager eBackup was started successfully.

  11. Restore a storage unit.

    For the backup manager and backup workflow servers, you do not need to restore their storage units. Log in to the backup server to perform the following steps:
    1. Run the following command to save $LD_LIBRARY_PATH.

      OLD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH

    2. Run the following commands to configure environmental variables.

      export LD_LIBRARY_PATH=/opt/huawei-data-protection/ebackup/libs/:/lib64/

      export G_HCP_ROOT=/opt/huawei-data-protection/ebackup

      export LD_LIBRARY_PATH=${G_HCP_ROOT}/libs:${LD_LIBRARY_PATH}:${G_HCP_ROOT}/db/lib:/lib64

      export ODBCINI=${G_HCP_ROOT}/conf/odbc.ini

      export ODBCSYSINI=${G_HCP_ROOT}/conf

    3. Run the following command to go to the save path of SecurityTool.

      cd /opt/huawei-data-protection/ebackup/sbin/

    4. Run the following command to download file storage_units.csv from the FTP storage to a local path on the backup server:

      ./SecurityTool DownloadFile /Region-AZ-POD/storage_units.csv /opt/huawei-data-protection/ebackup/db_bak/Region-AZ-POD02

      NOTE:

      In the command, Region-AZ-POD indicates the backup data identifier of the eBackup system management data before the disaster, and Region-AZ-POD02 indicates the backup data identifier of the eBackup system management data during disaster recovery. /opt/huawei-data-protection/ebackup/db_bak/Region-AZ-POD02 indicates the local absolute path on the eBackup server storing file storage_units.csv.

    5. Run the following command to go to the save path of storage_units.csv.

      cd /opt/huawei-data-protection/ebackup/db_bak/Region-AZ-POD02

    6. Run the following command to enable the hcp account to read and write the storage_units.csv configuration files.

      chown hcp:hcp storage_units.csv

      chmod 644 storage_units.csv

    7. Run the following command to restore a storage unit in the configuration file.

      service hcp recover /opt/huawei-data-protection/ebackup/db_bak/Region-AZ-POD02/storage_units.csv

      The following command output is displayed:

      WARNING: Recovery will stop services. Are you sure you want to continue?(y/n):
    8. Enter y and press Enter.

      The system starts restoring the storage unit. If the following command output is displayed, the storage unit is successfully restored.

       Backup Server metadata was recovered 
       please restart eBackup
    9. Run the following command to restart eBackup services.

      service hcp restart

    10. Run the following command to delete the downloaded storage_units.csv file.

      rm storage_units.csv

    11. Run the following command to restore $OLD_LD_LIBRARY_PATH.

      export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH

  12. After performing the preceding steps, wait for about 5 minutes and log in to the eBackup GUI. Click Backup Storage > Storage Unit. If Accessibility Status of the storage unit is All accessible, the restore is successful.

    If the restore fails, contact technical support engineers.

  13. If backup workflow servers or backup proxies exist in the backup management system, power on the servers where the backup workflow servers or backup proxies reside to ensure the normal running of eBackup services.

    Log in to the eBackup GUI, choose > Server, and check the status of backup workflow servers or backup proxies. Ensure that the values of Accessibility Status and Register Status for all backup workflow servers or backup proxies are accessible and registered respectively.

Follow-up Procedure
  • If backup system management data fails to be restored in the first time, perform the disaster recovery operations again.
  • After disaster recovery, change the license ESN under either of the following conditions:
    • A VM template has been re-imported.
    • Disaster recovery has been performed on a new server.
  • After disaster recovery, if the original license cannot be used, obtain an ESN again, obtain a new license through the ESN, and import the new license.

    For details, see section OceanStor BCManager eBackup in HUAWEI CLOUD Stack 6.5.0 License Guide.

  • If the internal communication plane IP addresses of the backup manager or backup server before and after disasters are different, you need to reconfigure backup workflow servers or backup proxies.
  • If the backup management plane floating IP addresses of the backup server before and after the disaster are different, you need to reconfigure the eBackup driver.
  • If the backup server and backup proxy are deployed on different nodes or the backup manager and backup workflow server are deployed on different nodes, the backup workflow server or backup proxy may fail to be accessed after only the backup manager or backup server is recovered.
    If a backup workflow server or backup proxy fails to be accessed, perform the following operations:
    1. Use PuTTY to log in to the workflow-eBackup01 node (backup manager) or backup server through a management IP address.
      Login addresses:
      • Management IP address of the workflow-eBackup01 node: IP address corresponding to the Workflow-PublicService-IP0 field
      • Management IP address of the backup server: IP address corresponding to the datamover_externalom_iplist field

      Default account: hcp. Default password: PXU9@ctuNov17!.

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

      The default password of user root is Cloud12#$.

      su root

    3. Run the following command to obtain the public key of the backup manager or backup server:

      cat /opt/huawei-data-protection/ebackup/conf/cert/AdminNode.pub

    4. Use PuTTY to log in to the workflow-eBackup02 node (backup workflow server) or backup proxy through a management IP address.
      Login addresses:
      • Management IP address of the workflow-eBackup02 node: IP address corresponding to the Workflow-PublicService-IP1 field
      • Management IP address of the backup proxy: IP address corresponding to the datamover_externalom_iplist field

      Default account: hcp. Default password: PXU9@ctuNov17!.

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

      The default password of user root is Cloud12#$.

      su root

    6. Run the following command to open the public key file:

      vi /opt/huawei-data-protection/ebackup/conf/cert/AdminNode.pub

    7. Delete the content in the file and write the public key of the backup manager or backup server obtained from 3 to the file.
    8. Log in to the backup manager or backup server node again and run the following command to restart the eBackup process:

      service hcp restart

SFTP

This section describes how to restore the eBackup management data and storage units when the eBackup management data is lost or damaged and the backup storage type of the management data is SFTP.

Prerequisites
  • A cross-platform remote access tool, such as PuTTY, has been obtained.
  • The password of user eBkDbAdmin has been obtained. The initial password is Huawei@CLOUD8!.
  • Backup and restore services of tenant data have been stopped (during disaster recovery, the system automatically stops the eBackup process).
  • If the HA function is configured, you need to remove the standby node from the HA relationship before a disaster recovery. After the disaster recovery is complete, add the standby node to the HA relationship. Perform the following steps to remove the standby node from the HA relationship:
    1. Log in to the backup manager or backup server GUI using a browser.

      Login address: https://IP address corresponding to the Workflow-Management-Float-IP field or IP address corresponding to the datamover_management_float_ip field:8088

      Default account: admin. Default password: Cloud12#$ for installation using HUAWEI CLOUD Stack Deploy, and PXU9@ctuNov17! for manual installation.

    2. On the navigation bar, choose > Server.
    3. Click HA Management and select Remove HA Members from the shortcut menu.
Context
  • The file name of the backup data is [Backup data type][Backup type][Service name][Year][Month][Day][Minute][Second][Backup period][No.].db. Backup data type can be F (full backup). Backup type can be AT (automatic) or MT (manual). Service name is fixed as EBACKUP. Backup period can be H(hour), D (daily), W (weekly), M (monthly), Y (yearly), or X (manual). Example: FATEBACKUP20160128000125Y001.db.
  • When restoring the system management data, ensure that versions of the backup data and system are consistent. Run the showsys command to view the current system version.
  • If backup system management data exists, only data generated between the backup point in time and the recovery point in time is inconsistent with the original system management data. If backup system management data does not exist, all the restored system management data is inconsistent with the original system management data. However, the preceding two scenarios do not affect the normal use of all functions after the system recovers from disasters.
  • After a disaster recovery task is executed, the system may automatically generates data records starting with Recover on the eBackup GUI (choosing Backup > Backup Policy or Backup Storage > Repository to view the data records). These data records are necessary for disaster recovery and are automatically generated by the system.
  • During the operation, you need to enter the database password. If you enter the password incorrectly for three times, the system will automatically exit from recovery program. In this case, perform this operation again.

Do not restore the system management data or storage units across versions. Otherwise, the management data or storage units cannot be restored.

Procedure

Preparing data

  1. If you need to restore the management data of the backup manager, refer to Logging In to the eBackup Server to log in to the primary node of backup manager.

    If you need to restore the management data of the backup server, refer to Logging In to the eBackup Server to log in to the primary node of backup server.

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

    The default password of root account is Cloud12#$.

    su root

  3. Run the following command to prevent the system from exiting due to timeout.

    TMOUT=0

    NOTE:

    After you run this command, the system continues to run when no operation is performed, resulting in a risk. For security purposes, you are advised to run the exit command to exit the system after completing your operations.

  4. If backup management data exist, go to Step 5; if backup management data does not exist, go to Step 20.

    Choose Settings > Configuration > Management Data Backup, and check whether the backup information about the management data is stored.

  5. Run the following command to go to the path for storing backup management data.

    cd /opt/huawei-data-protection/ebackup/db_bak/

  6. Run the following command to go to the save path of the restoration script.

    cd /opt/huawei-data-protection/ebackup/bin

  7. Run the following command to restore the backup management data to the running management data.

    sh hcp_admindb_restore.sh

    The following command output is displayed:

    NOTE:

    Only main command outputs are displayed in the following operation procedures.

    WARNING: Restore DB will stop eBackup service, are you sure to continue?(y/n)

  8. Enter y and press Enter.

    The following command output is displayed:

    [1]  /opt/huawei-data-protection/ebackup/db_bak/
    [2]  /opt/huawei-data-protection/ebackup/db_bak/192.168.1.2_ebackup_manager_bak
    [3]  /opt/huawei-data-protection/ebackup/db_bak/192.168.1.6_ebackup_server_bak
    [4]  /opt/huawei-data-protection/ebackup/db_bak/
    Please select the sub-folder that saves backup data of management data of the eBackup you want to restore:

  9. Enter the digit before the subdirectory used to store eBackup system management data, and press Enter.

    The management data of the backup manager is stored in 192.168.1.2_ebackup_manager_bak, The management data of the backup server is stored in 192.168.1.6_ebackup_server_bak.

    For example, if you choose /opt/huawei-data-protection/ebackup/db_bak/192.168.1.6_ebackup_server_bak to store eBackup system management data, enter 3.

    The following command output is displayed:

    dir=/opt/huawei-data-protection/ebackup/db_bak/192.168.1.6_ebackup_server_bak
    
         Backup Name                                Version
    [1]  FATEBACKUP20190222100603H001.db        6.5.0
    [2]  FATEBACKUP20190221170603H001.db        6.5.0
    [3]  FMTEBACKUP20190220152354X001.db        6.5.0
    [4]  FMTEBACKUP20190220151015X001.db        6.5.0
    [5]  FMTEBACKUP20190220144019X001.db        6.5.0
    [6]  FMTEBACKUP20190220142833X001.db        6.5.0
    [7]  FMTEBACKUP20190219180512X001.db        6.5.0
    [8]  FMTEBACKUP20190219163551X001.db        6.5.0
    [9]  FATEBACKUP20190219095103Y001.db        6.5.0
    [10] FMTEBACKUP20190219094530X001.db        6.5.0
    please select a backup file from the list above:

Performing a restore

  1. Select the backup file whose version is consistent with the version of the eBackup backup management system, and press Enter. For details, see the backup file naming rules in Context and the value of Version in the preceding command output.

    For example, select FATEBACKUP20190222100603H001.db and enter 1.
    • If the versions are inconsistent, the following information is returned. You need to select backup data whose version is consistent with that of the eBackup backup management system.
      The system version don't match. 
      please select a backup file from the list above:     
    • The command output is as follows:
      select backup name:FATEBACKUP20190222100603H001.db
      
      Checking data...
      Backup data...Correct.
      BackFileName is:DISRCVE421A714E8104AF8A37671DD045D7E92.tar.gz
      BackFileName is:DISRCVDB80B43650B24DCB85004D117C619C86.tar.gz
      BackFileName is:DISRCVB62185BC7E6B408684F337A1265B0C05.tar.gz
      BackFileName is:DISRCVB755BBEC329F4522B1F31A5FE214F1BC.tar.gz
      Shutting down Huawei eBackup Service
      Shutting down CRON daemon                                                                                                                                                                                                             done
      Starting CRON daemon                                                                                                                                                                                                                  done
      service hcp stop:completed
                                                                                                                                                                                                                                            done
      This operation will drop the db, are you sure you want to continue?(y/n)

  2. Enter y and press Enter.

    The following command output is displayed during the execution:

    Please enter ADMINDB database password for user eBkDbAdmin:

  3. Enter the password of user admin, and press Enter.

    Enter the password within 90 seconds to prevent system timeout. The default password is Huawei@CLOUD8!. The system begins to restore admindb data.

    The following command output is displayed:
    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter LICENSEDB database password for user eBkDbAdmin:

  4. Enter the password of user license, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore licensedb data.

    The following command output is displayed:

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter ALARMDB database password for user eBkDbAdmin:

  5. Enter the password of user alarm, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore alarmdb data.

    The following command output is displayed:

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter IAMDB database password for user eBkDbAdmin:

  6. Enter the password of user IAM, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore iamdb data.

    The following command output is displayed:

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Please enter GOVERNANCEDB database password for user eBkDbAdmin:

  7. Perform the following steps based on the role of the eBackup server:

    • If the role is the backup server, perform Step 17, Step 18.
    • If the role is the backup manager, perform Step 19.

  8. If the management role is the backup server, perform the following steps:

    Enter the password of user governance, and press Enter. The default password is Huawei@CLOUD8!. The system begins to restore governancedb data.

    Checking database...Success.
    Creating database...Success.
    Restoring database...Success.
    Dropping database...
    Success.
    Rename database...Success.
    Grant privileges to dbuser...Clean SERVICEINSTANCELIST in db.
    Success.
    Operation finished.
    start restore datamoverdb
    Please enter DATAMOVERDB database password for user eBkDbAdmin:

  9. If the management role is the backup server, enter the password of user datamover, and press Enter.

    The default password is Huawei@CLOUD8!. The system begins to restore datamoverdb data.

    If the following command output is displayed, management data is restored successfully.

    Checking database...Success. 
    Creating database...Success. 
    Restoring database...Success. 
    Dropping database... 
    Success. 
    Rename database...Success. 
    Grant privileges to dbuser...Success. 
    Operation finished. 
    Restore DB success. 
    Starting Huawei eBackup Service 
    The service is starting, please wait for a moment... 
    serivce hcp start:completed 
                                                                                                                                                                                                                                                                       done 
    The ebk_governance agent of OceanStor BCManager eBackup was started successfully. 
    The ebk_license agent of OceanStor BCManager eBackup was started successfully. 
    The ebk_alarm agent of OceanStor BCManager eBackup was started successfully. 
    The ebk_iam agent of OceanStor BCManager eBackup was started successfully.

  10. If the management role is the backup manager, perform the following steps:

    1. Enter the password of user governance, and press Enter. The default password is Huawei@CLOUD8!.

      The system begins to restore governancedb data.

      The following command output is displayed:

      Checking database...Success. 
      Creating database...Success. 
      Restoring database...Success. 
      Dropping database... 
      Success. 
      Rename database...Success. 
      Grant privileges to dbuser...Success. 
      Operation finished. 
      Please enter WFCBSDB database password for user eBkDbAdmin:
    2. Enter the password of user wfcbs, and press Enter. The default password is Huawei@CLOUD8!.

      The system begins to restore wfcbsdb data.

      The following command output is displayed:

      Checking database...Success. 
      Creating database...Success. 
      Restoring database...Success. 
      Dropping database... 
      Success. 
      Rename database...Success. 
      Grant privileges to dbuser...Success. 
      Operation finished. 
      Please enter WFVMWAREDB database password for user eBkDbAdmin:
    3. Enter the password of user wfvmware, and press Enter. The default password is Huawei@CLOUD8!.

      The system begins to restore wfvmwaredb data. If the following command output is displayed, management data is restored successfully.

      The following command output is displayed:

      Checking database...Success. 
      Creating database...Success. 
      Restoring database...Success. 
      Dropping database... 
      Success. 
      Rename database...Success. 
      Grant privileges to dbuser...Success. 
      Operation finished. 
      Restore DB success. 
      Starting Huawei eBackup Service 
      The service is starting, please wait for a moment... 
      serivce hcp start:completed 
                                                                                                                                                                                                                                                                         done 
      The ebk_governance agent of OceanStor BCManager eBackup was started successfully. 
      The ebk_license agent of OceanStor BCManager eBackup was started successfully. 
      The ebk_alarm agent of OceanStor BCManager eBackup was started successfully. 
      The ebk_iam agent of OceanStor BCManager eBackup was started successfully.

  11. Restore a storage unit.

    For the backup manager and backup workflow servers, you do not need to restore their storage units. Log in to the backup server to perform the following steps:
    1. Run the following command to save $LD_LIBRARY_PATH.

      OLD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH

    2. Run the following commands to configure environmental variables.

      export LD_LIBRARY_PATH=/opt/huawei-data-protection/ebackup/libs/:/lib64/

      export G_HCP_ROOT=/opt/huawei-data-protection/ebackup

      export LD_LIBRARY_PATH=${G_HCP_ROOT}/libs:${LD_LIBRARY_PATH}:${G_HCP_ROOT}/db/lib:/lib64

      export ODBCINI=${G_HCP_ROOT}/conf/odbc.ini

      export ODBCSYSINI=${G_HCP_ROOT}/conf

    3. Run the following command to go to the save path of SecurityTool.

      cd /opt/huawei-data-protection/ebackup/sbin/

    4. Run the following command to download file storage_units.csv from the SFTP storage to a local path on the backup server:

      ./SecurityTool DownloadSFTPFile /eBackupServerIP_ebackup_server_bak/storage_units.csv /opt/huawei-data-protection/ebackup/db_bak/eBackupServerIP_ebackup_server_bak/

      NOTE:

      In the command, /eBackupServerIP_ebackup_server_bak/storage_units.csv indicates the path to save the storage_units.csv file before disaster recovery; /opt/huawei-data-protection/ebackup/db_bak/eBackupServerIP_ebackup_server_bak/ indicates that the local path where the storage_units.csv file is saved during disaster recovery.

    5. Run the following command to go to the save path of storage_units.csv.

      cd /opt/huawei-data-protection/ebackup/db_bak/eBackupServerIP_ebackup_server_bak

    6. Run the following command to enable the hcp account to read and write the storage_units.csv configuration files.

      chown hcp:hcp storage_units.csv

      chmod 644 storage_units.csv

    7. Run the following command to restore a storage unit in the configuration file.

      service hcp recover /opt/huawei-data-protection/ebackup/db_bak/eBackupServerIP_ebackup_server_bak/storage_units.csv

      The following command output is displayed:

      WARNING: Recovery will stop services. Are you sure you want to continue?(y/n):
    8. Enter y and press Enter.

      The system starts restoring the storage unit. If the following command output is displayed, the storage unit is successfully restored.

       Backup Server metadata was recovered 
       please restart eBackup
    9. Run the following command to restart eBackup services.

      service hcp restart

    10. Run the following command to delete the downloaded storage_units.csv file.

      rm storage_units.csv

    11. Run the following command to restore $OLD_LD_LIBRARY_PATH.

      export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH

  12. After performing the preceding steps, wait for about 5 minutes and log in to the eBackup GUI. Click Backup Storage > Storage Unit. If Accessibility Status of the storage unit is All accessible, the restore is successful.

    If the restore fails, contact technical support engineers.

  13. If backup workflow servers or backup proxies exist in the backup management system, power on the servers where the backup workflow servers or backup proxies reside to ensure the normal running of eBackup services.

    Log in to the eBackup GUI, choose > Server, and check the status of backup workflow servers or backup proxies. Ensure that the values of Accessibility Status and Register Status for all backup workflow servers or backup proxies are accessible and registered respectively.

Follow-up Procedure
  • If backup system management data fails to be restored in the first time, perform the disaster recovery operations again.
  • After disaster recovery, change the license ESN under either of the following conditions:
    • A VM template has been re-imported.
    • Disaster recovery has been performed on a new server.
  • After disaster recovery, if the original license cannot be used, obtain an ESN again, obtain a new license through the ESN, and import the new license.

    For details, see section OceanStor BCManager eBackup in HUAWEI CLOUD Stack 6.5.0 License Guide.

  • If the internal communication plane IP addresses of the backup manager or backup server before and after disasters are different, you need to reconfigure backup workflow servers or backup proxies.
  • If the backup management plane floating IP addresses of the backup server before and after the disaster are different, you need to reconfigure the eBackup driver.
  • If the backup server and backup proxy are deployed on different nodes or the backup manager and backup workflow server are deployed on different nodes, the backup workflow server or backup proxy may fail to be accessed after only the backup manager or backup server is recovered.
    If a backup workflow server or backup proxy fails to be accessed, perform the following operations:
    1. Use PuTTY to log in to the workflow-eBackup01 node (backup manager) or backup server through a management IP address.
      Login addresses:
      • Management IP address of the workflow-eBackup01 node: IP address corresponding to the Workflow-PublicService-IP0 field
      • Management IP address of the backup server: IP address corresponding to the datamover_externalom_iplist field

      Default account: hcp. Default password: PXU9@ctuNov17!.

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

      The default password of user root is Cloud12#$.

      su root

    3. Run the following command to obtain the public key of the backup manager or backup server:

      cat /opt/huawei-data-protection/ebackup/conf/cert/AdminNode.pub

    4. Use PuTTY to log in to the workflow-eBackup02 node (backup workflow server) or backup proxy through a management IP address.
      Login addresses:
      • Management IP address of the workflow-eBackup02 node: IP address corresponding to the Workflow-PublicService-IP1 field
      • Management IP address of the backup proxy: IP address corresponding to the datamover_externalom_iplist field

      Default account: hcp. Default password: PXU9@ctuNov17!.

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

      The default password of user root is Cloud12#$.

      su root

    6. Run the following command to open the public key file:

      vi /opt/huawei-data-protection/ebackup/conf/cert/AdminNode.pub

    7. Delete the content in the file and write the public key of the backup manager or backup server obtained from 3 to the file.
    8. Log in to the backup manager or backup server node again and run the following command to restart the eBackup process:

      service hcp restart

Appendix

Logging In to the eBackup Server
Logging In to the Backup Manager or Backup Workflow Server
  1. Log in to the backup manager GUI using a browser.

    Login address: https://IP address corresponding to the Workflow-Management-Float-IP field:8088

    Default account: admin. Default password: Cloud12#$ for installation using HUAWEI CLOUD Stack Deploy, and PXU9@ctuNov17! for manual installation.

  2. On the navigation bar, choose Monitor > Server.

    The IP addresses of the backup manager and backup workflow server are displayed on the Server page.

    • The management plane IP address of the backup manager is Backup Management Plane IP Address corresponding to Backup Manager server (primary).
    • The management plane IP address of the backup workflow server (standby backup manager) is Backup Management Plane IP Address corresponding to Backup Manager server (standby).
    • The management plane IP address of the backup workflow server is Backup Management Plane IP Address corresponding to Backup Workflow Server.

  3. Use PuTTY to log in to the backup manager or backup workflow server using the management IP address obtained in Step 2.

    Default account: hcp. Default password: PXU9@ctuNov17!.

Logging In to the Backup Server or Backup Proxy
  1. Log in to the backup server GUI using a browser.

    Login address: https://IP address corresponding to the datamover_management_float_ip field:8088

    Default account: admin. Default password: Cloud12#$ for installation using HUAWEI CLOUD Stack Deploy, and PXU9@ctuNov17! for manual installation.

  2. On the navigation bar, choose Monitor > Server.

    The IP addresses of the backup server and backup proxy are displayed on the Server page.

    • The management plane IP address of the backup server is Backup Management Plane IP Address corresponding to Backup server (primary).
    • The management plane IP address of the backup proxy (standby backup server) is Backup Management Plane IP Address corresponding to Backup server (standby).
    • The management plane IP addresses of other backup proxies are Backup Management Plane IP Address corresponding to Backup Proxy.

  3. Use PuTTY to log in to the backup server or backup proxy using the management IP address obtained in Step 2.

    Default account: hcp. Default password: PXU9@ctuNov17!.

Translation
Download
Updated: 2019-06-14

Document ID: EDOC1100062366

Views: 771

Downloads: 9

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