Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Virtual machine online snapshot generating and deleting method

A deletion method and virtual machine technology, applied in the field of cloud computing, can solve the problems of long recovery time, affecting the normal operation of the business system on the virtual machine, and long time required to achieve the effect of less resource consumption

Inactive Publication Date: 2015-02-25
G CLOUD TECH
View PDF5 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] 1. During the snapshot process, the virtual machine needs to be shut down, which affects the normal operation of the business system on the virtual machine;
[0008] 2. It takes a long time to copy a complete virtual machine instance image file, and it also takes a long time to restore;
[0009] 3. The storage space occupied by the virtual machine snapshot file is large

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Virtual machine online snapshot generating and deleting method
  • Virtual machine online snapshot generating and deleting method
  • Virtual machine online snapshot generating and deleting method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] Such as figure 1 As shown, the present invention is specifically described below in the form of a logical volume lv as a disk file of a virtual machine, first creating a virtual machine:

[0047] #lvcreate -L 20G -n lv_xen vg_infortrend

[0048] #dd if= / root / win2008-R2-64bit-20G-original.vhd of= / dev / vg_infortrend / lv_xenbs=5M

[0049] #lvcreate -L 20G -n lv_xen_snap3 vg_infortrend

[0050] #vhd-util snapshot -n / dev / vg_infortrend / lv_xen_snap3 -p / dev / vg_infortrend / lv_xen

[0051] In the above, inject the virtual machine image file win2008-R2-64bit-20G-original.vhd into the logical volume lv_xen, create an external snapshot of lv_xen to the new logical volume lv_xen_snap3, and use it to start the virtual machine.

[0052] The online snapshot process of a virtual machine is as follows:

[0053] (1) Suspend virtual machine backend IO read and write

[0054] #tap-ctl list / / View virtual machine Blktap information

[0055]

[0056] #tap-ctl pause-m 0-p 432 / / Pause ta...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a virtual machine online snapshot generating and deleting method. According to the virtual machine online snapshot generating and deleting method, in the online snapshot generating process, virtual machine rear-end IO reading is firstly paused, then the name and size of a disk snapshot file are modified, a snapshot file is established, a virtual machine snapshot is established, and finally the virtual machine rear-end IO reading is restored; in the snapshot deleting process, firstly it is judged that the deleted snapshot is provided with a sub-node or not, the snapshot without the sub-node is directly physically deleted, it is further judged that each snapshot with node is provided with only one sub-node or not, only logic deletion and recording can be firstly performed if the snapshot is not provided with only one sub-node, the virtual machine rear-end IO reading is required to be paused if the snapshot is provided with only one sub-node, then snapshot merging and father node redefining operation are performed, the snapshot is physically deleted, and finally the virtual machine rear-end IO reading is restored. The virtual machine online snapshot generating and deleting method solves the problems of long-time virtual machine shutdown and backup, long-time service interruption and the like and can be used for virtual machine online snap-shooting.

Description

technical field [0001] The invention relates to the technical field of cloud computing, in particular to a method for generating and deleting an online snapshot of a virtual machine. Background technique [0002] In the cloud computing platform, the backup and recovery mechanism is essential. The use of this redundant storage method facilitates the restoration of the state of the virtual machine to a certain backup time point after the crash, and the backup of the virtual machine at a certain point in time called a snapshot. Commonly used snapshot method steps are as follows: [0003] 1. Shut down the virtual machine; [0004] 2. Make a copy of the image file of the virtual machine instance as a snapshot file; [0005] 3. Restart the virtual machine; [0006] The implementation of the above method is the simplest, but there may be the following disadvantages: [0007] 1. The virtual machine needs to be shut down during the snapshot process, which affects the normal oper...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/455G06F11/14
Inventor 熊梦杨松莫展鹏季统凯
Owner G CLOUD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products