CN103885811B - Method, system and device that dummy machine system total system is migrated online - Google Patents

Method, system and device that dummy machine system total system is migrated online Download PDF

Info

Publication number
CN103885811B
CN103885811B CN201210562317.5A CN201210562317A CN103885811B CN 103885811 B CN103885811 B CN 103885811B CN 201210562317 A CN201210562317 A CN 201210562317A CN 103885811 B CN103885811 B CN 103885811B
Authority
CN
China
Prior art keywords
data
main frame
machine system
target physical
dummy machine
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
Application number
CN201210562317.5A
Other languages
Chinese (zh)
Other versions
CN103885811A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201210562317.5A priority Critical patent/CN103885811B/en
Publication of CN103885811A publication Critical patent/CN103885811A/en
Application granted granted Critical
Publication of CN103885811B publication Critical patent/CN103885811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

Method, system and the device migrated online the invention discloses a kind of dummy machine system total system.The method includes:By before image file is replicated, according to default data division rule, the data of disk file are divided into activity data and inactive data, the operating system file of activity data and dummy machine system is combined as active image file, active image file is preferentially copied into target physical main frame, afterwards, the operation of dummy machine system is recovered on target physical main frame, is performed after the copy transmissions of inactive data are postponed till into dummy machine system operation.Method, system and device that dummy machine system total system provided by the present invention is migrated online, the switching time that less dummy machine system is migrated online can be realized, and shorten the break period of dummy machine system on-line operation, realize that flexibly, fast and efficiently dummy machine system total system is migrated online.

Description

Method, system and device that dummy machine system total system is migrated online
Technical field
The present invention relates to the side that Computer Applied Technology field, more particularly to a kind of dummy machine system total system are migrated online Method, system and device.
Background technology
Virtual machine(Virtual Machine)System migration typically refers to the dummy machine system that will be run on the physical host of source Move to and run on target physical main frame.In order to reach this target, it is necessary to by the data storage of dummy machine system and operation shape State is transferred to target physical main frame from source physical host, and the operation of dummy machine system is then recovered on target physical main frame.With Being continuously increased for business demand, the scale of virtual resource also constantly increases, especially in the data center resource pipe of Working level Reason, and the dummy machine system management between cross-domain data center, the total system of dummy machine system migrate demand also with increase, The data center of this dynamic environmental requirement enterprise or calculating center can complete more flexibly, fast and efficiently total system Migration task, therefore it provides a kind of method of the total system migration of high efficient and reliable is very necessary.
Dummy machine system migration at this stage is typically limited to a LAN, at present the migration of major part dummy machine system Research only focus on source physical host and target physical main frame shared disk storage situation.It that case, only needing to The internal memory and CPU state of dummy machine system are migrated, and such migration scheme can only solve the virtual machine in same LAN System dynamic problem of management.With the development and popularization of dummy machine system computing environment, the quantity of single local area network management machine The scalability of virtual computation environmental will be limited with network environment, when the dummy machine system on these machines needs to carry out cross-domain moving During shifting, local disk data are also required to be transferred to target physical main frame.Outer deposit data is typically included in interior virtual machine system System migration is referred to as total system migration.
Dummy machine system is migrated online, also referred to as thermophoresis, refers to the pause of dummy machine system in whole transition process Time is very short, and the service run on dummy machine system can respond the request of user all the time.Migration requires complete set to total system online Dummy machine system time out is of short duration in system transition process.
At present, a kind of virtualization product for supporting that total system is migrated online is mainly used " block migration "(Block Migration)Technology.Dummy machine system using multiple disk partition, it is necessary to each subregion is individually converted into image file, so Migrated again afterwards.When total system migration is carried out, the block migration of data storage is first carried out, preserve interior after block migration is finished Deposit, then suspend dummy machine system, and transmit all data blocks do not transmitted also;Completed in migration, discharge resource.Block is migrated Although technology realizes dummy machine system total system and migrates online, but after the migration for completing dummy machine system disk mirroring, stops Machine migrates disk incremental data and dummy machine system internal memory, CPU state, extends the migration break period, under causing migration performance Drop, the transit time of block migration is more long under normal circumstances.
Another online migration scheme of dummy machine system total system, after first carrying out storage migration, then carries out calculating and moves Move.But the program is only two kinds of simple combinations of migration mechanism, dummy machine system twice is caused to shut down, on dummy machine system Service affect greatly, while required transit time is also long.
The scheme of above total system migration online, complete dummy machine system transition process be required for time for spending compared with It is long, and concentrate occupancy host resource and Internet resources, the especially dummy machine system larger to disk size to migrate, or Person is under cross-domain network environment, to will take for more times.
The content of the invention
One side according to embodiments of the present invention, a technical problem to be solved is:A kind of virtual machine system is provided Method, system and device that system total system is migrated online, realize that quick dummy machine system total system is migrated online.
The method that a kind of dummy machine system total system provided in an embodiment of the present invention is migrated online, methods described includes:
Sub- image file is created, dummy machine system is set to read-only status in the disk file of source physical host, it is described Sub- image file is used for storage and is set to disk file to update the data the disk file after read-only status;
According to default data division rule, the data of the disk file are divided into activity data with inactive number According to;
The operating system file of the activity data and dummy machine system is combined as active image file, by the activity Image file copies to target physical main frame;
Stop the dummy machine system being run on the physical host of source, the sub- image file is copied into the object Reason main frame;
Recover the operation of the dummy machine system on target physical main frame;
The inactive data is copied into the target physical main frame.
Preferably, during the active image file is copied into target physical main frame, methods described also includes:
The dummy machine system required inactive data for using during source physical host runs is identified, will The required inactive data for using is reclassified as activity data, and the activity data that will be repartitioned it is preferential copy to it is described Target physical main frame.
Preferably, methods described also includes:
Identify that the updating the data for sub- image file storage is associated with inactive data, will be described associated non- Activity data is reclassified as activity data, and the activity data that will be repartitioned preferentially copies to the target physical main frame.
Preferably, after the operation for recovering the dummy machine system on the target physical main frame, methods described also includes:
Identify that the process of the dummy machine system needs to access and not yet copy to the inactive of the target physical main frame Data, sending prioritised transmission needs to be accessed for the request message of inactive main frame;
In response to receiving the request message, need to be accessed for inactive data to be reclassified as movable number by described According to, and the activity data that will be repartitioned preferentially copies to the target physical main frame.
Preferably, the inactive data is copied into the target physical main frame, is specifically included:
The network load between the source physical host and the target physical is recognized, or/and recognize the source thing Manage resource utilization, the resource utilization of the target physical main frame of main frame;
Meet predetermined low network load threshold value in response to the network load, or/and in response to the source physics The resource utilization of main frame, the resource utilization of the target physical main frame meet predetermined low-resource utilization rate threshold value respectively, The inactive data is copied into the target physical main frame.
Preferably, according to default data division rule, by the data of the disk file be divided into activity data with it is non- Activity data, specifically includes:
According to predetermined access time threshold value, recognize that the data are finally accessed time and the access time threshold value Precedence relationship;If the finally accessed time, the data were divided into inactive number earlier than the access time threshold value According to if the finally accessed time is equal to or is later than the access time threshold value, the data are divided into movable number According to;Or
According to predetermined visit frequency threshold value, data access frequency within a predetermined period of time and the access are recognized The magnitude relationship of frequency threshold;If the access frequency is less than the visit frequency threshold value, the data are divided into non-live Dynamic data, if the access frequency is more than or equal to the visit frequency threshold value, the data are divided into activity data.
Preferably, if the data belong to structured document, to be accessed for data recently in the structured document Access time, as the finally accessed time of all data in the structured document;Or with the structured document The most frequent access frequency for being accessed for data within a predetermined period of time, as the visit of all data in the structured document Ask frequency.
The device that a kind of dummy machine system total system provided in an embodiment of the present invention is migrated online, described device includes:
Sub- mirror image administrative unit, for creating sub- image file, by dummy machine system source physical host disk file It is set to read-only status, the sub- image file is used to storing disk file is set to after read-only status to disk text Part is updated the data;
Data staging unit, for according to default data division rule, the data of the disk file being divided into work Dynamic data and inactive data;
Copied cells, for the operating system file of the activity data and dummy machine system to be combined as into active image text Part, target physical main frame is copied to by the active image file;After the dummy machine system out of service, by the son Image file copies to the target physical main frame;After the operation for recovering the dummy machine system on the target physical main frame, The inactive data is copied into the target physical main frame;
Control unit, for after the active image file is copied into target physical main frame, in source physical host The upper operation for stopping the dummy machine system;After the sub- image file is copied into the target physical main frame, in mesh Recover the operation of the dummy machine system on mark physical host.
Preferably, described device also includes:
Source monitoring unit, for during the active image file is copied into target physical main frame, identifying The dummy machine system required inactive data for using during source physical host runs;
The data staging unit, is additionally operable to respond the recognition result of the source monitoring unit, by it is required use it is non- Activity data is reclassified as activity data;
The copied cells, the activity data for being additionally operable to repartition preferentially copies to the target physical main frame.
Preferably, the source monitoring unit, due also to identifying updating the data and non-live for the sub- image file storage Dynamic data are associated;
The data staging unit, is additionally operable to respond the recognition result of the source monitoring unit, will be described associated non- Activity data is reclassified as activity data;
The copied cells, the activity data for being additionally operable to repartition preferentially copies to the target physical main frame.
Preferably, described device also includes:
Target monitoring unit, for recover the dummy machine system on the target physical main frame operation after, identify The process of the dummy machine system needs to access the inactive data for not yet copying to the target physical main frame, sends preferential biography The defeated request message for needing to be accessed for inactive main frame;
The data staging unit, is additionally operable in response to receiving the request message, by it is described need to be accessed for it is non- Activity data is reclassified as activity data;
The copied cells, the activity data for being additionally operable to repartition preferentially copies to the target physical main frame.
Preferably, the copied cells, specifically for recognizing between the source physical host and the target physical main frame Network load, or/and recognize resource utilization, the utilization of resources of the target physical main frame of the source physical host Rate;
Meet predetermined low network load threshold value in response to the network load, or/and in response to the source physics The resource utilization of main frame, the resource utilization of the target physical main frame meet predetermined low-resource utilization rate threshold value respectively, The inactive data is copied into the target physical main frame.
Preferably, the data staging unit, specifically for according to predetermined access time threshold value, recognizing the data most The precedence relationship of time and the access time threshold value is accessed afterwards;If the finally accessed time is earlier than the access time Threshold value, then the data be divided into inactive data, if the finally accessed time is equal to or is later than the access Between threshold value, then the data be divided into activity data;Or
According to predetermined visit frequency threshold value, data access frequency within a predetermined period of time and the access are recognized The magnitude relationship of frequency threshold;If the access frequency is less than the visit frequency threshold value, the data are divided into non-live Dynamic data, if the access frequency is more than or equal to the visit frequency threshold value, the data are divided into activity data.
Preferably, if the data belong to structured document, the data staging unit, specifically for the structuring The access time of data is accessed in file recently, as when being finally accessed of all data in the structured document Between;Or with the most frequent access frequency for being accessed for data in the structured document within a predetermined period of time, as institute State the access frequency of all data in structured document.
The system that a kind of dummy machine system total system provided in an embodiment of the present invention is migrated online, the system includes:
The device that any one dummy machine system total system provided in an embodiment of the present invention is migrated online;
Source physical host, for before migration, operation dummy machine system, and the disk of storage virtual machine system to be literary Part;
Target physical main frame, for after migration, operation dummy machine system, and the disk of storage virtual machine system to be literary Part.
Based on method, system and device that the dummy machine system total system that the above embodiment of the present invention is provided is migrated online, By before image file is replicated, according to default data division rule, the data of disk file being divided into activity data With inactive data, the operating system file of the activity data and dummy machine system is combined as active image file, preferentially Target physical main frame is copied to, recovers the operation of dummy machine system on target physical main frame afterwards, and by inactive data Duplication is performed after postponing till dummy machine system operation.Thus, the less switching time of online migration, and shorten virtual The time of machine system outage, realize that flexibly, fast and efficiently dummy machine system total system is migrated online.
In fact, in the mass data of dummy machine system, it will usually have many inactive data, inactive data The 80% of all data volumes even can be reached.The transit time of inactive data is postponed, for provisional dummy machine system Migrate or need to be rapidly completed the application that dummy machine system is migrated, can in advance recover the operation of dummy machine system, contract significantly The short transition process dummy machine system break period.
By referring to the drawings to the detailed description of exemplary embodiment of the invention, further feature of the invention and its Advantage will be made apparent from.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also Other accompanying drawings are obtained with according to these accompanying drawings.
Simultaneously, it should be appreciated that for the ease of description, the size of the various pieces shown in accompanying drawing is not according to reality Proportionate relationship draw.Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then it need not be further discussed in subsequent accompanying drawing.
The Description of Drawings embodiments of the invention of a part for specification are constituted, and is used to solve together with the description Release principle of the invention.
Referring to the drawings, according to following detailed description, the present invention can be more clearly understood from, wherein:
Fig. 1 shows that a kind of flow of embodiment of method that dummy machine system total system provided by the present invention is migrated online is shown It is intended to;
Fig. 2 shows that a kind of structure of embodiment of device that dummy machine system total system provided by the present invention is migrated online is shown It is intended to;
Fig. 3 shows that a kind of structure of embodiment of system that dummy machine system total system provided by the present invention is migrated online is shown It is intended to.
Specific 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 is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Should note Anticipate and arrive:Unless specifically stated otherwise, the part and the positioned opposite of step for otherwise illustrating in these embodiments do not limit this hair Bright scope.
The description only actually at least one exemplary embodiment is illustrative below, never as to the present invention And its any limitation applied or use.Based on the embodiment in the present invention, those of ordinary skill in the art are not making wound The every other embodiment obtained under the premise of the property made work, belongs to the scope of protection of the invention.
May be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable In the case of, the technology, method and apparatus should be considered as authorizing a part for specification.
In all examples shown here and discussion, any occurrence should be construed as merely exemplary, without It is as limitation.Therefore, the other examples of exemplary embodiment can have different values.
Shown in Figure 1, Fig. 1 shows that the method that dummy machine system total system provided by the present invention is migrated online is a kind of real Apply the schematic flow sheet of example.The method that the dummy machine system total system that the embodiment is provided is migrated online includes:
101, sub- image file is created, the disk file by dummy machine system in source physical host is set to read-only status, Sub- image file is used for storage and is set to disk file to update the data disk file after read-only status;
102, according to default data division rule, the data of disk file are divided into activity data with inactive number According to;
103, the operating system file of activity data and dummy machine system is combined as active image file, by active image File copies to target physical main frame;
104, stop dummy machine system and run on the physical host of source, sub- image file is copied into target physical main frame;
105, the operation of dummy machine system is recovered on target physical main frame;
106, inactive data is copied into target physical main frame.
In the method that the above embodiment of the present invention is provided, by before image file is replicated, being drawn according to default data The data of disk file then, are divided into activity data and inactive data by divider, by activity data and the behaviour of dummy machine system Active image file is combined as system file, active image file is preferentially copied into target physical main frame, afterwards, in target Recover the operation of dummy machine system on physical host, dummy machine system is provided service as early as possible.By answering for inactive data System is performed after postponing till dummy machine system operation, reduces the switching time of online migration, reduces dummy machine system operation The time of interruption.Especially, activity data is generally much smaller compared to data in all disk files, with all disk files of duplication Compare, a large amount of transmission times can be saved, especially for the dummy machine system that big file is not accessed for comprising long-time, Such as video image file, effect becomes apparent.
A specific example according to the inventive method embodiment, the operation 103 of embodiment illustrated in fig. 1 is literary by active image During part copies to target physical main frame, the method also includes:
Dummy machine system required inactive data for using during source physical host runs is identified, will be required The inactive data to be used is reclassified as activity data, and the activity data repartitioned is copied into target physical master Machine.
A specific example according to the inventive method embodiment, the method also includes:
Identify that sub- updating the data for image file storage is associated with inactive data, by associated inactive data Activity data is reclassified as, and the activity data repartitioned is copied into target physical main frame.
A specific example according to the inventive method embodiment, after operation 105 is performed, i.e., in target physical main frame After the upper operation for recovering dummy machine system, the method also includes:
Identify that the process of dummy machine system needs to access the inactive data for not yet copying to target physical main frame, send Prioritised transmission needs to be accessed for the request message of inactive data;In response to receiving request message, it would be desirable to be accessed for Inactive data is reclassified as activity data, and the activity data that will be repartitioned preferentially copies to target physical main frame.
A specific example according to the inventive method embodiment, mesh is copied in the operation 106 of Fig. 1 by inactive data Mark physical host can specifically be accomplished by the following way:
Network load between identification source physical host and target physical main frame, or/and recognize source physical host The resource utilization of resource utilization, target physical main frame;
Meet predetermined low network load threshold value in response to network load, or/and in response to source physical host money Source utilization rate, the resource utilization of target physical main frame meet predetermined low-resource utilization rate threshold value respectively, by inactive data Copy to target physical main frame.
According to above-described embodiment, after dummy machine system resumes operation, can also progressively migrate inactive according to actual demand Data, according to physical host and the resource situation of network, can select more idle in physical host resource or physical loads When transmit inactive data, realization is avoided the peak hour Fill valley, so that more efficient using network and physical host resource.
In addition, after operation 106 is performed, the data in the storage device of source physical host can also be deleted, terminate to move Move.If being belonging to the situation of interim migration, it is also possible to do not perform 106 operation, retain the activity data mirror of dummy machine system As mark, after dummy machine system moves back to source physical host, terminate migration task.
In the inventive method the various embodiments described above, according to default data division rule, the data of disk file are drawn It is divided into activity data and inactive data, can be specifically accomplished by the following way.
According to predetermined access time threshold value, identification data is finally accessed the priority pass of time and access time threshold value System;If being finally accessed the time earlier than access time threshold value, data are divided into inactive data, if being finally accessed the time Equal to or be later than access time threshold value, then data are divided into activity data.
According to predetermined visit frequency threshold value, identification data access frequency and visit frequency threshold value within a predetermined period of time Magnitude relationship;If access frequency is less than visit frequency threshold value, data are divided into inactive data, if access frequency is more than Or equal to visit frequency threshold value, then data are divided into activity data.
A specific example according to the inventive method embodiment, if data belong to structured document, with structured document In be accessed for the access time of data recently, as the finally accessed time of all data in structured document;Or with The most frequent access frequency for being accessed for data in structured document within a predetermined period of time, owns as in structured document The access frequency of data.
Below by taking access time threshold value as an example, exemplarily illustrate above-mentioned data staging and data are repartitioned not Same implementation method.For example, predetermined access time threshold value is 30 days.There are A, B, C, D, E, F, G, H, I file in the physical host of source, Wherein A is oracle database file, and B is word application files, and C is antivirus software file, and D is music player, and E is Video player, F is photoshop files, and G is sudden peal of thunder download tool file, and H is a game file, and I is movie file. These files are all overall files.Some of identification tri- files of A, B, C file ran in nearest 30 days, for example, use Oracle database searches a table, and a document has been write with word application programs, is once killed virus with antivirus software, and D, E, F, G, H, I file were not accessed in nearest 30 days, therefore, A, B, C, be divided into activity data, D, E, F, G, H, I are divided into inactive data.Wherein, although oracle database only conducts interviews to a table data file, user Demand be likely to search this type all table data, be accessed for the time as oracle data recently using the table data All data are finally accessed the time in storehouse, therefore active data file includes the data of whole oracle database.
In below for above-described embodiment, the various situations for repartitioning data priority are exemplarily illustrated.
A kind of situation is, during active image file is copied into target physical main frame, repartitions inactive Data.For example, opening D files on the dummy machine system that runs in the physical host of source of user carries out music, then by D files Activity data is reclassified as, and the activity data D files repartitioned are copied into target physical main frame.
Another situation is to identify that sub- updating the data for image file storage is associated with inactive data.For example, with Associated inactive data is reclassified as activity data by family, and the activity data repartitioned is copied into object Reason main frame.
Also a kind of situation is, after the operation for recovering dummy machine system on the target physical main frame.For example, according to above-mentioned Replicate inactive file order sent F files after, G files should be sent according to original order, due in target Recover the operation of dummy machine system on physical host, when user uses dummy machine system running game software, process needs to access Inactive data H files, sending prioritised transmission needs to be accessed for the request message of H files.In response to receiving request message, To need to be accessed for inactive data H files to be reclassified as activity data, and H files are copied into target physical main frame.
Shown in Figure 2, Fig. 2 shows that the device that dummy machine system total system provided by the present invention is migrated online is a kind of real Apply the structural representation of example.The device that the dummy machine system total system of the embodiment is migrated online includes:
Sub- mirror image administrative unit 201, it is for creating sub- image file, dummy machine system is literary in the disk of source physical host Part is set to read-only status, and sub- image file is used to storing and is set to after read-only status to disk file more disk file New data;
Data staging unit 202, for according to default data division rule, the data of disk file being divided into activity Data and inactive data,
Copied cells 203, for the operating system file of activity data and dummy machine system to be combined as into active image text Part, target physical main frame is copied to by active image file;After dummy machine system out of service, sub- image file is replicated To target physical main frame;Recover on the target physical main frame after the operation of dummy machine system, inactive data is copied into mesh Mark physical host;
Control unit 204, for after active image file is copied into target physical main frame, on the physical host of source Stop the operation of dummy machine system;It is extensive on target physical main frame after sub- image file is copied into target physical main frame The operation of multiple dummy machine system.
A specific example according to apparatus of the present invention embodiment, the device also includes:
Source monitoring unit 205, for during active image file is copied into target physical main frame, identifying void Plan machine system required inactive data for using during source physical host runs.Data staging unit 202, is additionally operable to The recognition result of response source monitoring unit, activity data is reclassified as by the required inactive data for using;Copied cells 203, the activity data for being additionally operable to repartition preferentially copies to target physical main frame.
A specific example according to apparatus of the present invention embodiment, source monitoring unit 205, due also to identifying sub- mirror image text Updating the data for part storage is associated with inactive data;Data staging unit 202, is additionally operable to the identification of response source monitoring unit As a result, associated inactive data is reclassified as activity data;Copied cells 203, is additionally operable to the work that will be repartitioned Dynamic high priority data copies to target physical main frame.
A specific example according to apparatus of the present invention embodiment, the device also includes:
Target monitoring unit 206, for after the operation for recovering dummy machine system on the target physical main frame, identifying void The process of plan machine system needs to access the inactive data for not yet copying to target physical main frame, and sending prioritised transmission needs to be interviewed The request message of the inactive main frame asked;Data staging unit 202, is additionally operable in response to receiving request message, it would be desirable to quilt The inactive data of access is reclassified as activity data;Copied cells 203, the activity data for being additionally operable to repartition is preferential Copy to target physical main frame.Target monitoring unit 206 can be arranged on target physical main frame, by network and source physics master Machine or data staging unit 202 are communicated.
A specific example according to apparatus of the present invention embodiment, copied cells 203, specifically for identification source physical host With the network load between target physical main frame, or/and resource utilization, the target physical main frame of source physical host are recognized Resource utilization;Meet predetermined low network load threshold value in response to network load, or/and in response to source physical host Resource utilization, the resource utilization of target physical main frame meet predetermined low-resource utilization rate threshold value respectively, will be inactive Data duplication is to target physical main frame.
In each embodiment of the invention described above device, data staging unit 202, specifically for according to predetermined access time threshold Value, identification data is finally accessed the precedence relationship of time and access time threshold value;If finally the accessed time is earlier than accessing Between threshold value, then data be divided into inactive data, if finally the accessed time be equal to or be later than access time threshold value, count According to being divided into activity data;Or according to predetermined visit frequency threshold value, identification data access within a predetermined period of time is frequently The magnitude relationship of rate and visit frequency threshold value;If access frequency is less than visit frequency threshold value, data are divided into inactive number According to if access frequency is more than or equal to visit frequency threshold value, data are divided into activity data.
A specific example according to apparatus of the present invention embodiment, if data belong to structured document, data staging unit 202, specifically for be accessed for the access time of data in structured document recently, as all data in structured document The finally accessed time;Or with the most frequent access for being accessed for data in structured document within a predetermined period of time frequently Rate, as the access frequency of all data in structured document.
Shown in Figure 3, Fig. 3 shows the system embodiment that dummy machine system total system provided by the present invention is migrated online Structural representation.Any one is empty during the system that dummy machine system total system is migrated online can include said apparatus embodiment The device 301 that plan machine system total system is migrated online, and source physical host 302, source physical host 303.
Source physical host 302, for before migration, runs dummy machine system, and storage virtual machine system disk File;
Target physical main frame 303, for after migration, runs dummy machine system, and storage virtual machine system magnetic Disk file.
The said units of the device 302 that dummy machine system total system is migrated online can also be set according to the actual needs The mode that source host is acted on behalf of or destination host is acted on behalf of, source physical host 302 and/or target physical are arranged on by unit In main frame 303.For example, foregoing source monitoring unit 205 can be arranged in source physical host 302, target monitoring unit 206 can be with It is arranged in target physical main frame 303.
So far, a kind of method of the online migration of dummy machine system total system of the invention is described in detail, is System and device.In order to avoid covering design of the invention, without description some details known in the field.People in the art Member can be appreciated how to implement technical scheme disclosed herein as described above, completely.
Each embodiment is described by the way of progressive in this specification, and what each embodiment was stressed is and it The difference of its embodiment, same or analogous part cross-reference between each embodiment.For dummy machine system For the system and device embodiment of the online migration of total system, because it is substantially corresponding with embodiment of the method, so the ratio of description Relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
Dummy machine system the total system of the invention method of migration, system and dress online may be achieved in many ways Put.For example, virtual machine of the invention can be realized by any combinations of software, hardware, firmware or software, hardware, firmware Method, system and device that system total system is migrated online.The said sequence of the step of for methods described is merely to carry out Illustrate, be not limited to order described in detail above the step of the method for the present invention, unless specifically stated otherwise.Additionally, In certain embodiments, also the present invention can be embodied as recording program in the recording medium, these programs are included for realizing The machine readable instructions of the method according to the invention.Thus, the present invention also covering storage is for performing the method according to the invention Program recording medium.
Although being described in detail to some specific embodiments of the invention by example, the skill of this area Art personnel it should be understood that above example is merely to illustrate, rather than in order to limit the scope of the present invention.The skill of this area Art personnel to above example it should be understood that can modify without departing from the scope and spirit of the present invention.This hair Bright scope is defined by the following claims.

Claims (13)

1. a kind of method that dummy machine system total system is migrated online, it is characterised in that methods described includes:
Sub- image file is created, dummy machine system is set to read-only status, the sub- mirror in the disk file of source physical host Disk file is set to update the data the disk file after read-only status as file is used to store;
According to default data division rule, the data of the disk file are divided into activity data and inactive data;
The operating system file of the activity data and dummy machine system is combined as active image file, by the active image File copies to target physical main frame, wherein, during the active image file is copied into target physical main frame, institute Stating method also includes:Identify the dummy machine system required inactive number for using during source physical host runs According to, the required inactive data for using is reclassified as activity data, and the activity data that will be repartitioned preferentially is replicated To the target physical main frame;
Stop the dummy machine system being run on the physical host of source, the sub- image file is copied into the target physical master Machine;
Recover the operation of the dummy machine system on target physical main frame;
The inactive data is copied into the target physical main frame.
2. method according to claim 1, it is characterised in that methods described also includes:
Identify that the updating the data for sub- image file storage is associated with inactive data, will be described associated inactive Data are reclassified as activity data, and the activity data that will be repartitioned preferentially copies to the target physical main frame.
3. method according to claim 2, it is characterised in that recover the dummy machine system on target physical main frame After operation, methods described also includes:
Identify that the process of the dummy machine system needs to access the inactive data for not yet copying to the target physical main frame, Sending prioritised transmission needs to be accessed for the request message of inactive data;
In response to receiving the request message, need to be accessed for inactive data to be reclassified as activity data by described, And the activity data that will be repartitioned preferentially copies to the target physical main frame.
4. method according to claim 3, it is characterised in that the inactive data is copied into the target physical master Machine, specifically includes:
The network load between the source physical host and the target physical main frame is recognized, or/and recognize the source thing Manage resource utilization, the resource utilization of the target physical main frame of main frame;
Meet predetermined low network load threshold value in response to the network load, or/and in response to the source physical host Resource utilization, the resource utilization of the target physical main frame meet predetermined low-resource utilization rate threshold value respectively, by institute State inactive data and copy to the target physical main frame.
5. the method according to Claims 1-4 any one, it is characterised in that according to default data division rule, will The data of the disk file are divided into activity data and inactive data, specifically include:
According to predetermined access time threshold value, recognize that the data are finally accessed the priority of time and the access time threshold value Relation;If the finally accessed time, the data were divided into inactive data earlier than the access time threshold value, if The finally accessed time is equal to or is later than the access time threshold value, then the data are divided into activity data;Or Person
According to predetermined visit frequency threshold value, data access frequency and the access frequency within a predetermined period of time is recognized The magnitude relationship of threshold value;If the access frequency is less than the visit frequency threshold value, the data are divided into inactive number According to if the access frequency is more than or equal to the visit frequency threshold value, the data are divided into activity data.
6. method according to claim 5, it is characterised in that if the data belong to structured document, with the structure The access time of data is accessed in change file recently, as when being finally accessed of all data in the structured document Between;Or with the most frequent access frequency for being accessed for data in the structured document within a predetermined period of time, as institute State the access frequency of all data in structured document.
7. the device that a kind of dummy machine system total system is migrated online, it is characterised in that described device includes:
Sub- mirror image administrative unit, for creating sub- image file, the disk file by dummy machine system in source physical host is set It is read-only status, the sub- image file is used to store disk file is set to after read-only status to the disk file Update the data;
Data staging unit, for according to default data division rule, the data of the disk file being divided into movable number According to inactive data;
Copied cells, for the operating system file of the activity data and dummy machine system to be combined as into active image file, The active image file is copied into target physical main frame;After the dummy machine system out of service, by the sub- mirror As file copies to the target physical main frame;After the operation for recovering the dummy machine system on the target physical main frame, will The inactive data copies to the target physical main frame;
Control unit, for after the active image file is copied into target physical main frame, stopping on the physical host of source The only operation of the dummy machine system;After the sub- image file is copied into the target physical main frame, in object Recover the operation of the dummy machine system on reason main frame;
Wherein, described device also includes:
Source monitoring unit, it is described for during the active image file is copied into target physical main frame, identifying Dummy machine system required inactive data for using during source physical host runs;
The data staging unit, is additionally operable to respond the recognition result of the source monitoring unit, by it is required use it is inactive Data are reclassified as activity data;
The copied cells, the activity data for being additionally operable to repartition preferentially copies to the target physical main frame.
8. device according to claim 7, it is characterised in that the source monitoring unit, due also to identifying the sub- mirror As updating the data for file storage is associated with inactive data;
The data staging unit, is additionally operable to respond the recognition result of the source monitoring unit, will be described associated inactive Data are reclassified as activity data;
The copied cells, the activity data for being additionally operable to repartition preferentially copies to the target physical main frame.
9. device according to claim 8, it is characterised in that described device also includes:
Target monitoring unit, for recover the dummy machine system on the target physical main frame operation after, identify described The process of dummy machine system needs to access the inactive data for not yet copying to the target physical main frame, and sending prioritised transmission needs The request message of inactive data to be accessed;
The data staging unit, is additionally operable in response to receiving the request message, by it is described need to be accessed for it is inactive Data are reclassified as activity data;
The copied cells, the activity data for being additionally operable to repartition preferentially copies to the target physical main frame.
10. device according to claim 9, it is characterised in that the copied cells, specifically for recognizing the source physics Network load between main frame and the target physical, or/and recognize the resource utilization of the source physical host, described The resource utilization of target physical main frame;
Meet predetermined low network load threshold value in response to the network load, or/and in response to the source physical host Resource utilization, the resource utilization of the target physical main frame meet predetermined low-resource utilization rate threshold value respectively, by institute State inactive data and copy to the target physical main frame.
11. device according to claim 7 to 10 any one, it is characterised in that the data staging unit, it is specific to use According to predetermined access time threshold value, recognize that the data are finally accessed the priority pass of time and the access time threshold value System;If the finally accessed time, the data were divided into inactive data, if institute earlier than the access time threshold value Stating the finally accessed time is equal to or is later than the access time threshold value, then the data are divided into activity data;Or
According to predetermined visit frequency threshold value, data access frequency and the access frequency within a predetermined period of time is recognized The magnitude relationship of threshold value;If the access frequency is less than the visit frequency threshold value, the data are divided into inactive number According to if the access frequency is more than or equal to the visit frequency threshold value, the data are divided into activity data.
12. devices according to claim 11, it is characterised in that if the data belong to structured document, the data Stage unit, specifically for be accessed for the access time of data in the structured document recently, as the structuring The finally accessed time of all data in file;Or with the most frequent quilt in the structured document within a predetermined period of time The access frequency of the data of access, as the access frequency of all data in the structured document.
The system that a kind of 13. dummy machine system total systems are migrated online, it is characterised in that the system includes:
The device that dummy machine system total system according to claim 7 to 12 any one is migrated online;
Source physical host, for before migration, runs dummy machine system, and storage virtual machine system disk file;
Target physical main frame, for after migration, runs dummy machine system, and storage virtual machine system disk file.
CN201210562317.5A 2012-12-21 2012-12-21 Method, system and device that dummy machine system total system is migrated online Active CN103885811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210562317.5A CN103885811B (en) 2012-12-21 2012-12-21 Method, system and device that dummy machine system total system is migrated online

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210562317.5A CN103885811B (en) 2012-12-21 2012-12-21 Method, system and device that dummy machine system total system is migrated online

Publications (2)

Publication Number Publication Date
CN103885811A CN103885811A (en) 2014-06-25
CN103885811B true CN103885811B (en) 2017-05-31

Family

ID=50954721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210562317.5A Active CN103885811B (en) 2012-12-21 2012-12-21 Method, system and device that dummy machine system total system is migrated online

Country Status (1)

Country Link
CN (1) CN103885811B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326030B (en) 2015-06-26 2020-03-20 伊姆西Ip控股有限责任公司 Method and apparatus for soft handoff in a storage system
CN107122223B (en) * 2016-02-25 2021-02-05 深信服科技股份有限公司 Data migration method and device
CN106201702A (en) * 2016-07-19 2016-12-07 浪潮(北京)电子信息产业有限公司 The method of virtual machine (vm) migration, system and cloud computing management platform
CN108183871B (en) * 2017-11-23 2019-03-12 北京三快在线科技有限公司 A kind of virtual switch, virtual switch start method, electronic equipment
CN111324413B (en) * 2018-12-14 2023-08-15 中移(杭州)信息技术有限公司 Data migration method and data migration management equipment
CN110737507B (en) * 2019-10-12 2022-11-22 苏州浪潮智能科技有限公司 Virtual machine migration method and device
CN112631734A (en) * 2020-12-30 2021-04-09 北京天融信网络安全技术有限公司 Processing method, device, equipment and storage medium of virtual machine image file

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101101562A (en) * 2007-07-10 2008-01-09 北京大学 Dummy machine external storage on-line migration method
CN102073462A (en) * 2010-11-29 2011-05-25 华为技术有限公司 Virtual storage migration method and system and virtual machine monitor
CN102455942A (en) * 2010-12-02 2012-05-16 中标软件有限公司 Method and system for dynamic migration of WAN virtual machines
CN102741820A (en) * 2010-02-08 2012-10-17 微软公司 Background migration of virtual storage

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8468230B2 (en) * 2007-10-18 2013-06-18 Fujitsu Limited Method, apparatus and recording medium for migrating a virtual machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101101562A (en) * 2007-07-10 2008-01-09 北京大学 Dummy machine external storage on-line migration method
CN102741820A (en) * 2010-02-08 2012-10-17 微软公司 Background migration of virtual storage
CN102073462A (en) * 2010-11-29 2011-05-25 华为技术有限公司 Virtual storage migration method and system and virtual machine monitor
CN102455942A (en) * 2010-12-02 2012-05-16 中标软件有限公司 Method and system for dynamic migration of WAN virtual machines

Also Published As

Publication number Publication date
CN103885811A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
CN103885811B (en) Method, system and device that dummy machine system total system is migrated online
JP7138126B2 (en) Timeliness resource migration to optimize resource placement
CN103631633B (en) Virtual machine total-system online migration method, device and system
US9977689B2 (en) Dynamic scaling of management infrastructure in virtual environments
US10873623B2 (en) Dynamically modifying a cluster of computing nodes used for distributed execution of a program
CN110134495B (en) Container cross-host online migration method, storage medium and terminal equipment
US8260840B1 (en) Dynamic scaling of a cluster of computing nodes used for distributed execution of a program
US8321558B1 (en) Dynamically monitoring and modifying distributed execution of programs
US8458284B2 (en) Systems and methods for efficient live application migration within bandwidth constrained networks
CN102981929B (en) The management method of disk mirroring and system
TW475153B (en) Processing channel subsystem pending I/O work queues based on priorities
CN103595780B (en) Cloud computing resource scheduling method based on the weight that disappears
CN102521014B (en) Deploying method and deploying device for virtual machine
CN102597958A (en) Symmetric live migration of virtual machines
WO2016030973A1 (en) Multi-tenant resource coordination method
CN102521063A (en) Shared storage method suitable for migration and fault tolerance of virtual machine
CN106687926A (en) Load balancing of cloned virtual machines
CN106528327A (en) Data processing method and backup server
CN111381928B (en) Virtual machine migration method, cloud computing management platform and storage medium
CN111343219B (en) Computing service cloud platform
CN106469117A (en) A kind of SRM method and device for virtual machine storage migration
CN103856502B (en) Realize method and the NAS group system of virtual machine image file thermophoresis
CN107528871A (en) Data analysis in storage system
CN110413369A (en) System and method for the backup in virtualized environment
CN105930202B (en) A kind of virtual machine migration method of three threshold values

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