Restore Volume Operations-5 minutes a day to play with OpenStack (60)

Source: Internet
Author: User

Before we backup voluem, today we will discuss how to restore volume.

The restore process is really simple, two steps away:

    1. Create a blank volume on the storage node.

    2. Copy the backup data to a blank voluem.

Let's look at the detailed process of the restore operation:

    1. send backup request to Cinder-api

    2. li>

      CINDER-API send message

    3. Span style= "font-family: ' Microsoft Yahei '; font-size:16px; " > Cinder-scheduler Select the most appropriate cinder-volume

    4. Cinder-volume Create a blank volume

    5. Cinder-backup Copy the backup data to a blank volume

Let's look at the 1th step first.

send a restore request to Cinder-api

The customer (which can be an OpenStack end user, or another program) sends a request to CINDER-API: "Restore the specified backup." Here we will restore the previously created backup.

Currently, restore can only be performed in the CLI.

Cinder-api received a restore request. The log file is in/opt/stack/logs/c-api.log.

Here you see CINDER-API forwarding request, creating volume for restore. Cinder-scheduler and Cinder-volume will then create a blank volume, which, like the create volume, does not repeat.

Next, analyze the process of data recovery. First, you can see the relevant information in the CINDER-API log.

Note here that the volume_id and backup_id in the log are consistent with the output from the previous Backup-restore command.

Let's look at how Cinder-backup recovers data.

Cinder-backup performing a restore operation

The log is/opt/stack/logs/c-vol.log.

  1. Start the restore operation, Mount NFS.

  2. Read the metadata in the container directory.

  3. Unzip the data and write it into the volume.

  4. Restore the volume metadata and complete the restore operation.

At this point, you can already see the volume created by restore in the GUI.


This is the volume restore analysis, the next section we discuss how to use volume as the instance Startup disk.

Restore Volume Operations-5 minutes a day to play with OpenStack (60)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.