Content of the invention
The present invention is based on the problems referred to above it is proposed that a kind of new rollback treatment technology, can be sentenced by virtual rollback
Disconnected whether it has been appropriately carried out rollback instruction it is ensured that the correct execution of data rewind operation.
In view of this, the present invention proposes a kind of rollback processing system of many mirror image datas, comprising: Virtual Processing Unit,
For in mirror image management server, when receiving data rewind instruction, execution is corresponding to virtual time of the instruction of described data rewind
Rolling;Epidemic situation comparison unit, for recording the virtual rollback state after described virtual rollback, and refers to corresponding to described data rewind
The data mode of the mirror transaction labelling point of order is compared;Instruction execution unit, in described virtual rollback state and institute
State in the case that mirror transaction labelling point matches, control the described data rewind instruction of described mirror image management server execution, no
Then do not execute.
In this technical scheme, in advance the data occurring each time is merged and split etc. with operation, all generates corresponding number
According to difference log, and daily record point is set, then the daily record point of mirror transaction labelling point as generation.Therefore, mirror transaction labelling
Point actually corresponds in daily record certain fixing data mode of record, by by the data mode after virtual rollback and phase
Mirror transaction labelling point is answered to be compared, thus judging whether this virtual rolling back action correctly executes.Virtual by first carrying out in advance
Rolling back action, thus when an error occurs, can re-operate, it is to avoid directly cause the mistake that cannot retrieve during rollback.
It is preferable that also including in technique scheme: service-creation unit, for creating in mirror image management server
Build the service for record traffic mirror image;Wherein, described Virtual Processing Unit utilizes virtual rollback described in described service execution.
In this technical scheme, virtual rolling back action can be executed by the service creating for record traffic mirror image.
It is preferable that also including in technique scheme: flag data acquiring unit, for from connection to described mirror image
Described mirror transaction labelling point is obtained in the mirror image server of management server.
In this technical scheme, in the mirror image server of mirror image management server, data storage difference log, mirror image thing
Business labelling point certain specific daily record point as in the daily record of storage.
It is preferable that also including in technique scheme: merging treatment unit, for controlling described mirror image management service
The implementing result that device instructs according to described data rewind, merges process to the rollback data obtaining.
Although the increase of number of operations is so that the Operation Log generating also gets more and more, on the one hand in this technical scheme
Need to take more memory spaces, on the other hand may improve the difficulty of data management aspect.Therefore, by rollback data
Related multiple Operation Logs collect for an Operation Log, you can realize the saving to memory space, and be favorably improved
Data management efficiency, reduces risk and the probability of error.
It is preferable that also including in technique scheme: data record unit, for obtaining after described merging treatment
Data result record in the historical data of described mirror image server.In this technical scheme, by record in historical record
In, inquired about after being easy to.
According to another aspect of the invention it is also proposed that a kind of rollback processing method of many mirror image datas, comprising: step
202, when receiving data rewind instruction, execution is corresponding to virtual time of the instruction of described data rewind for mirror image management server
Rolling;Step 204, records the virtual rollback state after described virtual rollback, and with the mirror image instructing corresponding to described data rewind
The data mode of transaction tag point is compared;Step 206, if described virtual rollback state and described mirror transaction labelling point phase
Mate, then described mirror image management server executes described data rewind instruction, does not otherwise execute.
In this technical scheme, in advance the data occurring each time is merged and split etc. with operation, all generates corresponding number
According to difference log, and daily record point is set, then the daily record point of mirror transaction labelling point as generation.Therefore, mirror transaction labelling
Point actually corresponds in daily record certain fixing data mode of record, by by the data mode after virtual rollback and phase
Mirror transaction labelling point is answered to be compared, thus judging whether this virtual rolling back action correctly executes.Virtual by first carrying out in advance
Rolling back action, thus when an error occurs, can re-operate, it is to avoid directly cause the mistake that cannot retrieve during rollback.
It is preferable that before described step 202, also including in technique scheme: create in mirror image management server
Service for record traffic mirror image;Wherein, in described step 204, using rollback virtual described in described service execution.
It is preferable that described step 204 also includes in technique scheme: from connection to described mirror image management server
Mirror image server in obtain described mirror transaction labelling point.
In this technical scheme, in the mirror image server of mirror image management server, data storage difference log, mirror image thing
Business labelling point certain specific daily record point as in the daily record of storage.
It is preferable that described step 206 also includes in technique scheme: described mirror image management server is according to described
The implementing result of data rewind instruction, merges process to the rollback data obtaining.
Although the increase of number of operations is so that the Operation Log generating also gets more and more, on the one hand in this technical scheme
Need to take more memory spaces, on the other hand may improve the difficulty of data management aspect.Therefore, by rollback data
Related multiple Operation Logs collect for an Operation Log, you can realize the saving to memory space, and be favorably improved
Data management efficiency, reduces risk and the probability of error.
It is preferable that also including in technique scheme: by the data result record obtaining after described merging treatment in institute
State in the historical data of mirror image server.In this technical scheme, by record in historical record, looked into after being easy to
Ask.
By above technical scheme, can judge whether to be appropriately carried out rollback instruction it is ensured that counting by virtual rollback
Correct execution according to rolling back action.
Specific embodiment
In order to be more clearly understood that the above objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and specifically real
Mode of applying is further described in detail to the present invention.It should be noted that in the case of not conflicting, the enforcement of the application
Feature in example and embodiment can be mutually combined.
Elaborate a lot of details in the following description in order to fully understand the present invention, but, the present invention also may be used
To be implemented different from other modes described here using other, therefore, protection scope of the present invention is not described below
Specific embodiment restriction.
Fig. 1 shows the block diagram of the rollback processing system of many according to an embodiment of the invention mirror image datas.
As shown in figure 1, the rollback processing system 100 of many according to an embodiment of the invention mirror image datas, comprising: virtual place
Reason unit 102, in mirror image management server, when receiving data rewind instruction, execution refers to corresponding to described data rewind
The virtual rollback of order;Epidemic situation comparison unit 104, for recording the virtual rollback state after described virtual rollback, and with correspond to
The data mode of the mirror transaction labelling point of described data rewind instruction is compared;Instruction execution unit 106, for described
In the case that virtual rollback state and described mirror transaction labelling point match, control described mirror image management server execution described
Data rewind instructs, and does not otherwise execute.
In this technical scheme, in advance the data occurring each time is merged and split etc. with operation, all generates corresponding number
According to difference log, and daily record point is set, then the daily record point of mirror transaction labelling point as generation.Therefore, mirror transaction labelling
Point actually corresponds in daily record certain fixing data mode of record, by by the data mode after virtual rollback and phase
Mirror transaction labelling point is answered to be compared, thus judging whether this virtual rolling back action correctly executes.Virtual by first carrying out in advance
Rolling back action, thus when an error occurs, can re-operate, it is to avoid directly cause the mistake that cannot retrieve during rollback.
It is preferable that also including in technique scheme: service-creation unit 108, in mirror image management server
Create the service for record traffic mirror image;Wherein, described Virtual Processing Unit 102 utilizes virtual time described in described service execution
Rolling.
In this technical scheme, virtual rolling back action can be executed by the service creating for record traffic mirror image.
It is preferable that also including in technique scheme: flag data acquiring unit 110, for from connection to described mirror
As obtaining described mirror transaction labelling point in the mirror image server of management server.
In this technical scheme, in the mirror image server of mirror image management server, data storage difference log, mirror image thing
Business labelling point certain specific daily record point as in the daily record of storage.
It is preferable that also including in technique scheme: merging treatment unit 112, for controlling described mirror image management clothes
The implementing result that business device instructs according to described data rewind, merges process to the rollback data obtaining.
Although the increase of number of operations is so that the Operation Log generating also gets more and more, on the one hand in this technical scheme
Need to take more memory spaces, on the other hand may improve the difficulty of data management aspect.Therefore, by rollback data
Related multiple Operation Logs collect for an Operation Log, you can realize the saving to memory space, and be favorably improved
Data management efficiency, reduces risk and the probability of error.
It is preferable that also including in technique scheme: data record unit 114, for obtaining after described merging treatment
To data result record in the historical data of described mirror image server.In this technical scheme, by record in history note
In record, inquired about after being easy to.
The flow chart that Fig. 2 shows the rollback processing method of many according to an embodiment of the invention mirror image datas.
As shown in Fig. 2 the rollback processing method of many according to an embodiment of the invention mirror image datas, comprising: step 202,
, when receiving data rewind instruction, execution is corresponding to the virtual rollback of described data rewind instruction for mirror image management server;Step
Rapid 204, record the virtual rollback state after described virtual rollback, and with the mirror transaction mark instructing corresponding to described data rewind
The data mode of note point is compared;Step 206, if described virtual rollback state is matched with described mirror transaction labelling point,
Then described mirror image management server executes described data rewind instruction, does not otherwise execute.
In this technical scheme, in advance the data occurring each time is merged and split etc. with operation, all generates corresponding number
According to difference log, and daily record point is set, then the daily record point of mirror transaction labelling point as generation.Therefore, mirror transaction labelling
Point actually corresponds in daily record certain fixing data mode of record, by by the data mode after virtual rollback and phase
Mirror transaction labelling point is answered to be compared, thus judging whether this virtual rolling back action correctly executes.Virtual by first carrying out in advance
Rolling back action, thus when an error occurs, can re-operate, it is to avoid directly cause the mistake that cannot retrieve during rollback.
It is preferable that before described step 202, also including in technique scheme: create in mirror image management server
Service for record traffic mirror image;Wherein, in described step 204, using rollback virtual described in described service execution.
It is preferable that described step 204 also includes in technique scheme: from connection to described mirror image management server
Mirror image server in obtain described mirror transaction labelling point.
In this technical scheme, in the mirror image server of mirror image management server, data storage difference log, mirror image thing
Business labelling point certain specific daily record point as in the daily record of storage.
It is preferable that described step 206 also includes in technique scheme: described mirror image management server is according to described
The implementing result of data rewind instruction, merges process to the rollback data obtaining.
Although the increase of number of operations is so that the Operation Log generating also gets more and more, on the one hand in this technical scheme
Need to take more memory spaces, on the other hand may improve the difficulty of data management aspect.Therefore, by rollback data
Related multiple Operation Logs collect for an Operation Log, you can realize the saving to memory space, and be favorably improved
Data management efficiency, reduces risk and the probability of error.
It is preferable that also including in technique scheme: by the data result record obtaining after described merging treatment in institute
State in the historical data of mirror image server.In this technical scheme, by record in historical record, looked into after being easy to
Ask.
With reference to Fig. 3 and Fig. 4, technical scheme is described in detail, wherein, Fig. 3 shows according to this
The particular flow sheet that the rollback of the many mirror image datas of execution of inventive embodiment is processed;Fig. 4 shows the enforcement according to the present invention
The structural representation of the rollback processing system of many mirror image datas of example.
As shown in figure 3, the idiographic flow that the rollback executing many mirror image datas according to an embodiment of the invention is processed includes:
Step 302, mirror image management server 402 receives rollback instruction.
Step 304, executes virtual rollback.Specifically, service 403 can be created to execute by mirror image management server 402
The operation of virtual rollback.In the inventive solutions, directly according to the rollback instruction receiving, data is not executed back
Rolling operation, but first pass through virtual rollback, to judge whether this rolling back action is correct, thus reducing the error of rollback process
Probability.
Step 306, the result of virtual rollback is contrasted with the labelling point in each mirror image server 406.
Step 308, obtains comparing result, if coupling, enters step 310, does not otherwise execute real rolling back action, directly
To next time receive data rewind instruction when, return again to step 302.
Step 310, executes real data rewind operation.
Step 312, the data for presentation mirror image management server that rollback is processed executes merging treatment.
Step 314, the result of merging treatment is stored in the record data to record data server 406.
Step 316, optionally, can store record data in the historical data to historic data server 408, with
Inquired about for user.
Technical scheme is described in detail above in association with accompanying drawing, the invention provides a kind of many mirror image datas return
Rolling processing system and a kind of rollback processing method of many mirror image datas, can judge whether to be appropriately carried out by virtual rollback
Rollback instruction it is ensured that data rewind operation correct execution.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.