[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103838639A - Method, device and system for recovering metadata of virtual disk - Google Patents

Method, device and system for recovering metadata of virtual disk Download PDF

Info

Publication number
CN103838639A
CN103838639A CN201210482711.8A CN201210482711A CN103838639A CN 103838639 A CN103838639 A CN 103838639A CN 201210482711 A CN201210482711 A CN 201210482711A CN 103838639 A CN103838639 A CN 103838639A
Authority
CN
China
Prior art keywords
virtual machine
disk
virtual
metadata
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210482711.8A
Other languages
Chinese (zh)
Other versions
CN103838639B (en
Inventor
李百青
胡琪琪
张波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210482711.8A priority Critical patent/CN103838639B/en
Publication of CN103838639A publication Critical patent/CN103838639A/en
Application granted granted Critical
Publication of CN103838639B publication Critical patent/CN103838639B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a method, device and system for process metadata of a virtual disk and relates to the field of computers. By the adoption of the method, device and system for processing the metadata of the virtual disk, reliable storage of the metadata can be achieved, and the success rate of restarting of a virtual machine can be improved. The method for processing the metadata of the virtual disk can be applied to a server based on an extended storage device. At least one virtual machine operates on the server. The extended storage device provides the virtual disk for the virtual machine. The method comprises the steps that the first virtual machine sends a writing request to the virtual disk mounted by the first virtual machine; the first virtual machine updates the metadata of the virtual disk mounted by the first virtual machine according to the writing request; the first virtual machine synchronizes the updated metadata into a local disk of the server. The method, device and system for processing the metadata of the virtual disk are mainly used for processing the metadata of the virtual disk.

Description

A kind of method, Apparatus and system that recovers virtual disk metadata
Technical field
The present invention relates to computer realm, relate in particular to a kind of method, Apparatus and system that recovers virtual disk device metadata.
Background technology
Virtual machine (Virtual Machine, VM) be on local computer, to divide one or more virtualized computer system out, virtual disk (Virtual Disk, VD) be a virtual remote disk out in external storage, the hard disk of its function and local computer is similar, and the virtual machine being positioned on local computer can carry out read-write operation by the virtual disk equipment of access far-end.In virtual disk equipment, conventionally there is a metadata (Data Block, DB) region for depositing specially metadata.Metadata is also referred to as the data of data, provides a description, as the creation-time of data, size and amendment situation etc. for the information of the many aspects to data.In virtual disk equipment, metadata can be used for describing the information such as creation-time, creation procedure and the capacity of the virtual disk corresponding with local virtual machine.
In at present common disk mirroring, the virtual machine moving on local computer, the metadata changing with reading and writing data and upgrade can be copied to from internal memory to the virtual disk equipment of far-end, based on existing virtual disk metadata processing mode, while carrying out metadata verification failure when virtual machine is restarted, virtual machine cannot start.
Summary of the invention
Embodiments of the invention provide a kind of methods, devices and systems that recover virtual disk metadata, can realize the reliable preservation of metadata, improve the success ratio that virtual machine is restarted.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect present invention provides a kind of disposal route of virtual disk metadata, described method is applied to the server based on expanding storage apparatus, on described server, move at least one virtual machine, described expanding storage apparatus provides virtual disk for described at least one virtual machine; Described method comprises:
The first virtual machine in described at least one virtual machine sends write request to the virtual disk of described the first virtual machine carry;
Described the first virtual machine upgrades the metadata of the virtual disk of described the first virtual machine carry according to described write request;
Metadata after the synchronous described renewal of described the first virtual machine is to the local disk of described server.
In the possible implementation of the first of first aspect, described method, also comprise: read the metadata of virtual disk of described the first virtual machine carry from the local disk of described server before, receive the virtual disk metadata verification failed message of the described first virtual machine carry of the virtual disk transmission of described the first virtual machine carry.
In conjunction with the possible implementation of the first of first aspect, in the possible implementation of the second, described method also comprises: read the metadata of virtual disk of described the first virtual machine carry from the local disk of described server before, receive the virtual disk metadata verification failed message of the described first virtual machine carry of the virtual disk transmission of described the first virtual machine carry.
In conjunction with the possible implementation of the second of first aspect, in the third possible implementation, described method also comprises: also comprise: in the time that described the first virtual machine is restarted, read the metadata of the virtual disk of described the first virtual machine carry from the local disk of described server, and send the metadata of the virtual disk of the first virtual machine carry of the local disk storage of described server to the virtual disk of described the first virtual machine carry.
In conjunction with the possible implementation of the first of first aspect or first aspect to any one implementation in the third possible implementation, in the 4th kind of possible implementation, described method also comprises: in the time that described the first virtual machine is restarted, read the metadata of the virtual disk of described the first virtual machine carry from the local disk of described server, and send the metadata of the virtual disk of the first virtual machine carry of the local disk storage of described server to the virtual disk of described the first virtual machine carry.
Second aspect present invention provides a kind of server based on expanding storage apparatus, moves at least one virtual machine on described server, and described expanding storage apparatus provides virtual disk for described at least one virtual machine; Described server is for processing virtual disk metadata, described server comprises central processing unit and storer, in the time of described server operation, described central processing unit is carried out the computer instruction of described memory stores, make described server carry out following virtual disk metadata processing method, comprising:
The first virtual machine in described at least one virtual machine sends write request to the virtual disk of described the first virtual machine carry;
Described the first virtual machine upgrades the metadata of the virtual disk of described the first virtual machine carry according to described write request;
Metadata after the synchronous described renewal of described the first virtual machine is to the local disk of described server.
In the possible implementation of the first of second aspect, in the time that described the first virtual machine is restarted, the local disk of described server provides the metadata of the virtual disk of described the first virtual machine carry.
In conjunction with the possible implementation of the first of second aspect, in the possible implementation of the second, also comprise: before the local disk of described server provides the metadata of virtual disk of described the first virtual machine carry, receive the virtual disk metadata verification failed message of the described first virtual machine carry of the virtual disk transmission of described the first virtual machine carry.
In conjunction with the possible implementation of the second of second aspect, in the third possible implementation, in the time that described the first virtual machine is restarted, the local disk of described server provides the metadata of the virtual disk of described the first virtual machine carry, and sends the metadata of the virtual disk of the first virtual machine carry of the local disk storage of described server to the virtual disk of described the first virtual machine carry.
In conjunction with the possible implementation of the first of second aspect or second aspect to any one implementation in the third possible implementation, in the 4th kind of possible implementation, metadata after the synchronous described renewal of described the first virtual machine, to the local disk of described server, specifically comprises: according to the default cycle make described the first virtual machine by the metadata synchronization after described renewal the local disk to described server.
Third aspect present invention provides a kind of server based on expanding storage apparatus, moves at least one virtual machine on described server, and described expanding storage apparatus, for described at least one virtual machine provides virtual disk, comprising:
Transmitting element, for sending write request to the first virtual disk;
Updating block, for upgrading the metadata of described the first virtual disk according to described write request;
Lock unit, the local disk for the metadata after synchronous described renewal to described server; Wherein, the virtual disk that described the first virtual disk is the first virtual machine carry.
In conjunction with third aspect present invention, in the possible embodiment of the first, also comprise:
Reading unit, in the time that described the first virtual machine is restarted, reads the metadata of described the first virtual disk from the local disk of described server.
In conjunction with the possible embodiment of the first of third aspect present invention, in the possible embodiment of the second, also comprise, receiving element, for
Before described reading unit reads the metadata of described the first virtual disk from the local disk of described server, receive described the first virtual disk metadata verification failed message that described the first virtual disk sends.
In conjunction with the possible embodiment of the second of third aspect present invention, in the third possible embodiment, in the time that described the first virtual machine is restarted, described reading unit reads the metadata of described the first virtual disk from the local disk of described server, and described transmitting element is also for sending the metadata of described first virtual disk of the local disk storage of described server to described the first virtual disk.
In conjunction with third aspect present invention or and first, second or the third possible embodiment of third aspect present invention, in the 4th kind of possible embodiment, metadata after the synchronous described renewal of described lock unit, to the local disk of described server, specifically comprises: described lock unit arrives the metadata synchronization after described renewal according to the default cycle local disk of described server.
Fourth aspect present invention provides a kind of disposal system of virtual disk metadata, comprises any described in second aspect present invention server and described expanding storage apparatus based on expanding storage apparatus.
Fifth aspect present invention provides a kind of disposal system of virtual disk metadata, comprises any described in third aspect present invention server and described expanding storage apparatus based on expanding storage apparatus.
Disposal route, the Apparatus and system of a kind of virtual disk metadata that the embodiment of the present invention provides, local disk by the metadata synchronization of the virtual disk of the virtual machine carry moving on server to server, thereby virtual machine is restarted, even when virtual disk device metadata verification failure, can also test from the local disk success of server the metadata of the virtual disk of this virtual machine carry, thereby improve the success ratio that virtual machine is restarted.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of the disposal route of a kind of virtual disk metadata that Fig. 1 provides for the embodiment of the present invention 1;
The process flow diagram of the disposal route of a kind of virtual disk metadata that Fig. 2 provides for the embodiment of the present invention 2;
Fig. 3 is the system scene schematic diagram of the disposal route of virtual disk metadata in the embodiment of the present invention 2;
A kind of server schematic diagram based on expanding storage apparatus that Fig. 4 provides for the embodiment of the present invention 3.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1
The embodiment of the present invention provides a kind of disposal route of virtual disk metadata, and the method is applied to the server based on expanding storage apparatus.On server, move at least one virtual machine, expanding storage apparatus provides virtual disk for the virtual machine moving on server, and as shown in Figure 1, the method comprises:
101, the first virtual machine at least one virtual machine sends write request to the virtual disk of described the first virtual machine carry.
102, the first virtual machine upgrades the metadata of the virtual disk of the first virtual machine carry according to write request.
103, the metadata after the synchronous renewal of the first virtual machine is to the local disk of described server.
On server, operation has one or more virtual machines.The reading and writing data of virtual machine is mapped on the expanding storage apparatus of far-end, provides virtual disk by expanding storage apparatus for virtual machine.Concrete, expanding storage apparatus can connect storage NAS etc. for network, and the present invention is not construed as limiting this.Expanding storage apparatus provides virtual disk for the virtual machine moving on server.In the time that virtual machine moves, in virutal machine memory, load the metadata of virtual disk, when virtual machine carries out write operation to virtual disk data, described write operation comprises the writing of deletion, amendment and new data of virtual disk data.In the time that virtual machine carries out write operation to the virtual disk of carry, virtual machine will upgrade the metadata of virtual disk, simultaneously the local disk to server by metadata updates.The local disk of server arrives corresponding position according to the mark of this virtual disk by the meta-data preservation of virtual deposit.In the present embodiment, the metadata after the synchronous renewal of the first virtual machine is to the local disk of described server.Server local disk can be SSD Fixed disk etc., and the present invention is not construed as limiting this.In the time that the virtual machine in server restarts, by reading metadata from local disk, can ensure metadata verification success.
The embodiment of the present invention provides a kind of disposal route of virtual disk metadata, local disk by the metadata synchronization of the virtual disk of the virtual machine carry moving on server to server, thereby when virtual machine is restarted, even virtual disk device metadata verification failure, can also read from the local disk of server the metadata of the virtual disk of this virtual machine carry, thereby improve the success ratio that virtual machine is restarted.
Embodiment 2
The embodiment of the present invention provides a kind of disposal route of virtual disk metadata, and as shown in Figure 2, the method is applied to the server based on expanding storage apparatus to concrete steps, and described server as shown in Figure 3.The method comprises:
201, the first virtual machine at least one virtual machine sends write request to the virtual disk of described the first virtual machine carry.
202, the first virtual machine upgrades the metadata of the virtual disk of the first virtual machine carry according to write request.
203, the metadata after the synchronous renewal of the first virtual machine is to the local disk of described server.
On server, operation has one or more virtual machines.The reading and writing data of virtual machine is mapped on the expanding storage apparatus of far-end, provides virtual disk by expanding storage apparatus for virtual machine.Concrete, expanding storage apparatus can connect storage NAS etc. for network, and the present invention is not construed as limiting this.Expanding storage apparatus provides virtual disk for the virtual machine moving on server.In the time that virtual machine moves, in virutal machine memory, load the metadata of virtual disk, when virtual machine carries out write operation to virtual disk data, described write operation comprises the writing of deletion, amendment and new data of virtual disk data.In the time that virtual machine carries out write operation to the virtual disk of carry, virtual machine will upgrade the metadata of virtual disk, simultaneously the local disk to server by metadata updates.In the embodiment of the present invention, the metadata after the synchronous renewal of the first virtual machine is to the local disk of described server.Server local disk can be SSD Fixed disk etc., and the present invention is not construed as limiting this.
In practical application, the metadata after synchronous renewal to the local disk of described server can have following two kinds of executive modes:
S1, according to default synchronizing cycle by the metadata synchronization after upgrading to local disk.
S2, after virtual machine upgrades the metadata in internal memory, be synchronized to local disk.
204,, in the time that described the first virtual machine is restarted, receive the virtual disk metadata verification failed message of the virtual disk transmission of the first virtual machine carry.
Virtual machine is restarted, carry virtual disk, read the metadata on virtual disk, carry out metadata verification, if to the metadata verification failure on virtual disk, virtual machine can not successfully start, and now, the virtual disk of this virtual machine carry sends virtual disk metadata verification failed message to virtual machine.In the embodiment of the present invention, in the time that described the first virtual machine is restarted, receive the virtual disk metadata verification failed message of the virtual disk transmission of the first virtual machine carry.
205, read the metadata of the virtual disk of the first virtual machine carry from local disk.
The first virtual machine receives virtual disk metadata verification failed message, reads the metadata of the virtual disk of the first virtual machine carry from local disk.Thereby recover to start.The first virtual machine is according to virtual disk metadata verification failed message, and the local disk that is identified at server according to this virtual disk reads the metadata of virtual disk.
206, send the metadata of the virtual disk of the first virtual machine carry of the local disk storage of described server to the virtual disk of described the first virtual machine carry.
When the first virtual machine reads from server local disk the metadata verification success of virtual disk of the first virtual machine carry, send the metadata of the virtual disk of the first virtual machine carry of the local disk storage of described server to the virtual disk of described the first virtual machine carry, to recover the metadata of virtual disk of the first virtual machine carry.
If being network, expanding storage apparatus connects storage NAS equipment, in the time of NAS device fails, the metadata store of the virtual disk that the first virtual machine upgrades is in the buffer memory of NAS, cause metadata not actual storage to NAS equipment, thereby will cause metadata verification failure can not normally restart virtual machine.Now, the first virtual machine is restarted, the metadata verification failure of the virtual disk that NAS equipment provides for the first virtual machine, can send virtual disk metadata verification failure information to server the first virtual machine, now, the first virtual machine reads the metadata of the virtual disk of the first virtual machine carry from the local disk of server, and send the metadata of the virtual disk of the first virtual machine carry of the local disk storage of described server to the virtual disk of the first virtual machine carry, to recover the metadata of virtual disk of NAS device storage.
Because the metadata of preserving in local disk has kept synchronizeing with the metadata in internal memory, therefore, in the time that the abnormal shutdown of virtual machine causes the metadata loss in internal memory, in local disk, retain the copy of metadata.In the time that virtual machine restarts, the metadata in local disk can be sent to NAS equipment.
Below in conjunction with Fig. 3, above-mentioned scene is described.As shown in Figure 3, in server 31, operation has virtual machine 311 and virtual machine 312(to explain with two virtual machine instances here, does not form the restriction of virtual machine quantity), do not repeat them here about the virtual machine architecture based on server 31.Server 31 comprises central processing unit and storer and local disk, and is connected by bus each other, and when described server 31 moves, described central processing unit is carried out the computer instruction of described memory stores.In the expanding storage apparatus 32 of far-end, there is virtual disk 321 and virtual disk 322, wherein virtual disk 321 provides memory function for virtual machine 311, and virtual disk 322 provides memory function for virtual machine 312.The read-write operation of virtual machine is actual, and what point to is the virtual disk in expanding storage apparatus 32.The renewal of metadata is synchronously saved in local disk 313.Taking virtual machine 311 as example, when virtual machine 311 sends disk write request, the metadata that is loaded into the virtual disk 321 in virtual machine 311 internal memories can be upgraded, the metadata of renewal is sent to virtual disk 321 by virtual machine 311, and can, according to the mode of above-mentioned S1 or S2, this metadata synchronization be arrived to local disk 313.Like this, in the time that virtual machine 311 restarts, virtual machine 311 loads virtual disk 321, and carry out the metadata of virtual disk 321 to carry out verification, if test failure, receive that the metadata that virtual disk 321 sends tests failed message, virtual machine 311 reads metadata according to the mark of virtual disk 321 from local disk 313, thereby successfully start virtual machine 311, and send the metadata of the virtual disk 321 that server 31 local disks 313 store to the virtual disk 321 of virtual machine 311 carries, to recover the metadata of virtual disk 321.If expanding storage apparatus 32 is stored NAS equipment for network connects, in the time that NAS equipment 32 breaks down, the metadata store of the virtual disk 321 that virtual machine 311 upgrades is in the buffer memory of NAS32, cause metadata not actual storage to NAS equipment 32, thereby will cause metadata verification failure can not normally restart virtual machine 311.Now, virtual machine 311 is restarted, the metadata verification failure of the virtual disk 321 that NAS equipment 32 provides for virtual machine 311, can send virtual disk metadata verification failure information to server 31 virtual machines 311, now, virtual machine 311 reads the metadata of the virtual disk 321 of virtual machine 311 carries from the local disk 313 of server 31, and send the metadata of the virtual disk 321 of virtual machine 311 carries that the local disk 313 of described server 31 stores to the virtual disk 321 of virtual machine 311 carries, the metadata of the virtual disk 321 of storing with recovery NAS equipment 32.
The embodiment of the present invention provides a kind of disposal route of virtual disk metadata, local disk by the metadata synchronization of the virtual disk of the virtual machine carry moving on server to server, thereby virtual machine is restarted, even when virtual disk device metadata verification failure, still can read from the local disk of server the metadata of the virtual disk of this virtual machine carry, thereby improve the success ratio that virtual machine is restarted.Recover the metadata of the virtual disk of virtual machine carry simultaneously.。
Embodiment 3
The embodiment of the present invention provides a kind of server based on expanding storage apparatus, on server, move at least one virtual machine, described expanding storage apparatus provides virtual disk for described at least one virtual machine, as shown in Figure 4, server 41 comprises: transmitting element 411, updating block 412 and lock unit 413.Wherein transmitting element 411, for sending write request to the first virtual disk; Updating block 412, for upgrading the metadata of described the first virtual disk according to described write request; Lock unit 413, the local disk for the metadata after synchronous described renewal to described server; Wherein, the virtual disk that described the first virtual disk is the first virtual machine carry.
Server 41 in the embodiment of the present invention, also comprises reading unit 414, in the time that described the first virtual machine is restarted, reads the metadata of described the first virtual disk from the local disk of described server 41.Server 41 in the embodiment of the present invention also comprises receiving element 415, when in the time that on server 41, the first virtual machine is restarted, verification the first virtual disk metadata is failed, receiving element 415 receives the metadata verification failed message that this first virtual disk sends, reading unit 414 is from the local disk verification first virtual disk metadata of server 41, particularly, the metadata that reading unit 414 reads the first virtual disk according to the mark of the first virtual disk from local disk is carried out verification, starts success ratio thereby improve.In the time that the first virtual machine is restarted, reading unit 414 reads the metadata of the first virtual disk from the local disk of server 41, and transmitting element 411 is also for send the metadata of the first virtual disk of the local disk storage of described server 41 to the first virtual disk, in order to recover the metadata of the first virtual disk.Wherein, lock unit 413 arrives the first virtual metadata synchronization after upgrading according to the default cycle local disk of server 41.The server that the embodiment of the present invention provides, local disk by the metadata synchronization of the virtual disk of the virtual machine carry moving on this server to server, thereby virtual machine is restarted, even when virtual disk device metadata verification failure, still can read from the local disk of server the metadata of the virtual disk of this virtual machine carry, thereby improve the success ratio that virtual machine is restarted, and recover the metadata of the virtual disk of virtual machine carry.In the time that expanding storage apparatus is NAS equipment, in the time of NAS device fails, the metadata store of virtual disk that virtual machine upgrades in the buffer memory of NAS, cause metadata not actual storage to NAS equipment, thereby will cause metadata verification failure can not normally restart virtual machine.Now, virtual machine is restarted, the metadata verification failure of the virtual disk that NAS equipment provides for virtual machine, can send virtual disk metadata verification failure information to server virtual machine, now, virtual machine reads the metadata of the virtual disk of virtual machine carry from the local disk of server, and sends the metadata of the virtual disk of the virtual machine carry of the local disk storage of described server to the virtual disk of virtual machine carry, to recover the metadata of virtual disk of NAS device storage.
On the other hand, the embodiment of the present invention also provides a kind of system, and as shown in Figure 3, this system comprises expanding storage apparatus 32 and server 31, wherein server 31, and its structure composition can, with reference to the description in the invention described above embodiment 2 and 3, repeat no more herein.
The embodiment of the present invention provides a kind of system of recovering virtual disk metadata, expanding storage apparatus provides the virtual disk of carry for virtual machine, local disk by the metadata synchronization of the virtual disk of virtual machine carry to server, when virtual machine while restarting, if the virtual disk metadata verification of virtual machine carry failure, can be from reading the virtual disk metadata of virtual machine carry from local disk so that virtual disk equipment completes metadata verification, thus the success ratio that virtual machine is restarted improved.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computing machine, hard disk or CD etc., comprise that some instructions are in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (17)

1. the disposal route of a virtual disk metadata, it is characterized in that, described method is applied to the server based on expanding storage apparatus, moves at least one virtual machine on described server, and described expanding storage apparatus provides virtual disk for described at least one virtual machine; Described method comprises:
The first virtual machine in described at least one virtual machine sends write request to the virtual disk of described the first virtual machine carry;
Described the first virtual machine upgrades the metadata of the virtual disk of described the first virtual machine carry according to described write request;
Metadata after the synchronous described renewal of described the first virtual machine is to the local disk of described server.
2. the method for claim 1, is characterized in that, also comprises: in the time that described the first virtual machine is restarted, read the metadata of the virtual disk of described the first virtual machine carry from the local disk of described server.
3. method as claimed in claim 2, it is characterized in that, also comprise: read the metadata of virtual disk of described the first virtual machine carry from the local disk of described server before, receive the virtual disk metadata verification failed message of the described first virtual machine carry of the virtual disk transmission of described the first virtual machine carry.
4. method as claimed in claim 3, it is characterized in that, also comprise: in the time that described the first virtual machine is restarted, read the metadata of the virtual disk of described the first virtual machine carry from the local disk of described server, and send the metadata of the virtual disk of the first virtual machine carry of the local disk storage of described server to the virtual disk of described the first virtual machine carry.
5. the method as described in claim 1 to 4, it is characterized in that, metadata after the synchronous described renewal of described the first virtual machine, to the local disk of described server, specifically comprises: described the first virtual machine arrives the metadata synchronization after described renewal according to the default cycle local disk of described server.
6. the server based on expanding storage apparatus, is characterized in that, moves at least one virtual machine on described server, and described expanding storage apparatus provides virtual disk for described at least one virtual machine; Described server comprises central processing unit and storer, and in the time of described server operation, described central processing unit is carried out the computer instruction of described memory stores, makes described server carry out following virtual disk metadata processing method, comprising:
The first virtual machine in described at least one virtual machine sends write request to the virtual disk of described the first virtual machine carry;
Described the first virtual machine upgrades the metadata of the virtual disk of described the first virtual machine carry according to described write request;
Metadata after the synchronous described renewal of described the first virtual machine is to the local disk of described server.
7. server as claimed in claim 6, is characterized in that, in the time that described the first virtual machine is restarted, the local disk of described server provides the metadata of the virtual disk of described the first virtual machine carry.
8. server as claimed in claim 7, it is characterized in that, also comprise: before the local disk of described server provides the metadata of virtual disk of described the first virtual machine carry, receive the virtual disk metadata verification failed message of the described first virtual machine carry of the virtual disk transmission of described the first virtual machine carry.
9. server as claimed in claim 8, it is characterized in that, also comprise: in the time that described the first virtual machine is restarted, the local disk of described server provides the metadata of the virtual disk of described the first virtual machine carry, and sends the metadata of the virtual disk of the first virtual machine carry of the local disk storage of described server to the virtual disk of described the first virtual machine carry.
10. the server as described in as arbitrary in claim 6 to 9, it is characterized in that, metadata after the synchronous described renewal of described the first virtual machine, to the local disk of described server, specifically comprises: according to the default cycle make described the first virtual machine by the metadata synchronization after described renewal the local disk to described server.
11. 1 kinds of servers based on expanding storage apparatus, is characterized in that, move at least one virtual machine on described server, and described expanding storage apparatus, for described at least one virtual machine provides virtual disk, comprising:
Transmitting element, for sending write request to the first virtual disk;
Updating block, for upgrading the metadata of described the first virtual disk according to described write request;
Lock unit, the local disk for the metadata after synchronous described renewal to described server; Wherein, the virtual disk that described the first virtual disk is the first virtual machine carry.
12. servers as claimed in claim 11, is characterized in that, also comprise:
Reading unit, in the time that described the first virtual machine is restarted, reads the metadata of described the first virtual disk from the local disk of described server.
13. servers as claimed in claim 12, is characterized in that, also comprise, and receiving element, for
Before described reading unit reads the metadata of described the first virtual disk from the local disk of described server, receive described the first virtual disk metadata verification failed message that described the first virtual disk sends.
14. servers as claimed in claim 13, it is characterized in that, in the time that described the first virtual machine is restarted, described reading unit reads the metadata of described the first virtual disk from the local disk of described server, and described transmitting element is also for sending the metadata of described first virtual disk of the local disk storage of described server to described the first virtual disk.
15. servers as described in as arbitrary to claim 14 in claim 11, it is characterized in that, metadata after the synchronous described renewal of described lock unit, to the local disk of described server, specifically comprises: described lock unit arrives the metadata synchronization after described renewal according to the default cycle local disk of described server.
The disposal system of 16. 1 kinds of virtual disk metadata, comprise the server based on expanding storage apparatus as described in as arbitrary in claim 6 to 10 and as described in expanding storage apparatus.
The disposal system of 17. 1 kinds of virtual disk metadata, comprise the server based on expanding storage apparatus as described in as arbitrary in claim 11 to 15 and as described in expanding storage apparatus.
CN201210482711.8A 2012-11-23 2012-11-23 A kind of method, apparatus and system for recovering virtual disk metadata Active CN103838639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210482711.8A CN103838639B (en) 2012-11-23 2012-11-23 A kind of method, apparatus and system for recovering virtual disk metadata

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210482711.8A CN103838639B (en) 2012-11-23 2012-11-23 A kind of method, apparatus and system for recovering virtual disk metadata

Publications (2)

Publication Number Publication Date
CN103838639A true CN103838639A (en) 2014-06-04
CN103838639B CN103838639B (en) 2018-04-27

Family

ID=50802169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210482711.8A Active CN103838639B (en) 2012-11-23 2012-11-23 A kind of method, apparatus and system for recovering virtual disk metadata

Country Status (1)

Country Link
CN (1) CN103838639B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461687A (en) * 2014-11-20 2015-03-25 华为技术有限公司 Virtual machine configuration information storage method and device
CN117707437A (en) * 2024-02-06 2024-03-15 济南浪潮数据技术有限公司 Virtual disk storage method and device based on distributed storage system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220328A1 (en) * 2006-02-28 2007-09-20 Microsoft Corporation Shutdown recovery
CN101415127A (en) * 2007-10-16 2009-04-22 华为技术有限公司 Minitype universal hardware platform architecture system for telecom and calculation, and reliability management method
US20100082922A1 (en) * 2008-09-30 2010-04-01 Vmware, Inc. Virtual machine migration using local storage
CN101976322A (en) * 2010-11-11 2011-02-16 清华大学 Safety metadata management method based on integrality checking
CN102014158A (en) * 2010-11-29 2011-04-13 北京兴宇中科科技开发股份有限公司 Cloud storage service client high-efficiency fine-granularity data caching system and method
CN102124437A (en) * 2008-08-20 2011-07-13 微软公司 Recovery of a computer that includes virtual disks
CN102193843A (en) * 2010-03-19 2011-09-21 复旦大学 Method for accelerating virtual machine system breakdown on-site storage
CN102394923A (en) * 2011-10-27 2012-03-28 周诗琦 Cloud system platform based on n*n display structure
CN102609365A (en) * 2012-02-15 2012-07-25 合一网络技术(北京)有限公司 Virtual disk system and file storage method based on virtual disk system
CN102646064A (en) * 2011-02-16 2012-08-22 微软公司 Incremental virtual machine backup supporting migration
CN102792277A (en) * 2010-03-12 2012-11-21 国际商业机器公司 Starting virtual instances within a cloud computing environment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220328A1 (en) * 2006-02-28 2007-09-20 Microsoft Corporation Shutdown recovery
CN101415127A (en) * 2007-10-16 2009-04-22 华为技术有限公司 Minitype universal hardware platform architecture system for telecom and calculation, and reliability management method
CN102124437A (en) * 2008-08-20 2011-07-13 微软公司 Recovery of a computer that includes virtual disks
US20100082922A1 (en) * 2008-09-30 2010-04-01 Vmware, Inc. Virtual machine migration using local storage
CN102792277A (en) * 2010-03-12 2012-11-21 国际商业机器公司 Starting virtual instances within a cloud computing environment
CN102193843A (en) * 2010-03-19 2011-09-21 复旦大学 Method for accelerating virtual machine system breakdown on-site storage
CN101976322A (en) * 2010-11-11 2011-02-16 清华大学 Safety metadata management method based on integrality checking
CN102014158A (en) * 2010-11-29 2011-04-13 北京兴宇中科科技开发股份有限公司 Cloud storage service client high-efficiency fine-granularity data caching system and method
CN102646064A (en) * 2011-02-16 2012-08-22 微软公司 Incremental virtual machine backup supporting migration
CN102394923A (en) * 2011-10-27 2012-03-28 周诗琦 Cloud system platform based on n*n display structure
CN102609365A (en) * 2012-02-15 2012-07-25 合一网络技术(北京)有限公司 Virtual disk system and file storage method based on virtual disk system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461687A (en) * 2014-11-20 2015-03-25 华为技术有限公司 Virtual machine configuration information storage method and device
WO2016078422A1 (en) * 2014-11-20 2016-05-26 华为技术有限公司 Virtual machine configuration information storage method and apparatus
CN104461687B (en) * 2014-11-20 2018-03-09 华为技术有限公司 The storage method and device of a kind of virtual machine configuration information
CN117707437A (en) * 2024-02-06 2024-03-15 济南浪潮数据技术有限公司 Virtual disk storage method and device based on distributed storage system
CN117707437B (en) * 2024-02-06 2024-06-21 济南浪潮数据技术有限公司 Virtual disk storage method and device based on distributed storage system

Also Published As

Publication number Publication date
CN103838639B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
US11550675B2 (en) Remote data replication method and system
US8689047B2 (en) Virtual disk replication using log files
US8271447B1 (en) Mirroring metadata in a continuous data protection environment
US9697092B2 (en) File-based cluster-to-cluster replication recovery
CN102594849B (en) Data backup and recovery method and device, virtual machine snapshot deleting and rollback method and device
US8738883B2 (en) Snapshot creation from block lists
US10503616B2 (en) Periodic data replication
US9563684B1 (en) Replication cookie
US9563517B1 (en) Cloud snapshots
CN102981931B (en) Backup method and device for virtual machine
CN103970585B (en) Create the method and device of virtual machine
US8108634B1 (en) Replicating a thin logical unit
CN102033786B (en) Method for repairing consistency of copies in object storage system
CN108733311B (en) Method and apparatus for managing storage system
TWI571749B (en) Backup system and backup method thereof
CN115098299B (en) Backup method, disaster recovery method, device and equipment of virtual machine
CN103516549A (en) File system metadata log mechanism based on shared object storage
CN111158955A (en) High-availability system based on volume replication and multi-server data synchronization method
CN105740049B (en) A kind of control method and device
US7603392B2 (en) System, method and computer program product for storing transient state information
CN110134551B (en) Continuous data protection method and device
CN104517067A (en) Method, device and system for data access
CN103838639A (en) Method, device and system for recovering metadata of virtual disk
CN117763046A (en) Method, device, equipment and storage medium for synchronizing data among clusters
US11226875B2 (en) System halt event recovery

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant