CN101308472B - Mirrored volume initial synchronization method and control device - Google Patents

Mirrored volume initial synchronization method and control device Download PDF

Info

Publication number
CN101308472B
CN101308472B CN2008101276795A CN200810127679A CN101308472B CN 101308472 B CN101308472 B CN 101308472B CN 2008101276795 A CN2008101276795 A CN 2008101276795A CN 200810127679 A CN200810127679 A CN 200810127679A CN 101308472 B CN101308472 B CN 101308472B
Authority
CN
China
Prior art keywords
data
mirrored volume
master file
record sheet
situation
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.)
Expired - Fee Related
Application number
CN2008101276795A
Other languages
Chinese (zh)
Other versions
CN101308472A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2008101276795A priority Critical patent/CN101308472B/en
Publication of CN101308472A publication Critical patent/CN101308472A/en
Application granted granted Critical
Publication of CN101308472B publication Critical patent/CN101308472B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses an initial synchronization method for a mirror volume, and a device. The method is used in a system which comprises a main volume and at least an existing mirror volume. The application of the invention helps reduce the influence to the performances of the main volume in processing the access of the external data in the initial synchronization process, reduce the initial synchronization time spending and ensure the data consistency between the main volume and the mirror volume.

Description

The initial synchronization method of mirrored volume and control device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of initial synchronization method and control device of mirrored volume.
Background technology
The logical volume mirror image technology is a kind of data protection technology, and protected data is avoided losing owing to physical unit damages.Mirror image technology is that the main logic volume adds mirrored volume, when adding, need carry out initial synchronization from the master file to the mirrored volume to data, the data of master file and mirrored volume will keep in real time synchronously after initial synchronisation is finished, and this moment, mirrored volume was preserved the complete copy of master file.In the data access process, if owing to reasons such as physical unit damage cause master file to break down, storage server switches to data access mirrored volume automatically apace, thereby has guaranteed the continuity of data access and the integrality of data.
As shown in Figure 1, there are two kinds of basic implementation models at present in mirror image technology: mirror image and one-to-many mirror image one to one.No matter adopt which kind of implementation model, employed technical scheme is when the mirrored volume that adds for master file carries out initial synchronisation: read source data from master file, be written in the mirrored volume, all data write mirrored volume fully in master file, finish the initial synchronization of data.The data volume that this initial synchronization need be read and write is the data capacity of whole master file, can continue the long period.After initial synchronisation was finished, external data write request data is written in master file and the mirrored volume simultaneously.
Problems of the prior art are that the data volume that initial synchronization need be read and write is the data capacity of whole master file, will continue for a long time master file to be formed read request pressure.If need to handle a large amount of external data read-write requests simultaneously on the master file in this process, these two kinds of concurrent data accesses will cause that the master file overall performance seriously descends, the ability that causes master file to handle the external data read-write reduces, and the time overhead of initial synchronization also will increase simultaneously.
Summary of the invention
The invention provides a kind of initial synchronization method and control device of mirrored volume, be used for improving the performance of initial synchronization master file and mirrored volume, shorten the required time of initial synchronisation.
The invention provides a kind of initial synchronization method of mirrored volume, be applied to comprise in the system of master file and at least one existing mirrored volume, comprising:
Maintenance is to the Data Update of described master file, stop Data Update to described existing mirrored volume, carry out renewal process between the mirrored volume of the data sync in the described existing mirrored volume in the new mirrored volume, and write down between described mirrored volume first data situation on the master file described in the renewal process and the data content that changes;
Finish between described mirrored volume after the renewal process, carrying out the whole updating process that external data is updated to simultaneously described master file and new mirrored volume, and writing down in the described whole updating process second data situation on the described master file in the Preset Time section;
According to described first data situation, the data content that changes and second data situation, determine between described mirrored volume, to upgrade in the renewal process on the described master file, and data updated once more in the Preset Time section in described whole updating process not, with described Data Update to described new mirrored volume;
Wherein, described first data situation produces prior to described second data situation, described first data situation refers to the data situation on the master file described in the described mirrored volume renewal process, described second data situation refers to the data situation that writes down on the described master file in the Preset Time section in the whole updating process, and the described pairing time of Preset Time section is less than the described pairing time of whole updating process.
Wherein, first data situation on the master file described in the renewal process and the data content that changes between the described mirrored volume of described record comprise:
Set up the first data variation record sheet, the change information that has each data block of different sequence numbers on each corresponding described master file in the described first data variation record sheet uses the described first data variation record sheet to write down the information that whether each data block changes in the renewal process on the described master file between described mirrored volume;
Set up data variation content stores table, write down the sequence number and the latest data of the data block that variation has taken place on the described master file in the described data variation content stores table according to the write time of external data.
Wherein, second data situation on the interior described master file of a Preset Time section comprises in the described whole updating process of described record:
Set up the second data variation record sheet, the change information that has each data block of different sequence numbers on each corresponding described master file in the described second data variation record sheet uses the described second data variation record sheet to write down the information that whether each data block changes in the Preset Time section on the described master file in described whole updating process.
Wherein, described according to described first data situation, the data content that changes and second data situation, determine between described mirrored volume, to upgrade in the renewal process on the described master file, and data updated once more in the Preset Time section in described whole updating process not comprises described Data Update to described new mirrored volume:
Travel through the described first data variation record sheet, obtain the certain data block that is recorded as in the first data variation record sheet on the master file that has taken place to change;
Obtain the record of described certain data block in the second data variation record sheet;
When described certain data block being recorded as in the second data variation record sheet do not change, use the latest data of sequence number correspondence in data variation content stores table of described certain data block, upgrade the corresponding data in the described new mirrored volume.
Wherein, when described existing mirrored volume is one, between described execution is with the mirrored volume of the data sync in the described existing mirrored volume in the new mirrored volume, also comprise before the renewal process:
The mirror image that keeps described master file and existing mirrored volume is to relation and add new mirrored volume;
Described data sync on the master file is also comprised behind described new mirrored volume:
The mirror image of deleting described master file and existing mirrored volume is to relation, and the mirror image of setting up described master file and described new mirrored volume is to relation.
The present invention also provides a kind of initial synchronisation control device of mirrored volume, is applied to comprise in the system of master file and at least one existing mirrored volume, comprising:
First control module is used to keep the Data Update to described master file, stops the Data Update to described existing mirrored volume, carries out renewal process between the mirrored volume of the data sync in the described existing mirrored volume in the new mirrored volume;
First record cell is used to write down between described mirrored volume first data situation on the master file described in the renewal process and the data content that changes;
Second control module is finished between described mirrored volume after the renewal process, carries out the whole updating process that external data is updated to simultaneously described master file and new mirrored volume;
Second record cell is used for writing down second data situation on the described master file in the described whole updating process one Preset Time section;
Lock unit, be used for according to described first data situation, the data content that changes and second data situation, determine between described mirrored volume, to upgrade in the renewal process on the described master file, and data updated once more in the Preset Time section in described whole updating process not, with described Data Update to described new mirrored volume;
Wherein, described first data situation produces prior to described second data situation, described first data situation refers to the data situation on the master file described in the described mirrored volume renewal process, described second data situation refers to the data situation that writes down on the described master file in the Preset Time section in the whole updating process, and the described pairing time of Preset Time section is less than the described pairing time of whole updating process.
Wherein, described first record cell comprises:
The first record subelement, be used to set up the first data variation record sheet, the change information that has each data block of different sequence numbers on each corresponding described master file in the described first data variation record sheet uses the described first data variation record sheet to write down the information that whether each data block changes in the renewal process on the described master file between described mirrored volume;
Data variation content stores subelement is used to set up data variation content stores table, writes down the sequence number and the latest data of the data block that variation has taken place on the described master file in the described data variation content stores table according to the write time of external data.
Wherein, described second record cell comprises:
The second record subelement, be used to set up the second data variation record sheet, the change information that has each data block of different sequence numbers on each corresponding described master file in the described second data variation record sheet uses the described second data variation record sheet to write down the information that whether each data block changes in the Preset Time section on the described master file in described whole updating process.
Wherein, described lock unit comprises:
Data block is obtained subelement, is used to travel through the described first data variation record sheet, obtains the certain data block that is recorded as in the first data variation record sheet on the master file that has taken place to change;
The data block record obtains subelement, is used for obtaining the record of described certain data block at the described second data variation record sheet;
Data block is upgraded subelement, be used for when described certain data block when being recorded as of the second data variation record sheet do not change, use the latest data of sequence number correspondence in data variation content stores table of described certain data block, upgrade the corresponding data in described existing mirrored volume and the new mirrored volume.
Wherein, also comprise:
Mirror image is used for when existing mirrored volume is one concerning stick unit, and the mirror image that keeps described master file and existing mirrored volume before the control procedure of described first control module is to relation and add new mirrored volume;
Mirror image is used for after described lock unit synchronizing process concerning updating block, and the mirror image of deleting described master file and existing mirrored volume is to relation, and the mirror image of setting up described master file and described new mirrored volume is to relation.
Compared with prior art, the present invention has the following advantages:
When needs add or change mirrored volume, stop external data by employing and be written to mirrored volume and read the mode of synchrodata from existing mirrored volume, avoided the influence of initial synchronization to the master file readwrite performance, accelerated the process of initial synchronisation.In addition, guaranteed the consistance of data between master file and the mirrored volume.
Description of drawings
Fig. 1 is the initial synchronization data flow synoptic diagram of two kinds of basic implementation models in the prior art;
Fig. 2 is the initial synchronization method process flow diagram of mirrored volume among the present invention;
Fig. 3 is the initial synchronization data flow synoptic diagram of two kinds of basic implementation models among the present invention;
Fig. 4 is another process flow diagram of the initial synchronization method of mirrored volume among the present invention;
Fig. 5 is the synoptic diagram of logic data block in the application scenarios of the present invention;
Fig. 6 is the content synoptic diagram of the record sheet of logic data block correspondence in the application scenarios of the present invention;
Fig. 7 is the structural representation of the initial synchronisation control device of mirrored volume among the present invention;
Fig. 8 is another structural representation of the initial synchronisation control device of mirrored volume among the present invention.
Embodiment
The invention provides a kind of initial synchronization method of mirrored volume, be applied to comprise in the system of master file and at least one existing mirrored volume, as shown in Figure 2, comprising:
Step s201, keep Data Update to master file, stop Data Update to existing mirrored volume, execution will have renewal process between the mirrored volume of data sync in the new mirrored volume in the mirrored volume, and first data situation on the master file and the data content that changes in the renewal process between the record mirrored volume.
Step s202, finish between mirrored volume after the renewal process, carrying out the whole updating process that external data is updated to simultaneously master file and new mirrored volume, and second data situation on the master file in the Preset Time section in the record whole updating process.
Step s203, according to first data situation, the data content that changes and second data situation, determine between described mirrored volume, to upgrade in the renewal process on the master file, and data updated once more in the Preset Time section in the whole updating process not, with described Data Update to new mirrored volume.
Concrete, in the application scenarios of the initial synchronization method of mirrored volume of the present invention, on master file, all disposed mirrored volume, during master file and mirrored volume externally are under the reading and writing data background in real time synchronously.At two kinds of implementation models of mirror image, the realization of the present invention before carrying out the mirror image initial synchronization is slightly different:
(1) at mirror image implementation pattern one to one, when needs are changed mirrored volume, can not delete former mirror image to relation at once, but when the former mirror image of reservation is to relation, add new mirrored volume, carry out initial synchronization then, delete former mirror image after initial synchronization is finished again relation.
(2), when needs add new mirrored volume, directly carry out initial synchronization at one-to-many mirror image implementation pattern.
For mirror image and one-to-many mirror image model one to one, initial synchronization among the present invention divides three phases to carry out initial synchronization as shown in Figure 3: the whole updating process of renewal process, master file and new mirrored volume and new mirrored volume renewal process between mirrored volume.Between mirrored volume, in the renewal process, keep Data Update, stop Data Update, the data sync in the existing mirrored volume is arrived new mirrored volume existing mirrored volume to master file.In the whole updating process of master file and new mirrored volume, external data is updated to described master file and new mirrored volume simultaneously.In new volume renewal process, will between mirrored volume, upgrade in the renewal process on the master file, and not in the whole updating process in the Preset Time section once more data updated be updated to new mirrored volume, to guarantee the consistance of data on master file and the mirrored volume.Below respectively the flow process of this three phases is described.
In the initial synchronization method of mirrored volume of the present invention, the flow process in each stage as shown in Figure 4, wherein, step s401~step s404 is a renewal process between mirrored volume, step s405 is the whole updating process of master file and new mirrored volume, and step s406~step s410 is new mirrored volume renewal process.The specific descriptions of each step are as follows:
Step s401, existing all data modules of mirrored volume of traversal.
Step s402, be written to the new mirrored volume from existing mirrored volume reading of data.
Step s403, external write request only are written in the master file, will change data recording in " data variation content stores table ", and record " the first data variation record sheet ".
Concrete, data sync Once you begin, the external data read-write requests is only effective to master file, synchrodata is read from existing mirrored volume and is written to new mirror image, thereby guaranteed separating of external data stream and synchronous data flow, alleviated the read-write pressure of master file, avoided the influence of synchronizing process, also reduced the time overhead of synchronizing process the master file readwrite performance.
Simultaneously, in this stage, note the data situation that occurs on the master file.Adopt the information that whether each data block changes on " the first data variation record sheet " record master file, the change information that has each data block of different sequence numbers in " the first data variation record sheet " on each corresponding master file, for example represent this data block not change with " 0 ", on behalf of this data block, " 1 " change has taken place.This sequence number can be the physical address or the logical address of data block.
In addition, (this memory buffers resource is decided according to realization in the memory buffers resource, can be logical resource, memory cache etc.) upward setting " data variation content stores table ", this resource is used to write down the data that change, and data change amount will be much smaller than the master file capacity in major applications between sync period.When change has taken place " 1 " representative data piece in " the first data variation record sheet ", be marked as the position sequence number of " 1 " and the data block sequence number in " data variation content stores table " in " the first data variation record sheet " and have one-to-one relationship.The combinative CDP of continuous data protection measure (Continuous DataProtection herein; continuous data protection) technology realizes; the CDP technology can be caught or the variation of tracking data; and it is independently deposited outside production data, can return to random time point in the past to guarantee data.The effect of " data variation content stores table " is that master file physical unit fault causes loss of data before finish in initial synchronization.
Whether the traversal of step s404, existing all data modules of mirrored volume of judgement is finished, and finishes and then continues step s405, otherwise return step s402.
Step s405, external write request are written in master file and all mirrored volume simultaneously, and record " the second data variation record sheet " will not change data recording in " data variation content stores table ".
Concrete, external data writes request and will be handed down to master file and mirrored volume simultaneously, and the data of up-to-date variation keep in real time synchronously.In this stage, to adopt the information that whether each data block changes on " the second data variation record sheet " record master file, list structure is identical with " the first data variation record sheet ", for example represents this data block not change with " 0 ", and on behalf of this data block, " 1 " change has taken place.
Step s406, all data blocks of traversal " the first data variation record sheet ".
The difference of step s407, comparison " the first data variation record sheet " and " the second data variation record sheet ".
Concrete, after external data write end, the recent renewal information of data block determined by the otherness that compares " the first data variation record sheet " and " the second data variation record sheet ".
Step s408, judge whether current data block is recorded in the two piece of data change records tables simultaneously, judged result comprise following several may:
(1) the position information of this data block is recorded as no change in " the first data variation record sheet ", illustrate that this data block renewal process between mirrored volume does not change, do not preserve this data block information in " data variation content stores table " yet, in the then current mirrored volume with up-to-date data, do not need to upgrade, then carry out step s410.
(2) the position information of this data block is recorded as in " the first data variation record sheet " and changes, in " the second data variation record sheet ", be recorded as and change, illustrate that this data block all has data variation in renewal process and the whole updating process between mirrored volume, and what be written to mirrored volume in the whole updating process is up-to-date more new data, therefore do not need to upgrade, then carry out step s410.
(3) the position information of this data block is recorded as in " the first data variation record sheet " and changes, in " the second data variation record sheet ", be recorded as no change, illustrate this data block only between mirrored volume renewal process change, preserved up-to-date delta data in " data variation content stores table ", so, must with " data variation content stores table " middle data block Data Update of preserving in mirrored volume, therefore carry out step s410.
Step s409, write " data variation content stores table " corresponding data block data to mirrored volume.
Step s410, judge whether traversal " the first data variation record sheet " finish, be that then initial synchronisation is finished by all data blocks, otherwise carry out step s407.
Below in conjunction with a concrete application scenarios, the initial synchronization method among the present invention is described.In this application scenarios, suppose that master file LUN_A capacity is 500GB, disposed the mirrored volume LUN_B of 500GB, the external data read-write requests is handed down to LUN_A and LUN_B simultaneously, and data keep in real time synchronously.Then the initial synchronization method for this mirror image pattern may further comprise the steps:
(1) the new logical volumes LUN_C with a 500GB joins in the mirror.
(2) in case set up new mirror image to concerning that the external data read-write requests will only be handed down to master file LUN_A, no longer be handed down to LUN_B.Mirror image synchronisation source data are read from LUN_B, write among the LUN_C.This synchronous phase is a renewal process between mirrored volume.
(3) between mirrored volume in the renewal process, the data of LUN_A and LUN_B are inconsistent, need record master file LUN_A to go up the situation of change of data.Suppose that basic logic data block size is 8KB, " the first data variation record sheet " will use 65536000 bit positions to write down the data variation information of all 65536000 logic data blocks so, suppose that each bit is initially " 0 ", in case the outside writes this data block is revised, just this bit is revised as " 1 ".Simultaneously, the delta data of corresponding data piece will be written in " data variation content stores table " and go.
Situation with the 80th~83 these 4 logic data blocks is an example, as shown in Figure 5.The the 80th and No. 81 data variation does not take place in data block, and " the first data variation record sheet " meta information remains " 0 ", and the 82nd and No. 83 data variation has taken place data block, and " the first data variation record sheet " meta information change is " 1 ".Simultaneously, the time order and function that writes according to external data in " data variation content stores table " has been preserved data block sequence number and corresponding latest data, and No. 83 data block prior to No. 82 data block change taken place in this example.All all have record for the data block of " 1 " in " the first data variation record sheet " meta information in " data variation content stores table ".
(4) after renewal process is finished between mirrored volume, will enter the whole updating process.In this process, external data writes request and will be handed down to master file LUN_A and mirrored volume LUN_B, LUN_C simultaneously.Simultaneously, the data variation information on the master file LUN_A will be recorded in " the second data variation record sheet ".
(5) begin " the first data variation record sheet " meta information is carried out the order traversal, only contraposition information is handled for the data block of " 1 " therebetween.In case be recorded as " 1 " in " the first data variation record sheet ", will in " the second data variation record sheet ", inquire about the position information of this data block sequence number, if the data sync operation can not take place " 1 ", continue ergodic process; If " 0 " will read corresponding data block data from " data variation content stores table ", be written among mirrored volume LUN_B, the LUN_C.
(6) in the ergodic process to the processing procedure of the 80th~83 these 4 logic data blocks, this moment two record sheets content as shown in Figure 6.
For No. 80 data block, " the first data variation record sheet " meta information is " 0 ", " the second data variation record sheet " meta information is " 1 ", illustrate that this data block renewal process between mirrored volume does not change, variation has taken place in the whole updating process, because delta data is to be written to simultaneously among master file LUN_A and mirrored volume LUN_B, the LUN_C,, do not need again row to handle so data have been consistent between current time master file and the mirrored volume.
For No. 81 data block, " the first data variation record sheet " and " the second data variation record sheet " meta information is " 0 ", illustrates that this data block did not change in the whole initial synchronisation stage, does not need to handle.
For No. 82 data block, " the first data variation record sheet " and " the second data variation record sheet " meta information is " 1 ", illustrate that variation has all taken place for this data block renewal process and whole updating process between mirrored volume, because the data variation in the whole updating process is up-to-date data change, be written to simultaneously among master file LUN_A and mirrored volume LUN_B, the LUN_C, so also do not need again row to handle.
For No. 83 data block, " the first data variation record sheet " meta information is " 1 ", " the second data variation record sheet " meta information is " 0 ", illustrate that variation has taken place this data block renewal process between mirrored volume, and do not change in the whole updating process, because delta data only is written among the master file LUN_A in the renewal process between mirrored volume, thus this moment mirrored volume LUN_B, LUN_C and master file LUN_A in data be inconsistent, need carry out synchronous processing.
Therefore only No. 83 data block carried out data synchronization processing in the whole process, promptly read out the data of No. 83 data blocks, be written among LUN_B, the LUN_C from " data variation content stores table ".After the traversal processing of " the first data variation record sheet " was finished, the synchronous phase between master file and each mirrored volume promptly ended.After this, master file LUN_A and mirrored volume LUN_B, LUN_C will keep synchronous in real time.
A kind of initial synchronisation control device 10 of mirrored volume also is provided among the present invention, is applied to comprise that its structure comprises as shown in Figure 7 in the system of master file 20 and at least one existing mirrored volume 30 and new mirrored volume 40:
First control module 11 is used to keep the Data Update to master file 20, stops the Data Update to existing mirrored volume 30, and execution will have renewal process between the mirrored volume of data sync in the new mirrored volume in the mirrored volume 30.
First record cell 12 is used for writing down between the mirrored volume of first control module 11 first data situation on the renewal process master file 20 and the data content that changes.
Second control module 13 is used for finishing between mirrored volume after the renewal process, carries out the whole updating process that external data is updated to simultaneously master file 20 and new mirrored volume 40.
Second record cell 14 is used for writing down second data situation on the master file 20 in the whole updating process one Preset Time section of second control module 13.
Lock unit 15, be used for according to first data situation, the data content that changes and second data situation, determine between mirrored volume, to upgrade in the renewal process on the master file 20, and data updated once more in the Preset Time section in the whole updating process not, with described Data Update to new mirrored volume 40.
As shown in Figure 8, in this initial synchronisation control device 10:
First record cell 12 can comprise:
The first record subelement 121, be used to set up the first data variation record sheet, each data block that has different sequence numbers on each corresponding master file 20 in the described first data variation record sheet is used the information that whether each data block changes in the renewal process on the described first data variation record sheet record master file 20 between mirrored volume.
Data variation content stores subelement 122 is used to set up data variation content stores table, and the sequence number and the latest data of the data block of variation taken place on the write time record master file 20 according to external data in the described data variation content stores table.
Second record cell 14 can specifically comprise:
The second record subelement 141, be used to set up the second data variation record sheet, each data block that has different sequence numbers on each corresponding master file 20 in the described second data variation record sheet is used the information that whether each data block changes in the Preset Time section on the described second data variation record sheet record master file 20 in described whole updating process.
Lock unit 15 can specifically comprise:
Data block is obtained subelement 151, is used to travel through the first data variation record sheet, obtains the certain data block that is recorded as in the first data variation record sheet on the master file 20 that has taken place to change.
The data block record obtains subelement 152, is used for obtaining the record of certain data block at the second data variation record sheet.
Data block is upgraded subelement 153, be used for when certain data block when being recorded as of the second data variation record sheet do not change, use the latest data of the sequence number of certain data block, upgrade the corresponding data in existing mirrored volume 30 and the new mirrored volume 40 in data variation content stores table correspondence.
In addition, can also comprise in this initial synchronisation control device 10:
Mirror image is used for when existing mirrored volume 30 is one concerning stick unit 16, and the mirror image that keeps master file 20 and existing mirrored volume 30 before the control procedure of first control module 11 is to relation and add new mirrored volume 40;
Mirror image is used for after lock unit 15 synchronizing processes concerning updating block 17, and the mirror image of deletion master file 20 and existing mirrored volume 30 is to relation, and the mirror image of setting up master file 20 and new mirrored volume 40 is to relation.
In the initial synchronization method and control device of mirrored volume provided by the invention, because the source data of initial synchronisation is read from existing mirrored volume fully, synchronizing process does not constitute the read-write burden to master file, thereby reduced initial synchronization to the full extent master file is handled the performance impact that external data is visited.In addition, because renewal process has been suspended external data writing to mirrored volume between mirrored volume, synchronous data flow has been realized separating with external data stream, and synchronizing process occurs over just on the mirrored volume that does not have external flow, greatly reduces the time overhead of initial synchronisation.Especially, when in mirror image pattern one to one, changing mirrored volume, before initial synchronization is finished, keep former mirror image earlier, reduced before finishing synchronously because master file physical unit fault causes the risk of loss of data to relation.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprises that some instructions are used so that an equipment is carried out the described method of each embodiment of the present invention.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (10)

1. the initial synchronization method of a mirrored volume is applied to comprise in the system of master file and at least one existing mirrored volume, it is characterized in that, comprising:
Maintenance is to the Data Update of described master file, stop Data Update to described existing mirrored volume, carry out renewal process between the mirrored volume of the data sync in the described existing mirrored volume in the new mirrored volume, and write down between described mirrored volume first data situation on the master file described in the renewal process and the data content that changes;
Finish between described mirrored volume after the renewal process, carrying out the whole updating process that external data is updated to simultaneously described master file and new mirrored volume, and writing down in the described whole updating process second data situation on the described master file in the Preset Time section;
According to described first data situation, the data content that changes and second data situation, determine between described mirrored volume, to upgrade in the renewal process on the described master file, and data updated once more in the Preset Time section in described whole updating process not, with described Data Update to described new mirrored volume;
Wherein, described first data situation produces prior to described second data situation, described first data situation refers to the data situation on the master file described in the described mirrored volume renewal process, described second data situation refers to the data situation that writes down on the described master file in the Preset Time section in the whole updating process, and the described pairing time of Preset Time section is less than the described pairing time of whole updating process.
2. the method for claim 1 is characterized in that, first data situation on the master file described in the renewal process and the data content that changes between the described mirrored volume of described record comprise:
Set up the first data variation record sheet, the change information that has each data block of different sequence numbers on each corresponding described master file in the described first data variation record sheet uses the described first data variation record sheet to write down the information that whether each data block changes in the renewal process on the described master file between described mirrored volume;
Set up data variation content stores table, write down the sequence number and the latest data of the data block that variation has taken place on the described master file in the described data variation content stores table according to the write time of external data.
3. method as claimed in claim 2 is characterized in that, second data situation in the described whole updating process of described record on the interior described master file of a Preset Time section comprises:
Set up the second data variation record sheet, the change information that has each data block of different sequence numbers on each corresponding described master file in the described second data variation record sheet uses the described second data variation record sheet to write down the information that whether each data block changes in the Preset Time section on the described master file in described whole updating process.
4. method as claimed in claim 3, it is characterized in that, described according to described first data situation, the data content that changes and second data situation, determine between described mirrored volume, to upgrade in the renewal process on the described master file, and data updated once more in the Preset Time section in described whole updating process not comprises described Data Update to described new mirrored volume:
Travel through the described first data variation record sheet, obtain the certain data block that is recorded as in the first data variation record sheet on the master file that has taken place to change;
Obtain the record of described certain data block in the second data variation record sheet;
When described certain data block being recorded as in the second data variation record sheet do not change, use the latest data of sequence number correspondence in data variation content stores table of described certain data block, upgrade the corresponding data in the described new mirrored volume.
5. the method for claim 1 is characterized in that, when described existing mirrored volume is one, also comprises before the renewal process between described execution is with the mirrored volume of the data sync in the described existing mirrored volume in the new mirrored volume:
The mirror image that keeps described master file and existing mirrored volume is to relation and add new mirrored volume;
Described data sync on the master file is also comprised behind described new mirrored volume:
The mirror image of deleting described master file and existing mirrored volume is to relation, and the mirror image of setting up described master file and described new mirrored volume is to relation.
6. the initial synchronisation control device of a mirrored volume is applied to comprise in the system of master file and at least one existing mirrored volume, it is characterized in that, comprising:
First control module is used to keep the Data Update to described master file, stops the Data Update to described existing mirrored volume, carries out renewal process between the mirrored volume of the data sync in the described existing mirrored volume in the new mirrored volume;
First record cell is used to write down between described mirrored volume first data situation on the master file described in the renewal process and the data content that changes;
Second control module is finished between described mirrored volume after the renewal process, carries out the whole updating process that external data is updated to simultaneously described master file and new mirrored volume;
Second record cell is used for writing down second data situation on the described master file in the described whole updating process one Preset Time section;
Lock unit, be used for according to described first data situation, the data content that changes and second data situation, determine between described mirrored volume, to upgrade in the renewal process on the described master file, and data updated once more in the Preset Time section in described whole updating process not, with described Data Update to described new mirrored volume;
Wherein, described first data situation produces prior to described second data situation, described first data situation refers to the data situation on the master file described in the described mirrored volume renewal process, described second data situation refers to the data situation that writes down on the described master file in the Preset Time section in the whole updating process, and the described pairing time of Preset Time section is less than the described pairing time of whole updating process.
7. device as claimed in claim 6 is characterized in that, described first record cell comprises:
The first record subelement, be used to set up the first data variation record sheet, the change information that has each data block of different sequence numbers on each corresponding described master file in the described first data variation record sheet uses the described first data variation record sheet to write down the information that whether each data block changes in the renewal process on the described master file between described mirrored volume;
Data variation content stores subelement is used to set up data variation content stores table, writes down the sequence number and the latest data of the data block that variation has taken place on the described master file in the described data variation content stores table according to the write time of external data.
8. device as claimed in claim 7 is characterized in that, described second record cell comprises:
The second record subelement, be used to set up the second data variation record sheet, the change information that has each data block of different sequence numbers on each corresponding described master file in the described second data variation record sheet uses the described second data variation record sheet to write down the information that whether each data block changes in the Preset Time section on the described master file in described whole updating process.
9. device as claimed in claim 8 is characterized in that, described lock unit comprises:
Data block is obtained subelement, is used to travel through the first data variation record sheet, obtains the certain data block that is recorded as in the described first data variation record sheet on the master file that has taken place to change;
The data block record obtains subelement, is used for obtaining the record of described certain data block at the second data variation record sheet;
Data block is upgraded subelement, be used for when described certain data block when being recorded as of the second data variation record sheet do not change, use the latest data of sequence number correspondence in data variation content stores table of described certain data block, upgrade the corresponding data in described existing mirrored volume and the new mirrored volume.
10. device as claimed in claim 6 is characterized in that, also comprises:
Mirror image is used for when existing mirrored volume is one concerning stick unit, and the mirror image that keeps described master file and existing mirrored volume before the control procedure of described first control module is to relation and add new mirrored volume;
Mirror image is used for after described lock unit synchronizing process concerning updating block, and the mirror image of deleting described master file and existing mirrored volume is to relation, and the mirror image of setting up described master file and described new mirrored volume is to relation.
CN2008101276795A 2008-07-07 2008-07-07 Mirrored volume initial synchronization method and control device Expired - Fee Related CN101308472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101276795A CN101308472B (en) 2008-07-07 2008-07-07 Mirrored volume initial synchronization method and control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101276795A CN101308472B (en) 2008-07-07 2008-07-07 Mirrored volume initial synchronization method and control device

Publications (2)

Publication Number Publication Date
CN101308472A CN101308472A (en) 2008-11-19
CN101308472B true CN101308472B (en) 2010-08-18

Family

ID=40124937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101276795A Expired - Fee Related CN101308472B (en) 2008-07-07 2008-07-07 Mirrored volume initial synchronization method and control device

Country Status (1)

Country Link
CN (1) CN101308472B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562761B (en) * 2009-05-18 2012-02-01 杭州华三通信技术有限公司 Method and system for backup storage in optical network
CN105512116A (en) * 2014-09-22 2016-04-20 中兴通讯股份有限公司 Data synchronization method and device
CN105610566A (en) * 2016-01-06 2016-05-25 烽火通信科技股份有限公司 Real-time data synchronization method and system between main and standby nodes
CN107239365B (en) * 2016-03-29 2020-11-27 华为技术有限公司 Method and device for accessing storage equipment

Also Published As

Publication number Publication date
CN101308472A (en) 2008-11-19

Similar Documents

Publication Publication Date Title
CN105549905B (en) A kind of method that multi-dummy machine accesses distributed objects storage system
US7213116B2 (en) Method and apparatus for mirroring objects between storage systems
CN106527969B (en) A kind of Nand Flash memorizer reading/writing method in a balanced way of life-span
CN103500146B (en) Magnetic disk of virtual machine stores data migration method and system
US7266654B2 (en) Storage system, server apparatus, and method for creating a plurality of snapshots
US8874524B1 (en) Handling copy on first write data for snapshot purposes
CN107798130A (en) A kind of Snapshot Method of distributed storage
CN103034566A (en) Method and device for restoring virtual machine
TWI571749B (en) Backup system and backup method thereof
CN101308472B (en) Mirrored volume initial synchronization method and control device
CN102096561A (en) Hierarchical data storage processing method, device and storage equipment
CN105138284A (en) Virtual machine disk mirror image synchronization operation optimization system and method
CN109902034A (en) Snapshot creation method, device, electronic equipment and machine readable storage medium
CN107329904A (en) Method for reading data and device
CN113608701A (en) Data management method in storage system and solid state disk
CN110134551B (en) Continuous data protection method and device
CN107037988B (en) A kind of flash memory safety deleting method and system based on file-level granularity
US11099983B2 (en) Consolidating temporally-related data within log-based storage
CN109683825A (en) A kind of storage system online data compression method, device and equipment
CN109445693A (en) A kind of data compression method and device
CN103729301B (en) Data processing method and device
CN103823634A (en) Data processing method and system supporting non-random write mode
US9535796B2 (en) Method, apparatus and computer for data operation
CN103744626A (en) Data writing method based on memory replacement
CN105488139B (en) The method of cross-platform storing data migration based on power information acquisition system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100818

Termination date: 20200707

CF01 Termination of patent right due to non-payment of annual fee