OpenStack Temporary storage back end

Source: Internet
Author: User

Statement:

this blog Welcome to forward. But please keep the original author information !

Blog Address: Http://blog.csdn.net/halcyonbaby

The content of my study, research and summary, if there is similar, it is honored!


OpenStack now offers RAW,QCOW2,LVM,RBD four types of image back end.
The so-called back end, that is, image/temporary volume root Disk Management storage mode.

You can see that the image is cached as base on compute, the disk that creates the virtual machine as base, and the disks of multiple virtual machines may share the same base.


nova/virt/libvirt/imagebackend.py:
There are four RAW,QCOW2,LVM,RBD in four classes. All inherit the image class. Create_image methods and Snapshot_extract methods are mainly provided.
The image parent class provides the cache method. The Create_image method is called.
The cache method provides the image folder creation, calls the Create_image method to create an image, and completes the preallocate (implemented through Fallocate).
The Create_image method provides an image download with the ability to create backing_image, depending on the backend type.


The backend class mainly provides Raw,qcow2, LVM, RBD object generation capabilities.



Call flow for the cache method:

Cache method "------_create_image Method"------------------(Rescue/finish_migration/spawn)
Cache method "------_create_images_and_backing Method"-----(hard_reboot/pre_livemigration)

Configuration items:

The images_type is used to configure the default image storage management mode. Can be set to four kinds of random one.
The volume_clear is used to define how the temporary volume is deleted (various security removal policies).
Volume_clear_size the size of the shred corrupted data will be deleted.

Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.

OpenStack Temporary storage back end

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.