Snapshot Instance Operation Details-5 minutes a day to play OpenStack (36)

Source: Internet
Author: User

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665221266018825.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665376649031080.jpg "style=" border:0px;float:none; "/>

In this section we discuss instance snapshot operations in detail through the logs.

Sometimes the operating system is badly damaged and cannot be repaired by Rescue operation, so we have to consider restoring it through backup. Of course, if we had done a backup of instance before.

The Nova backup operation is called Snapshot, which works by making a full backup of the instance image file (System disk), generating an image of type Snapshot, and then saving it to Glance.

The operation restored from backup is called Rebuild, which is discussed in the next section.

Here is the flowchart of snapshot instance

650 "this.width=650;" title= "/HTTP// 7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20160519-1463665221058075987.png "src=" http// 7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20160519-1463665376908062417.jpg "style=" border:0px; White-space:normal;float:none; "/>

    1. Send a request to NOVA-API

    2. Nova-api sending messages

    3. Nova-compute Performing actions

Let's discuss each step in detail below.

send a request to Nova-api

The customer (which can be an OpenStack end user or another program) sends a request to the API (NOVA-API): "Take a snapshot of this Instance"

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665221366063299.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665377153085665.jpg "style=" border:0px;white-space:normal;float:none; "/>

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665221443036295.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665377543066396.jpg "style=" border:0px;white-space:normal;float:none; "/>

View Log/opt/stack/logs/n-api.log

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665221523007447.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665377687062652.jpg "style=" border:0px;white-space:normal;float:none; "/>

Nova-api sending Messages

Nova-api sent a message to Messaging (RabbitMQ): "Take a snapshot of this Instance" source code in/opt/stack/nova/nova/compute/api.py, by snapshot.

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665221674075987.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665377866000874.jpg "style=" border:0px;white-space:normal;float:none; "/>

Nova-compute Performing Actions

View Log/opt/stack/logs/n-cpu.log

Pause instance

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665221702065630.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665378077093006.jpg "style=" border:0px;white-space:normal;float:none; "/>

Take a snapshot of the instance image file

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665221633043734.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665378250035103.jpg "style=" border:0px;font-family: ' Microsoft ya black '; white-space:normal; Float:none; "/>

Recovery instance

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665221768089348.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665378389001899.jpg "style=" border:0px;white-space:normal;float:none; "/>

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665221773097531.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665378570031801.jpg "style=" border:0px;float:none; "/>

Uploading snapshots to Glance

650 "this.width=650;" title= "/HTTP// 7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20160519-1463665221801017540.png "src=" http// 7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20160519-1463665379810019140.jpg "style=" border:0px; White-space:normal;float:none; "/>

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665221849004007.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665379946005376.jpg "style=" border:0px;white-space:normal;float:none; "/>

Snapshot successfully saved in Glance

650 "this.width=650;" title= "/HTTP// 7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20160519-1463665221868019452.png "src=" http// 7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20160519-1463665380133024139.jpg "style=" border:0px; White-space:normal;float:none; "/>

instance backup was successful and we discussed how to recover through snapshot in the next section.


650) this.width=650; "title=" "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160519-1463665380378009882.jpg "style=" Border:0px;vertical-align:middle;color:rgb ( 63,63,63); font-family: ' Microsoft Yahei '; Font-size:15px;line-height:21.75px;text-align:justify;background-color: RGB (246,246,246); "/>

Snapshot Instance Operation Details-5 minutes a day to play OpenStack (36)

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.