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

A method and device for deleting a snapshot disk of a virtual machine

A virtual machine and virtual machine management technology, applied to program control devices, error detection of redundant data in computing, generation of response errors, etc., can solve the problem of failure to delete snapshots, huge snapshot disk space, snapshot disks, etc. Problems such as data merging errors, etc., to achieve the effect of not being prone to errors and interruptions, and saving space

Inactive Publication Date: 2019-02-12
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The snapshot of the virtual machine saves the state of the virtual machine at a specified point in time. By using the snapshot, the virtual machine can be restored to a previous state, but the disk space occupied by the snapshot (referred to as the snapshot disk) is very huge. Therefore, it is necessary to manage the snapshot disk in a timely manner and delete the snapshot disk according to the needs of the user. However, when deleting the snapshot disk, the snapshot may fail to be deleted. If the deletion fails, it will cause various problems such as errors in the data merge of the snapshot disk in the snapshot manager. , so there is a need for a method that can control the process of deleting snapshot disks

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
  • A method and device for deleting a snapshot disk of a virtual machine
  • A method and device for deleting a snapshot disk of a virtual machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

[0039] The steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0040] On the one hand, the embodiment of the present invention provides a method for deleting a snapshot disk of a virtual machine, such as figure 1 As shown, the method includes step S101-step S109.

[0041] Step S101, when receiving an instruction to ...

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

A method and device for deleting a snapshot disk of a virtual machine is disclosed. The method comprises the following steps of when receiving an instruction to delete a first snapshot disk, judging whether the remaining space of a storage pool where a second snapshot disk adjacent to the first snapshot disk is located is not less than the space occupied by the first snapshot disk; if not, determining whether there is a storage pool having a second snapshot disk backup condition among all the storage pools that can be used by the virtual machine system for managing the virtual machine, and ifyes, backing up the second snapshot disk to a third snapshot disk; after backing up the second snapshot disk, merging the first snapshot disk into the second snapshot disk, and judging whether the merging is successful or not; if not, recovering the second snapshot disk by using a 32-bit snapshot disk rollback; and if yes, deleting the first and third snapshots. In this manner, it is ensured thatthe process of deleting the first snapshot disk is not prone to errors and interruptions, and that the second snapshot disk can be restored if the merging of the first snapshot disk fails.

Description

technical field [0001] The invention relates to the field of virtual machines, in particular to a method and device for deleting a snapshot disk of a virtual machine. Background technique [0002] The snapshot of the virtual machine saves the state of the virtual machine at a specified point in time. By using the snapshot, the virtual machine can be restored to a previous state, but the disk space occupied by the snapshot (referred to as the snapshot disk) is very huge. Therefore, it is necessary to manage the snapshot disk in a timely manner and delete the snapshot disk according to the needs of the user. However, when deleting the snapshot disk, the snapshot may fail to be deleted. If the deletion fails, it will cause various problems such as errors in the data merge of the snapshot disk in the snapshot manager. , so a method capable of controlling the process of deleting the snapshot disk is needed. Contents of the invention [0003] In order to solve the above technic...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/455G06F11/14
CPCG06F9/45558G06F11/1469G06F11/1471G06F2009/45562
Inventor 徐国振
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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