CN111176572A - Method, device, equipment and medium for protecting stored data - Google Patents

Method, device, equipment and medium for protecting stored data Download PDF

Info

Publication number
CN111176572A
CN111176572A CN201911379304.2A CN201911379304A CN111176572A CN 111176572 A CN111176572 A CN 111176572A CN 201911379304 A CN201911379304 A CN 201911379304A CN 111176572 A CN111176572 A CN 111176572A
Authority
CN
China
Prior art keywords
copy
slow
fast
data
writing
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.)
Granted
Application number
CN201911379304.2A
Other languages
Chinese (zh)
Other versions
CN111176572B (en
Inventor
来炜国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing 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 Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201911379304.2A priority Critical patent/CN111176572B/en
Publication of CN111176572A publication Critical patent/CN111176572A/en
Application granted granted Critical
Publication of CN111176572B publication Critical patent/CN111176572B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/065Replication mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a method for protecting stored data, which comprises the following steps: reading identification information indicating write states of the fast copy and the slow copy; the fast copy is a storage area of a nonvolatile memory device, and the slow copy is a virtual hard disk partition; judging whether the fast writing state of the fast copy is consistent with the slow writing state of the slow copy according to the identification information; if not, a write operation is performed on the slow copy to keep the fast write state and the slow write state consistent. Therefore, when the fast copy fails, the data can be recovered from the slow copy; moreover, the slow copy is a virtual hard disk partition, so that the cost is low, and unnecessary resource waste is avoided on the premise of ensuring data safety. In addition, the invention provides a protection device, equipment and a storage medium for stored data, which correspond to the method.

Description

Method, device, equipment and medium for protecting stored data
Technical Field
The present invention relates to the field of storage technologies, and in particular, to a method, an apparatus, a device, and a medium for protecting stored data.
Background
With the rapid development of nonvolatile memory technology, nonvolatile memory devices are also widely used in various industries. For example, the Intel DCPM device is a persistent memory device using the DIMM memory bank physical specification, and has the advantages of high bandwidth response, high read-write speed, large capacity, long service life, and the like. As the nonvolatile memory devices have become popular, the cost performance of the nonvolatile memory devices has gradually increased. Therefore, it is of great interest to study the use of non-volatile memory devices in storage systems.
Because the error rate of data in a non-volatile memory device is more than an order of magnitude higher than the error rate of other memory devices, it is necessary to protect the data on the non-volatile memory device. In the prior art, a RAID 1 method is generally used to protect data on a nonvolatile memory device.
However, the effective utilization rate of the memory on the nonvolatile memory device is greatly reduced due to the adoption of the method for protecting the data, and the cost of data protection is higher and unnecessary resource waste is caused because the nonvolatile memory devices are generally very expensive.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a medium for protecting stored data, which correspondingly write data into a slow copy according to acquired identification information, so that a fast write state and a slow write state are kept consistent, and the data can be recovered from the slow copy when the fast copy fails; moreover, the slow copy is a virtual hard disk partition, so that the cost is low, and unnecessary resource waste is avoided on the premise of ensuring data safety.
In order to solve the above technical problem, the present invention provides a method for protecting stored data, including:
reading identification information indicating write states of the fast copy and the slow copy; the fast copy is a storage area of a nonvolatile memory device, and the slow copy is a virtual hard disk partition;
judging whether the fast writing state of the fast copy is consistent with the slow writing state of the slow copy according to the identification information;
and if not, writing the slow copy to ensure that the fast writing state and the slow writing state are consistent.
Preferably, the identification information is stored in a bitmap file.
Preferably, the method further comprises the following steps:
judging whether fault data exist in the quick copy;
and if so, acquiring copy data corresponding to the fault data from the slow copy, and writing the copy data into the fast copy again.
Preferably, the writing the slow copy to make the fast writing state and the slow writing state consistent specifically includes: and when the storage system is idle, writing the slow copy to keep the fast writing state and the slow writing state consistent.
Preferably, the reading of the identification information indicating the writing states of the fast copy and the slow copy is specifically:
the identification information for indicating the write status of the fast copy and the slow copy is read in a timed manner.
Preferably, the method further comprises the following steps:
and when the copy data corresponding to the fault data is not stored in the slow copy, generating fault information for feedback.
Preferably, the method further comprises the following steps:
when data is added or deleted in the fast copy and the slow copy, the identification information is updated accordingly.
In order to solve the above technical problem, the present invention further provides a protection device for stored data, including:
a reading module for reading identification information indicating write states of the fast copy and the slow copy; the fast copy is a storage area of a nonvolatile memory device, and the slow copy is a virtual hard disk partition;
the judging module is used for judging whether the fast writing state of the fast copy is consistent with the slow writing state of the slow copy according to the identification information; if not, entering a writing module;
and the writing module is used for writing the slow copy so as to keep the fast writing state and the slow writing state consistent.
In order to solve the above technical problem, the present invention further provides a protection device for stored data, including a memory for storing a computer program;
a processor for implementing the steps of the method of protecting stored data according to any one of the preceding claims when executing said computer program.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of the method for protecting stored data according to any one of the above aspects.
The invention provides a method for protecting stored data, which comprises the following steps: reading identification information indicating write states of the fast copy and the slow copy; the fast copy is a storage area of a nonvolatile memory device, and the slow copy is a virtual hard disk partition; judging whether the fast writing state of the fast copy is consistent with the slow writing state of the slow copy according to the identification information; if not, a write operation is performed on the slow copy to keep the fast write state and the slow write state consistent. Therefore, according to the method and the device, the data is correspondingly written into the slow copy according to the acquired identification information, so that the fast writing state and the slow writing state are kept consistent, and the data can be recovered from the slow copy when the fast copy fails; moreover, the slow copy is a virtual hard disk partition, so that the cost is low, and unnecessary resource waste is avoided on the premise of ensuring data safety.
In addition, the protection device, the equipment and the storage medium for storing data provided by the invention correspond to the method, and have the same beneficial effects.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a method for protecting stored data according to an embodiment of the present invention;
fig. 2 is a structural diagram of a protection device for storing data according to an embodiment of the present invention;
fig. 3 is a structural diagram of a protection device for storing data according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
The core of the invention is to provide a method, a device, equipment and a medium for protecting stored data, the invention correspondingly writes data into the slow copy according to the acquired identification information, so that the fast writing state and the slow writing state are kept consistent, and the data can be recovered from the slow copy when the fast copy fails; moreover, the slow copy is a virtual hard disk partition, so that the cost is low, and unnecessary resource waste is avoided on the premise of ensuring data safety.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of a method for protecting stored data according to an embodiment of the present invention; as shown in fig. 1, a method for protecting stored data according to an embodiment of the present invention includes steps S101 to S103:
step S101: reading identification information indicating write states of the fast copy and the slow copy; the fast copy is a storage area of a nonvolatile memory device, and the slow copy is a virtual hard disk partition;
in one embodiment, the nonvolatile memory device is specifically a DCPMM device, and a storage area of the nonvolatile memory device may be called a flash copy, and is accessed as a file system or an original block device. A virtual hard disk partition consists of several storage ranges in an information system storage pool, and may be referred to as a slow copy. Specifically, the capacity of the virtual hard disk partition is the same as the capacity of the storage area of the nonvolatile memory device. Those skilled in the art may also set the capacity of the virtual hard disk partition to be greater than the capacity of the storage area of the nonvolatile memory device according to the actual application, and the embodiment of the present invention is not limited thereto. The data stored in the virtual hard disk partition is the same as the data stored in the storage area of the nonvolatile memory device, so that the data stored in the storage area of the nonvolatile memory device is protected.
In a particular embodiment, identification information indicating write status of fast copy and slow copy is read. In one embodiment, the identification information is stored in a bitmap file. Specifically, the available 00 of the bitmap file indicates that data is not written into the fast copy and the slow copy; wait for fast copy write with 01; 10 indicates that the data has been written in the fast copy and has not been sent to the slow copy; the fast copy has been written and is being copied into the slow copy as indicated by 11. Those skilled in the art can determine the representation modes of different writing states according to the actual application situation, and the embodiment of the present invention is not limited.
Step S102: judging whether the fast writing state of the fast copy is consistent with the slow writing state of the slow copy according to the identification information; if not, the step S103 is entered;
step S103: a write operation is performed on the slow copy to keep the fast write state and the slow write state consistent.
In one embodiment, the fast writing state of the fast copy and the slow writing state of the slow copy can be determined according to the obtained identification information. Specifically, the fast writing state and the slow writing state are determined according to the identification information being 00, 01, 10, or 11. For example, when the acquired identification information is 10, it may be determined that the fast writing state is written and the slow writing state is unwritten. When the fast writing state is consistent with the slow writing state, the data stored in the current slow copy and the data stored in the fast copy are consistent, and the slow copy does not need to be independently written. When the fast writing state is inconsistent with the slow writing state, namely the fast writing state is a written state, and the slow writing state is not written, the data in the current slow copy is inconsistent with the data stored in the fast copy, and the slow copy needs to be written to ensure that the data stored in the fast copy is consistent with the data stored in the slow copy, so that the data stored in the fast copy is protected.
In an embodiment, the method for protecting stored data according to the embodiment of the present invention further includes:
when new data is added or deleted in the fast copy and the slow copy, the identification information is updated accordingly.
Specifically, when new data is added to or deleted from the fast copy and the slow copy, the identification information needs to be updated accordingly according to a specific operation performed by the fast copy or the slow copy. For example, the current identification information is 00, that is, both the fast copy and the slow copy are write data, when data is added to the fast copy, it is indicated that write operation is performed on the fast copy, and at this time, the identification information should be updated to 10 accordingly; when the same data is added to the slow copy, namely the slow copy is subjected to the same writing operation, the identification information can be correspondingly updated to be 11, so that the accuracy and timeliness of the identification information are ensured.
In one embodiment, when the storage system is idle, a write operation is performed to the slow copy to keep the fast write state and the slow write state consistent. In particular, when the storage system is idle, the same write operation may be performed on the slow copy as the write operation is performed on the fast copy. When the storage system is in a high load state, a write operation may be performed to the flashcopy first. In order to relieve the working pressure of the storage system, the slow copy writing operation is not carried out temporarily, and the slow copy writing operation is carried out when the storage system is idle. When the storage system is in a normal load state, writing operation can be carried out on the fast copy and the slow copy according to a preset proportion; for example, the preset ratio is 3:1, that is, after the write operation for performing the fast copy three times, the write operation is performed once for the slow copy so that the data stored in the slow copy is the same as that stored in the fast copy.
In a specific implementation, reading the identification information indicating the writing states of the fast copy and the slow copy is specifically:
the identification information for indicating the write status of the fast copy and the slow copy is read in a timed manner.
Specifically, the identification information can be read in a timing mode to perform writing operation on the slow copy in a timing mode, so that the frequency of the writing operation on the slow copy is reduced, and the operating pressure of the storage system is reduced. It is to be understood that the identification information indicating the write status of the fast copy and the slow copy may also be read in real time, and the embodiment of the present invention is not limited thereto.
The invention provides a method for protecting stored data, which comprises the following steps: reading identification information indicating write states of the fast copy and the slow copy; the fast copy is a storage area of a nonvolatile memory device, and the slow copy is a virtual hard disk partition; judging whether the fast writing state of the fast copy is consistent with the slow writing state of the slow copy according to the identification information; if not, a write operation is performed on the slow copy to keep the fast write state and the slow write state consistent. Therefore, according to the method and the device, the data is correspondingly written into the slow copy according to the acquired identification information, so that the fast writing state and the slow writing state are kept consistent, and the data can be recovered from the slow copy when the fast copy fails; moreover, the slow copy is a virtual hard disk partition, so that the cost is low, and unnecessary resource waste is avoided on the premise of ensuring data safety.
In an embodiment, the method for protecting stored data according to the embodiment of the present invention further includes:
judging whether fault data exist in the quick copy;
if so, obtaining the copy data corresponding to the failure data from the slow copy, and writing the copy data into the fast copy again.
As can be appreciated, the failure data is generated when the flashcopy encounters an uncorrectable error. When fault data occurs, toxic identification can be added to the storage position of the fault data to prompt faults. And acquiring copy data corresponding to the failure data from the slow copy, and writing the copy data into the fast copy again. Specifically, the copy data of the storage position corresponding to the slow copy can be acquired according to the storage position of the fault data in the fast copy, so that the fault data in the fast copy can be recovered.
In an embodiment, the method for protecting stored data according to the embodiment of the present invention further includes:
and when the copy data corresponding to the fault data is not stored in the slow copy, generating fault information for feedback.
In a specific implementation, when failure data is generated in the fast copy, but copy data corresponding to the failure data is not stored in the slow copy, failure information can be generated for feedback to prompt that staff intervention is needed for further processing. In one embodiment, the staff can be informed to process the fault information according to the pre-stored contact information of the staff. The contact means may be a mailbox, a telephone number, etc. Therefore, the staff can be informed in time through the contact way, and the staff can rapidly process the fault information.
The invention also provides a protection device for the stored data and a corresponding embodiment of the protection device for the stored data. It should be noted that the present invention describes the embodiments from two perspectives, one is based on the functional module, and the other is based on the hardware.
Fig. 2 is a structural diagram of a protection device for storing data according to an embodiment of the present invention; as shown in fig. 2, an apparatus for protecting stored data according to an embodiment of the present invention includes:
a reading module 10 for reading identification information indicating write states of the fast copy and the slow copy; the fast copy is a storage area of a nonvolatile memory device, and the slow copy is a virtual hard disk partition;
the judging module 11 is configured to judge whether a fast writing state of the fast copy and a slow writing state of the slow copy are consistent according to the identification information; if not, entering a writing module;
and a writing module 12 for writing the slow copy to make the fast writing state and the slow writing state consistent.
The protection device for stored data provided by the embodiment of the invention further comprises:
the judging module is used for judging whether fault data exist in the quick copy; if so, obtaining the copy data corresponding to the failure data from the slow copy, and writing the copy data into the fast copy again.
The protection device for stored data provided by the embodiment of the invention further comprises:
and the generating module is used for generating fault information for feedback when the copy data corresponding to the fault data is not stored in the slow copy.
The protection device for stored data provided by the embodiment of the invention further comprises:
and the updating module is used for correspondingly updating the identification information when the data is added or deleted in the fast copy and the slow copy.
Since the embodiments of this section correspond to the embodiments of the method section, reference is made to the description of the embodiments of the method section for the embodiments of this section, and details are not repeated here.
The invention provides a protection device for stored data, which comprises: reading identification information indicating write states of the fast copy and the slow copy; the fast copy is a storage area of a nonvolatile memory device, and the slow copy is a virtual hard disk partition; judging whether the fast writing state of the fast copy is consistent with the slow writing state of the slow copy according to the identification information; if not, a write operation is performed on the slow copy to keep the fast write state and the slow write state consistent. Therefore, according to the method and the device, the data is correspondingly written into the slow copy according to the acquired identification information, so that the fast writing state and the slow writing state are kept consistent, and the data can be recovered from the slow copy when the fast copy fails; moreover, the slow copy is a virtual hard disk partition, so that the cost is low, and unnecessary resource waste is avoided on the premise of ensuring data safety.
Fig. 3 is a structural diagram of a protection device for storing data according to an embodiment of the present invention; as shown in fig. 3, the protection device for storing data according to the embodiment of the present invention includes a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the method for protecting stored data according to any one of the preceding claims when executing a computer program.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing the following computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement relevant steps in the method for protecting stored data disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like.
In some embodiments, the protection device for storing data may further include an input/output interface 22, a communication interface 23, a power supply 24, and a communication bus 25.
Those skilled in the art will appreciate that the configuration shown in fig. 3 does not constitute a limitation of the protection device storing the data and may include more or fewer components than those shown.
Since the embodiments of this section correspond to the embodiments of the method section, reference is made to the description of the embodiments of the method section for the embodiments of this section, and details are not repeated here. In some embodiments of the invention, the processor and memory may be connected by a bus or other means.
The protection device for the stored data provided by the invention can realize the following method: reading identification information indicating write states of the fast copy and the slow copy; the fast copy is a storage area of a nonvolatile memory device, and the slow copy is a virtual hard disk partition; judging whether the fast writing state of the fast copy is consistent with the slow writing state of the slow copy according to the identification information; if not, a write operation is performed on the slow copy to keep the fast write state and the slow write state consistent. Therefore, according to the method and the device, the data is correspondingly written into the slow copy according to the acquired identification information, so that the fast writing state and the slow writing state are kept consistent, and the data can be recovered from the slow copy when the fast copy fails; moreover, the slow copy is a virtual hard disk partition, so that the cost is low, and unnecessary resource waste is avoided on the premise of ensuring data safety.
Finally, the invention also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and performs all or part of the steps of the methods according to the embodiments of the present invention, or all or part of the technical solution. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The method, apparatus, device and medium for protecting stored data provided by the present invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for protecting stored data, comprising:
reading identification information indicating write states of the fast copy and the slow copy; the fast copy is a storage area of a nonvolatile memory device, and the slow copy is a virtual hard disk partition;
judging whether the fast writing state of the fast copy is consistent with the slow writing state of the slow copy according to the identification information;
and if not, writing the slow copy to ensure that the fast writing state and the slow writing state are consistent.
2. The method according to claim 1, wherein the identification information is stored in a bitmap file.
3. The method for protecting stored data according to claim 1, further comprising:
judging whether fault data exist in the quick copy;
and if so, acquiring copy data corresponding to the fault data from the slow copy, and writing the copy data into the fast copy again.
4. The method for protecting stored data according to claim 1, wherein the writing the slow copy to keep the fast writing state and the slow writing state consistent specifically comprises: and when the storage system is idle, writing the slow copy to keep the fast writing state and the slow writing state consistent.
5. The method for protecting stored data according to claim 1, wherein the reading of the identification information indicating the write status of the fast copy and the slow copy is specifically:
the identification information for indicating the write status of the fast copy and the slow copy is read in a timed manner.
6. The method for protecting stored data according to claim 3, further comprising:
and when the copy data corresponding to the fault data is not stored in the slow copy, generating fault information for feedback.
7. The method for protecting stored data according to claim 1, further comprising:
when data is added or deleted in the fast copy and the slow copy, the identification information is updated accordingly.
8. A protection device for stored data, comprising:
a reading module for reading identification information indicating write states of the fast copy and the slow copy; the fast copy is a storage area of a nonvolatile memory device, and the slow copy is a virtual hard disk partition;
the judging module is used for judging whether the fast writing state of the fast copy is consistent with the slow writing state of the slow copy according to the identification information; if not, entering a writing module;
and the writing module is used for writing the slow copy so as to keep the fast writing state and the slow writing state consistent.
9. A protection device for storing data, comprising a memory for storing a computer program;
processor for implementing the steps of the method for protecting stored data according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method for protecting stored data according to any one of claims 1 to 7.
CN201911379304.2A 2019-12-27 2019-12-27 Method, device, equipment and medium for protecting stored data Active CN111176572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911379304.2A CN111176572B (en) 2019-12-27 2019-12-27 Method, device, equipment and medium for protecting stored data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911379304.2A CN111176572B (en) 2019-12-27 2019-12-27 Method, device, equipment and medium for protecting stored data

Publications (2)

Publication Number Publication Date
CN111176572A true CN111176572A (en) 2020-05-19
CN111176572B CN111176572B (en) 2022-03-22

Family

ID=70650400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911379304.2A Active CN111176572B (en) 2019-12-27 2019-12-27 Method, device, equipment and medium for protecting stored data

Country Status (1)

Country Link
CN (1) CN111176572B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7979651B1 (en) * 2006-07-07 2011-07-12 Symantec Operating Corporation Method, system, and computer readable medium for asynchronously processing write operations for a data storage volume having a copy-on-write snapshot
CN102541689A (en) * 2010-12-21 2012-07-04 微软公司 Protecting data during different connectivity states
US20140068233A1 (en) * 2012-08-30 2014-03-06 Fujitsu Limited Information processing apparatus and copy control method
CN103780638A (en) * 2012-10-18 2014-05-07 腾讯科技(深圳)有限公司 Data synchronization method and system
CN105022680A (en) * 2015-08-05 2015-11-04 浪潮(北京)电子信息产业有限公司 Data backup method and device
CN105718330A (en) * 2016-01-15 2016-06-29 浪潮(北京)电子信息产业有限公司 Linux system backup data recovery method and device
CN109491605A (en) * 2018-11-01 2019-03-19 郑州云海信息技术有限公司 A kind of date storage method based on COW, device and medium
CN109614439A (en) * 2018-10-24 2019-04-12 平安科技(深圳)有限公司 Method of data synchronization, device, electronic equipment and storage medium
CN110515769A (en) * 2019-08-15 2019-11-29 苏州浪潮智能科技有限公司 A kind of backup processing method, device and electronic equipment and readable storage medium storing program for executing
CN110597662A (en) * 2019-09-11 2019-12-20 深圳市科力锐科技有限公司 Backup data automatic verification method and device, user equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7979651B1 (en) * 2006-07-07 2011-07-12 Symantec Operating Corporation Method, system, and computer readable medium for asynchronously processing write operations for a data storage volume having a copy-on-write snapshot
CN102541689A (en) * 2010-12-21 2012-07-04 微软公司 Protecting data during different connectivity states
US20140068233A1 (en) * 2012-08-30 2014-03-06 Fujitsu Limited Information processing apparatus and copy control method
CN103780638A (en) * 2012-10-18 2014-05-07 腾讯科技(深圳)有限公司 Data synchronization method and system
CN105022680A (en) * 2015-08-05 2015-11-04 浪潮(北京)电子信息产业有限公司 Data backup method and device
CN105718330A (en) * 2016-01-15 2016-06-29 浪潮(北京)电子信息产业有限公司 Linux system backup data recovery method and device
CN109614439A (en) * 2018-10-24 2019-04-12 平安科技(深圳)有限公司 Method of data synchronization, device, electronic equipment and storage medium
CN109491605A (en) * 2018-11-01 2019-03-19 郑州云海信息技术有限公司 A kind of date storage method based on COW, device and medium
CN110515769A (en) * 2019-08-15 2019-11-29 苏州浪潮智能科技有限公司 A kind of backup processing method, device and electronic equipment and readable storage medium storing program for executing
CN110597662A (en) * 2019-09-11 2019-12-20 深圳市科力锐科技有限公司 Backup data automatic verification method and device, user equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
D.HORMDEE等: "An asynchronous copy-back cache architecture", 《MICROPROCESSORS AND MICROSYSTEMS》 *
曹晗晖: "海量数字内容资源的安全存储策略研究", 《科技与出版》 *

Also Published As

Publication number Publication date
CN111176572B (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN105164657A (en) Selective backup of program data to non-volatile memory
CN110515917B (en) Method, device and medium for controlling reconstruction speed
CN109086425B (en) Data processing method and device for database
CN113626256B (en) Virtual machine disk data backup method, device, terminal and storage medium
WO2023092942A1 (en) Data storage method and apparatus, and electronic device and readable storage medium
CN115495025B (en) Method and device for managing abnormal memory block
CN111625546A (en) Data writing method, device, equipment and medium
WO2024103977A1 (en) Metadata configuration method and apparatus, and nonvolatile readable storage medium
CN113050965A (en) Embedded system upgrading method, device, equipment and medium
CN111651239A (en) Virtual machine cloning method, device, equipment and medium
CN111090399A (en) Online migration method, device, equipment and medium for disk data
CN110688067A (en) Layering method, device, equipment and medium of storage system
CN104407806B (en) The amending method and device of RAID group hard disc information
CN111176572B (en) Method, device, equipment and medium for protecting stored data
CN112667442A (en) Control method, device and equipment based on nonvolatile memory device starting system
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN115562593A (en) Abnormal RAID member disk processing method, device and medium
CN114884836A (en) High-availability method, device and medium for virtual machine
CN114461341A (en) Method, device and medium for preventing brain crack of cloud platform virtual machine
CN111124754A (en) Data recovery method, device, equipment and medium
CN111949434B (en) RAID management method, RAID controller and system
CN111142795A (en) Control method, control device and control equipment for write operation of distributed storage system
CN111400093B (en) Configuration method, configuration device and configuration equipment of NVDIMM (noise, voltage and noise memory Module)
CN115061849A (en) Method, device and medium for detecting and processing system disk abnormity under RAID (redundant array of independent disks)
CN114637626B (en) Method, device and equipment for reducing read-write errors of EEPROM (electrically erasable programmable read-only memory) data and readable storage medium

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