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 FusionSphere OpenStack

Restoring FusionSphere OpenStack

This task describes how to restore the data of services on hosts in an AZ.

After an important operation, such as critical data modification, is performed, an exception may occur or the operation may not achieve the expected results. In this case, you can roll back the system. The rollback requires data restoration.

Scenarios

FusionSphere OpenStack backup and restoration restrictions are as follows:
  • If a server on a site is replaced by a new server, do not use the backup file of the replaced server to restore the data of the new server.
  • Do not use the backup file of one site to restore data of another site that has the same networking topology.
  • Do not encrypt the backup file.
  • Data restoration cannot be rolled back.
  • Backup data can be used for restoration only if the software version used during the restoration is the same as that used during the backup.
  • Data can be backed up only after FusionSphere OpenStack is installed and configured.
  • Service operations are not allowed during data restoration.
  • In Region Type I scenarios, users can restore data in the cascading and cascaded systems as required.

Prerequisites

  • A backup file meeting the specified requirements, such as the backup date requirement, is available in the local directory.
NOTE:

Before restoring data, you need to manually copy the backup file to the host to be restored. You can run the backup package-get --service all/servicename command to query the backup packages of all or specified services.

  • A PC is available to access the hosts in the AZ.
  • The system service is running properly.
  • You have obtained information about the data center administrator account.
  • You have obtained the passwords of users fsp and root.

Procedure

Query the local backup file.

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

    The default username and password are fsp and Huawei@CLOUD8, respectively.

    The system supports identity authentication using both the passwords and public-private key pairs. For details about login authentication using the public-private key pairs, see Using PuTTY to Log In to a Node in Key Pair Authentication Mode.

    NOTE:
    To obtain the IP address of the External OM plane, search for the required parameter on the Tool-generated IP Parameters sheet of the xxx_export_all.xlsm file exported from HUAWEI CLOUD Stack Deploy during software installation. The parameter names in different scenarios are as follows:
    • Region Type I scenario:

      Cascading system: Cascading-ExternalOM-Reverse-Proxy

      Cascaded system: Cascaded-ExternalOM-Reverse-Proxy

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

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

    su - root

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

  3. Run the TMOUT=0 command to disable user logout upon system timeout.
  4. Run the following command to enter the backup file directory:

    cd /opt/backup/backupfile/

  5. Run the following command to view the backup file in the directory:

    ll

  6. Check whether backup data that meets the restoration date and time requirements is available in the local directory.

    NOTE:

    If possible, use local backup data for restoration. Use backup data on the third-party backup server only when local backup data is unavailable.

Copy backup data from the third-party backup server.

  1. Use WinSCP to copy the backup file from the third-party backup server to the local PC.
  2. Use WinSCP to log in to the host to be restored using the IP address of the host.

    The default username and password are fsp and Huawei@CLOUD8, respectively.

    NOTE:

    Obtain the host IP address from the project LLD.

  3. Copy the backup file from the local PC to the required backup directory of the target service on the FusionSphere OpenStack node.

    The backup directory is /opt/backup/backupfile/Service name.

Restore the data.

NOTE:

The restoration takes about 30 minutes.

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

    The default username and password are fsp and Huawei@CLOUD8, respectively.

    The system supports identity authentication using both the passwords and public-private key pairs. For details about login authentication using the public-private key pairs, see Using PuTTY to Log In to a Node in Key Pair Authentication Mode.

    NOTE:
    To obtain the IP address of the External OM plane, search for the required parameter on the Tool-generated IP Parameters sheet of the xxx_export_all.xlsm file exported from HUAWEI CLOUD Stack Deploy during software installation. The parameter names in different scenarios are as follows:
    • Region Type I scenario:

      Cascading system: Cascading-ExternalOM-Reverse-Proxy

      Cascaded system: Cascaded-ExternalOM-Reverse-Proxy

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

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

    su - root

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

  3. Import environment variables. Enter 1 to select Keystone V3 authentication. Enter the password of user OS_USERNAME as prompted. (The default password is FusionSphere123.)

    source set_env

    Information similar to the following is displayed:

    please choose environment variable which you want to import: 
    (1) openstack environment variable (keystone v3) 
    (2) cps environment variable 
    (3) openstack environment variable legacy (keystone v2) 
    (4) openstack environment variable of cloud_admin (keystone v3) 
    please choose:[1|2|3|4] 

  4. Run the following command to view backup package information:

    backup package-get --service servicename

    Information similar to the following is displayed (CBS is used as an example):

    +---------+-----------------------------+--------------------------------------+ 
    | service | single service package list | all service package list             | 
    +---------+-----------------------------+--------------------------------------+ 
    | cbs     |                             | cbs-2015-04-21-09-30-51-1-all.tar.gz | 
    +---------+-----------------------------+--------------------------------------+

  5. Run the following command to restore the data: To ensure data consistency between all components, select all services when you perform the data restoration task.

    restore execute --service servicename --file Backup file name [--path Directory containing the backup file] [--force]

    The restoration service is an asynchronous service. During the restoration of a service, the service cannot be backed up again, and other services cannot be restored at the same time.

    For example, run the following command:

    restore execute --service cbs --file cbs-2015-04-21-09-30-51-1-all.tar.gz --path /opt/backup/backupfile/cbs
    • file: This parameter is mandatory. If only file is required, query backup packages in the default directory of the local PC. If backup packages cannot be found from the local PC, download the backup packages from the third-party backup server.
    • path: indicates the host directory specified by users. This parameter is optional. During the restoration, the specified backup packages are queried from only this directory.
    • force: indicates forcible restoration. This parameter is optional. During the restoration, the nodes for which the network or hardware is faulty are ignored. You are not advised to specify this parameter.
    NOTE:

    When you specify --force for forcible restoration, if GaussDB needs to be restored, run the cps host-list command to query the status of each node before the restoration. If any faulty node exists, log in to the faulty node using the management IP address of the node. If the faulty node cannot be logged in to, perform forcible restoration. If the faulty node can be logged in to, some services on the faulty node may access GaussDB. In this case, you cannot perform forcible restoration and need to contact technical support for assistance to restore the faulty node first.

Check the restoration progress.

  1. Run the following command to query the restoration progress:

    restore progress-get --service servicename [--detail]

    detail: If this parameter is specified, detailed information about each service instance is displayed.

    For example, run the following command to query the CBS restoration progress:

    restore progress-get --service cbs --detail

    Information similar to the following is displayed:

    TOTAL: 
    +---------+---------------------+---------------------+---------+----------+---------+ 
    | service | start time          | end time            | result  | progress | message | 
    +---------+---------------------+---------------------+---------+----------+---------+ 
    | cbs     | 2015-04-21 11:04:07 | 2015-04-21 11:04:43 | SUCCESS | 100%     |         | 
    +---------+---------------------+---------------------+---------+----------+---------+ 
    DETAIL: 
    +---------+--------------------------------------+---------+----------+-----------+ 
    | service | id                                   | result  | progress | errorcode | 
    +---------+--------------------------------------+---------+----------+-----------+ 
    | cbs     | AEC08E13-D21D-B211-82D2-000000821800 | SUCCESS | 100%     | 0         | 
    |         | F693DC13-D21D-B211-82D2-000000821800 | SUCCESS | 100%     | 0         | 
    +---------+--------------------------------------+---------+----------+-----------+
    NOTE:

    If the data fails to be restored, go to Step 14. If the data fails to be restored for three times, contact technical support for assistance.

    During GaussDB restoration, if Keystone is used for authentication, the query command will be unavailable for a while. This is normal. After GaussDB is restored, the progress query command can be used.

Start a system audit.

  1. Run the following command to perform a system audit:

    infocollect audit

    422FF336-2949-1219-07F1-6C7A454BF38A:/etc/sudoers.d # infocollect audit
    +--------------------------------------+-------------------------------------+
    | Hostname                             | Path                                |
    +--------------------------------------+-------------------------------------+
    | 422FF336-2949-1219-07F1-6C7A454BF38A | /var/log/audit/2018-03-13_035229-05 |
    +--------------------------------------+-------------------------------------+

  2. Log in to ManageOne Maintenance Portal using a browser.

    • URL: https://Address for accessing the homepage of ManageOne Maintenance Portal:31943, for example, https://oc.type.com:31943
    • Default username: admin; default password: Huawei12#$

  3. On ManageOne Maintenance Portal, choose Alarms > Current Alarms. Check whether audit alarms, such as VM, volume, snapshot, and image audit alarms, are reported.

Translation
Download
Updated: 2019-06-14

Document ID: EDOC1100062366

Views: 815

Downloads: 9

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