Unlock instant, AI-driven research and patent intelligence for your innovation.

A method, device and system for restoring virtual disk metadata

A technology of virtual disk and metadata, applied in the computer field, can solve the problem of virtual machine not being able to start

Active Publication Date: 2018-04-27
HUAWEI TECH CO LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the current common disk mirroring technology, the virtual machine running on the local computer will copy the metadata updated with the change of data reading and writing from the memory to the remote virtual disk device, based on the existing virtual disk metadata processing method , when the metadata verification fails when the virtual machine is restarted, the virtual machine cannot be started

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, device and system for restoring virtual disk metadata
  • A method, device and system for restoring virtual disk metadata
  • A method, device and system for restoring virtual disk metadata

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] The embodiment of the present invention provides a method for processing virtual disk metadata, and the method is applied to a server based on an extended storage device. Run at least one virtual machine on the server, and expand the storage device to provide virtual disks for the virtual machine running on the server, such as figure 1 As shown, the method includes:

[0043] 101. A first virtual machine in at least one virtual machine sends a write request to a virtual disk mounted by the first virtual machine.

[0044] 102. The first virtual machine updates the metadata of the virtual disk mounted by the first virtual machine according to the write request.

[0045] 103. The first virtual machine synchronizes the updated metadata to the local disk of the server.

[0046] One or more virtual machines are running on the server. The data read and write of the virtual machine is mapped to the remote extended storage device, that is, the extended storage device provides the virtua...

Embodiment 2

[0049] The embodiment of the present invention provides a method for processing virtual disk metadata. The specific steps are as follows figure 2 As shown, the method is applied to a server based on an extended storage device, the server such as image 3 Shown. The method includes:

[0050] 201. A first virtual machine in at least one virtual machine sends a write request to a virtual disk mounted by the first virtual machine.

[0051] 202. The first virtual machine updates the metadata of the virtual disk mounted by the first virtual machine according to the write request.

[0052] 203. The first virtual machine synchronizes the updated metadata to the local disk of the server.

[0053] One or more virtual machines are running on the server. The data read and write of the virtual machine is mapped to the remote extended storage device, that is, the extended storage device provides the virtual disk for the virtual machine. Specifically, the extended storage device may be a network-...

Embodiment 3

[0068] The embodiment of the present invention provides a server based on an extended storage device, at least one virtual machine runs on the server, and the extended storage device provides a virtual disk for the at least one virtual machine, such as Figure 4 As shown, the server 41 includes a sending unit 411, an updating unit 412, and a synchronization unit 413. The sending unit 411 is configured to send a write request to the first virtual disk; the updating unit 412 is configured to update the metadata of the first virtual disk according to the write request; the synchronization unit 413 is configured to synchronize the updated Metadata to the local disk of the server; wherein, the first virtual disk is a virtual disk mounted by the first virtual machine.

[0069] The server 41 in the embodiment of the present invention further includes a reading unit 414, configured to read the metadata of the first virtual disk from the local disk of the server 41 when the first virtual ...

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 embodiment of the invention discloses a method, device and system for processing metadata of a virtual disk, relating to the field of computers, capable of realizing reliable preservation of metadata and improving the success rate of restarting a virtual machine. A method for processing metadata of a virtual disk, the method is applied to a server based on an extended storage device, the server runs at least one virtual machine, and the extended storage device provides a virtual disk for the at least one virtual machine; The method includes: a first virtual machine of the at least one virtual machine sends a write request to a virtual disk mounted on the first virtual machine; and the first virtual machine updates the first virtual disk according to the write request. The metadata of the virtual disk mounted by the virtual machine; the first virtual machine synchronizes the updated metadata to the local disk of the server. The invention is mainly used for metadata processing of virtual disks.

Description

Technical field [0001] The present invention relates to the field of computers, and in particular to a method, device and system for restoring metadata of a virtual disk device. Background technique [0002] Virtual Machine (VM) is one or more virtualized computer systems divided on the local computer. Virtual Disk (VD) is a remote disk virtualized in an external storage device. Its function Similar to the hard disk of the local computer, the virtual machine located on the local computer can perform read and write operations by accessing the remote virtual disk device. There is usually a metadata (Data Block, DB) area in the virtual disk device for storing metadata. Metadata is also called data data, used to provide descriptions of various aspects of data, such as the creation time, size, and modification status of the data. In a virtual disk device, metadata can be used to describe information such as the creation time, creation program, and capacity of the virtual disk corres...

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 Patents(China)
IPC IPC(8): G06F11/14G06F9/455
Inventor 李百青胡琪琪张波
Owner HUAWEI TECH CO LTD