CN106155833A - A kind of method and apparatus of asynchronous remote copy - Google Patents

A kind of method and apparatus of asynchronous remote copy Download PDF

Info

Publication number
CN106155833A
CN106155833A CN201510147378.9A CN201510147378A CN106155833A CN 106155833 A CN106155833 A CN 106155833A CN 201510147378 A CN201510147378 A CN 201510147378A CN 106155833 A CN106155833 A CN 106155833A
Authority
CN
China
Prior art keywords
flag bit
memory space
data
snapshot
address parameter
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.)
Pending
Application number
CN201510147378.9A
Other languages
Chinese (zh)
Inventor
李泽宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510147378.9A priority Critical patent/CN106155833A/en
Publication of CN106155833A publication Critical patent/CN106155833A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The method and apparatus embodiments providing a kind of asynchronous remote copy, in order to reduce the asynchronous remote copy impact on generating equipment input and output performance.Described method includes: when current replicative cycle starts, snapshot is set to unactivated state;Obtain the snapmap table that described snapshot is corresponding, the described snapmap table record address parameter of former data place memory space;Determine the first address parameter changed in described snapmap table;At next replicative cycle, the data that will be stored in the memory space that described first address parameter is pointed to copy to target storage device.

Description

A kind of method and apparatus of asynchronous remote copy
Technical field
The present invention relates to computer realm, particularly relate to a kind of method and apparatus replicating snapshot.
Background technology
Snapshot is an a kind of completely available copy about appointment data acquisition system, and this copy includes corresponding data Reflection at certain time point (time point that copy starts).Snapshot be able to record that lower storage device certain time Between the data of point, and do not affect the reading and writing data of storage device, therefore snapping technique be applied to backup, The aspects such as data analysis, application test.
Asynchronous remote copy is exactly typical case's application of snapshot.Asynchronous remote copy is periodically will to produce The initial data of memory area that end occurs data to change copies to back up end, will in snapshot partly or entirely Content copies to back up end.
In the prior art, there are two kinds of implementations.
One, when this replicative cycle starts, a snapshot is activated.When having data to write a memory block During territory, first the initial data in this memory area is copied in snapshot, and by copy in snapshot Data are mapped with this memory area.Then, snapmap table will point to the pointer modified of initial data For pointing to copy data.Then system is recorded this memory area in difference bitmap and be there are differences.Finally exist Memory area writes new data.
When next replicative cycle starts, according to difference bitmap, the memory block that there are differences that will recorded Territory, copy content corresponding in snapshot is to backup end.
A snapshot is activated when two, synchronizing first.Owing to synchronizing to replicate for full dose first, therefore this is swashed Full content in the snapshot lived copies to back up end.From second synchronizing cycle, reach in each cycle Then, activate the snapshot in this cycle, and keep the snapshot in a cycle to be still within state of activation.Then Contrast the difference between snapshot and the snapshot in this cycle in a cycle, poor by the snapshot in this cycle exists Different part copies to back up end.Then the snapshot in a cycle is deleted.
From foregoing description it can be seen that in the first implementation, owing to system needs at difference bitmap In persistently record difference, therefore system input and output performance can be impacted.And in the second implementation, There are two snapshots to be simultaneously in state of activation, therefore system input and output performance can be impacted equally.
Summary of the invention
The method and apparatus embodiments providing a kind of asynchronous remote copy, in order to reduce asynchronous remote Replicate the impact on equipment input and output performance.
The application first aspect provides a kind of method of asynchronous remote copy, including:
When current replicative cycle starts, snapshot is set to unactivated state;
Obtain the snapmap table that described snapshot is corresponding, the storage of described snapmap table record former data place The address parameter in space;
Determine the first address parameter changed in described snapmap table;
At next replicative cycle, will be stored in the data in the memory space that described first address parameter is pointed to Copy to target storage device.
In conjunction with first aspect, in the first possible implementation of first aspect, determining described snapshot After the first address parameter changed in mapping table, described method also includes:
Flag bit corresponding with described first address parameter in difference bitmap is set to the first flag bit.
In conjunction with the first possible implementation of first aspect, the realization that the second in first aspect is possible In mode, will be stored in the data in the memory space that described first address parameter is pointed to and copy to target storage Equipment, specifically includes:
Determine the memory space corresponding to described first flag bit, the flag bit in wherein said difference bitmap with The memory space of described snapshot is the most corresponding;
The data of the memory space corresponding to described first flag bit are copied to described target storage device.
In conjunction with the implementation that the second of first aspect is possible, in the third possible realization of first aspect In mode, described method also includes:
After the data in the memory space corresponding to described first flag bit complete to replicate, by described first mark The second flag bit is revised as in will position, and described second flag bit is different from described first flag bit.
The first possible implementation to the third of first aspect in conjunction with first aspect or first aspect can Can implementation in any one, in the 4th kind of possible implementation of first aspect, will deposit Before storage data in the memory space that described first address parameter is pointed to copy to target storage device, institute Method of stating also includes:
Activate new snapshot.
The application second aspect provides the device of a kind of asynchronous remote copy, including:
Unit is set, for when current replicative cycle starts, snapshot is set to unactivated state;
Acquiring unit, for obtaining the snapmap table that described snapshot is corresponding, described snapmap table record The address parameter of former data place memory space;
Determine unit, for determining the first address parameter changed in described snapmap table;
Copied cells, at next replicative cycle, will be stored in depositing of described first address parameter sensing Data in storage space copy to target storage device.
In conjunction with second aspect, in the first possible implementation of second aspect, described device also includes:
Flag bit arranges unit, for the first address parameter changed in determining described snapmap table Afterwards, flag bit corresponding with described first address parameter in difference bitmap is set to the first flag bit.
In conjunction with the first possible implementation of second aspect, the realization that the second in second aspect is possible In mode, described copied cells specifically for:
Determine the memory space corresponding to described first flag bit, the flag bit in wherein said difference bitmap with The memory space of described snapshot is the most corresponding;
At next replicative cycle, the data of the memory space corresponding to described first flag bit are copied to institute State target storage device.
In conjunction with the implementation that the second of second aspect is possible, in the third possible realization of second aspect In mode, described flag bit arranges unit and is additionally operable to:
After the data in the memory space corresponding to described first flag bit complete to replicate, by described first mark The second flag bit is revised as in will position, and described second flag bit is different from described first flag bit.
The first possible implementation to the third of second aspect in conjunction with second aspect or second aspect can Can implementation in any one, in the 4th kind of possible implementation of second aspect, described dress Put and also include:
Activate unit, multiple for the data in will be stored in the memory space that described first address parameter is pointed to Made before target storage device, activate new snapshot.
The application third aspect provides a kind of heteroplasia and produces equipment, including:
Processor, for when current replicative cycle starts, is set to unactivated state by snapshot;Obtain institute State the snapmap table that snapshot is corresponding, the described snapmap table record address of former data place memory space Parameter;Determine the first address parameter changed in described snapmap table;At next replicative cycle, The data that will be stored in the memory space that described first address parameter is pointed to copy to target storage device;
Transmitter, for sending the data replicated to described target storage device.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described processor is also used In:
After the first address parameter changed in determining described snapmap table, by difference bitmap with Flag bit corresponding to described first address parameter is set to the first flag bit.
In conjunction with the first possible implementation of the third aspect, the realization that the second in the third aspect is possible In mode, described processor specifically for:
Determine the memory space corresponding to described first flag bit, the flag bit in wherein said difference bitmap with The memory space of described snapshot is the most corresponding;
The data of the memory space corresponding to described first flag bit are copied to described target storage device.
In conjunction with the implementation that the second of the third aspect is possible, in the third possible realization of the third aspect In mode, described processor is additionally operable to:
After the data in the memory space corresponding to described first flag bit complete to replicate, by described first mark The second flag bit is revised as in will position, and described second flag bit is different from described first flag bit.
The first possible implementation to the third of the third aspect in conjunction with the third aspect or the third aspect can Can implementation in any one, in the 4th kind of possible implementation of the third aspect, described place Reason device is additionally operable to:
Data in will be stored in the memory space that described first address parameter is pointed to copy to target storage and set For before, activate new snapshot.
The one or more technical schemes provided in the embodiment of the present invention, at least have the following technical effect that or excellent Point:
In embodiments of the present invention, when current replicative cycle starts, snapshot is set to unactivated state; Obtain the snapmap table that described snapshot is corresponding, described snapmap table record former data place memory space Address parameter;Determine the first address parameter that described snapmap table changes;Week is replicated at the next one Phase, the data that will be stored in the memory space that described first address parameter is pointed to copy to target storage device. So, in the technical scheme of the embodiment of the present invention, by snapmap table determines first changed Address parameter, and then be assured that out when carrying out asynchronous remote copy, need to replicate in snapshot which Data.So that the electronic equipment in the embodiment of the present invention be no longer necessary to continue in difference bitmap record poor Different state, it is not required that create two snapshots, therefore decreases asynchronous remote copy and inputs electronic equipment The impact of output performance.
Accompanying drawing explanation
Fig. 1 a is stored schematic diagram data by the memory space of T1 time data in the embodiment of the present invention;
Fig. 1 b is the snapshot schematic diagram in T1 moment in the embodiment of the present invention;
Fig. 1 c is that in the embodiment of the present invention, the snapmap in T1 moment represents intention;
Fig. 1 d is the snapshot schematic diagram in T2 moment in the embodiment of the present invention;
Fig. 1 e is the schematic diagram of the stored data of the memory space of T2 time data in the embodiment of the present invention;
Fig. 1 f is that in the embodiment of the present invention, the snapmap in T2 moment represents intention;
Fig. 2 is the method flow diagram of asynchronous remote copy in the embodiment of the present invention;
Fig. 3 is difference bitmap schematic diagram corresponding with the snapshot shown in Fig. 1 f in the embodiment of the present invention;
Fig. 4 is the apparatus structure schematic diagram of asynchronous remote copy in the embodiment of the present invention;
Fig. 5 is production device structure schematic diagram in the embodiment of the present invention.
Specific implementation
The method and apparatus embodiments providing a kind of asynchronous remote copy, in order to reduce asynchronous remote Replicate the impact on equipment input and output performance.
In order to solve above-mentioned technical problem, the technical scheme resolving ideas that the embodiment of the present invention provides includes as follows Content:
In embodiments of the present invention, when current replicative cycle starts, snapshot is set to unactivated state; Obtain the snapmap table that described snapshot is corresponding, described snapmap table record former data place memory space Address parameter;Determine the first address parameter that described snapmap table changes;Week is replicated at the next one Phase, the data that will be stored in the memory space that described first address parameter is pointed to copy to target storage device. So, in the technical scheme of the embodiment of the present invention, by snapmap table determines first changed Address parameter, and then be assured that out when carrying out asynchronous remote copy, need to replicate in snapshot which Data.So that the electronic equipment in the embodiment of the present invention be no longer necessary to continue in difference bitmap record poor Different state, it is not required that create two snapshots, therefore decreases asynchronous remote copy and inputs electronic equipment The impact of output performance.
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the present invention Accompanying drawing in embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that Described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based in the present invention Embodiment, those of ordinary skill in the art obtained under not making creative work premise all its His embodiment, broadly falls into the scope of protection of the invention.
The terms "and/or", a kind of incidence relation describing affiliated partner, expression can exist Three kinds of relations, such as, A and/or B, can represent: individualism A, there is A and B, individually simultaneously There is B these three situation.It addition, character "/" herein, typically represent forward-backward correlation to as if a kind of "or" Relation.
Snapshot is an a kind of completely available copy about appointment data acquisition system, and this copy includes corresponding data Reflection at certain time point (time point that copy starts).Specifically, snapshot is directed to be saved in and deposits The invoking marks of the data in storage equipment or pointer.During implementing, the memory space of snapshot and number According to memory space different.The memory space of snapshot and the memory space of data can be in same LUN (English: Logical Unit Number;It is called for short: in LUN), but relatively independent.Such as LUN has The memory space of 4T, wherein it is possible to 0T-3T to be set to the memory space of data, by 3T-4T equipment be The memory space of snapshot.The memory space of snapshot and the memory space of data can also be different at two respectively In LUN.The application is not particularly limited.
But, the data variation of the memory space of data is carried out record by snapshot.Such as, the storage of data is empty When having new data write between, fast note copies former data to snapshot deposit from the memory space of data Storage space.
Further, snapmap table have recorded the address parameter of former data place memory space.Specifically, In embodiments of the present invention, when former data are activation snapshot, the data stored in the memory space of data. Wherein, the address parameter in snapmap table includes but not limited to address, pointer or index etc..Such as data Memory space have 4, snapmap table in the address of the former data of snapshot activation moments record be this 4 The address parameter of the memory space of individual data.When the former data of the memory space of the 1st data change, Former data are copied to record in the memory space of snapshot, and then snapmap table the address of these former data by snapshot Parameter has just become the address parameter of memory space of the snapshot at former data place after copy.
Introduce for convenience, refer to Fig. 1 a-Fig. 1 f, it is assumed that impinging upon the T1 moment soon is activated.Assume data Memory space have 4T, be divided into 4 memory spaces.It is specially the 1st memory space of 0T-1T, 2nd memory space of 1T-2T, the 3rd memory space of 2T-3T and the 4th memory space of 3T-4T.At this In inventive embodiments, the storage condition of the memory space of T1 time data as shown in Figure 1a and.In Fig. 1 1,2,3 and 4 respectively represent 4 memory spaces numbering.A0 is the former of storage in the 1st memory space Data, B0 is the former data in the 2nd memory space, and C0 is the former data of the 3rd memory space, and D0 is The former data of 4 memory spaces.The address of the 1st memory space is a, and pointer a0 points to address a;2nd storage The address in space is b, and pointer b0 points to address b;The address of the 3rd memory space is c, and pointer c0 points to Address c, the address of the 4th memory space is d, and pointer d0 points to address d.Impinge upon after being activated soon, can remember Record index, pointer, serial number or the numbering etc. of lower four memory spaces.In the embodiment of the present invention, it is assumed that fast According to middle record is the numbering 1,2,3 and 4 of four memory spaces, and the snapshot in T0 moment is as shown in figure ib. Now in snapmap table, record stores the address parameter of former data, as a example by pointer, as shown in figure ic.
In the T2 moment (T1 and T2 is the moment in current replicative cycle) after the T1 moment, the 1st deposits Storage space will be written into new data A1, and the 4th memory space will be written into new data D1.Write After new data, in the 1st memory space, the data of storage are A1, and in the 4th memory space, the data of storage are D1.In embodiments of the present invention, equipment before write new data, can be written into the storage sky of new data Between former data copy in the memory space of snapshot.Therefore, it is carved with new data to write the 1st deposit when T2 When storage space and 4 memory space, data A0 are copied to the 1st storage sky that snapshot is corresponding by equipment with D0 Between and the 4th memory space in.The snapshot in T2 moment is as shown in Figure 1 d.After duplication completes, A1 is write number According to the 1st memory space of memory space, the 4th memory space of the memory space of D1 write data.T2 The data of the memory space storage of time data are as shown in fig. le.
Further, owing to former data A0 have copied in the 1st memory space of snapshot from the 1st memory space, The address parameter of the most former data A0 also can change accordingly.Specifically, it is assumed that A0 copies to address For in the memory space of the snapshot of a ', D0 copies in the memory space of the snapshot that address is d '.So, After A0 and D0 has replicated, pointer a0 will be modified to point to the pointer a1 of address a ', and pointer d0 will revise For pointing to the pointer d1 of d '.So, snapmap table is as shown in Figure 1 f.
Below, by the method for the asynchronous remote copy in the embodiment of the present invention is introduced, refer to Fig. 2, Including:
S101: when current replicative cycle starts, snapshot is set to unactivated state.
S102: obtain the snapmap table that described snapshot is corresponding.
S103: determine the first address parameter changed in described snapmap table.
S104: at next replicative cycle, will be stored in the memory space that described first address parameter is pointed to Data copy to target storage device.
When current replicative cycle starts, owing to now producing equipment not it is determined which data replicated To target storage device, it is therefore desirable to when snapshot adjusts to unactivated state from state of activation, just can confirm that Replicate which data.So snapshot being set to unactivated state in S101.
It follows that in S102, it is thus achieved that snapshot correspondence snapmap table.
Owing to snapmap table have recorded the address parameter that each storage has the memory space of former data, such as figure Shown in 1f, so according to above memory space to data, the corresponding relation of snapshot and snapmap table Describe and understand, if the address parameter in snapmap table changes, then show the address parameter changed Corresponding former data there occurs change, so data after changing, it is simply that need during asynchronous remote copy Replicate is data.
So in S103, determining the first address parameter changed in snapmap table.Specifically, In embodiments of the present invention, from the address parameter of snapmap table, determine the first address parameter changed Method have multiple, below by Verbose Listing two kinds.During implementing, include but not limited to following Two kinds.
The first:
After the address parameter in snapmap table changes, the flag bit of address parameter that will change It is revised as the 4th flag bit by the 3rd flag;
Determine that the address parameter that flag bit is described 4th flag bit is described first address parameter.
Specifically, in order to distinguish whether address parameter changes, can be that each address parameter arranges one Flag bit.In embodiments of the present invention, the flag bit of address parameter is specially the 3rd flag and the 4th mark Position.Wherein, the 3rd flag bit characterizes address parameter and does not changes, and the 4th flag bit characterizes address parameter and sends out Changing.3rd flag bit for example, 0, the 4th flag bit for example, 1, or the 3rd flag bit for example, a, 4th flag bit for example, b.
For example, the snapmap table in T1 moment is as illustrated in figure 1 c.The write of data A1 it is carved with as T2 1st memory space, and after former data A0 are copied to the memory space of snapshot by production equipment, snapshot reflects Address parameter a0 in firing table becomes a1.The snapmap table in T2 moment is as shown in Figure 1 f.Owing to a0 becomes A1, the flag bit of address parameter a1 is set to the 4th flag bit, such as, is set to 1 by production equipment.Ground The flag bit of location parameter d1 is also configured as the 4th flag bit.And the flag bit of address parameter b0 and c0 still sets It is set to the 3rd flag, such as 0.
Therefore, in S103, the flag bit inquiring about each address parameter understands, and address parameter a1 and d1 are First address parameter.
The second:
When the address that described address parameter is pointed to is not in preset range, determine that described address parameter is first Address parameter.
Specifically, the memory space of data and the memory space of snapshot are the most independent, therefore, and snapshot The address realm of memory space just different from the address realm of the memory space of data.And then, point to snapshot The scope pointed by address parameter of memory space would not be in the address realm of the memory space of data. So, in embodiments of the present invention, preset range is set to the address realm of the memory space of data, enters And not pointing to the address parameter in preset range is exactly the first address parameter.
For continuing to use example above.In described above, the memory space address scope of data is 0T-4T, and it is further assumed that the address of memory space of snapshot is 6T-8T.As shown in Figure 1 f, when T2 In the snapmap table carved, pointer a1 points to address 6T-7T, b0 and points to 1T-2T, c0 sensing 2T-3T, D1 points to 7T-8T, and preset range is 0T-4T.The address pointed to due to a1 is the ground that 6T-7T, d1 point to Location is 7T-8T, and 6T-7T and 7T-8T be not in preset range 0T-4T, so a1 and d1 is the first ground Location parameter.
In embodiments of the present invention, before S104 replicates data, also need to be set to swash by the snapshot that new The state of living.The new snapshot activated is by after the snapshot shown in Fig. 1 d is deleted, for recording the storage of data The data variation in space.The detailed description of the invention of record hereinbefore has been introduced, and goes to live in the household of one's in-laws on getting married the most one by one State.
Finally, in S104, in next replicative cycle, the memory space that the first address parameter is pointed to Data copy in target storage device.Specifically, the first address parameter points to the memory space of snapshot, At next replicative cycle, the data for described new snapshot of storage in the memory space of snapshot.Therefore, The memory space of snapshot can be had access to according to the first address parameter, and then just can depositing from the snapshot accessed Storage reads data in space, and the data read are copied to target storage device.
For example, in Fig. 1 f, the first address parameter a1 and d1 point to two of storage A0 and D0 soon According to memory space.So when next replicative cycle, production equipment accesses two according to a1 and d1 and deposits Storage space.That now store in the memory space of the snapshot that a1 and d1 points to is A1 and D1, so by A1 Target storage device is copied to D1.
Optionally, in embodiments of the present invention, after S103, also include:
Flag bit corresponding with described first address parameter in difference bitmap is set to the first flag bit.
After activation snapshot in S103, snapshot changes again, therefore, it can according to One address parameter arranges the flag bit of difference bitmap.
Specifically, the flag bit of difference bitmap is the most corresponding with the memory space of snapshot.The most above Middle the memory space of snapshot is divided into 4 memory spaces, then difference bitmap just has 4 flags, And the 1st flag bit is corresponding with the 1st snapshot storage space, simultaneously the 1st flag bit also with snapmap table In first address parameter correspondence.The corresponding relation of other 3 flag bits is also similar to, the most one by one List.
In embodiments of the present invention, difference bitmap carries out asynchronous remote copy for Instructing manufacture equipment.Difference The flag bit of bitmap has two kinds, is respectively the first flag bit needing to replicate when characterizing asynchronous remote copy, with And when characterizing asynchronous remote copy, need the second flag bit replicated.After S103 determines the first address parameter, The flag bit corresponding with the first address parameter is set to the first flag bit.
For continuing to use example above.As it is shown on figure 3, after determining that the first address parameter is a1 and d1, Owing to a1 is corresponding with the 1st flag, d1 is corresponding with the 4th flag bit, therefore by the 1st and the 4th mark The first flag bit is all revised as in will position, and such as 1.And remaining flag bit is set to the second flag bit, such as 0.
It follows that in embodiments of the present invention, S104 specifically includes:
Determine described memory space corresponding to described first flag bit, the flag bit in wherein said difference bitmap The most corresponding with the memory space in described snapshot;
The data of the memory space corresponding to described first flag bit are copied to described target storage device.
Specifically, first according to the first flag bit in difference bitmap, determine corresponding to the first flag bit Memory space.Such as in Fig. 3, the 1st flag bit and the 4th flag bit are the first flag bits 1, then Determine that in the next replicative cycle of asynchronous remote copy, need replicate be in snapshot with the 1st mark Will position and the data in the 4th memory space that flag bit is corresponding, i.e. A1 and D1.
It follows that replicate the address of the memory space of data as required, replicate the number in memory space successively According to.
Specifically, when the first flag bit only has one, then the memory space corresponding to the first flag bit Also only one of which, the most directly replicates the data in this memory space.And when the first flag bit have two or During two or more, when corresponding memory space also has two or more, in embodiments of the present invention, will According to the address of these memory spaces, replicate the data in memory space successively.
Specifically, during implementing, can replicate successively according to the order that address is descending and deposit Data in storage space.Assume difference bitmap as it is shown on figure 3, the memory space of snapshot as shown in Figure 1 d.The The address of the memory space corresponding to 1 flag bit is assumed to be 6T-7T, the 4th storage corresponding to flag bit The address in space is assumed to be 7T-8T.The most first D1 is copied to target storage device, then A1 is copied to Target storage device.The address in object space can also be replicated successively according to the order that address is ascending. The most first A1 is copied to target storage device, then D1 is copied to target storage device.Neck belonging to the application The those of ordinary skill in territory can be configured according to actual, and the application is not particularly limited.
The application second aspect provides the device of a kind of asynchronous remote copy, as shown in Figure 4, and including:
Unit 401 is set, for when current replicative cycle starts, snapshot is set to unactivated state;
Acquiring unit 402, for obtaining the snapmap table that described snapshot is corresponding, described snapmap table record The address parameter of former data place memory space;
Determine unit 403, for determining the first address parameter changed in described snapmap table;
Copied cells 404, at next replicative cycle, will be stored in what described first address parameter was pointed to Data in memory space copy to target storage device.
Optionally, in embodiments of the present invention, asynchronous remote copy device can also include:
Flag bit arranges unit, for the first address parameter changed in determining described snapmap table Afterwards, flag bit corresponding with described first address parameter in difference bitmap is set to the first flag bit.
When device includes that flag bit arranges unit, copied cells 404 specifically for:
Determine the memory space corresponding to described first flag bit, the flag bit in wherein said difference bitmap with The memory space of described snapshot is the most corresponding;
The data of the memory space corresponding to described first flag bit are copied to described target storage device.
Optionally, in embodiments of the present invention, flag bit arranges unit and is additionally operable to:
After the data in the memory space corresponding to described first flag bit complete to replicate, by described first mark The second flag bit is revised as in will position, and described second flag bit is different from described first flag bit.
Optionally, the device in the embodiment of the present application also includes:
Activate unit, multiple for the data in will be stored in the memory space that described first address parameter is pointed to Made before target storage device, activate new snapshot.
The application third aspect provides a kind of production equipment, as it is shown in figure 5, include:
Processor 503, for when current replicative cycle starts, is set to unactivated state by snapshot;Obtain The snapmap table that described snapshot is corresponding, the described snapmap table record ground of former data place memory space Location parameter;Determine the first address parameter changed in described snapmap table;At next replicative cycle, The data that will be stored in the memory space that described first address parameter is pointed to copy to target storage device;
Transmitter 502, for sending the data replicated to described target storage device
Optionally, processor 503 is additionally operable to:
After the first address parameter changed in determining described snapmap table, by difference bitmap with Flag bit corresponding to described first address parameter is set to the first flag bit.
In embodiments of the present invention, processor 503 specifically for:
Determine the memory space corresponding to described first flag bit, the flag bit in wherein said difference bitmap with The memory space of described snapshot is the most corresponding;
The data of the memory space corresponding to described first flag bit are copied to described target storage device.
Optionally, processor 503 is additionally operable to:
After the data in the memory space corresponding to described first flag bit complete to replicate, by described first mark The second flag bit is revised as in will position, and described second flag bit is different from described first flag bit.
Optionally, processor 503 is additionally operable to: will be stored in the storage sky that described first address parameter is pointed to Before data between copy to target storage device, activate new snapshot.
Wherein, in Figure 5, bus architecture (represents by bus 500), and bus 500 can include arbitrarily The bus of the interconnection of quantity and bridge, bus 500 will include the one or more process represented by processor 503 The various electrical chains of the memorizer that device and memorizer 504 represent are connected together.Bus 500 can also be by such as Other electrical chains various of ancillary equipment, manostat and management circuit or the like are connected together, and these are all It is to it is known in the art, therefore, the most no longer it is described further.EBI 505 is always Interface is provided between line 500 and receptor 501 and transmitter 502.Receptor 501 and transmitter 502 can To be same element, i.e. transceiver, it is provided that for the list communicated with other devices various over a transmission medium Unit.
Processor 503 is responsible for bus 500 and common process, and memorizer 504 can be used for depositing The data that storage processor 503 is used when performing operation.
The various variation patterns of the process of the asynchronous remote copy described in previous embodiment and instantiation are same Being applicable to the production equipment of the present embodiment, by aforesaid detailed description, those skilled in the art can be clear Know the implementation producing equipment in the present embodiment, so succinct for description, the most detailed at this State.
The one or more technical schemes provided in the embodiment of the present invention, at least have the following technical effect that or excellent Point:
In embodiments of the present invention, when current replicative cycle starts, snapshot is set to unactivated state; Obtain the snapmap table that described snapshot is corresponding, described snapmap table record former data place memory space Address parameter;Determine the first address parameter that described snapmap table changes;Week is replicated at the next one Phase, the data that will be stored in the memory space that described first address parameter is pointed to copy to target storage device. So, in the technical scheme of the embodiment of the present invention, by snapmap table determines first changed Address parameter, and then be assured that out when carrying out asynchronous remote copy, need to replicate in snapshot which Data.So that the electronic equipment in the embodiment of the present invention be no longer necessary to continue in difference bitmap record poor Different state, it is not required that create two snapshots, therefore decreases asynchronous remote copy and inputs electronic equipment The impact of output performance.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more Computer-usable storage medium containing computer usable program code (include but not limited to disk memory and Optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program according to embodiments of the present invention Flow chart and/or block diagram describe.It should be understood that can by computer program instructions flowchart and/ Or flow process in each flow process in block diagram and/or square frame and flow chart and/or block diagram and/or The combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedded The processor of datatron or other programmable data processing device is to produce a machine so that pass through computer Or the instruction that the processor of other programmable data processing device performs produces for realizing at flow chart one stream The device of the function specified in journey or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device In the computer-readable memory worked in a specific way so that be stored in this computer-readable memory Instruction produces the manufacture including command device, and this command device realizes at one flow process of flow chart or multiple stream The function specified in journey and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. the method for an asynchronous remote copy, it is characterised in that including:
When current replicative cycle starts, snapshot is set to unactivated state;
Obtain the snapmap table that described snapshot is corresponding, the storage of described snapmap table record former data place The address parameter in space;
Determine the first address parameter changed in described snapmap table;
At next replicative cycle, will be stored in the data in the memory space that described first address parameter is pointed to Copy to target storage device.
2. the method for claim 1, it is characterised in that occur in determining described snapmap table After first address parameter of change, described method also includes:
Flag bit corresponding with described first address parameter in difference bitmap is set to the first flag bit.
3. method as claimed in claim 2, it is characterised in that will be stored in described first address parameter and refer to To memory space in data copy to target storage device, specifically include:
Determine the memory space corresponding to described first flag bit, the flag bit in wherein said difference bitmap with The memory space of described snapshot is the most corresponding;
The data of the memory space corresponding to described first flag bit are copied to described target storage device.
4. method as claimed in claim 3, it is characterised in that described method also includes:
After the data in the memory space corresponding to described first flag bit complete to replicate, by described first mark The second flag bit is revised as in will position, and described second flag bit is different from described first flag bit.
5. the method as described in any one of claim 1-4, it is characterised in that will be stored in described first Before data in the memory space that address parameter is pointed to copy to target storage device, described method also includes:
Activate new snapshot.
6. the device of an asynchronous remote copy, it is characterised in that including:
Unit is set, for when current replicative cycle starts, snapshot is set to unactivated state;
Acquiring unit, for obtaining the snapmap table that described snapshot is corresponding, described snapmap table record The address parameter of former data place memory space;
Determine unit, for determining the first address parameter changed in described snapmap table;
Copied cells, at next replicative cycle, will be stored in depositing of described first address parameter sensing Data in storage space copy to target storage device.
7. device as claimed in claim 6, it is characterised in that described device also includes:
Flag bit arranges unit, for the first address parameter changed in determining described snapmap table Afterwards, flag bit corresponding with described first address parameter in difference bitmap is set to the first flag bit.
8. device as claimed in claim 7, it is characterised in that described copied cells specifically for:
Determine the memory space corresponding to described first flag bit, the flag bit in wherein said difference bitmap with The memory space of described snapshot is the most corresponding;
The data of the memory space corresponding to described first flag bit are copied to described target storage device.
9. device as claimed in claim 8, it is characterised in that described flag bit arranges unit and is additionally operable to:
After the data in the memory space corresponding to described first flag bit complete to replicate, by described first mark The second flag bit is revised as in will position, and described second flag bit is different from described first flag bit.
10. the device as described in any one of claim 6-9, it is characterised in that described device also includes:
Activate unit, multiple for the data in will be stored in the memory space that described first address parameter is pointed to Made before target storage device, activate new snapshot.
CN201510147378.9A 2015-03-31 2015-03-31 A kind of method and apparatus of asynchronous remote copy Pending CN106155833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510147378.9A CN106155833A (en) 2015-03-31 2015-03-31 A kind of method and apparatus of asynchronous remote copy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510147378.9A CN106155833A (en) 2015-03-31 2015-03-31 A kind of method and apparatus of asynchronous remote copy

Publications (1)

Publication Number Publication Date
CN106155833A true CN106155833A (en) 2016-11-23

Family

ID=57337599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510147378.9A Pending CN106155833A (en) 2015-03-31 2015-03-31 A kind of method and apparatus of asynchronous remote copy

Country Status (1)

Country Link
CN (1) CN106155833A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402852A (en) * 2017-08-16 2017-11-28 郑州云海信息技术有限公司 A kind of band adaptively changes the remote copy method of volume
CN107562578A (en) * 2017-09-25 2018-01-09 郑州云海信息技术有限公司 A kind of snapshot creation method of data storage, device, equipment and storage medium
CN108733513A (en) * 2018-05-07 2018-11-02 杭州宏杉科技股份有限公司 A kind of data-updating method and device
CN109428861A (en) * 2017-08-29 2019-03-05 阿里巴巴集团控股有限公司 Network communication method and equipment
CN110389713A (en) * 2018-04-20 2019-10-29 伊姆西Ip控股有限责任公司 Method of data synchronization, equipment and computer-readable medium
CN113986115A (en) * 2020-07-27 2022-01-28 伊姆西Ip控股有限责任公司 Method, electronic device and computer program product for copying data
CN114442944A (en) * 2022-01-05 2022-05-06 杭州宏杉科技股份有限公司 Data copying method, system and equipment
CN113986115B (en) * 2020-07-27 2024-05-31 伊姆西Ip控股有限责任公司 Method, electronic device and computer program product for copying data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040042363A1 (en) * 2000-12-27 2004-03-04 Nobuyuki Kobayashi Method of recording data, recording medium and recording device
CN102012852A (en) * 2010-12-27 2011-04-13 创新科存储技术有限公司 Method for implementing incremental snapshots-on-write
CN103384262A (en) * 2012-05-01 2013-11-06 株式会社日立制作所 Traffic reducing on data migration
CN104407935A (en) * 2014-11-07 2015-03-11 华为数字技术(成都)有限公司 Snapshot rollback method and storage equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040042363A1 (en) * 2000-12-27 2004-03-04 Nobuyuki Kobayashi Method of recording data, recording medium and recording device
CN102012852A (en) * 2010-12-27 2011-04-13 创新科存储技术有限公司 Method for implementing incremental snapshots-on-write
CN103384262A (en) * 2012-05-01 2013-11-06 株式会社日立制作所 Traffic reducing on data migration
CN104407935A (en) * 2014-11-07 2015-03-11 华为数字技术(成都)有限公司 Snapshot rollback method and storage equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402852A (en) * 2017-08-16 2017-11-28 郑州云海信息技术有限公司 A kind of band adaptively changes the remote copy method of volume
CN107402852B (en) * 2017-08-16 2020-11-27 苏州浪潮智能科技有限公司 Remote copying method with self-adaptive change volume
CN109428861A (en) * 2017-08-29 2019-03-05 阿里巴巴集团控股有限公司 Network communication method and equipment
CN107562578A (en) * 2017-09-25 2018-01-09 郑州云海信息技术有限公司 A kind of snapshot creation method of data storage, device, equipment and storage medium
CN110389713A (en) * 2018-04-20 2019-10-29 伊姆西Ip控股有限责任公司 Method of data synchronization, equipment and computer-readable medium
CN108733513A (en) * 2018-05-07 2018-11-02 杭州宏杉科技股份有限公司 A kind of data-updating method and device
CN113986115A (en) * 2020-07-27 2022-01-28 伊姆西Ip控股有限责任公司 Method, electronic device and computer program product for copying data
CN113986115B (en) * 2020-07-27 2024-05-31 伊姆西Ip控股有限责任公司 Method, electronic device and computer program product for copying data
CN114442944A (en) * 2022-01-05 2022-05-06 杭州宏杉科技股份有限公司 Data copying method, system and equipment
CN114442944B (en) * 2022-01-05 2024-02-27 杭州宏杉科技股份有限公司 Data replication method, system and equipment

Similar Documents

Publication Publication Date Title
CN106155833A (en) A kind of method and apparatus of asynchronous remote copy
CN105830022B (en) The method and apparatus for accessing file
CN103136406B (en) The method of visualization applications simulations function code
CN103473160B (en) Testing device, CPU (central processing unit) chip and testing method for cache
CN105138461A (en) Interface testing method and device for application program
CN102662833A (en) Method for managing test cases
CN107066498A (en) Key assignments KV storage methods and device
CN106445398A (en) Novel memory-based embedded file system and realization method thereof
CN105446841A (en) Cache consistency test method
CN109871290A (en) Allocating stack method for tracing, device and storage medium applied to Java
CN105138284A (en) Virtual machine disk mirror image synchronization operation optimization system and method
CN110399333A (en) Delete method, equipment and the computer program product of snapshot
CN104985939A (en) Laser marking machine control method and laser marking machine
US9734620B2 (en) Apparatus and method for graphics state management
JP7238171B2 (en) Memory device providing bad column repair and method of operation
CN109446096A (en) A kind of intelligence contract adjustment method, device and its storage medium
CN110187834A (en) Data processing method, the device, electronic equipment of copy are deleted again
CN106372002B (en) A kind of date storage method and read restoring method
CN105808378A (en) Metadata restoration method and device
CN111522827B (en) Data updating method and device and electronic equipment
CN106775481B (en) Method for reading data and equipment
US9535796B2 (en) Method, apparatus and computer for data operation
CN106775586B (en) Data reordering method and device
CN105068764B (en) A kind of device and method for simulating NandFlash
CN103294606A (en) Methods and devices for allocating memories and detecting overflow thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161123

RJ01 Rejection of invention patent application after publication