CN105045685A - Backup method and apparatus for cached data and recovery method and apparatus for cached data - Google Patents

Backup method and apparatus for cached data and recovery method and apparatus for cached data Download PDF

Info

Publication number
CN105045685A
CN105045685A CN201510472119.3A CN201510472119A CN105045685A CN 105045685 A CN105045685 A CN 105045685A CN 201510472119 A CN201510472119 A CN 201510472119A CN 105045685 A CN105045685 A CN 105045685A
Authority
CN
China
Prior art keywords
data
metadata
controller
data units
buffered
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
CN201510472119.3A
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510472119.3A priority Critical patent/CN105045685A/en
Publication of CN105045685A publication Critical patent/CN105045685A/en
Pending legal-status Critical Current

Links

Abstract

The present invention provides backup and recovery methods and apparatuses for cached data. The backup method comprises: aimed at cached data needing to be protected, creating corresponding metadata for each cached data unit, wherein each metadata comprises a target backup storage position of the corresponding cached data unit, a check code and metadata position information of the next cached data unit corresponding to the cached data unit. The backup method further comprises: when the cached data of a business application needs to be backed up, storing all the cached data units of the business application and the corresponding metadata into a physical storage medium in a file form. By virtue of the scheme, the reliability of the cached data can be improved.

Description

Data cached backup method and device, data cached restoration methods and device
Technical field
The present invention relates to computer memory technical, particularly a kind of data cached backup method and device, data cached restoration methods and device.
Background technology
Along with the arrival of large data age, various application develop rapidly, data-storage system more and more becomes a requisite part for socio-economic development.Large data age is also that the design difficulty of data-storage system brings huge challenge while arriving, such as: the security how ensureing data.
In order to ensure the security of data, Data cache technology introduced by data-storage system.By the data buffer storage of service application in internal memory.Because the data of buffer memory can not be written into physical storage medium, therefore when system power supply catastrophic failure, if do not take emergency protection measure, data cached loss will inevitably be caused.
At present, in order to avoid data cached loss, during system power supply catastrophic failure, can directly correspond in internal memory in the data cached physical storage medium such as disk be saved in for backing up of current business application.Follow-up after system re-powers, can read backed up data cached from physical storage medium such as disk, and read data cached collection is returned in internal memory.
But, at present the data cached mode backed up and recover is depended on to the reliability of disk, that is, only in disk non-fault, in disk data cached without any damage when, the all data cached entirety of same service application could be recovered, if disk sector is damaged, when causing that the appropriate section of service application in this sector is data cached cannot be recovered, then None-identified does not damage the valid cache data in sector at other, reduce data cached reliability, cause recovering the data cached of service application.
Summary of the invention
The invention provides a kind of data cached backup method and device, data cached restoration methods and device, data cached reliability can be improved.
A kind of data cached backup method, for needing the data cached of protection, for each buffered data units creates corresponding metadata, each metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units; Also comprise:
When needing to back up a service application data cached, in the mode of file, by all buffered data units of this service application and the meta-data preservation of correspondence in physical storage medium.
Be applied to and comprise in the computing machine of dual controller;
Data cached the comprising of described needs protection: corresponding to dirty data and the mirror image data of the first controller in dual controller, corresponding to dirty data and the mirror image data of second controller in dual controller; Wherein, the described mirror image data corresponding to the first controller is the Backup Data of the dirty data of described second controller; The described mirror image data corresponding to second controller is the Backup Data of the dirty data of described first controller.
Each metadata described comprises further: the condition code of service application belonging to corresponding buffered data units, the condition code of same service application is identical.
A data cached restoration methods, the metadata of reading and saving from physical storage medium; Each metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units;
S1, from the current meta data of current reading, obtain the target back-up storage location of current cache data cell corresponding to current meta data, from the target back-up storage location of described physical storage medium, obtain current cache data cell;
S2, according to the check code in current meta data to obtain current cache data cell carry out validity check, if effectively, then by current cache data unit recovery in internal memory, perform S3;
The positional information of S3, metadata that the next buffered data units comprised according to current meta data is corresponding, obtains next metadata, using this next metadata as current meta data, returns and perform S1.
Comprise further: in described physical storage medium, set up concordance list in advance, the positional information of each metadata is kept in this concordance list, and utilizes pointer the positional information of each metadata to be pointed to the metadata location information of the next buffered data units of corresponding buffered data units;
In S3, the positional information of the metadata that the described next buffered data units comprised according to current meta data is corresponding obtains next metadata and comprises: utilize described concordance list, obtain the positional information of pointer from the next metadata pointed by the positional information of current meta data, according to obtained positional information, obtain next metadata;
Each metadata described comprises further: the condition code of service application belonging to corresponding buffered data units, and the condition code of same service application is identical;
In S3, when the described concordance list in physical storage medium cannot read, the method comprises further:
Read the condition code in described current meta data, other metadata are searched according to the storage order in described physical storage medium, search in these other metadata and whether comprise the condition code identical with the condition code in current meta data, using find first other metadata with same characteristic features code as current meta data, return and perform S1.
Be applied to and comprise in the computing machine of dual controller; Described physical storage medium is the hard disk in described computing machine;
Respectively data cachedly to comprise: corresponding to dirty data and the mirror image data of the first controller in dual controller, corresponding to dirty data and the mirror image data of second controller in dual controller; Wherein, the described mirror image data corresponding to the first controller is the Backup Data of the dirty data of described second controller; The described mirror image data corresponding to second controller is the Backup Data of the dirty data of described first controller;
In S2, if invalid, then directly perform S3, and the method comprises further: for corresponding in the first controller and second controller either party all buffered data units be not resumed, from the first controller and second controller the opposing party mirror image data in obtain data corresponding to these all buffered data units be not resumed, and to return in internal memory.
A data cached back-up device, comprising:
Creating unit, for needing the data cached of protection, for each buffered data units creates corresponding metadata, each metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units;
Backup units, for when needing to back up a service application data cached, in the mode of file, by all buffered data units of this service application and the meta-data preservation of correspondence in physical storage medium.
Described creating unit, further when creating metadata, comprise the condition code of service application belonging to corresponding buffered data units in the metadata, the condition code of same service application is identical.
A data cached recovery device, comprising:
Reading unit, for the metadata of reading and saving one by one from physical storage medium; Each metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units;
Data cached acquiring unit, for in the current meta data from current reading, obtain the target back-up storage location of current cache data cell corresponding to current meta data, from the target back-up storage location of described physical storage medium, obtain current cache data cell;
Data cached processing unit, according to the check code in the current meta data that described reading unit reads, validity check is carried out to the current cache data cell that described data cached acquiring unit obtains, if effectively, then by current cache data unit recovery in internal memory, the positional information of the metadata that the next buffered data units comprised according to current meta data is corresponding, obtain next metadata, using this next metadata as current meta data, trigger data cached acquiring unit.
The positional information of each metadata described is kept in concordance list, and the positional information of each metadata is pointed to the metadata location information of the next buffered data units of corresponding buffered data units by concordance list pointer;
Each metadata described comprises further: the condition code of service application belonging to corresponding buffered data units, and the condition code of same service application is identical;
Described data cached processing unit comprises:
Concordance list process subelement, for utilizing described concordance list, obtaining the positional information of pointer from the next metadata pointed by the positional information of current meta data, according to obtained positional information, obtaining next metadata;
Abnormality processing subelement, for when concordance list process subelement cannot read concordance list, read the condition code in described current meta data, other metadata are searched according to the storage order in described physical storage medium, search in these other metadata and whether comprise the condition code identical with the condition code in current meta data, using find first other metadata with same characteristic features code as current meta data, perform the data cached acquiring unit of described triggering.
The data cached backup method that the embodiment of the present invention provides and device, in data cached restoration methods and device, the data cached of backup backups in physical storage medium in the mode of file, like this, both can preserve data cached, data cached relevant information can be utilized metadata preserve again, namely metadata comprises the target back-up storage location of corresponding buffered data units, check code, the metadata location information of the next buffered data units of corresponding buffered data units, these metadata can when follow-up recovery, accurate location and identify data cached, therefore improve data cached reliability.
Accompanying drawing explanation
Fig. 1 is backup procedure process flow diagram data cached in one embodiment of the invention.
Fig. 2 is rejuvenation process flow diagram data cached in one embodiment of the invention.
Fig. 3 is data cached backup and the rejuvenation process flow diagram of dual controller in one embodiment of the invention.
Fig. 4 is the structural representation of back-up device data cached in one embodiment of the invention.
Fig. 5 is the structural representation of recovery device data cached in one embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.Obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
One embodiment of the invention proposes a kind of data cached backup method, see Fig. 1, comprising:
101: for needing the data cached of protection; for each buffered data units creates corresponding metadata, each metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units.
102: when needing to back up a service application data cached, in the mode of file, by all buffered data units of this service application and the meta-data preservation of correspondence in physical storage medium.
Visible, in process shown in above-mentioned Fig. 1, the data cached of backup backups in physical storage medium in the mode of file, like this, both can preserve data cached, data cached relevant information can be utilized metadata preserve again, namely metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units, these metadata can when follow-up recovery, accurate location and identify data cached, therefore improves data cached reliability.
In an embodiment of the invention, data cached backup method can be applied to and comprise in the computing machine of dual controller;
Then, data cached the comprising of described needs protection: corresponding to dirty data and the mirror image data of the first controller in dual controller, corresponding to dirty data and the mirror image data of second controller in dual controller; Wherein, the described mirror image data corresponding to the first controller is the Backup Data of the dirty data of described second controller; The described mirror image data corresponding to second controller is the Backup Data of the dirty data of described first controller.
In order to the backup physical storage locations in metadata is damaged, cause cannot according to metadata find the next one of same service application data cached time, method can also be had data cached to the next one finding same service application, in an embodiment of the invention, each metadata comprises further: the condition code of service application belonging to corresponding buffered data units, the condition code of same service application is identical.Follow-up, feature based code, just can search data cached.
Corresponding to data cached backup method of the present invention, one embodiment of the invention also proposed a kind of data cached restoration methods, comprising:
201: the metadata of reading and saving from physical storage medium; Each metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units.
202: from the current meta data of current reading, obtain the target back-up storage location of current cache data cell corresponding to current meta data, from the target back-up storage location of described physical storage medium, obtain current cache data cell.
203: according to the check code in current meta data, validity check is carried out to the current cache data cell obtained, if effectively, perform 204, if invalid, perform 205.
204: by current cache data unit recovery in internal memory.
205: the positional information of the metadata that the next buffered data units comprised according to current meta data is corresponding, obtains next metadata, using this next metadata as current meta data, return execution 202, until obtained all metadata.
Visible, corresponding to the data cached backup method shown in Fig. 1, the method shown in Fig. 2 is when date restoring, and the target back-up storage location that metadata comprises may be used for finding current cache data cell; Check code in metadata can carry out validity check to the current cache data cell obtained; The positional information of the metadata that the next buffered data units that metadata comprises is corresponding, next metadata can be obtained, and then obtain next buffered data units, by that analogy, then can obtain all buffered data units, accurate location and identify data cached, therefore improves data cached reliability.
In an embodiment of the invention, the mode of concordance list can be used to connect becoming metadata location information in metadata one by one, thus perform another metadata one by one by each metadata, so that the searching of metadata.Concrete realization can comprise: in described physical storage medium, set up concordance list in advance, the positional information of each metadata is kept in this concordance list, and utilizes pointer the positional information of each metadata to be pointed to the metadata location information of the next buffered data units of corresponding buffered data units; Then in 205, the positional information of the metadata that the described next buffered data units comprised according to current meta data is corresponding obtains next metadata and comprises: utilize described concordance list, obtain the positional information of pointer from the next metadata pointed by the positional information of current meta data, according to obtained positional information, obtain next metadata.
Under the mode based on above-mentioned concordance list, if preserve the reasons such as the sector corruption of concordance list in physical storage medium, concordance list is caused to read, that is, the positional information of the metadata that the next buffered data units that cannot comprise according to metadata is corresponding, obtain next metadata, and then when cannot obtain next buffered data units, in order to ensure still can to find next buffered data units by other means further, in an embodiment of the invention, each metadata comprises further: the condition code of service application belonging to corresponding buffered data units, the condition code of same service application is identical, then in 205, when the described concordance list in physical storage medium cannot read, the method comprises further:
Read the condition code in described current meta data, other metadata are searched according to the storage order in described physical storage medium, search in these other metadata and whether comprise the condition code identical with the condition code in current meta data, using find first other metadata with same characteristic features code as current meta data, return execution 202.
In an embodiment of the invention, data cached restoration methods can be applied to and comprise in the computing machine of dual controller; Described physical storage medium can be the hard disk in described computing machine;
Then respectively data cachedly to comprise: corresponding to dirty data and the mirror image data of the first controller in dual controller, corresponding to dirty data and the mirror image data of second controller in dual controller; Wherein, the described mirror image data corresponding to the first controller is the Backup Data of the dirty data of described second controller; The described mirror image data corresponding to second controller is the Backup Data of the dirty data of described first controller;
In 203, if invalid, then directly perform 205, and the method comprises further: for corresponding in the first controller and second controller either party all buffered data units be not resumed, from the first controller and second controller the opposing party mirror image data in obtain data corresponding to these all buffered data units be not resumed, and to return in internal memory.That is, even if in reasons such as the partial sector of physical storage medium are damaged, when causing the corresponding buffered data units that cannot recover a controller, corresponding mirror image data in another controller can be utilized to recover, further increase the reliability of data.
In order to the implementation procedure of the embodiment of the present invention is clearly described, be described below in conjunction with data cached backup and rejuvenation, to be applied in the computing equipment of dual controller, see Fig. 3, comprise:
301: the power down of computing equipment generation systems detected.
302: from the Radix-tree of computing equipment buffer memory, find out buffer memory dirty data and mirror image data that service application 1 to be protected corresponds to computing equipment controller 1 and controller 2.
303: the buffer memory dirty data of controller 1 and controller 2 and mirror image data are split as each buffered data units.
Here, can according to the size of data, such as predetermined byte number, splits.
304: create corresponding to metadata corresponding to each buffered data units of controller 1, and create corresponding to metadata corresponding to each buffered data units of controller 2.
In this step, the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units in metadata, can be comprised, and the condition code of service application 1.Wherein, condition code is for unique identification service application 1, by carrying the mode of condition code in each metadata, identify all metadata corresponding to service application 1, and then all buffered data units identifying this metadata corresponding all correspond to service application 1.
305: in the mode of file, by all buffered data units of service application 1 and the meta-data preservation of correspondence in the physical storage medium such as hard disk of computing equipment.
In this step, the data of preservation comprise: corresponding to dirty data and the mirror image data of dual controller middle controller 1, corresponding to dirty data and the mirror image data of dual controller middle controller 2; Wherein, the described mirror image data corresponding to controller 1 is the Backup Data of the dirty data of described controller 2; The described mirror image data corresponding to controller 2 is the Backup Data of the dirty data of described controller 1.
Concordance list can be set up in advance in the hard disk of computing equipment, the positional information of each metadata is kept in this concordance list, and utilize pointer the positional information of each metadata to be pointed to the metadata location information of the next buffered data units of corresponding buffered data units, thus utilize concordance list, according to the order of buffered data units, one by one the metadata of its correspondence is connected one by one.
306: after computing equipment re-powers, first metadata of reading and saving from the hard disk of computing equipment.
307: from the current meta data of current reading, obtain the target back-up storage location of current cache data cell corresponding to current meta data, from the target back-up storage location of hard disk, obtain current cache data cell.
308: according to the check code in current meta data, validity check is carried out to the current cache data cell obtained, if effectively, then perform 309, if invalid, perform 310.
309: by current cache data unit recovery in internal memory.
310: whether the sector detecting the concordance list that storing metadata is corresponding in hard disk can read, if so, perform 311, otherwise, perform 312.
311: utilize described concordance list, obtain the positional information of pointer from the next metadata pointed by the positional information of current meta data, according to obtained positional information, obtain next metadata, perform 307, until terminate after having obtained all metadata.
312: read the condition code in described current meta data, other metadata are searched according to the storage order in hard disk, search in these other metadata and whether comprise the condition code identical with the condition code in current meta data, using find first other metadata with same characteristic features code as current meta data, perform 307, until terminate after having obtained all metadata.
313: after utilizing said process to recover its buffered data units and mirror image data respectively for controller 1 and controller 2, for each buffered data units be not resumed corresponding to controller 1, from the corresponding mirror image data controller 2, obtain the data that these all buffered data units be not resumed are corresponding, and return in internal memory.
One embodiment of the invention also proposed a kind of data cached back-up device, see Fig. 4, comprising:
Creating unit 401, for needing the data cached of protection, for each buffered data units creates corresponding metadata, each metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units;
Backup units 402, for when needing to back up a service application data cached, in the mode of file, by all buffered data units of this service application and the meta-data preservation of correspondence in physical storage medium.
Described creating unit 401, further when creating metadata, comprise the condition code of service application belonging to corresponding buffered data units in the metadata, the condition code of same service application is identical.
One embodiment of the invention also proposed a kind of data cached recovery device, see Fig. 5, comprising:
Reading unit 501, for the metadata of reading and saving one by one from physical storage medium; Each metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units;
Data cached acquiring unit 502, for in the current meta data from the current reading of reading unit 501, obtain the target back-up storage location of current cache data cell corresponding to current meta data, from the target back-up storage location of described physical storage medium, obtain current cache data cell;
Data cached processing unit 503, according to the check code in the current meta data that described reading unit 501 reads, validity check is carried out to the current cache data cell that described data cached acquiring unit obtains, if effectively, the current cache data unit recovery then obtained by data cached acquiring unit 502 is in internal memory, the positional information of the metadata that the next buffered data units comprised according to current meta data is corresponding, obtain next metadata, using this next metadata as current meta data, trigger data cached acquiring unit.
The positional information of each metadata described is kept in concordance list, and the positional information of each metadata is pointed to the metadata location information of the next buffered data units of corresponding buffered data units by concordance list pointer;
Each metadata described comprises further: the condition code of service application belonging to corresponding buffered data units, and the condition code of same service application is identical;
Described data cached processing unit 503 comprises:
Concordance list process subelement, for utilizing described concordance list, obtaining the positional information of pointer from the next metadata pointed by the positional information of current meta data, according to obtained positional information, obtaining next metadata;
Abnormality processing subelement, for when concordance list process subelement cannot read concordance list, read the condition code in described current meta data, other metadata are searched according to the storage order in described physical storage medium, search in these other metadata and whether comprise the condition code identical with the condition code in current meta data, using find first other metadata with same characteristic features code as current meta data, perform the data cached acquiring unit of described triggering.
The content such as information interaction, implementation between each unit in the said equipment, due to the inventive method embodiment based on same design, particular content can see in the inventive method embodiment describe, repeat no more herein.
Each embodiment of the present invention at least has following beneficial effect:
1, in the embodiment of the present invention, the data cached of backup backups in physical storage medium in the mode of file, like this, both can preserve data cached, data cached relevant information can be utilized metadata preserve again, namely metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units, these metadata can when follow-up recovery, accurate location and identify data cached, therefore improves data cached reliability.
2, because metadata that buffered data units is corresponding comprises the metadata location information of the next buffered data units of corresponding buffered data units, therefore, if disk sector is damaged, when causing that the appropriate section of service application in this sector is data cached cannot be recovered, can according to the metadata location information of the next buffered data units of buffered data units in metadata, find next metadata, and from next metadata, obtain the target storage position information of next buffered data units, thus find next buffered data units, by that analogy, even if the sector of some memory buffers data cell is damaged, also the equal None-identified of all buffered data units of a service application can not be caused, by the mode that metadata is searched one by one, all discernible valid cache data cells can be found one by one, improve data cached reliability, the data cached of service application can be recovered.
3, due to the condition code corresponding to a kind of service application can be carried in metadata further, like this, even if the memory location of next metadata cannot be obtained by metadata, also next metadata can be found by the condition code of carrying in metadata, namely the buffered data units having the metadata of same characteristic features code corresponding belongs to same service application, therefore, can ensure when the reason such as a part of area damage of physical storage medium causes being obtained the position of next metadata by the instruction in metadata further, still next metadata can be found, thus find next effective buffered data units, therefore all discernible valid cache data cells can be found one by one, improve data cached reliability, the data cached of service application can be recovered.
4, in the embodiment of the present invention, in reasons such as the partial sector of physical storage medium are damaged, when causing the corresponding buffered data units that cannot recover a controller, the corresponding mirror image data recovered can be utilized in another controller to recover buffered data units, further increase the reliability of data.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element " being comprised a 〃 〃 〃 〃 〃 〃 " limited by statement, and be not precluded within process, method, article or the equipment comprising described key element and also there is other same factor.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. a data cached backup method, it is characterized in that, for needing the data cached of protection, for each buffered data units creates corresponding metadata, each metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units; Also comprise:
When needing to back up a service application data cached, in the mode of file, by all buffered data units of this service application and the meta-data preservation of correspondence in physical storage medium.
2. method according to claim 1, is characterized in that, is applied to and comprises in the computing machine of dual controller;
Data cached the comprising of described needs protection: corresponding to dirty data and the mirror image data of the first controller in dual controller, corresponding to dirty data and the mirror image data of second controller in dual controller; Wherein, the described mirror image data corresponding to the first controller is the Backup Data of the dirty data of described second controller; The described mirror image data corresponding to second controller is the Backup Data of the dirty data of described first controller.
3. method according to claim 1 and 2, is characterized in that, each metadata described comprises further: the condition code of service application belonging to corresponding buffered data units, the condition code of same service application is identical.
4. a data cached restoration methods, is characterized in that, the metadata of reading and saving from physical storage medium; Each metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units;
S1, from the current meta data of current reading, obtain the target back-up storage location of current cache data cell corresponding to current meta data, from the target back-up storage location of described physical storage medium, obtain current cache data cell;
S2, according to the check code in current meta data to obtain current cache data cell carry out validity check, if effectively, then by current cache data unit recovery in internal memory, perform S3;
The positional information of S3, metadata that the next buffered data units comprised according to current meta data is corresponding, obtains next metadata, using this next metadata as current meta data, returns and perform S1.
5. method according to claim 4, it is characterized in that, comprise further: in described physical storage medium, set up concordance list in advance, the positional information of each metadata is kept in this concordance list, and utilizes pointer the positional information of each metadata to be pointed to the metadata location information of the next buffered data units of corresponding buffered data units;
In S3, the positional information of the metadata that the described next buffered data units comprised according to current meta data is corresponding obtains next metadata and comprises: utilize described concordance list, obtain the positional information of pointer from the next metadata pointed by the positional information of current meta data, according to obtained positional information, obtain next metadata;
Each metadata described comprises further: the condition code of service application belonging to corresponding buffered data units, and the condition code of same service application is identical;
In S3, when the described concordance list in physical storage medium cannot read, the method comprises further:
Read the condition code in described current meta data, other metadata are searched according to the storage order in described physical storage medium, search in these other metadata and whether comprise the condition code identical with the condition code in current meta data, using find first other metadata with same characteristic features code as current meta data, return and perform S1.
6. the method according to claim 4 or 5, is characterized in that, is applied to and comprises in the computing machine of dual controller; Described physical storage medium is the hard disk in described computing machine;
Respectively data cachedly to comprise: corresponding to dirty data and the mirror image data of the first controller in dual controller, corresponding to dirty data and the mirror image data of second controller in dual controller; Wherein, the described mirror image data corresponding to the first controller is the Backup Data of the dirty data of described second controller; The described mirror image data corresponding to second controller is the Backup Data of the dirty data of described first controller;
In S2, if invalid, then directly perform S3, and the method comprises further: for corresponding in the first controller and second controller either party all buffered data units be not resumed, from the first controller and second controller the opposing party mirror image data in obtain data corresponding to these all buffered data units be not resumed, and to return in internal memory.
7. a data cached back-up device, is characterized in that, comprising:
Creating unit, for needing the data cached of protection, for each buffered data units creates corresponding metadata, each metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units;
Backup units, for when needing to back up a service application data cached, in the mode of file, by all buffered data units of this service application and the meta-data preservation of correspondence in physical storage medium.
8. device according to claim 7, is characterized in that, described creating unit, and further when creating metadata, comprise the condition code of service application belonging to corresponding buffered data units in the metadata, the condition code of same service application is identical.
9. a data cached recovery device, is characterized in that, comprising:
Reading unit, for the metadata of reading and saving one by one from physical storage medium; Each metadata comprises the metadata location information of next buffered data units of the target back-up storage location of corresponding buffered data units, check code, corresponding buffered data units;
Data cached acquiring unit, for in the current meta data from current reading, obtain the target back-up storage location of current cache data cell corresponding to current meta data, from the target back-up storage location of described physical storage medium, obtain current cache data cell;
Data cached processing unit, according to the check code in the current meta data that described reading unit reads, validity check is carried out to the current cache data cell that described data cached acquiring unit obtains, if effectively, the current cache data unit recovery then obtained by described data cached acquiring unit is in internal memory, the positional information of the metadata that the next buffered data units comprised according to current meta data is corresponding, obtain next metadata, using this next metadata as current meta data, trigger data cached acquiring unit.
10. device according to claim 9, it is characterized in that, the positional information of each metadata described is kept in concordance list, and the positional information of each metadata is pointed to the metadata location information of the next buffered data units of corresponding buffered data units by concordance list pointer;
Each metadata described comprises further: the condition code of service application belonging to corresponding buffered data units, and the condition code of same service application is identical;
Described data cached processing unit comprises:
Concordance list process subelement, for utilizing described concordance list, obtaining the positional information of pointer from the next metadata pointed by the positional information of current meta data, according to obtained positional information, obtaining next metadata;
Abnormality processing subelement, for when concordance list process subelement cannot read concordance list, read the condition code in described current meta data, other metadata are searched according to the storage order in described physical storage medium, search in these other metadata and whether comprise the condition code identical with the condition code in current meta data, using find first other metadata with same characteristic features code as current meta data, perform the data cached acquiring unit of described triggering.
CN201510472119.3A 2015-08-04 2015-08-04 Backup method and apparatus for cached data and recovery method and apparatus for cached data Pending CN105045685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510472119.3A CN105045685A (en) 2015-08-04 2015-08-04 Backup method and apparatus for cached data and recovery method and apparatus for cached data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510472119.3A CN105045685A (en) 2015-08-04 2015-08-04 Backup method and apparatus for cached data and recovery method and apparatus for cached data

Publications (1)

Publication Number Publication Date
CN105045685A true CN105045685A (en) 2015-11-11

Family

ID=54452249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510472119.3A Pending CN105045685A (en) 2015-08-04 2015-08-04 Backup method and apparatus for cached data and recovery method and apparatus for cached data

Country Status (1)

Country Link
CN (1) CN105045685A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919474A (en) * 2015-12-28 2017-07-04 中移(苏州)软件技术有限公司 A kind of data cached guard method and device
CN106933706A (en) * 2017-03-10 2017-07-07 联想(北京)有限公司 The power-off protection method and device of Nonvolatile memory
CN106980556A (en) * 2016-01-19 2017-07-25 中兴通讯股份有限公司 A kind of method and device of data backup
CN107046811A (en) * 2015-12-03 2017-08-15 华为技术有限公司 One introduces a collection storage device sends the clone file of source file and source file to the method, source storage device and backup storage device of backup storage device
CN107092598A (en) * 2016-02-17 2017-08-25 阿里巴巴集团控股有限公司 The management method and device of data storage location information
CN109491609A (en) * 2018-11-02 2019-03-19 郑州云海信息技术有限公司 A kind of caching data processing method, device, equipment and readable storage medium storing program for executing
CN111506266A (en) * 2020-04-15 2020-08-07 北京同有飞骥科技股份有限公司 Mirror image copy data caching method and device
CN113254270A (en) * 2021-05-28 2021-08-13 济南浪潮数据技术有限公司 Self-recovery method, system and storage medium for storing cache hotspot data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050010617A1 (en) * 2003-07-11 2005-01-13 Chih-Wei Chen Storage server embedded code backup method and system
CN101515255A (en) * 2009-03-18 2009-08-26 成都市华为赛门铁克科技有限公司 Method and device for storing data
CN101777016A (en) * 2010-02-08 2010-07-14 北京同有飞骥科技有限公司 Snapshot storage and data recovery method of continuous data protection system
CN102696010A (en) * 2009-09-08 2012-09-26 弗森-艾奥公司 Apparatus, system, and method for caching data on a solid-state storage device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050010617A1 (en) * 2003-07-11 2005-01-13 Chih-Wei Chen Storage server embedded code backup method and system
CN101515255A (en) * 2009-03-18 2009-08-26 成都市华为赛门铁克科技有限公司 Method and device for storing data
CN102696010A (en) * 2009-09-08 2012-09-26 弗森-艾奥公司 Apparatus, system, and method for caching data on a solid-state storage device
CN101777016A (en) * 2010-02-08 2010-07-14 北京同有飞骥科技有限公司 Snapshot storage and data recovery method of continuous data protection system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11030048B2 (en) 2015-12-03 2021-06-08 Huawei Technologies Co., Ltd. Method a source storage device to send a source file and a clone file of the source file to a backup storage device, a source storage device and a backup storage device
CN107046811A (en) * 2015-12-03 2017-08-15 华为技术有限公司 One introduces a collection storage device sends the clone file of source file and source file to the method, source storage device and backup storage device of backup storage device
CN106919474A (en) * 2015-12-28 2017-07-04 中移(苏州)软件技术有限公司 A kind of data cached guard method and device
CN106980556A (en) * 2016-01-19 2017-07-25 中兴通讯股份有限公司 A kind of method and device of data backup
CN106980556B (en) * 2016-01-19 2020-11-06 中兴通讯股份有限公司 Data backup method and device
CN107092598A (en) * 2016-02-17 2017-08-25 阿里巴巴集团控股有限公司 The management method and device of data storage location information
CN106933706A (en) * 2017-03-10 2017-07-07 联想(北京)有限公司 The power-off protection method and device of Nonvolatile memory
WO2018161559A1 (en) * 2017-03-10 2018-09-13 联想(北京)有限公司 Power failure protection method and device for non-volatile memory
CN109491609A (en) * 2018-11-02 2019-03-19 郑州云海信息技术有限公司 A kind of caching data processing method, device, equipment and readable storage medium storing program for executing
CN109491609B (en) * 2018-11-02 2022-04-22 郑州云海信息技术有限公司 Cache data processing method, device and equipment and readable storage medium
CN111506266A (en) * 2020-04-15 2020-08-07 北京同有飞骥科技股份有限公司 Mirror image copy data caching method and device
CN113254270A (en) * 2021-05-28 2021-08-13 济南浪潮数据技术有限公司 Self-recovery method, system and storage medium for storing cache hotspot data
CN113254270B (en) * 2021-05-28 2022-06-14 济南浪潮数据技术有限公司 Self-recovery method, system and storage medium for storing cache hot spot data

Similar Documents

Publication Publication Date Title
CN105045685A (en) Backup method and apparatus for cached data and recovery method and apparatus for cached data
CN104077380A (en) Method and device for deleting duplicated data and system
US20100031086A1 (en) Repair of a corrupt data segment used by a de-duplication engine
CN103064760B (en) Backup method and backup device
CN102609337A (en) Rapid data recovery method for memory database
CN101325785A (en) Method and apparatus for backup and recuperation of data, mobile equipment
CN102819615A (en) Database continuous data protection method based on application snapshot
US9823976B2 (en) Optimization to permit block based incremental backup across system reboot or crash
CN107678892B (en) Continuous data protection method based on jump recovery chain
US10484179B1 (en) Data consistency in an encrypted replication environment
CN116560914B (en) Incremental backup method, system and storage medium under virtual machine CBT failure
CN100437504C (en) Hard disc data backup system and method
CN104899114A (en) Continuous time data protection method on solid state drive
CN103365766A (en) Method and system for protecting file integrity
CN104375905A (en) Incremental backing up method and system based on data block
CN106096447A (en) A kind of document protection method and device
US20190138386A1 (en) Recovering log-structured filesystems from physical replicas
CN105549985A (en) Method and system for enhancing reliability of Linux application system
CN104281505B (en) Data back up method, device and electronic equipment
CN103176867A (en) Fast file differential backup method
CN104978241A (en) Data recovery method and apparatus for COW type file system
CN109582497B (en) Rapid emergency starting method based on dynamic data increment
CN105335252A (en) Data protection method, device and system
US20230214301A1 (en) Copy Data Management System and Method for Modern Application
CN103412802A (en) Method and device for backup of disaster tolerant data file access control list

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151111