CN104461687B - The storage method and device of a kind of virtual machine configuration information - Google Patents
The storage method and device of a kind of virtual machine configuration information Download PDFInfo
- Publication number
- CN104461687B CN104461687B CN201410668433.4A CN201410668433A CN104461687B CN 104461687 B CN104461687 B CN 104461687B CN 201410668433 A CN201410668433 A CN 201410668433A CN 104461687 B CN104461687 B CN 104461687B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- configuration information
- machine configuration
- request message
- lun
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
Abstract
The present invention provides a kind of storage method and device of virtual machine configuration information, can reduce the dependence to management node, makes virtual machine configuration information still available when management node fails.The storage method includes:Disk array obtains the LUN LUN of the logic magnetic disc where virtual disk corresponding to virtual machine VM virtual machine configuration information and VM;Virtual machine configuration information is write control information region corresponding to logic magnetic disc by disk array according to LUN.The present invention is applied to field of computer technology.
Description
Technical field
The present invention relates to the storage method and device of field of computer technology, more particularly to a kind of virtual machine configuration information.
Background technology
In recent years, with the development of cloud computing, the virtualization technology as one of its base support technology has also obtained extensively
General application.Virtualization technology is a kind of by bottom hardware equipment and upper strata operating system, the uncoupling technology of separate.
It can realize on a physical host while run multiple virtual machines, so as to greatly improve the utilization rate of resource and distribution spirit
Activity.Meanwhile compared with traditional physical computer, virtual machine has more preferable isolation and packaging effects, it can be by entirely
The information of virtual machine is saved in virtual disk, so as to easily carry out snapshot, backup, clone and distribution etc. to virtual machine
Operation.
At present, existing storage virtualization technology mainly has two kinds of implementations:First, by virtual machine file system
Virtual disk image file;Second, (Raw Device Mapping, RDM) disk is mapped by raw device.In above two
In scheme, because the virtual disk data needed for startup virtual machine and virtual machine configuration information are retained separately, virtual disk number
According to being stored in logic magnetic disc, and virtual machine configuration information is stored in management node.Therefore, when list occurs in management node
After point failure, will result in virtual machine configuration information can not access, and then cause virtual machine not start.
The content of the invention
Embodiments of the invention provide a kind of storage method and device of virtual machine configuration information, at least to solve existing skill
The problem of virtual machine configuration information caused by operative management node failure can not access, can reduce to management node according to
Rely, make virtual machine configuration information still available when management node fails.
To reach above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
First aspect, there is provided a kind of storage method of virtual machine configuration information, methods described include:
Obtain virtual machine VM virtual machine configuration information and the VM corresponding to logic magnetic disc where virtual disk patrol
Collect unit number LUN;
According to the LUN, the virtual machine configuration information is write control corresponding to the logic magnetic disc by the logic magnetic disc
Information area processed.
In first aspect in the first possible implementation, with reference in a first aspect, described obtain the virtual of virtual machine VM
The LUN LUN of logic magnetic disc corresponding to machine configuration information and the VM where virtual disk, including:
Write request message is received, said write request message carries the virtual machine configuration information and the LUN;
According to said write request message, the virtual machine configuration information and the LUN are obtained.
In second of possible implementation of first aspect, the first possible implementation, institute with reference to first aspect
State and receive write request message, including:
Receive the said write request message by order transmission in small computer system interface SCSI tape;
Or
Receive the said write request message that the control management interface provided by storage system is sent.
In first aspect in the third possible implementation, with reference to first aspect to second of possible reality of first aspect
Existing mode, described according to the LUN, the virtual machine configuration information is write into control information area corresponding to the logic magnetic disc
Before domain, in addition to:
Determine whether to store in control information region corresponding to the logic magnetic disc different from the virtual machine configuration information
Virtual machine configuration information;
If so, delete the virtual machine configuration information different from the virtual machine configuration information.
In the 4th kind of possible implementation of first aspect, with reference in a first aspect, described according to the LUN, by institute
Virtual machine configuration information is stated to write after control information region corresponding to the logic magnetic disc, in addition to:
Deletion request message is received, the deletion request message is used to indicate to delete control letter corresponding to the logic magnetic disc
Cease the virtual machine configuration information in region;
According to the deletion request message, the virtual machine configuration information is deleted.
In the prior art, because virtual disk data and virtual machine configuration information are retained separately, virtual disk data quilt
It is stored in logic magnetic disc, and virtual machine configuration information is stored in management node.Therefore, when single-point mistake occurs in management node
During effect, virtual machine configuration information will be caused not access, and then the virtual disk place of virtual machine and virtual machine can not be known
Logic magnetic disc corresponding relation, ultimately resulting in virtual machine can not start.And matched somebody with somebody based on virtual machine provided in an embodiment of the present invention
The storage method of confidence breath, virtual machine configuration information is stored in the control information region of logic magnetic disc, therefore, even if management section
There is single point failure in point, still can by accessing the control information region of the logic magnetic disc where the virtual disk of virtual machine,
Realize the access to virtual machine configuration information.And according to virtual machine configuration information and the virtual disk data of virtual machine, you can just
Often start virtual machine.That is, the storage method of virtual machine configuration information provided in an embodiment of the present invention, can be reduced to management node
Dependence, make virtual machine configuration information still available when management node fails.
Second aspect, there is provided a kind of storage method of virtual machine configuration information, methods described include:
Obtain virtual machine VM virtual machine configuration information and the VM corresponding to logic magnetic disc where virtual disk patrol
Collect unit number LUN;
The virtual machine configuration information and the LUN are sent to the disk array, by the disk array according to institute
LUN is stated, the virtual machine configuration information is write into control information region corresponding to the logic magnetic disc.
It is described to believe the virtual machine configuration with reference to second aspect in second aspect in the first possible implementation
Breath and the LUN are sent to disk array, including:
Send write request message and carry the virtual machine configuration information to the disk array, said write request message
With the LUN.
In second of possible implementation of second aspect, the first possible implementation, institute with reference to second aspect
State and send write request message to the disk array, including:
Said write request message is sent to the disk array by being ordered in small computer system interface SCSI tape;
Or
The control management interface provided by storage system sends said write request message to the disk array.
In second aspect in the third possible implementation, with reference to second aspect, described by the virtual machine configuration
Information and the LUN are sent to after disk array, in addition to:
Deletion request message is sent to the disk array, the deletion request message is used to indicate to delete the logic magnetic
The virtual machine configuration information in control information region corresponding to disk.
In the prior art, because virtual disk data and virtual machine configuration information are retained separately, virtual disk data quilt
It is stored in logic magnetic disc, and virtual machine configuration information is stored in management node.Therefore, when single-point mistake occurs in management node
During effect, virtual machine configuration information will be caused not access, and then can not patrolled where the virtual disk of virtual machine and virtual machine
The corresponding relation of disk is collected, ultimately resulting in virtual machine can not start.Based on virtual machine configuration information provided in an embodiment of the present invention
Storage method, virtual machine configuration information is stored in the control information region of logic magnetic disc, therefore, even if management node occurs
Single point failure, still it can be realized pair by accessing the control information region of the logic magnetic disc where the virtual disk of virtual machine
The access of virtual machine configuration information.And according to virtual machine configuration information and the virtual disk data of virtual machine, you can normal to start
Virtual machine.That is, the storage method of virtual machine configuration information provided in an embodiment of the present invention, can reduce to management node according to
Rely, make virtual machine configuration information still available when management node fails.
The third aspect, there is provided a kind of disk array, the disk array include:Acquiring unit and writing unit;
The acquiring unit, for obtain virtual machine VM virtual machine configuration information and the VM corresponding to virtual disk institute
Logic magnetic disc LUN LUN;
Said write unit, for according to the LUN, it is corresponding that the virtual machine configuration information to be write into the logic magnetic disc
Control information region.
In the third aspect in the first possible implementation, with reference to the third aspect, the acquiring unit includes:Receive mould
Block and acquisition module;
The receiving module, for receiving write request message, said write request message carries the virtual machine configuration
Information and the LUN;
The acquisition module, for according to said write request message, obtaining the virtual machine configuration information and described
LUN。
In second of possible implementation of the third aspect, the first possible implementation, institute with reference to the third aspect
Receiving module is stated to be specifically used for:
Receive the said write request message by order transmission in small computer system interface SCSI tape;
Or
Receive the said write request message that the control management interface provided by storage system is sent.
In the third aspect in the third possible implementation, with reference to the third aspect to second of possible reality of the third aspect
Existing mode, the disk array also include:Determining unit and the first deletion unit;
The determining unit, is used for:
In said write unit according to the LUN, the virtual machine configuration information is write corresponding to the disk array
Before control information region, determine whether stored in control information region corresponding to the logic magnetic disc and the virtual machine configuration
The different virtual machine configuration information of information;
Described first deletes unit, if determining control information region corresponding to the logic magnetic disc for the determining unit
The middle storage virtual machine configuration information different from the virtual machine configuration information, deletes the described and virtual machine configuration information not
Same virtual machine configuration information.
In the 4th kind of possible implementation of the third aspect, with reference to the third aspect, the disk array also includes:Receive
Unit and the second deletion unit;
The receiving unit, for, according to the LUN, the virtual machine configuration information being write into institute in said write unit
After stating control information region corresponding to logic magnetic disc, deletion request message is received, the deletion request message is deleted for instruction
Except the virtual machine configuration information in control information region corresponding to the logic magnetic disc;
Described second deletes unit, for according to the deletion request message, deleting the virtual machine configuration information.
In the prior art, because virtual disk data and virtual machine configuration information are retained separately, virtual disk data quilt
It is stored in logic magnetic disc, and virtual machine configuration information is stored in management node.Therefore, when single-point mistake occurs in management node
During effect, virtual machine configuration information will be caused not access, and then the virtual disk place of virtual machine and virtual machine can not be known
Logic magnetic disc corresponding relation, ultimately resulting in virtual machine can not start.And logic magnetic disc provided in an embodiment of the present invention is based on,
Virtual machine configuration information is stored in the control information region of logic magnetic disc, therefore, even if single point failure occurs in management node, still
It can so realize and virtual machine configuration is believed by accessing the control information region of the logic magnetic disc where the virtual disk of virtual machine
The access of breath.And according to virtual machine configuration information and the virtual disk data of virtual machine, you can normally start virtual machine.I.e., originally
The logic magnetic disc that inventive embodiments provide, can reduce the dependence to management node, match somebody with somebody virtual machine when management node fails
Confidence breath is still available.
Fourth aspect, there is provided a kind of storage device of virtual machine configuration information, described device include:Acquiring unit and
First transmitting element;
The acquiring unit, for obtain virtual machine VM virtual machine configuration information and the VM corresponding to virtual disk institute
Logic magnetic disc LUN LUN;
First transmitting element, for according to the LUN, the virtual machine configuration information being sent and the LUN is sent out
Disk array is given, the control information as corresponding to the disk array by the virtual machine configuration information write-in logic magnetic disc
Region.
In fourth aspect in the first possible implementation, with reference to fourth aspect, first transmitting element includes:Hair
Send module;
The sending module, carried for sending write request message to the disk array, said write request message
The virtual machine configuration information and the LUN.
In second of possible implementation of fourth aspect, the first possible implementation, institute with reference to fourth aspect
Sending module is stated to be specifically used for:
Said write request message is sent to the disk array by being ordered in small computer system interface SCSI tape;
Or
The control management interface provided by storage system sends said write request message to the disk array.
In fourth aspect in the third possible implementation, with reference to fourth aspect, described device also includes:Second sends
Unit;
Second transmitting element, in first transmitting element by the virtual machine configuration information and the LUN
It is sent to after disk array, sends deletion request message and deleted to the disk array, the deletion request message for instruction
Except the virtual machine configuration information in control information region corresponding to the logic magnetic disc.
In the prior art, because virtual disk data and virtual machine configuration information are retained separately, virtual disk data quilt
It is stored in logic magnetic disc, and virtual machine configuration information is stored in management node.Therefore, when single-point mistake occurs in management node
During effect, virtual machine configuration information will be caused not access, and then can not patrolled where the virtual disk of virtual machine and virtual machine
The corresponding relation of disk is collected, ultimately resulting in virtual machine can not start.And virtual machine configuration information provided in an embodiment of the present invention
Storage device, virtual machine configuration information is stored in the control information region of logic magnetic disc, therefore, even if list occurs in management node
Point failure, still it can be realized by accessing the control information region of the logic magnetic disc where the virtual disk of virtual machine to void
The access of plan machine configuration information.And according to virtual machine configuration information and the virtual disk data of virtual machine, you can normal to start void
Plan machine.That is, the storage device of virtual machine configuration information provided in an embodiment of the present invention, can reduce the dependence to management node,
Make virtual machine configuration information still available when management node fails.
Brief description of the drawings
Fig. 1 is dummy machine system configuration diagram;
Fig. 2 is a kind of schematic flow sheet one of the storage method of virtual machine configuration information provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet two of the storage method of virtual machine configuration information provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet three of the storage method of virtual machine configuration information provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic flow sheet four of the storage method of virtual machine configuration information provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic flow sheet five of the storage method of virtual machine configuration information provided in an embodiment of the present invention;
Fig. 7 is a kind of schematic flow sheet one of the read method of virtual machine configuration information provided in an embodiment of the present invention;
Fig. 8 is a kind of schematic flow sheet two of the read method of virtual machine configuration information provided in an embodiment of the present invention;
Fig. 9 is the read method provided in an embodiment of the present invention using virtual machine configuration information provided in an embodiment of the present invention
Read the process schematic of virtual machine configuration information;
Figure 10 is a kind of schematic diagram one of long-range storage and disaster tolerance backup method provided in an embodiment of the present invention;
Figure 11 is the schematic diagram that disaster-tolerant backup is carried out by Hypervisor or third party device;
Figure 12 is the schematic diagram that disaster-tolerant backup is carried out by disk array;
Figure 13 is the schematic diagram of prior art medium-long range storage and disaster tolerance backup method;
Figure 14 is a kind of structural representation one of disk array provided in an embodiment of the present invention;
Figure 15 is a kind of structural representation two of disk array provided in an embodiment of the present invention;
Figure 16 is a kind of structural representation three of disk array provided in an embodiment of the present invention;
Figure 17 is a kind of structural representation four of disk array provided in an embodiment of the present invention;
Figure 18 is a kind of structural representation one of the storage device of virtual machine configuration information provided in an embodiment of the present invention;
Figure 19 is a kind of structural representation two of the storage device of virtual machine configuration information provided in an embodiment of the present invention;
Figure 20 is a kind of structural representation three of the storage device of virtual machine configuration information provided in an embodiment of the present invention.
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 carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
To facilitate understanding of the present embodiment of the invention, the several arts that can be introduced in description of the embodiment of the present invention are introduced at this first
Language:
Virtual machine (Virtual Machine, VM):One can be simulated by software virtual machine on a physical host
Platform or more virtual computers, and these virtual machines are operated just as real computer, can be with virtual machine
Installation operation system and application program, virtual machine may also access Internet resources.For the application program run in virtual machine and
Speech, virtual machine is like that real computer is operated.
Hypervisor:A kind of intermediate software layer operated between basic physicses server and operating system, can allow
Multiple operating systems and Application sharing hardware.All physics on server including disk and internal memory can be accessed to set
It is standby.When basic physicses startup of server and when performing Hypervisor, it can load the operating system of all virtual machines, simultaneously meeting
Distribute to each appropriate internal memory of virtual machine, CPU, network and disk.
Logic magnetic disc:The logic that memory space divides according to preconsolidation stress and function is stored into list on physical storage device
Member.It should be understood that logic magnetic disc is not equal to some specific equipment, simply logic storage unit.Each logic magnetic disc has one
Corresponding LUN (Logical Unit Number, LUN), to identify the logic magnetic disc.One or more logic magnetic
Disk can form virtual machine file system, to deposit the virtual disk data of virtual machine.
Secondly, a kind of dummy machine system configuration diagram is provided, as shown in figure 1, including:Virtual machine 10,
Logic magnetic disc 131 on Hypervisor11, management node 12 and redundant array of inexpensive disks 13.Wherein, stored in logic magnetic disc 131
There is virtual disk data, virtual machine configuration information is stored with management node 12.After single point failure occurs in management node 12, protect
The virtual machine configuration information that management node 12 be present will be lost, relevant virtual disk storage location in virtual machine configuration information
Information can also lose therewith, consequently, it is possible to the logic magnetic disc where can not just knowing the virtual disk of virtual machine and virtual machine
Corresponding relation, so as to also can not just start virtual machine.
It should be understood that the embodiment of the present invention can apply in the virtual platforms such as xen, KVM, can also be applied to any one
In the individual storage for needing progress virtual machine configuration information, the virtual platform read, the embodiment of the present invention is not limited to this.
Embodiment one,
The embodiment of the present invention provides a kind of storage method of virtual machine configuration information, it is specific as shown in Fig. 2 including:
S201, disk array obtain the logic magnetic disc corresponding to VM virtual machine configuration information and VM where virtual disk
LUN。
Virtual machine configuration information is write control information region corresponding to logic magnetic disc by S202, disk array according to LUN.
Wherein, virtual machine configuration information refers to the attribute information of virtual machine, as the title of virtual machine, virtual device information,
Disk storage characteristic information etc..Generally, it is contemplated that versatility and otherness, virtual machine configuration information can be divided into three parts letter
Breath is stored, referring to table -1.
Table -1
General information | Virtualize manufacturer's self-defined information | Store manufacturer's self-defined information |
Wherein, general information refers to the universal virtual machine information unrelated with manufacturer, such as universal virtual machine unique identifier
(Universally Unique Identifier, UUID), virtual machine title, client operating system (Guest OS) title,
Central processing unit (Central Processing Unit, CPU) specification of virtual machine, memory standards of virtual machine etc.;Virtualization
Manufacturer's self-defined information refers to virtualize the virtual machine information that manufacturer defines, as virtual machine correlation properties information, virtual machine are virtual
Facility information, virtual machine state information etc.;Storage manufacturer self-defined information refers to that storage plant decides through consultation the virtual machine information of justice, such as empty
Plan machine disk storage characteristic information, magnetic disk of virtual machine SNAPSHOT INFO, magnetic disk of virtual machine Mirror Info etc..
It should be noted that under existing stored electricity agreement, control information area is included on each logic magnetic disc
Two regions in domain and user data area.Wherein, what is stored in control information region is the data of attribute information of logic magnetic disc, such as
The LUN of logic magnetic disc, title, affiliated storage device etc.;User data area storage is that user specifies the data stored.It is logical
Often, user can access and manage the data of user data area, and have no right the data in managing control information region.Therefore, will
Virtual machine configuration information, which is stored in control information region, can prevent user from changing virtual machine configuration information;In addition, compared to
The data in user data region, the data in control information region it is relatively fewer, therefore, virtual machine configuration information is stored in control
Information area can realize the quick lookup of virtual machine configuration information.
Preferably, as shown in figure 3, in the storage method of virtual machine configuration information provided in an embodiment of the present invention, disk
Array obtains the LUN (step S201) of the logic magnetic disc where virtual disk corresponding to VM virtual machine configuration information and VM, tool
Body can include:
S201a, disk array receive write request message, and write request message carries virtual machine configuration information and LUN.
S201b, disk array obtain virtual machine configuration information and LUN according to write request message.
Wherein, write request message can be specifically that Hypervisor is sent or third party device is sent,
It can also be what another disk array was sent, the embodiment of the present invention is not especially limited to this.
It should be noted that write request message specifically can be used for newly-increased virtual machine configuration information, i.e., in logic magnetic disc
Control information region in non-storage virtual machine configuration information when, disk array receive write request message, disappear from write request
Virtual machine configuration information and LUN are obtained in breath, and according to LUN, by the control information of virtual machine configuration information write-in logic magnetic disc
Region, to add virtual machine configuration information in logic magnetic disc control information region;Write request message can be also used for updating
Virtual machine configuration information, i.e., when being stored with virtual machine configuration information in the control information region of logic magnetic disc, disk array
Write request message is received, virtual machine configuration information and LUN are obtained from write request message, and according to LUN, virtual machine is matched somebody with somebody
Control information region corresponding to confidence breath write-in logic magnetic disc, with original virtual machine in covering logic disk control information region
Configuration information, update the virtual machine configuration information in logic magnetic disc control information region.The embodiment of the present invention is not made specifically to this
Limit.
Preferably, in the storage method of virtual machine configuration information provided in an embodiment of the present invention, disk array is received and write
Enter request message (step S201a), can specifically include:
Disk array receive by small computer system interface (Small Computer System Interface,
SCSI) the write request message sent with interior order.
Or
Disk array receives the write request message that the control management interface provided by storage system is sent.
Further, as shown in figure 4, in the storage method of virtual machine configuration information provided in an embodiment of the present invention,
Disk array is according to LUN, before virtual machine configuration information is write into control information region (step S202) corresponding to logic magnetic disc,
It can also include:
S203, disk array determine whether stored in control information region corresponding to logic magnetic disc and the virtual machine configuration
The different virtual machine configuration information of information.
S204, if so, disk array deletes the virtual machine configuration information different from the virtual machine configuration information.
That is, if logic magnetic disc can not realize data cover, after disk array receives write request message, however, it is determined that
The virtual machine configuration information different from the virtual machine configuration information is stored in control information region corresponding to logic magnetic disc, needs head
Virtual machine configuration information different from the virtual machine configuration information in the logic magnetic disc control information region is first deleted, then will
The virtual machine configuration information carried in write request message writes the control information region, and the embodiment of the present invention is not made specifically to this
Limit.
Preferably, as shown in figure 5, in the storage method of virtual machine configuration information provided in an embodiment of the present invention, in magnetic
After virtual machine configuration information is write control information region (step S202) corresponding to logic magnetic disc by disk array, it can also wrap
Include:
S205, disk array receive deletion request message, and deletion request message is used to indicate to delete corresponding to logic magnetic disc
Virtual machine configuration information in control information region;
S206, disk array delete virtual machine configuration information according to deletion request message.
Consequently, it is possible in the virtual machine configuration information in not needing logic magnetic disc, you can virtual machine configuration information is deleted
Remove, to reduce the occupancy to the control information region of logic magnetic disc, discharge the storage in the control information region of logic magnetic disc in time
Space.
The storage method of virtual machine configuration information provided in an embodiment of the present invention, the virtual machine that disk array first obtains VM are matched somebody with somebody
Confidence cease and VM corresponding to logic magnetic disc where virtual disk LUN, then according to LUN, virtual machine configuration information is write
Control information region corresponding to logic magnetic disc.In the prior art, because virtual disk data and virtual machine configuration information are separated
Preserve, virtual disk data is stored in logic magnetic disc, and virtual machine configuration information is stored in management node.Therefore,
When single point failure occurs in management node, virtual machine configuration information will be caused not access, so can not know virtual machine with
The corresponding relation of logic magnetic disc where the virtual disk of virtual machine, ultimately resulting in virtual machine can not start.And based on the present invention
The storage method for the virtual machine configuration information that embodiment provides, virtual machine configuration information is stored in the control information of logic magnetic disc
Region, therefore, still can be by accessing the logic where the virtual disk of virtual machine even if single point failure occurs in management node
The control information region of disk, realizes the access to virtual machine configuration information.And according to virtual machine configuration information and virtual machine
Virtual disk data, you can normally start virtual machine.That is, the storage side of virtual machine configuration information provided in an embodiment of the present invention
Method, the dependence to management node can be reduced, make virtual machine configuration information still available when management node fails.
Embodiment two,
The embodiment of the present invention provides a kind of storage method of virtual machine configuration information, it is specific as shown in fig. 6, including:
S601, the LUN for obtaining logic magnetic disc corresponding to VM virtual machine configuration information and VM where virtual disk.
S602, virtual machine configuration information and LUN be sent to disk array, by disk array according to LUN, virtual machine is matched somebody with somebody
Control information region corresponding to confidence breath write-in logic magnetic disc.
It should be noted that in embodiments of the present invention, above-mentioned storage method can be performed by Hypervisor, can also
Performed, can also be performed as the disk array where storing the logic magnetic disc of the virtual machine configuration information by third party device,
The embodiment of the present invention is not especially limited to this.
Preferably, in the storage method of virtual machine configuration information provided in an embodiment of the present invention, virtual machine configuration is believed
Breath and LUN are sent to disk array, can specifically include:
Send write request message and carry virtual machine configuration information and LUN to disk array, write request message.
It should be noted that write request message specifically can be used for newly-increased virtual machine configuration information, i.e., in logic magnetic disc
Control information region in non-storage virtual machine configuration information when, send write request message to disk array, by disk array
Virtual machine configuration information and LUN are obtained from write request message, and according to LUN, virtual machine configuration information is write into logic magnetic
The control information region of disk, to add virtual machine configuration information in logic magnetic disc control information region;Write request message is also
It can be used for updating virtual machine configuration information, i.e., be stored with virtual machine configuration information in the control information region of logic magnetic disc
When, send write request message to disk array, obtained by disk array from write request message virtual machine configuration information and
LUN, and according to LUN, virtual machine configuration information is write into control information region corresponding to logic magnetic disc, with covering logic disk control
Original virtual machine configuration information in information area processed, update the virtual machine configuration information in logic magnetic disc control information region.
Preferably, in the storage method of virtual machine configuration information provided in an embodiment of the present invention, send write request and disappear
Cease to disk array, can specifically include:
Write request message is sent to disk array by being ordered in small computer system interface SCSI tape.
Or
The control management interface provided by storage system sends write request message to disk array.
Preferably, in the storage method of virtual machine configuration information provided in an embodiment of the present invention, by virtual machine configuration
Information and LUN are sent to after disk array, can also be included:
Deletion request message is sent to disk array, deletion request message is used to indicate to delete corresponding to logic magnetic disc to control
Virtual machine configuration information in information area.
Consequently, it is possible in the virtual machine configuration information in not needing logic magnetic disc, you can virtual machine configuration information is deleted
Remove, to reduce the occupancy to the control information region of logic magnetic disc, discharge the storage in the control information region of logic magnetic disc in time
Space.
The storage method of virtual machine configuration information provided in an embodiment of the present invention, by the virtual machine configuration information for obtaining VM
With VM corresponding to logic magnetic disc where virtual disk LUN, virtual machine configuration information and LUN are sent to disk array, so
Virtual machine configuration information is write by control information region corresponding to logic magnetic disc according to LUN by disk array afterwards.Prior art
In, because virtual disk data and virtual machine configuration information are retained separately, virtual disk data is stored in logic magnetic disc,
And virtual machine configuration information is stored in management node.Therefore, when single point failure occurs in management node, will cause virtual
Machine configuration information can not access, and then the corresponding relation of logic magnetic disc that can not be where the virtual disk of virtual machine and virtual machine,
Ultimately resulting in virtual machine can not start.And based on the storage method of virtual machine configuration information provided in an embodiment of the present invention, by void
Plan machine configuration information is stored in the control information region of logic magnetic disc, therefore, even if single point failure occurs in management node, still may be used
With the control information region by accessing the logic magnetic disc where the virtual disk of virtual machine, realize to virtual machine configuration information
Access.And according to virtual machine configuration information and the virtual disk data of virtual machine, you can normally start virtual machine.That is, it is of the invention
The storage method for the virtual machine configuration information that embodiment provides, can reduce the dependence to management node, be failed in management node
When make virtual machine configuration information still available.
Embodiment three,
The embodiment of the present invention provides a kind of read method of virtual machine configuration information, it is specific as shown in fig. 7, comprises:
The LUN of logic magnetic disc corresponding to S701, acquisition VM where virtual disk.
S702, according to LUN, read the virtual machine configuration letter prestored in control information region corresponding to logic magnetic disc
Breath.
It should be noted that in embodiments of the present invention, above-mentioned read method can be performed by Hypervisor, can also
Performed by third party device, can also be as the disk array where storing the logic magnetic disc of the virtual machine configuration information outside
Disk array is performed, and the embodiment of the present invention is not especially limited to this.
Preferably, in the read method of virtual machine configuration information provided in an embodiment of the present invention, obtain empty corresponding to VM
The LUN (step S701) of logic magnetic disc where plan disk, can specifically include:
Obtain the LUN of the logic magnetic disc corresponding to the VM on SCSI where virtual disk.
Specifically, all on SCSI patrol can be obtained by scanning host bus adapter card (Host Bus Adaptor, HBA)
The LUN of disk list is collected, according to the mark of the list and VM, you can patrolling where virtual disk corresponding to acquisition VM
Collect the LUN of disk.Certainly, logic magnetic disc can be also specified by user, i.e., the LUN of logic magnetic disc is provided by user, the present invention is implemented
Example is not especially limited to this.
Further, as shown in figure 8, in the read method of virtual machine configuration information provided in an embodiment of the present invention,
According to LUN, read the virtual machine configuration information (step S702) that is prestored in control information region corresponding to logic magnetic disc it
Before, it can also include:
S703, according to LUN, send the first request message to the disk array where logic magnetic disc, the first request message please
Seek reading virtual machine configuration information.
The request confirmation message that disk array where S704, reception logic magnetic disc is sent, request confirmation message instruction are permitted
Perhaps virtual machine configuration information is read.
That is, after the disk array where logic magnetic disc allows to read virtual machine configuration information, then virtual machine configuration is read
Information.It so, it is possible to prevent multiple equipment while read the virtual machine configuration information of the logic magnetic disc and conflict, it is ensured that set
It is standby to get virtual machine configuration information;On the other hand, read again in the case where the disk array where logic magnetic disc allows
Take virtual machine configuration information, it is ensured that the security of virtual machine configuration information.
Further, in the read method of virtual machine configuration information provided in an embodiment of the present invention, virtual machine configuration letter
VM of the breath comprising VM is identified.
Then, according to LUN, the virtual machine configuration information prestored in control information region corresponding to logic magnetic disc is read
After (step S702), it can also include:
Identified according to VM, by virtual disk carry to VM.
Further, in the read method of virtual machine configuration information provided in an embodiment of the present invention, marked according to VM
Know, after virtual disk carry to VM, can also include:
According to virtual machine configuration information, start VM.
That is, after by virtual disk carry to corresponding VM, you can according to advance in the control information region of logic magnetic disc
The virtual machine configuration information of storage starts VM.
Preferably, in the read method of virtual machine configuration information provided in an embodiment of the present invention, match somebody with somebody according to virtual machine
Confidence ceases, and before starting VM, can also include:
The second request message is received, the second request message requests start VM.
Then, VM is started according to virtual machine configuration information, can specifically included:
According to the second request message, and virtual machine configuration information, start VM.
That is, it after by virtual disk carry to corresponding VM, can wouldn't start VM, but confirm to receive and start VM's
After request, start VM further according to the virtual machine configuration information prestored in the control information region of logic magnetic disc.
It should be noted that in the prior art, after single point failure occurs in management node, it is stored in the void of management node
Plan machine configuration information will be lost, and the information about virtual disk storage location in virtual machine configuration information can also be lost therewith,
Consequently, it is possible to the corresponding relation of the logic magnetic disc where can not just knowing the virtual disk of virtual machine and virtual machine, so that can not
Start virtual machine.Now, virtual machine is normally started, it is necessary to first recovery management node and the virtual magnetic of virtual machine and virtual machine
The corresponding relation of logic magnetic disc where disk, and this process generally require it is substantial amounts of manually operated.And if by virtual machine configuration
Information is stored in advance in control information region corresponding to logic magnetic disc, can be by after single point failure occurs in management node
Hypervisor reads the virtual machine configuration information (referring to Fig. 9) being stored in control information region by taking order, still
Virtual machine configuration information can be got, and then virtual disk data is obtained according to virtual machine configuration information, it is normal to start virtually
Machine.
The read method of virtual machine configuration information provided in an embodiment of the present invention, by first obtaining virtual disk corresponding to VM
The LUN of the logic magnetic disc at place, then according to LUN, read the void prestored in control information region corresponding to logic magnetic disc
Plan machine configuration information.In the prior art, because virtual disk data and virtual machine configuration information are retained separately, virtual disk number
According to being stored in logic magnetic disc, and virtual machine configuration information is stored in management node.Therefore, when list occurs in management node
During point failure, virtual machine configuration information will be caused not access, and then the virtual disk of virtual machine and virtual machine can not be known
The corresponding relation of the logic magnetic disc at place, virtual machine is caused not start.And matched somebody with somebody based on virtual machine provided in an embodiment of the present invention
The read method of confidence breath, due to virtual machine configuration information to be stored in advance in the control information region of logic magnetic disc, therefore, i.e.,
Management node single point failure is occurred, still can be believed by accessing the control of the logic magnetic disc where the virtual disk of virtual machine
Region is ceased, realizes the access to virtual machine configuration information, and then according to virtual machine configuration information and the virtual disk number of virtual machine
Start virtual machine according to normal.That is, the read method of virtual machine configuration information provided in an embodiment of the present invention, can reduce to management
The dependence of node, make virtual machine configuration information still available when management node fails.
Example IV,
The embodiment of the present invention provides a kind of storage of the virtual machine configuration information provided using the above embodiment of the present invention, read
Method is taken, the method for carrying out the standby recovery of calamity is as follows:
1st, before the standby recovery of calamity:
Referring to Figure 10, when disaster side 11 is not yet broken down, it is necessary to the void that will be stored in logic magnetic disc in disaster side 11
The relevant information of plan machine backs up to calamity in corresponding logic magnetic disc in side 12.Specifically, by the logic magnetic of disaster side 11
The relevant information of the virtual machine stored in disk 1 backs up to calamity for exemplified by the logic magnetic disc 4 of side 12:As shown in figure 11, first, by
The read method for the virtual machine configuration information that Hypervisor or third party device are provided by the embodiment of the present invention three, by logic
Virtual machine configuration information in the control information region of disk 1 is read out;Then, the embodiment of the present invention one and embodiment are passed through
The storage method of two virtual machine configuration informations provided, the virtual machine configuration information is stored to the control information of logic magnetic disc 4
Region.Certainly, the method that can be also provided by the disk array B where logic magnetic disc 4 by the embodiment of the present invention three is directly from patrolling
Collect in disk 1 and read virtual machine configuration information, then the method provided by the embodiment of the present invention one writes virtual machine configuration information
Enter control information region, as shown in figure 12.The embodiment of the present invention is not especially limited to this.
In addition, it is necessary to explanation, before the standby recovery of calamity, it is also necessary to by the user data area of logic magnetic disc in disaster side 11
The virtual disk data stored in domain also backs up to user data area of the calamity for corresponding logic magnetic disc in side 12, and the present invention is real
Example is applied to be not especially limited this.
2nd, calamity is standby recovers:
Calamity obtains calamity for the void in the logic magnetic disc of side for the method that side Hypervisor is provided by the embodiment of the present invention three
Plan machine configuration information;VM marks in virtual machine configuration information, determine the virtual machine belonging to the virtual machine configuration information, and
By virtual disk carry to corresponding virtual machine;And then virtual machine can be started according to the virtual machine configuration information.
In the prior art, when carrying out long-range storage and disaster tolerance backup, the LUN of logic magnetic disc can change.Referring to Figure 13, example
Such as, in disaster side 11, VM1 virtual disk data is stored in logic magnetic disc 1, and after backup, in calamity for side 12, VM1's is virtual
Data in magnetic disk is backed up to logic magnetic disc 4, and the LUN of logic magnetic disc 1 is different from the LUN of logic magnetic disc 4.Calamity is for side 12
The VM1 stored in management node B virtual machine configuration information is replicated by the management node A of disaster side 11, therefore, root
According to the virtual machine configuration information of VM1 in management node B, VM1 virtual disk data is stored in logic magnetic disc 1.And in fact,
It is stored in calamity for side 12, VM1 virtual disk data in logic magnetic disc 4.So in calamity for side 12, virtual machine and virtual machine
Virtual disk where logic magnetic disc can not be mapped.At this time, it may be necessary to re-establish virtual machine and virtual in management node
The corresponding relation of logic magnetic disc where the virtual disk of machine, and this operation is wasted time and energy.
The standby recovery of long-range calamity is carried out using the storage of virtual machine configuration information provided in an embodiment of the present invention, read method
When, virtual machine configuration information can directly be obtained by taking name for the Hypervisor of side by calamity, according to virtual machine configuration
Virtual machine mark in information, you can know which virtual machine the virtual disk data of logic magnetic disc storage belongs to.That is, pass through
The storage of the virtual machine configuration information of the offer of the embodiment of the present invention, read method, when carrying out that calamity is standby to be recovered, without in calamity for side
Management node, which carries out data recovery, can obtain the correct right of logic magnetic disc where the virtual disk of virtual machine and virtual machine
It should be related to.Compared with prior art, calamity provided in an embodiment of the present invention eliminates substantial amounts of recovery operation for restoration methods,
After disaster side is broken down, virtual machine can be quickly started up, it is ensured that virtual machine being capable of normal use.
Embodiment five,
The embodiment of the present invention provides a kind of redundant array of inexpensive disks 1 40, and the virtual machine for performing the offer of the embodiment of the present invention one is matched somebody with somebody
The storage method of confidence breath, it is specific as shown in figure 14, including:Acquiring unit 1401 and writing unit 1402.
Wherein, acquiring unit 1401, for where obtaining virtual disk corresponding to VM virtual machine configuration information and VM
The LUN of logic magnetic disc.
Writing unit 1402, for according to LUN, virtual machine configuration information to be write into control letter corresponding to logic magnetic disc 140
Cease region.
Preferably, as shown in figure 15, in redundant array of inexpensive disks 1 40 provided in an embodiment of the present invention, acquiring unit 1401 is specific
Including:Receiving module 1401a and acquisition module 1401b.
Wherein, receiving module 1401a, for receiving write request message, write request message carries virtual machine configuration letter
Breath and LUN.
Acquisition module 1401b, for according to write request message, obtaining virtual machine configuration information and LUN.
Set it should be noted that write request message can be specifically Hypervisor transmissions or third party
What preparation was sent, it can also be what another disk array was sent, the embodiment of the present invention is not especially limited to this.
Preferably, in redundant array of inexpensive disks 1 40 provided in an embodiment of the present invention, receiving module 1401a is specifically used for:
Receive the write request message by order transmission in SCSI tape.
Or
Receive the write request message that the control management interface provided by storage system is sent.
Further, as shown in figure 16, redundant array of inexpensive disks 1 40 provided in an embodiment of the present invention can also include:Determining unit
1403 and first delete unit 1404.
Wherein it is determined that unit 1403, for, according to LUN, virtual machine configuration information being write into logic in writing unit 1402
Before control information region corresponding to disk 140, determine whether to store in control information region corresponding to logic magnetic disc 140 and institute
State the different virtual machine configuration information of virtual machine configuration information.
First deletes unit 1404, for if it is determined that unit 1403 determines to deposit in control information region corresponding to logic magnetic disc
The storage virtual machine configuration information different from the virtual machine configuration information, virtual different from the virtual machine configuration information of deletion
Machine configuration information.
That is, if disk array can not realize data cover, after disk array receives write request message, however, it is determined that
The virtual machine configuration information different from the virtual machine configuration information is stored in control information region corresponding to logic magnetic disc, needs head
Virtual machine configuration information different from the virtual machine configuration information in the logic magnetic disc control information region is first deleted, then will
The virtual machine configuration information carried in write request message writes the control information region, and the embodiment of the present invention is not made specifically to this
Limit.
Preferably, as shown in figure 17, redundant array of inexpensive disks 1 40 provided in an embodiment of the present invention can also include:Receiving unit
1405 and second delete unit 1406.
Wherein, receiving unit 1405, for, according to LUN, virtual machine configuration information being write into logic in writing unit 1402
After control information region corresponding to disk, deletion request message is received, deletion request message is used to indicate to delete logic magnetic disc
Virtual machine configuration information in control information region corresponding to 140.
Second deletes unit 1406, for according to deletion request message, deleting virtual machine configuration information.
Consequently, it is possible in the virtual machine configuration information in not needing logic magnetic disc, you can virtual machine configuration information is deleted
Remove, to reduce the occupancy to the control information region of logic magnetic disc, discharge the storage in the control information region of logic magnetic disc in time
Space.
In logic magnetic disc provided in an embodiment of the present invention, first by acquiring unit acquisition VM virtual machine configuration information and VM pairs
The LUN of logic magnetic disc where the virtual disk answered, then virtual machine configuration information write-in is patrolled according to LUN by writing unit
Collect control information region corresponding to disk.In the prior art, because virtual disk data and virtual machine configuration information are separately protected
Deposit, virtual disk data is stored in logic magnetic disc, and virtual machine configuration information is stored in management node.Therefore, when
When single point failure occurs in management node, virtual machine configuration information will be caused not access, and then virtual machine and void can not be known
The corresponding relation of logic magnetic disc where the virtual disk of plan machine, ultimately resulting in virtual machine can not start.It is and real based on the present invention
The logic magnetic disc of example offer is provided, virtual machine configuration information is stored in the control information region of logic magnetic disc, therefore, even if management
There is single point failure in node, still can be by accessing the control information area of the logic magnetic disc where the virtual disk of virtual machine
Domain, realize the access to virtual machine configuration information.And according to virtual machine configuration information and the virtual disk data of virtual machine, you can
It is normal to start virtual machine.That is, logic magnetic disc provided in an embodiment of the present invention, can reduce the dependence to management node, manage
Make virtual machine configuration information still available during node failure.
Embodiment six,
The embodiment of the present invention provides a kind of storage device 180 of virtual machine configuration information, for performing the embodiment of the present invention
The read method of two virtual machine configuration informations provided, it is specific as shown in figure 18, including:Acquiring unit 1801 and first is sent out
Send unit 1802.
Wherein, acquiring unit 1801, for where obtaining virtual disk corresponding to VM virtual machine configuration information and VM
The LUN of logic magnetic disc.
First transmitting element 1802, will by disk array for virtual machine configuration information and LUN to be sent into disk array
Control information region corresponding to virtual machine configuration information write-in logic magnetic disc.
It should be noted that the storage device 180 of the virtual machine configuration information can be specifically Hypervisor, also may be used
To be third party device, the disk array where the logic magnetic disc for storing the virtual machine configuration information is can also be, the present invention
Embodiment is not especially limited to this.
Preferably, as shown in figure 19, in the storage device 180 of virtual machine configuration information provided in an embodiment of the present invention,
First transmitting element 1802 can include:Sending module 1802a.
Sending module 1802a, for sending write request message to disk array, write request message carries virtual machine and matched somebody with somebody
Confidence ceases and LUN.
Preferably, sending module 1802a specifically can be used for:
Write request message is sent to disk array by being ordered in SCSI tape.
Or
The control management interface provided by storage system sends write request message to disk array.
Preferably, as shown in figure 20, the storage device 180 of virtual machine configuration information provided in an embodiment of the present invention, may be used also
With including:Second transmitting element 1803.
Second transmitting element 1803, for virtual machine configuration information and LUN to be sent into magnetic in the first transmitting element 1802
After disk array, deletion request message is sent to disk array, and deletion request message is used to indicate to delete corresponding to logic magnetic disc
Virtual machine configuration information in control information region.
Consequently, it is possible in the virtual machine configuration information in not needing logic magnetic disc, you can virtual machine configuration information is deleted
Remove, to reduce the occupancy to the control information region of logic magnetic disc, discharge the storage in the control information region of logic magnetic disc in time
Space.
In the storage device of virtual machine configuration information provided in an embodiment of the present invention, VM virtual machine is obtained by acquiring unit
The LUN of logic magnetic disc corresponding to configuration information and VM where virtual disk, and believed virtual machine configuration by the first transmitting element
Breath and LUN are sent to disk array, then control and believe as corresponding to disk array by virtual machine configuration information write-in logic magnetic disc
Cease region.In the prior art, because virtual disk data and virtual machine configuration information are retained separately, virtual disk data is protected
Exist in logic magnetic disc, and virtual machine configuration information is stored in management node.Therefore, when single point failure occurs in management node
When, virtual machine configuration information will be caused not access, and then can not be where the virtual disk of virtual machine and virtual machine logic
The corresponding relation of disk, ultimately resulting in virtual machine can not start.And virtual machine configuration information provided in an embodiment of the present invention is deposited
Storage device, virtual machine configuration information is stored in the control information region of logic magnetic disc, therefore, even if single-point occurs in management node
Failure, still it can be realized by accessing the control information region of the logic magnetic disc where the virtual disk of virtual machine to virtual
The access of machine configuration information.And according to virtual machine configuration information and the virtual disk data of virtual machine, you can normal to start virtually
Machine.That is, the storage device of virtual machine configuration information provided in an embodiment of the present invention, can reduce the dependence to management node,
Management node makes virtual machine configuration information still available when failing.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description,
, can be as needed and by above-mentioned function distribution only with the division progress of above-mentioned each functional module for example, in practical application
Completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, it is described above to complete
All or part of function.The specific work process of the system of foregoing description, device and unit, it may be referred to preceding method implementation
Corresponding process in example, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the module or
The division of unit, only a kind of division of logic function, can there are other dividing mode, such as multiple units when actually realizing
Or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute
Display or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, device or unit
INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
It is each that equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention
The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (18)
1. a kind of storage method of virtual machine configuration information, it is characterised in that methods described includes:
The logic list of logic magnetic disc corresponding to acquisition virtual machine VM virtual machine configuration information and the VM where virtual disk
Member LUN;
According to the LUN, the virtual machine configuration information is write into control information region corresponding to the logic magnetic disc.
2. according to the method for claim 1, it is characterised in that the virtual machine configuration information for obtaining virtual machine VM and institute
The LUN LUN of the logic magnetic disc where virtual disk corresponding to VM is stated, including:
Write request message is received, said write request message carries the virtual machine configuration information and the LUN;
According to said write request message, the virtual machine configuration information and the LUN are obtained.
3. according to the method for claim 2, it is characterised in that the reception write request message, including:
Receive the said write request message by order transmission in small computer system interface SCSI tape;
Or
Receive the said write request message that the control management interface provided by storage system is sent.
4. according to the method described in claim any one of 1-3, it is characterised in that, will be described virtual described according to the LUN
Machine configuration information is write before control information region corresponding to the logic magnetic disc, in addition to:
Determine the void different from the virtual machine configuration information whether is stored in control information region corresponding to the logic magnetic disc
Plan machine configuration information;
If so, delete the virtual machine configuration information different from the virtual machine configuration information.
5. according to the method for claim 1, it is characterised in that described according to the LUN, the virtual machine configuration is believed
Breath is write after control information region corresponding to the logic magnetic disc, in addition to:
Deletion request message is received, the deletion request message is used to indicate to delete control information area corresponding to the logic magnetic disc
The virtual machine configuration information in domain;
According to the deletion request message, the virtual machine configuration information is deleted.
6. a kind of storage method of virtual machine configuration information, it is characterised in that methods described includes:
The logic list of logic magnetic disc corresponding to acquisition virtual machine VM virtual machine configuration information and the VM where virtual disk
Member LUN;
The virtual machine configuration information and the LUN are sent to disk array, will by the disk array according to the LUN
The virtual machine configuration information writes control information region corresponding to the logic magnetic disc.
7. according to the method for claim 6, it is characterised in that described to send out the virtual machine configuration information and the LUN
Disk array is given, including:
Send write request message and carry the virtual machine configuration information and institute to the disk array, said write request message
State LUN.
8. according to the method for claim 7, it is characterised in that the transmission write request message to the disk array,
Including:
Said write request message is sent to the disk array by being ordered in small computer system interface SCSI tape;
Or
The control management interface provided by storage system sends said write request message to the disk array.
9. according to the method for claim 6, it is characterised in that described by the virtual machine configuration information and the LUN
It is sent to after disk array, in addition to:
Deletion request message is sent to the disk array, the deletion request message is used to indicate to delete the logic magnetic disc pair
The virtual machine configuration information in the control information region answered.
10. a kind of disk array, it is characterised in that the disk array includes:Acquiring unit and writing unit;
The acquiring unit, for obtain virtual machine VM virtual machine configuration information and the VM corresponding to where virtual disk
The LUN LUN of logic magnetic disc;
Said write unit, for according to the LUN, the virtual machine configuration information to be write into control corresponding to the logic magnetic disc
Information area processed.
11. disk array according to claim 10, it is characterised in that the acquiring unit includes:Receiving module and
Acquisition module;
The receiving module, for receiving write request message, said write request message carries the virtual machine configuration information
And the LUN;
The acquisition module, for according to said write request message, obtaining the virtual machine configuration information and the LUN.
12. disk array according to claim 11, it is characterised in that the receiving module is specifically used for:
Receive the said write request message by order transmission in small computer system interface SCSI tape;
Or
Receive the said write request message that the control management interface provided by storage system is sent.
13. according to the disk array described in claim any one of 10-12, it is characterised in that the disk array also includes:Really
Order member and the first deletion unit;
The determining unit, is used for:
In said write unit according to the LUN, the virtual machine configuration information is write into control corresponding to the logic magnetic disc
Before information area, determine whether stored in control information region corresponding to the logic magnetic disc and the virtual machine configuration information
Different virtual machine configuration informations;
Described first deletes unit, if determining to deposit in control information region corresponding to the logic magnetic disc for the determining unit
The storage virtual machine configuration information different from the virtual machine configuration information, delete described different from the virtual machine configuration information
Virtual machine configuration information.
14. disk array according to claim 10, it is characterised in that the disk array also includes:Receiving unit, with
And second delete unit;
The receiving unit, for, according to the LUN, will be patrolled in said write unit described in virtual machine configuration information write-in
After collecting control information region corresponding to disk, deletion request message is received, the deletion request message is used to indicate to delete institute
State the virtual machine configuration information in control information region corresponding to logic magnetic disc;
Described second deletes unit, for according to the deletion request message, deleting the virtual machine configuration information.
15. a kind of storage device of virtual machine configuration information, it is characterised in that described device includes:Acquiring unit and first
Transmitting element;
The acquiring unit, for obtain virtual machine VM virtual machine configuration information and the VM corresponding to where virtual disk
The LUN LUN of logic magnetic disc;
First transmitting element, for the virtual machine configuration information and the LUN to be sent into disk array, by the magnetic
The virtual machine configuration information is write control information region corresponding to the logic magnetic disc by disk array.
16. device according to claim 15, it is characterised in that first transmitting element includes:Sending module;
The sending module, for sending write request message to the disk array, described in said write request message carries
Virtual machine configuration information and the LUN.
17. device according to claim 16, it is characterised in that the sending module is specifically used for:
Said write request message is sent to the disk array by being ordered in small computer system interface SCSI tape;
Or
The control management interface provided by storage system sends said write request message to the disk array.
18. device according to claim 15, it is characterised in that described device also includes:Second transmitting element;
Second transmitting element, for sending the virtual machine configuration information and the LUN in first transmitting element
After disk array, deletion request message is sent to the disk array, and the deletion request message is used to indicate to delete institute
State the virtual machine configuration information in control information region corresponding to logic magnetic disc.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410668433.4A CN104461687B (en) | 2014-11-20 | 2014-11-20 | The storage method and device of a kind of virtual machine configuration information |
PCT/CN2015/083282 WO2016078422A1 (en) | 2014-11-20 | 2015-07-03 | Virtual machine configuration information storage method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410668433.4A CN104461687B (en) | 2014-11-20 | 2014-11-20 | The storage method and device of a kind of virtual machine configuration information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104461687A CN104461687A (en) | 2015-03-25 |
CN104461687B true CN104461687B (en) | 2018-03-09 |
Family
ID=52907791
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410668433.4A Active CN104461687B (en) | 2014-11-20 | 2014-11-20 | The storage method and device of a kind of virtual machine configuration information |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104461687B (en) |
WO (1) | WO2016078422A1 (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461687B (en) * | 2014-11-20 | 2018-03-09 | 华为技术有限公司 | The storage method and device of a kind of virtual machine configuration information |
CN105786489B (en) * | 2016-02-18 | 2019-05-17 | 山东乾云启创信息科技股份有限公司 | A kind of construction method of the stateless virtualization calculate node of safety |
CN108153578B (en) * | 2016-12-05 | 2022-02-25 | 北京国双科技有限公司 | Method and device for adding disk to virtual machine |
CN107391224A (en) * | 2017-06-09 | 2017-11-24 | 华为技术有限公司 | A kind of creation method of virtual volume, hanging method and device |
CN109728924A (en) * | 2017-10-30 | 2019-05-07 | 华为技术有限公司 | The method and apparatus for obtaining the configuration information of host |
CN109240804B (en) * | 2018-09-27 | 2020-09-22 | 苏州浪潮智能科技有限公司 | Method and device for managing disk resources of virtual machine |
CN109756397B (en) * | 2019-01-08 | 2021-05-18 | 深圳市网心科技有限公司 | Hardware sharing method, system and related equipment |
CN110908609B (en) * | 2019-11-22 | 2021-09-17 | 苏州浪潮智能科技有限公司 | Method, system and equipment for processing disk and readable storage medium |
CN111651235A (en) * | 2020-04-17 | 2020-09-11 | 北京奇艺世纪科技有限公司 | Virtual machine set task management method and device |
CN111708612B (en) * | 2020-08-18 | 2020-12-01 | 南京赛宁信息技术有限公司 | Network shooting range cloud platform data disk management system and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750110A (en) * | 2011-10-25 | 2012-10-24 | 北京同有飞骥科技股份有限公司 | High-reliable disk array system for configuration information |
CN103235746A (en) * | 2013-04-23 | 2013-08-07 | 深圳市京华科讯科技有限公司 | Automatic recovery method for server integrated machine |
CN103618627A (en) * | 2013-11-27 | 2014-03-05 | 华为技术有限公司 | Method, device and system for managing virtual machines |
CN103838639A (en) * | 2012-11-23 | 2014-06-04 | 华为技术有限公司 | Method, device and system for recovering metadata of virtual disk |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002132518A (en) * | 2000-10-25 | 2002-05-10 | Fujitsu Ltd | Virtual computer system and exchanging method of input- output apparatus among virtual computers |
US8578083B2 (en) * | 2009-03-03 | 2013-11-05 | Vmware, Inc. | Block map based I/O optimization for storage virtual appliances |
CN104461687B (en) * | 2014-11-20 | 2018-03-09 | 华为技术有限公司 | The storage method and device of a kind of virtual machine configuration information |
-
2014
- 2014-11-20 CN CN201410668433.4A patent/CN104461687B/en active Active
-
2015
- 2015-07-03 WO PCT/CN2015/083282 patent/WO2016078422A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750110A (en) * | 2011-10-25 | 2012-10-24 | 北京同有飞骥科技股份有限公司 | High-reliable disk array system for configuration information |
CN103838639A (en) * | 2012-11-23 | 2014-06-04 | 华为技术有限公司 | Method, device and system for recovering metadata of virtual disk |
CN103235746A (en) * | 2013-04-23 | 2013-08-07 | 深圳市京华科讯科技有限公司 | Automatic recovery method for server integrated machine |
CN103618627A (en) * | 2013-11-27 | 2014-03-05 | 华为技术有限公司 | Method, device and system for managing virtual machines |
Also Published As
Publication number | Publication date |
---|---|
CN104461687A (en) | 2015-03-25 |
WO2016078422A1 (en) | 2016-05-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104461687B (en) | The storage method and device of a kind of virtual machine configuration information | |
CN104487960B (en) | Automated disaster recovery and Data Migration | |
US20210011817A1 (en) | Virtual Machine Recovery Method and Virtual Machine Management Device | |
US8473462B1 (en) | Change tracking for shared disks | |
US8924664B2 (en) | Logical object deletion | |
US20140317369A1 (en) | Snapshot creation from block lists | |
US11836513B2 (en) | Transitioning volumes between storage virtual machines | |
CN105446826A (en) | Virtual machine backup and recovery method and device | |
CN104216801B (en) | The data copy method and system of a kind of Virtual environment | |
CN103620580A (en) | System and method for migration of data clones | |
CN106528327A (en) | Data processing method and backup server | |
CN101221485A (en) | Method for establishing redundant magnetic disk array and control device thereof | |
CN104272242A (en) | Creating encrypted storage volumes | |
CN104035837A (en) | Method for backing up isomorphic/isomerous UNIX/Linux host on line | |
US11372807B2 (en) | Converting storage objects between formats in a copy-free transition | |
US9251020B1 (en) | Systems and methods for file-level replication | |
US8856441B2 (en) | Dynamic hard disk mapping method and server using the same | |
CN107402839B (en) | Method and system for backing up data | |
CN104517067A (en) | Method, device and system for data access | |
US9213497B2 (en) | Storage apparatus and storage apparatus migration method | |
US8990528B2 (en) | Method for fast format of a fully allocated volume when copied from a space efficient volume | |
WO2016107219A1 (en) | Data recovery method and apparatus | |
US9983810B2 (en) | Avoiding data loss in a copy-free transition of storage objects | |
CN115576743B (en) | Operating system recovery method, operating system recovery device, computer equipment and storage medium | |
US8402231B2 (en) | Storage device, method for restoring data in storage device and storage controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |