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

Write operation method of virtual machine block equipment and snapshot creation method and device

A technology for writing operations and devices, applied in the computer field

Active Publication Date: 2019-08-13
ALIBABA GRP HLDG LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, while virtual machine block devices support multi-client IO operations concurrently, it also brings time consistency problems when creating snapshots

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
  • Write operation method of virtual machine block equipment and snapshot creation method and device
  • Write operation method of virtual machine block equipment and snapshot creation method and device
  • Write operation method of virtual machine block equipment and snapshot creation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0129] Such as Figure 4 As shown, a method for writing a virtual machine block device may include:

[0130] Step 401, when receiving the indication information from the first service node indicating that a new snapshot has been created for the first sub-block, suspend the write operation for the first sub-block;

[0131] Step 402, query the second service node whether the new snapshot of the second sub-block has been created, so as to determine whether the snapshot of the current virtual machine block device has been created;

[0132] Step 403, when it is determined that the snapshot of the current virtual machine block device is created, resume the write operation for the first sub-block;

[0133] Wherein, the virtual machine block device may include at least two sub-blocks; the second sub-block is a preset snapshot synchronization point, the first sub-block is a non-snapshot synchronization point in the virtual machine block device and Any subblock that is being written. ...

Embodiment 2

[0174] Such as Figure 8 As shown, a method for creating a snapshot of a virtual machine block device, including:

[0175] Step 801, receiving a snapshot creation request for the block device of the current virtual machine from the control client;

[0176] Step 802: Initiate a request to create sub-block snapshots to the service nodes of all sub-blocks except the second sub-block of the current virtual machine block device, so that the service nodes of all sub-blocks except the second sub-block are corresponding sub-blocks Create a new snapshot;

[0177] Step 803: After confirming that the new snapshots of all sub-blocks except the second sub-block are successfully created, send a request to the second service node to create a sub-block snapshot, so that the second service node can create a snapshot for the second sub-block. said new snapshot;

[0178] Wherein, the second sub-block is a preset snapshot synchronization point, and the first sub-block is any sub-block in the v...

Embodiment 3

[0246] Such as Figure 12 As shown, a method for creating a snapshot of a virtual machine block device, including:

[0247] Step 1201: Create a new snapshot for the first sub-block of the virtual machine device according to the request for creating a sub-block snapshot initiated by the master node, and update the snapshot version information of the first sub-block;

[0248] Step 1202, providing indication information indicating that a new snapshot has been created for the first sub-block to the read-write client, so that the client suspends the write operation on the first sub-block;

[0249] Wherein, the virtual machine block device may include at least two sub-blocks; the second sub-block is a preset snapshot synchronization point, the first sub-block is a non-snapshot synchronization point in the virtual machine block device and Any subblock that is being written.

[0250] In this embodiment, the providing the read-write client with indication information indicating that ...

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 write operation method of virtual machine block equipment and a snapshot creation method and device. The virtual machine block equipment at least comprises more than two sub-blocks. The write operation method comprises the following steps: when indication information indicating that a first sub-block creates a new snapshot from a first service node is received, suspendinga write operation for the first sub-block; inquiring whether the new snapshot of the second sub-block is created completely or not to the second service node so as to determine whether the snapshot of the current virtual machine block equipment is created completely or not; when it is determined that snapshot creation of the current virtual machine block device is completed, recovering a write operation for the first sub-block; wherein the virtual machine block device at least comprises more than two sub-blocks; wherein the second sub-block is a preset snapshot synchronization point, and thefirst sub-block is any sub-block which is not the snapshot synchronization point in the virtual machine block device and is performing a write operation. According to the method and the device, distributed snapshots of virtual machine block equipment segmented into a plurality of sub-blocks can meet the time consistency.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a writing operation method of a virtual machine block device, a method and a device for creating a snapshot. Background technique [0002] Today's Internet applications have higher and higher requirements for the read and write (IO) performance, stability and availability of virtual machine block devices in distributed file systems. [0003] However, while virtual machine block devices support concurrent multi-client IO operations, it also brings about time consistency issues when creating snapshots. In other words, for virtual machine block devices that support concurrent multi-client IO operations, how to ensure that snapshots meet time consistency when creating snapshots for virtual machine block devices during multi-client write operations is an urgent technical problem to be solved. Contents of the invention [0004] The present application aims to solve at least one of...

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): G06F16/182G06F16/18G06F16/11
CPCG06F16/128G06F16/1873G06F16/182
Inventor 彭海林佘海斌石超
Owner ALIBABA GRP HLDG 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