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 DMK Data

Restoring DMK Data

Background

Data must be restored during system rollback. You need to roll back the system if any of the following failures occurs:

  • After an important operation, such as upgrade or critical data modification, is performed for a system component, an exception may occur or the operation may fail to achieve the expected results.
  • The disks or OSs of both the active and standby DMK nodes are faulty, and the node data is lost.
  • Data is corrupted due to misoperations.

Prerequisites

  • A PC that can communicate with the DMK nodes is available.
  • The floating IP address, management IP addresses of the active and standby DMK nodes, and passwords of user dmk and user root are available.
  • An application, such as PuTTY, which can be used for remote access on various platforms, is available.
  • A file transfer tool, such as WinSCP, is available.

Procedure

Obtain the required backup file.

  1. Log in to the OM-SRV01 node using PuTTY.

    Default username: dmk

    NOTE:
    • If HUAWEI CLOUD Stack 6.5.0 is upgraded from an earlier version, the default password of username dmk is Cloud12#$.
    • If HUAWEI CLOUD Stack 6.5.0 is newly installed, the default password of username dmk is cnp200@HW.

  2. Run the following command to make the environmental variables take effect:

    source /etc/profile

  3. Run the following command to check the HA status:

    haStatus

    • If the OM-SRV01 node is in the active state, go to Step 4.
    • If the OM-SRV01 node is in the standby state, go to Step 1 again to log in to the OM-SRV02 node.
    Figure 2-10 HA status

  4. Run the following command to disable user logout upon system timeout:

    TMOUT=0

  1. Run the following commands to check the backup files in the backup file storage directories:

    ll /pkg_repo/backup/manual -tr

    ll /pkg_repo/backup/auto -tr

  2. Based on the command output in Step 5, check whether the required backup file is available on the current node.

    • If yes, go to Step 9 to restore the data.
    • If no, go to Step 7.

  1. Run the bkDownload command to download the backup file from the third-party backup server. The detailed commands are as follows:

    Table 2-4 Parameters for downloading the backup file from the third-party backup server

    Command

    Description

    bkDownload

    Download the latest file that is automatically backed up.

    bkDownload -m a

    Download the latest file that is automatically backed up.

    bkDownload -m m

    Download the latest file that is manually backed up.

    bkDownload -m a -t 2016-08-14 02:00

    Download the latest file that is automatically backed up before or at the specified time.

    bkDownload -m m -t 2016-08-14 02:00

    Download the latest file that is manually backed up before or at the specified time.

    NOTE:

    The downloaded backup file is stored in the /pkg_repo/backup/download directory by default.

Restore the data.

  1. Log in to the OM-SRV01 node using PuTTY.

    Default username: dmk

    NOTE:
    • If HUAWEI CLOUD Stack 6.5.0 is upgraded from an earlier version, the default password of username dmk is Cloud12#$.
    • If HUAWEI CLOUD Stack 6.5.0 is newly installed, the default password of username dmk is cnp200@HW.

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

    sudo su - root

  2. Run the following command to make the environmental variables take effect:

    source /etc/profile

  3. Run the following command to stop the DMK service:

    haStopAll -a

    The DMK service is stopped if the following information is displayed:

    stop ha successful

  4. Repeat Step 8 to Step 11 to stop the DMK service of the OM-SRV02 node.
  1. Run the following command to switch to user dmk:

    su - dmk

  2. Run the following command on the node storing the backup file to restore the data:

    bkRestore -f Relative or absolute path under which the backup file is stored

Verify the result.

  1. The DMK data is restored if the following information is displayed:

    Restore data successfully.

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

    exit

  3. Run the following command to make the environmental variables take effect:

    source /etc/profile

  4. Run the following command to start DMK node HA service:

    haStartAll -a

    The HA service is enabled if the following information is displayed:

    start ha successful

  5. Run the following command to check the HA status of the node:

    haStatus

  6. Run the following command on the OM-SRV02 node to start the HA service:

    haStartAll -a

Translation
Download
Updated: 2019-06-14

Document ID: EDOC1100062366

Views: 780

Downloads: 9

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