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

Snapshot chain manufacturing method and device, electronic equipment and storage medium

A snapshot chain and snapshot technology, applied in program control device, program control design, error detection of redundant data in operation, etc., can solve problems such as time-consuming, time-consuming operation process, and not necessarily successful, and achieve weakening The effect of strong dependencies, improved completeness and correctness, and reduced timeout and error problems

Pending Publication Date: 2021-05-28
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When implementing the above two operations, it is necessary to download all the data on the snapshot chain to the local physical machine. When there is too much data, there is a risk of filling up the disk of the physical machine; when the snapshot chain is too long, because the data blocks that need to be downloaded Too much and it's time consuming
Moreover, if a snapshot is leaked during the production process, the integrity of the entire snapshot chain will be destroyed. Even if it takes time, the disk data may not be correct, that is, it may not be possible to restore to the moment when the snapshot was taken.
[0003] Using the existing snapshot chain business design, the snapshots on the snapshot chain are strongly dependent on each other. When the snapshot chain is too long, the integrity and correctness of the snapshot cannot be guaranteed; when creating a mirror or rolling back a snapshot through a snapshot During the operation, there will be a phenomenon that the operation process takes too long, and there is a risk that it may not be successful in the end; because the security of the virtual machine data on the local system disk is currently the main reliable means to back up by creating a snapshot, therefore, if The snapshot chain is incomplete. When the physical machine fails, the data in the virtual machine system disk will be at risk of loss.

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
  • Snapshot chain manufacturing method and device, electronic equipment and storage medium
  • Snapshot chain manufacturing method and device, electronic equipment and storage medium
  • Snapshot chain manufacturing method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] figure 1 It is a schematic flow chart of the first snapshot chain production method provided by the embodiment of the present application. The method can be executed by a snapshot chain production device or electronic equipment, and the device or electronic equipment can be implemented by software and / or hardware. The device or electronic equipment can be integrated in any intelligent equipment with network communication function. like figure 1 As shown, the method for making a snapshot chain may include the following steps:

[0030] S101. Receive a current instruction for making a virtual machine snapshot.

[0031] In this step, the electronic device may receive a current instruction for making a snapshot of the virtual machine. A disk snapshot is a point-in-time copy of a virtual machine's disk files. At present, the snapshot files of the virtual machines running online are usually created regularly, so that when the virtual machines running online are abnormal, t...

Embodiment 2

[0039] figure 2 It is a second schematic flowchart of the method for making a snapshot chain provided in the embodiment of the present application. Further optimization and expansion based on the above technical solution, and may be combined with each of the above optional implementation modes. like figure 2 As shown, the method for making a snapshot chain may include the following steps:

[0040] S201. Receive a current instruction for making a virtual machine snapshot.

[0041] S202. In response to the current instruction of making a snapshot of the virtual machine, save the incremental data of the current system disk of the virtual machine at the current moment to the storage service component; and use the incremental data of the current system disk at the current moment as the increment The snapshot is saved.

[0042] S203. Obtain the snapshot chain corresponding to the storage service component at the current moment based on the pre-saved snapshot chain and incremen...

Embodiment 3

[0056] Figure 4 It is a schematic structural diagram of the snapshot chain creation device provided by the embodiment of the present application. like Figure 4 As shown, the device 400 includes: a receiving module 401, a saving module 402 and a making module 403; wherein,

[0057] The receiving module 401 is configured to receive a current instruction for making a virtual machine snapshot;

[0058] The saving module 402 is configured to save the incremental data of the current system disk of the virtual machine at the current moment to the storage service component in response to the current instruction of making a snapshot of the virtual machine; and store the current system disk in The incremental data at the current moment is saved as an incremental snapshot;

[0059] The making module 403 is configured to obtain the snapshot chain corresponding to the storage service component at the current time based on the pre-saved snapshot chain corresponding to the storage servi...

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 discloses a snapshot chain manufacturing method and device, electronic equipment and a storage medium, and relates to the virtual machine technology. According to the specific scheme, the method comprises the steps of receiving a current instruction for making a virtual machine snapshot; in response to the instruction, storing incremental data of a current system disk of the virtual machine at the current moment into a storage service component; storing the incremental data as an incremental snapshot; based on the corresponding snapshot chain and the incremental snapshot of the storage service component at the previous moment, obtaining a corresponding snapshot chain of the storage service component at the current moment; if the number of the incremental snapshots at the current moment is smaller than a preset value, repeatedly executing the operation until the number of the incremental snapshots at the current moment is equal to the preset value. According to the embodiment of the invention, the strong dependency relationship between the snapshots on the snapshot chain can be greatly weakened, so that the integrity and correctness of the snapshot chain can be greatly improved, and various overtime and error problems which frequently occur due to an overlong link are reduced.

Description

technical field [0001] The present disclosure relates to the field of computer technology, further relates to virtual machine technology, and in particular to a method, device, electronic device and storage medium for making a snapshot chain. Background technique [0002] In the prior art, the operation process of making a snapshot chain is: first download each snapshot data on the snapshot chain stored on the storage service component (Bos) to the local, and then establish a snapshot chain through the qemu-img rebase operation; The operation process of rolling is: perform the qemu-img commit operation in reverse order on the snapshot data on the snapshot chain, submit and compress these data into a disk data new-disk, and create a new virtual disk by performing the qemu-img convert operation on the new-disk Machine image, start the virtual machine based on new-disk, and the snapshot rollback operation can be realized. When implementing the above two operations, it is neces...

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/455G06F8/61G06F11/14
CPCG06F9/45558G06F8/63G06F11/1438G06F2009/45562G06F2009/45587
Inventor 贾红
Owner BEIJING BAIDU NETCOM SCI & 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