CN116701038B - Control method and control system for quickly recovering storage data of memory - Google Patents
Control method and control system for quickly recovering storage data of memory Download PDFInfo
- Publication number
- CN116701038B CN116701038B CN202310744095.7A CN202310744095A CN116701038B CN 116701038 B CN116701038 B CN 116701038B CN 202310744095 A CN202310744095 A CN 202310744095A CN 116701038 B CN116701038 B CN 116701038B
- Authority
- CN
- China
- Prior art keywords
- data
- original data
- memory
- determining
- mapping
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000013507 mapping Methods 0.000 claims abstract description 108
- 238000011084 recovery Methods 0.000 claims abstract description 97
- 238000013506 data mapping Methods 0.000 claims description 48
- 230000005540 biological transmission Effects 0.000 claims description 26
- 230000004048 modification Effects 0.000 claims description 19
- 238000012986 modification Methods 0.000 claims description 19
- 238000006243 chemical reaction Methods 0.000 claims description 12
- 238000002372 labelling Methods 0.000 claims description 10
- 230000003993 interaction Effects 0.000 claims description 8
- 238000012795 verification Methods 0.000 claims description 8
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 4
- 230000009286 beneficial effect Effects 0.000 description 10
- 238000013461 design Methods 0.000 description 10
- 238000005192 partition Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000009795 derivation Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000004880 explosion Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0727—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a storage system, e.g. in a DASD or network based storage system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1469—Backup restoration techniques
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a control method and a control system for quickly recovering storage data of a memory, wherein the control method comprises the following steps: identifying the memory based on the identification of the memory, and transmitting the original data in the memory to a data center after the identification is successful; establishing a mapping table of the original data based on the configuration information and the historical access information of the memory, and determining a data recovery strategy of the original data based on the mapping table; and recovering the original data based on the data recovery strategy to obtain the stored data, and storing the stored data into a standby memory, so that the efficiency of recovering the stored data is improved, and meanwhile, the system operation stability in the process of recovering the stored data is ensured and the influence on the service is reduced by establishing the data recovery strategy.
Description
Technical Field
The present invention relates to the field of data recovery, and in particular, to a control method and a control system for quickly recovering stored data in a memory.
Background
Storage devices, which are the medium for data storage, are vital components in computer systems. In the big data age of information explosion, higher requirements are put on the capacity, the reading and writing speed, the reliability and the like of the storage device.
Common memory corruption is summarized as hardware corruption and firmware corruption. Hardware damage can recover hard disk data by replacing the circuit board and master. However, even if a new, identical circuit board and master control are found, the replacement process is time consuming and difficult and requires high quality of the operating environment and the expertise of the operator.
A common method of recovering data from firmware corruption is chip removal. The current memory basically has a hardware data encryption function, and data extracted through a chip are encrypted, so that the data can be finally recovered through a decryption-recombination-extraction process, which is quite difficult and time-consuming, and the problem that the quality of recovered data is low due to overlong data recovery time caused by unreasonable conversion of data reception during data recovery is solved, and the smooth execution of business is finally affected.
Disclosure of Invention
The invention provides a control method and a control system for quickly recovering storage data of a memory, which improve the efficiency of storage data recovery, ensure the system operation stability in the storage data recovery process and reduce the influence on business.
A control method for a memory to quickly restore stored data, comprising:
s1: identifying the memory based on the identification of the memory, and transmitting the original data in the memory to a data center after the identification is successful;
s2: establishing a mapping table of the original data based on the configuration information and the historical access information of the memory, and determining a data recovery strategy of the original data based on the mapping table;
s3: and recovering the original data based on the data recovery strategy to obtain storage data, and storing the storage data into a standby memory.
Preferably, in S1, the identifying the memory based on the identification of the memory includes:
acquiring an identification code of a memory;
matching the identification code with an identification library of the data center, and judging whether a standard code is matched with the identification code in the identification library;
if yes, indicating that the memory identification is successful;
otherwise, a memory identification failure is indicated.
Preferably, in S1, after the identification is successful, the transmitting the original data in the memory to the data center includes:
determining a first export order of the original data according to the time point of storing the original data into the memory;
determining a second export sequence of the original data according to the storage space position of the original data stored in the memory;
determining a target export order based on the first export order and the second export order;
and exporting the original data in the memory according to the target export sequence, and orderly transmitting the exported original data to the data center.
Preferably, determining the target export order based on the first export order and the second export order comprises:
first marking is carried out on the original data according to a first export sequence, and second marking is carried out on the original data according to a second export sequence;
matching the first mark and the second mark of the same original data to obtain conflict original data with failed matching, and obtaining reference original data closest to the first deriving sequence of the conflict original data from the successfully matched original data;
judging the correlation between the conflict original data and the reference original data, if the correlation is larger than the preset correlation, taking the first mark as the export sequence of the conflict original data, otherwise, taking the second mark as the export sequence of the conflict original data;
obtaining a third export sequence of all original data based on the export sequence of the conflicting original data and the first export sequence of the reference original data;
and verifying and correcting the third export sequence to obtain the target export sequence.
Preferably, verifying and correcting the third export sequence to obtain the target export sequence includes:
carrying out transmission verification on the original data under the third export sequence by utilizing a transmission environment, and predicting the transmission speed;
if the transmission speed meets the preset transmission requirement, taking the third export sequence as a target export sequence;
otherwise, according to the data characteristics, performing third export sequence exchange on the uncorrelated original data until the transmission speed of the exchanged export sequence meets the preset transmission requirement, and taking the exchanged export sequence as a target export sequence.
Preferably, in S2, a mapping table of the original data is established based on the configuration information and the history access information of the memory, including:
determining data area configuration and port configuration of the memory based on configuration information of the memory, determining a logic address of original data based on the data area configuration, and determining data interaction interface information of the original data based on the port configuration;
acquiring a time stamp of the original data based on the historical access information and the data interaction interface information of the memory, determining access modification information of the original data based on the time stamp, acquiring the original data corresponding to the latest modification record from the access modification information, and acquiring a historical data mapping relation of the original data corresponding to the latest modification record;
determining reconstruction logic based on the historical data mapping relationship;
based on the reconstruction logic, the corresponding relation between the logical address and the physical address of the original data is determined, and based on the corresponding relation, a mapping table of the original data is established.
Preferably, determining the reconstruction logic based on the historical data mapping relationship includes:
determining a data mapping relation between the historical original data and the historical target data based on the historical data mapping relation, performing first division on the data mapping relation based on the data characteristics of the historical original data, and determining first mapping logic under a first division type;
performing second division on the data mapping relation based on the data characteristics of the historical target data, and determining second mapping logic under a second division type;
first labeling is carried out on the first mapping logic based on the data characteristics of the historical original data, and second labeling is carried out on the second mapping logic based on the data characteristics of the historical target data;
matching the first mapping logic with the second mapping logic according to the data characteristics to obtain a first label and a second label of the data mapping relation;
determining a mapping rule according to the first label and the second label of the data mapping relation and the data characteristics of the historical original data and the historical target data, analyzing the mapping rule, and determining a mapping logic;
and integrating the mapping logic to obtain reconstruction logic.
Preferably, in S2, determining a data recovery policy for the original data based on the mapping table includes:
determining a conversion rule for the original data based on the mapping table, determining the running speed of the conversion rule in the current access environment, and determining a data recovery reference value of the original data based on the running speed;
setting a data recovery sequence of the original data based on the data recovery reference value;
and configuring a mapping table and a data recovery sequence for the original data to obtain a data recovery strategy.
Preferably, in S3, recovering the original data based on the data recovery policy to obtain the stored data, including:
configuring data recovery resources for the original data based on a data recovery strategy, and determining a data recovery sequence of the original data;
according to the data recovery sequence, utilizing data recovery resources to sequentially recover the original data to obtain recovery data;
based on the data logic, carrying out integrity verification on the recovered data;
if the data logic is met, determining that the integrity of the recovered data is normal, and taking the recovered data as storage data;
otherwise, determining that the integrity of the recovered data is abnormal, determining unrecoverable original data corresponding to the loss of the recovered data based on the condition of the loss of the integrity by combining a configuration table, determining a mapping rule corresponding to the unrecoverable original data in a data recovery strategy, adjusting the mapping rule, setting the latest data recovery sequence for the unrecoverable original data, recovering the unrecoverable data by utilizing the adjusted mapping rule according to the latest data recovery sequence, and obtaining the recovered data, wherein the recovered data is used as storage data.
A control system for memory fast recovery of stored data, comprising:
the identification module is used for identifying the memory based on the identification of the memory, and transmitting the original data in the memory to the data center after the identification is successful;
the strategy determining module is used for establishing a mapping table of the original data according to the configuration information and the historical access information of the memory, and determining a data recovery strategy of the original data based on the mapping table;
and the recovery storage module is used for recovering the original data based on the data recovery strategy to obtain storage data, and storing the storage data into the standby memory.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
FIG. 1 is a flow chart of a control method for a memory to quickly restore stored data in an embodiment of the invention;
FIG. 2 is a flow chart of the transmission of original data to a data center according to an embodiment of the present invention;
FIG. 3 is a block diagram of a control system for memory to quickly restore stored data in accordance with an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
Example 1:
an embodiment of the present invention provides a control method for quickly recovering storage data of a memory, as shown in fig. 1, including:
s1: identifying the memory based on the identification of the memory, and transmitting the original data in the memory to a data center after the identification is successful;
s2: establishing a mapping table of the original data based on the configuration information and the historical access information of the memory, and determining a data recovery strategy of the original data based on the mapping table;
s3: and recovering the original data based on the data recovery strategy to obtain storage data, and storing the storage data into a standby memory.
In this embodiment, the identity of the memory is unique.
In this embodiment, a mapping table of raw data is used for conversion of the data.
In this embodiment, the data recovery policy is determined based on a data recovery reference value or the like.
In this embodiment, the configuration information of the memory includes a data area configuration, a port configuration, and the like.
In this embodiment, the history access information of the memory includes an access environment, access data, and the like.
The beneficial effects of above-mentioned design scheme are: after the memory fails, the original data in the memory is transmitted to a data center according to the identification of the memory, then a mapping table of the original data is established according to the configuration information and the historical access information of the memory, a data recovery strategy for the original data is determined based on the mapping table, the original data is recovered based on the data recovery strategy, the stored data is obtained, finally the stored data is stored in the standby memory, the stored data is recovered after the memory is not required to be disassembled and replaced after the memory fails, the recovery efficiency of the stored data is improved, and meanwhile, the system operation stability in the process of recovering the stored data is ensured and the influence on the service is reduced by establishing the data recovery strategy.
Example 2:
based on embodiment 1, an embodiment of the present invention provides a control method for quickly recovering storage data of a memory, in S1, identifying the memory based on an identifier of the memory, including:
acquiring an identification code of a memory;
matching the identification code with an identification library of the data center, and judging whether a standard code is matched with the identification code in the identification library;
if yes, indicating that the memory identification is successful;
otherwise, a memory identification failure is indicated.
The beneficial effects of above-mentioned design scheme are: and the safety of acquiring the original data of the memory is ensured by matching and identifying with the data center according to the identification of the memory.
Example 3:
based on embodiment 1, an embodiment of the present invention provides a control method for quickly recovering stored data from a memory, as shown in fig. 2, in S1, after successful identification, transmitting original data in the memory to a data center, including:
s101: determining a first export order of the original data according to the time point of storing the original data into the memory;
s102: determining a second export sequence of the original data according to the storage space position of the original data stored in the memory;
s103: determining a target export order based on the first export order and the second export order;
s104: and exporting the original data in the memory according to the target export sequence, and orderly transmitting the exported original data to the data center.
In this embodiment, determining the target export order based on the first export order and the second export order comprises:
first marking is carried out on the original data according to a first export sequence, and second marking is carried out on the original data according to a second export sequence;
matching the first mark and the second mark of the same original data to obtain conflict original data with failed matching, and obtaining reference original data closest to the first deriving sequence of the conflict original data from the successfully matched original data;
judging the correlation between the conflict original data and the reference original data, if the correlation is larger than the preset correlation, taking the first mark as the export sequence of the conflict original data, otherwise, taking the second mark as the export sequence of the conflict original data;
obtaining a third export sequence of all original data based on the export sequence of the conflicting original data and the first export sequence of the reference original data;
and verifying and correcting the third export sequence to obtain the target export sequence.
The beneficial effects of above-mentioned design scheme are: the reasonable export sequence of the original data is determined by considering the storage space position of the time of storing the original data into the storage, the original data is orderly received by the data center, the confusion of the received data is avoided, the order of the original data obtained by the data center is ensured, and a foundation is provided for the data recovery of the original data.
Example 4:
based on embodiment 3, an embodiment of the present invention provides a control method for quickly recovering data from a memory, determining a target export order based on a first export order and a second export order, including:
first marking is carried out on the original data according to a first export sequence, and second marking is carried out on the original data according to a second export sequence;
matching the first mark and the second mark of the same original data to obtain conflict original data with failed matching, and obtaining reference original data closest to the first deriving sequence of the conflict original data from the successfully matched original data;
judging the correlation between the conflict original data and the reference original data, if the correlation is larger than the preset correlation, taking the first mark as the export sequence of the conflict original data, otherwise, taking the second mark as the export sequence of the conflict original data;
obtaining a third export sequence of all original data based on the export sequence of the conflicting original data and the first export sequence of the reference original data;
and verifying and correcting the third export sequence to obtain the target export sequence.
In this embodiment, the correlation between the conflicting original data and the reference original data is determined by the data type data characteristics.
In this embodiment, matching is performed by means of a mark, and matching efficiency is improved.
The beneficial effects of above-mentioned design scheme are: by performing sequence judgment according to the combination of the time point stored in the memory and the storage space position, the correlation of the original data of the adjacent sequence in the target export sequence is larger, and a basis is provided for data recovery.
Example 5:
based on embodiment 4, an embodiment of the present invention provides a control method for quickly recovering data from a memory, where verifying and correcting a third export sequence to obtain a target export sequence includes:
carrying out transmission verification on the original data under the third export sequence by utilizing a transmission environment, and predicting the transmission speed;
if the transmission speed meets the preset transmission requirement, taking the third export sequence as a target export sequence;
otherwise, according to the data characteristics, performing third export sequence exchange on the uncorrelated original data until the transmission speed of the exchanged export sequence meets the preset transmission requirement, and taking the exchanged export sequence as a target export sequence.
In this embodiment, since the size of the data amount in the third derivation order affects the transmission speed, the order can be adjusted while ensuring the data order, and the transmission speed can be ensured.
The beneficial effects of above-mentioned design scheme are: the third export sequence is adjusted by predicting the transmission speed under the third export sequence, so that the sequence can be adjusted under the condition of ensuring the data order, the transmission speed is ensured, and the data can be quickly recovered.
Example 6
Based on embodiment 1, an embodiment of the present invention provides a control method for quickly recovering stored data from a memory, in S2, a mapping table of original data is established based on configuration information and history access information of the memory, including:
determining data area configuration and port configuration of the memory based on configuration information of the memory, determining a logic address of original data based on the data area configuration, and determining data interaction interface information of the original data based on the port configuration;
acquiring a time stamp of the original data based on the historical access information and the data interaction interface information of the memory, determining access modification information of the original data based on the time stamp, acquiring the original data corresponding to the latest modification record from the access modification information, and acquiring a historical data mapping relation of the original data corresponding to the latest modification record;
determining reconstruction logic based on the historical data mapping relationship;
based on the reconstruction logic, the corresponding relation between the logical address and the physical address of the original data is determined, and based on the corresponding relation, a mapping table of the original data is established.
In this embodiment, since the data read/write of the memory chip depends on the physical characteristics, the file system cannot directly access or operate the memory chip, and the logical address provided by the file system needs to be converted into the physical address of the memory chip, and when the memory fails, the mapping table of the original data needs to be re-established to realize the reading of the data.
In this embodiment, the data area location is the logical address of the original data.
In this embodiment, a mapping relationship between the original data corresponding to the new modification record and the history target data is determined in the history mapping relationship.
In this embodiment, the reconstruction logic is used to determine the conversion logic between the original data and the recovered data.
In this embodiment, determining the reconstruction logic based on the matching relationship and the historical data mapping relationship includes:
determining a data mapping relation between the historical original data and the historical target data based on the historical data mapping relation, performing first division on the data mapping relation based on the data characteristics of the historical original data, and determining first mapping logic under a first division type;
performing second division on the data mapping relation based on the data characteristics of the historical target data, and determining second mapping logic under a second division type;
first labeling is carried out on the first mapping logic based on the data characteristics of the historical original data, and second labeling is carried out on the second mapping logic based on the data characteristics of the historical target data;
matching the first mapping logic with the second mapping logic according to the data characteristics to obtain a first label and a second label of the data mapping relation;
determining a mapping rule according to the first label and the second label of the data mapping relation and the data characteristics of the historical original data and the historical target data, analyzing the mapping rule, and determining a mapping logic;
and integrating the mapping logic to obtain reconstruction logic.
The beneficial effects of above-mentioned design scheme are: the method comprises the steps of determining a historical data mapping relation of historical original data according to configuration information and historical access information of a memory, reconstructing conversion logic between the original data and stored data according to the historical data mapping relation to obtain reconstruction logic, establishing a mapping table of the original data, and providing a basis for directly recovering the memory data.
Example 7:
based on embodiment 6, an embodiment of the present invention provides a control method for quickly recovering stored data of a memory, and determining reconstruction logic based on a historical data mapping relationship, including:
determining a data mapping relation between the historical original data and the historical target data based on the historical data mapping relation, performing first division on the data mapping relation based on the data characteristics of the historical original data, and determining first mapping logic under a first division type;
performing second division on the data mapping relation based on the data characteristics of the historical target data, and determining second mapping logic under a second division type;
first labeling is carried out on the first mapping logic based on the data characteristics of the historical original data, and second labeling is carried out on the second mapping logic based on the data characteristics of the historical target data;
matching the first mapping logic with the second mapping logic according to the data characteristics to obtain a first label and a second label of the data mapping relation;
determining a mapping rule according to the first label and the second label of the data mapping relation and the data characteristics of the historical original data and the historical target data, analyzing the mapping rule, and determining a mapping logic;
and integrating the mapping logic to obtain reconstruction logic.
In this embodiment, the historical target data is corresponding data after data recovery of the historical original data.
In this embodiment, the first partition divides the historical original data with the same feature into one class according to the historical original data partition in the data mapping relationship, determines a first mapping logic under the division type, and determines logic commonalities of the historical original data with the same feature in the first mapping logic.
In this embodiment, the second division divides the historical target data having the same feature into one class according to the historical target data division in the data mapping relationship, determines the second mapping logic under the division type, and determines the logic commonality of the historical target data having the same feature in the second mapping logic.
In this embodiment, the mapping rules are specifically rules that are followed in the conversion of historical raw data into historical target data.
The beneficial effects of above-mentioned design scheme are: based on the historical data mapping relation, the reconstruction logic is determined by analyzing from two aspects of the historical original data and the historical target data, the accuracy of the obtained reconstruction logic is ensured, and a basis is provided for building an accurate mapping table.
Example 8:
based on embodiment 1, an embodiment of the present invention provides a control method for quickly recovering stored data from a memory, in S2, determining a data recovery policy for original data based on a mapping table, including:
determining a conversion rule for the original data based on the mapping table, determining the running speed of the conversion rule in the current access environment, and determining a data recovery reference value of the original data based on the running speed;
setting a data recovery sequence of the original data based on the data recovery reference value;
and configuring a mapping table and a data recovery sequence for the original data to obtain a data recovery strategy.
In this embodiment, the data recovery order of the original data is set according to the efficiency of recovery under the data recovery order and the case of the operation stability of the data center, and the evaluation of the recovery efficiency and the operation stability of the data center is related to the data recovery reference value.
The beneficial effects of above-mentioned design scheme are: by considering the recovery efficiency and the operation stability of the data center based on the mapping table, a reasonable data recovery strategy is set, the data recovery efficiency and the system operation stability are ensured, and the data recovery is ensured to be efficiently and smoothly executed.
Example 9:
based on embodiment 1, the embodiment of the present invention provides a control method for quickly recovering storage data of a memory, in S3, recovering original data based on a data recovery policy to obtain storage data, including:
configuring data recovery resources for the original data based on a data recovery strategy, and determining a data recovery sequence of the original data;
according to the data recovery sequence, utilizing data recovery resources to sequentially recover the original data to obtain recovery data;
based on the data logic, carrying out integrity verification on the recovered data;
if the data logic is met, determining that the integrity of the recovered data is normal, and taking the recovered data as storage data;
otherwise, determining that the integrity of the recovered data is abnormal, determining unrecoverable original data corresponding to the loss of the recovered data based on the condition of the loss of the integrity by combining a configuration table, determining a mapping rule corresponding to the unrecoverable original data in a data recovery strategy, adjusting the mapping rule, setting the latest data recovery sequence for the unrecoverable original data, recovering the unrecoverable data by utilizing the adjusted mapping rule according to the latest data recovery sequence, and obtaining the recovered data, wherein the recovered data is used as storage data.
In this embodiment, the adjustment of the mapping rule is obtained by a preset adjustment mode, which is designed according to historical experience.
The beneficial effects of above-mentioned design scheme are: and the integrity verification is carried out on the recovered data under the data payment strategy, and the adjustment is carried out when the verification is not passed, so that the integrity and the accuracy of the finally obtained stored data are ensured, and the high-quality stored data are obtained.
Example 10:
a control system for memory fast recovery of stored data, as shown in fig. 3, comprising:
the identification module is used for identifying the memory based on the identification of the memory, and transmitting the original data in the memory to the data center after the identification is successful;
the strategy determining module is used for establishing a mapping table of the original data according to the configuration information and the historical access information of the memory, and determining a data recovery strategy of the original data based on the mapping table;
and the recovery storage module is used for recovering the original data based on the data recovery strategy to obtain storage data, and storing the storage data into the standby memory.
In this embodiment, the identity of the memory is unique.
In this embodiment, a mapping table of raw data is used for conversion of the data.
In this embodiment, the data recovery policy is determined based on a data recovery reference value or the like.
In this embodiment, the configuration information of the memory includes a data area configuration, a port configuration, and the like.
In this embodiment, the history access information of the memory includes an access environment, access data, and the like.
The beneficial effects of above-mentioned design scheme are: after the memory fails, the original data in the memory is transmitted to a data center according to the identification of the memory, then a mapping table of the original data is established according to the configuration information and the historical access information of the memory, a data recovery strategy for the original data is determined based on the mapping table, the original data is recovered based on the data recovery strategy, the stored data is obtained, finally the stored data is stored in the standby memory, the stored data is recovered after the memory is not required to be disassembled and replaced after the memory fails, the recovery efficiency of the stored data is improved, and meanwhile, the system operation stability in the process of recovering the stored data is ensured and the influence on the service is reduced by establishing the data recovery strategy.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims (8)
1. A control method for a memory to quickly restore stored data, comprising:
s1: identifying the memory based on the identification of the memory, and transmitting the original data in the memory to a data center after the identification is successful;
s2: establishing a mapping table of the original data based on the configuration information and the historical access information of the memory, and determining a data recovery strategy of the original data based on the mapping table;
s3: recovering the original data based on a data recovery strategy to obtain storage data, and storing the storage data into a standby memory;
in the step S2, a mapping table of the original data is established based on the configuration information and the history access information of the memory, including:
determining data area configuration and port configuration of the memory based on configuration information of the memory, determining a logic address of original data based on the data area configuration, and determining data interaction interface information of the original data based on the port configuration;
acquiring a time stamp of the original data based on the historical access information and the data interaction interface information of the memory, determining access modification information of the original data based on the time stamp, acquiring the original data corresponding to the latest modification record from the access modification information, and acquiring a historical data mapping relation of the original data corresponding to the latest modification record;
determining reconstruction logic based on the historical data mapping relationship;
based on the reconstruction logic, determining a corresponding relation between a logical address and a physical address of the original data, and establishing a mapping table of the original data based on the corresponding relation;
the determining the reconstruction logic based on the historical data mapping relation comprises the following steps:
determining a data mapping relation between the historical original data and the historical target data based on the historical data mapping relation, performing first division on the data mapping relation based on the data characteristics of the historical original data, and determining first mapping logic under a first division type;
performing second division on the data mapping relation based on the data characteristics of the historical target data, and determining second mapping logic under a second division type;
first labeling is carried out on the first mapping logic based on the data characteristics of the historical original data, and second labeling is carried out on the second mapping logic based on the data characteristics of the historical target data;
matching the first mapping logic with the second mapping logic according to the data characteristics to obtain a first label and a second label of the data mapping relation;
determining a mapping rule according to the first label and the second label of the data mapping relation and the data characteristics of the historical original data and the historical target data, analyzing the mapping rule, and determining a mapping logic;
and integrating the mapping logic to obtain reconstruction logic.
2. The control method for quickly restoring stored data to a memory according to claim 1, wherein in S1, the memory is identified based on an identification of the memory, comprising:
acquiring an identification code of a memory;
matching the identification code with an identification library of the data center, and judging whether a standard code is matched with the identification code in the identification library;
if yes, indicating that the memory identification is successful;
otherwise, a memory identification failure is indicated.
3. The control method for quickly restoring stored data to a memory according to claim 1, wherein in S1, the original data in the memory is transferred to the data center after the identification is successful, comprising:
determining a first export order of the original data according to the time point of storing the original data into the memory;
determining a second export sequence of the original data according to the storage space position of the original data stored in the memory;
determining a target export order based on the first export order and the second export order;
and exporting the original data in the memory according to the target export sequence, and orderly transmitting the exported original data to the data center.
4. A control method for memory fast recovery of stored data according to claim 3, wherein determining a target export order based on the first export order and the second export order comprises:
first marking is carried out on the original data according to a first export sequence, and second marking is carried out on the original data according to a second export sequence;
matching the first mark and the second mark of the same original data to obtain conflict original data with failed matching, and obtaining reference original data closest to the first deriving sequence of the conflict original data from the successfully matched original data;
judging the correlation between the conflict original data and the reference original data, if the correlation is larger than the preset correlation, taking the first mark as the export sequence of the conflict original data, otherwise, taking the second mark as the export sequence of the conflict original data;
obtaining a third export sequence of all original data based on the export sequence of the conflicting original data and the first export sequence of the reference original data;
and verifying and correcting the third export sequence to obtain the target export sequence.
5. The method for controlling a memory to quickly restore stored data according to claim 4, wherein verifying and correcting the third export sequence to obtain the target export sequence comprises:
carrying out transmission verification on the original data under the third export sequence by utilizing a transmission environment, and predicting the transmission speed;
if the transmission speed meets the preset transmission requirement, taking the third export sequence as a target export sequence;
otherwise, according to the data characteristics, performing third export sequence exchange on the uncorrelated original data until the transmission speed of the exchanged export sequence meets the preset transmission requirement, and taking the exchanged export sequence as a target export sequence.
6. The control method for quickly restoring stored data to a memory according to claim 1, wherein in S2, determining a data restoration policy for original data based on a mapping table comprises:
determining a conversion rule for the original data based on the mapping table, determining the running speed of the conversion rule in the current access environment, and determining a data recovery reference value of the original data based on the running speed;
setting a data recovery sequence of the original data based on the data recovery reference value;
and configuring a mapping table and a data recovery sequence for the original data to obtain a data recovery strategy.
7. The method for controlling a memory to quickly restore stored data according to claim 1, wherein in S3, restoring the original data based on the data restoration policy to obtain the stored data comprises:
configuring data recovery resources for the original data based on a data recovery strategy, and determining a data recovery sequence of the original data;
according to the data recovery sequence, utilizing data recovery resources to sequentially recover the original data to obtain recovery data;
based on the data logic, carrying out integrity verification on the recovered data;
if the data logic is met, determining that the integrity of the recovered data is normal, and taking the recovered data as storage data;
otherwise, determining that the integrity of the recovered data is abnormal, determining unrecoverable original data corresponding to the loss of the recovered data based on the condition of the loss of the integrity by combining a configuration table, determining a mapping rule corresponding to the unrecoverable original data in a data recovery strategy, adjusting the mapping rule, setting the latest data recovery sequence for the unrecoverable original data, recovering the unrecoverable data by utilizing the adjusted mapping rule according to the latest data recovery sequence, and obtaining the recovered data, wherein the recovered data is used as storage data.
8. A control system for memory fast recovery of stored data, comprising:
the identification module is used for identifying the memory based on the identification of the memory, and transmitting the original data in the memory to the data center after the identification is successful;
the strategy determining module is used for establishing a mapping table of the original data according to the configuration information and the historical access information of the memory, and determining a data recovery strategy of the original data based on the mapping table;
the recovery storage module is used for recovering the original data based on a data recovery strategy to obtain storage data, and storing the storage data into the standby memory;
the establishing a mapping table of the original data based on the configuration information and the historical access information of the memory comprises the following steps:
determining data area configuration and port configuration of the memory based on configuration information of the memory, determining a logic address of original data based on the data area configuration, and determining data interaction interface information of the original data based on the port configuration;
acquiring a time stamp of the original data based on the historical access information and the data interaction interface information of the memory, determining access modification information of the original data based on the time stamp, acquiring the original data corresponding to the latest modification record from the access modification information, and acquiring a historical data mapping relation of the original data corresponding to the latest modification record;
determining reconstruction logic based on the historical data mapping relationship;
based on the reconstruction logic, determining a corresponding relation between a logical address and a physical address of the original data, and establishing a mapping table of the original data based on the corresponding relation;
the determining the reconstruction logic based on the historical data mapping relation comprises the following steps:
determining a data mapping relation between the historical original data and the historical target data based on the historical data mapping relation, performing first division on the data mapping relation based on the data characteristics of the historical original data, and determining first mapping logic under a first division type;
performing second division on the data mapping relation based on the data characteristics of the historical target data, and determining second mapping logic under a second division type;
first labeling is carried out on the first mapping logic based on the data characteristics of the historical original data, and second labeling is carried out on the second mapping logic based on the data characteristics of the historical target data;
matching the first mapping logic with the second mapping logic according to the data characteristics to obtain a first label and a second label of the data mapping relation;
determining a mapping rule according to the first label and the second label of the data mapping relation and the data characteristics of the historical original data and the historical target data, analyzing the mapping rule, and determining a mapping logic;
and integrating the mapping logic to obtain reconstruction logic.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310744095.7A CN116701038B (en) | 2023-06-25 | 2023-06-25 | Control method and control system for quickly recovering storage data of memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310744095.7A CN116701038B (en) | 2023-06-25 | 2023-06-25 | Control method and control system for quickly recovering storage data of memory |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116701038A CN116701038A (en) | 2023-09-05 |
CN116701038B true CN116701038B (en) | 2024-04-02 |
Family
ID=87833828
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310744095.7A Active CN116701038B (en) | 2023-06-25 | 2023-06-25 | Control method and control system for quickly recovering storage data of memory |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116701038B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111581022A (en) * | 2020-04-30 | 2020-08-25 | 江苏芯盛智能科技有限公司 | Data recovery method and system |
CN113377579A (en) * | 2021-06-23 | 2021-09-10 | 厦门市美亚柏科信息股份有限公司 | Mapping table-based solid state disk data recovery method and system |
CN113626253A (en) * | 2021-06-30 | 2021-11-09 | 苏州浪潮智能科技有限公司 | Data recovery method, device, equipment and medium for failed solid-state memory |
CN115599578A (en) * | 2022-10-09 | 2023-01-13 | 合肥康芯威存储技术有限公司(Cn) | Memory, control method thereof and memory system |
-
2023
- 2023-06-25 CN CN202310744095.7A patent/CN116701038B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111581022A (en) * | 2020-04-30 | 2020-08-25 | 江苏芯盛智能科技有限公司 | Data recovery method and system |
CN113377579A (en) * | 2021-06-23 | 2021-09-10 | 厦门市美亚柏科信息股份有限公司 | Mapping table-based solid state disk data recovery method and system |
CN113626253A (en) * | 2021-06-30 | 2021-11-09 | 苏州浪潮智能科技有限公司 | Data recovery method, device, equipment and medium for failed solid-state memory |
CN115599578A (en) * | 2022-10-09 | 2023-01-13 | 合肥康芯威存储技术有限公司(Cn) | Memory, control method thereof and memory system |
Also Published As
Publication number | Publication date |
---|---|
CN116701038A (en) | 2023-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103164523A (en) | Inspection method, device and system of data consistency inspection | |
EP0723223B1 (en) | Identifying controller pairs in a dual controller disk array | |
CN101944386B (en) | Control circuit and storage system and method for identifying error data in flash memory | |
CN107315659B (en) | Metadata redundancy backup method and device | |
CN107329859B (en) | Data protection method and storage device | |
CN110286853A (en) | A kind of method for writing data and device, computer readable storage medium | |
CN111400267B (en) | Method and device for recording logs | |
CN112558868A (en) | Method, device and equipment for storing configuration data | |
CN116501259A (en) | Disk group dual-activity synchronization method and device, computer equipment and storage medium | |
CN116701038B (en) | Control method and control system for quickly recovering storage data of memory | |
CN102971984A (en) | Method for authenticating a storage device, machine-readable storage medium, and host device | |
CN117492661A (en) | Data writing method, medium, device and computing equipment | |
US6722572B2 (en) | Recording medium control method, data management apparatus, and recording medium | |
CN110399098A (en) | A kind of data processing method and electronic equipment | |
CN116821006A (en) | Flash memory data loss prevention and erasure balance method, system, device and medium | |
CN112445432B (en) | Method and device for maintaining redundant VPD (virtual private device) in double-control system | |
CN112463460B (en) | Erasure code-based small block data recovery method and system | |
CN101470666A (en) | Data memory method | |
CN114764596A (en) | Method and device for prolonging hard disk service life, computer equipment and storage medium | |
CN110825714A (en) | File storage control method and device, file storage device and electronic device | |
US7904758B2 (en) | System, method and apparatus for tracing source of transmission error | |
CN112463019A (en) | Data reading method and device | |
CN110471791A (en) | The storage method and device and equipment of the bad block message of a kind of pair of flash memory | |
CN114442943B (en) | Data migration method, system and equipment | |
CN115295061B (en) | Memory firmware overhauling method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |