CN111104061A - Method and device for avoiding data loss of solid storage equipment due to abnormal power failure, computer equipment and storage medium - Google Patents

Method and device for avoiding data loss of solid storage equipment due to abnormal power failure, computer equipment and storage medium Download PDF

Info

Publication number
CN111104061A
CN111104061A CN201911147328.5A CN201911147328A CN111104061A CN 111104061 A CN111104061 A CN 111104061A CN 201911147328 A CN201911147328 A CN 201911147328A CN 111104061 A CN111104061 A CN 111104061A
Authority
CN
China
Prior art keywords
page
unstable
unit
judging whether
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.)
Pending
Application number
CN201911147328.5A
Other languages
Chinese (zh)
Inventor
李建
姚兰
华荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Shenzhen Union Memory Information System 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 Shenzhen Union Memory Information System Co Ltd filed Critical Shenzhen Union Memory Information System Co Ltd
Priority to CN201911147328.5A priority Critical patent/CN111104061A/en
Publication of CN111104061A publication Critical patent/CN111104061A/en
Pending legal-status Critical Current

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/0629Configuration or reconfiguration of storage systems
    • 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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0688Non-volatile semiconductor memory arrays

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)
  • Power Sources (AREA)

Abstract

The invention relates to a method, a device, computer equipment and a storage medium for avoiding data loss of solid storage equipment caused by abnormal power failure; the method comprises the following steps: judging whether unstable pages remain to be processed; if an unstable page is still to be processed, judging whether a mapping pointing to the unstable page exists; if the mapping pointing to the unstable page does not exist, returning to the step of judging whether the unstable page is still to be processed; if the mapping pointing to the unstable page exists, reading the unstable page; judging whether the unstable page is read successfully; if the unstable page is successfully read, the data is moved to a new page; if the unstable page is not successfully read, a mapping to the unstable page is rolled back. The invention avoids generating the mapping pointing to the unstable page by moving the data in the unstable page or backing the mapping pointing to the unstable page, protects the user data and prevents the user data from being lost due to abnormal power failure.

Description

Method and device for avoiding data loss of solid storage equipment due to abnormal power failure, computer equipment and storage medium
Technical Field
The invention relates to the technical field of avoiding data loss of a solid state disk due to abnormal power failure, in particular to a method and a device for avoiding data loss of a solid state storage device due to abnormal power failure, a computer device and a storage medium.
Background
The storage medium in the SSD is NAND Flash, which is composed of a group of blocks supporting read-write-erase operations, and the blocks contain a plurality of fixed-size pages, and when the pages are subjected to write operations, if abnormal power failure occurs, such pages may be in a partial write state, which is an unstable state: reading the data in these pages may be successful or may fail. If the page can be read normally in the stage of reconstructing the mapping table, a mapping pointing to the page is created; however, when a user reads such a page according to the mapping, if an error occurs, user data may be lost; current implementations may generate mappings that point to such unstable pages, thereby risking possible loss of user data; therefore, the demand cannot be satisfied.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method, a device, computer equipment and a storage medium for avoiding data loss of solid storage equipment caused by abnormal power failure.
In order to achieve the purpose, the invention adopts the following technical scheme:
the method for avoiding data loss of the solid storage device caused by abnormal power failure comprises the following steps:
judging whether unstable pages remain to be processed;
if an unstable page is still to be processed, judging whether a mapping pointing to the unstable page exists;
if the mapping pointing to the unstable page does not exist, returning to the step of judging whether the unstable page is still to be processed;
if the mapping pointing to the unstable page exists, reading the unstable page;
judging whether the unstable page is read successfully;
if the unstable page is successfully read, the data is moved to a new page, and the step of 'judging whether the unstable page is ready for processing' is returned;
if the unstable page is not successfully read, backing the mapping pointing to the unstable page, and returning to the step of judging whether the unstable page is still to be processed.
The further technical scheme is as follows: after the step of judging whether an unstable page is ready to be processed, the method further comprises the following steps: and if the unstable page is not ready to be processed, executing an ending step.
The further technical scheme is as follows: before the step of judging whether an unstable page is to be processed or not, the method also comprises mapping table reconstruction, wherein the mapping table reconstruction comprises the following steps:
judging whether pages remain to be scanned;
if the page is to be scanned, reading out-of-band data of the page;
judging whether the out-of-band data of the read page is successful;
if not, returning to the step of judging whether a page is to be scanned or not;
if the reading is successful, acquiring a logical address corresponding to the page through the out-of-band data;
judging whether the page is an unstable page or not;
if the page is stable, creating a new mapping, and returning to the step of judging whether the page is still to be scanned;
if the page is unstable, recording the current mapping of the logical address;
create a new mapping and return to the step "determine if there are more pages to scan".
The further technical scheme is as follows: after the step of judging whether pages are to be scanned, the method further comprises the following steps: and if no page is to be scanned, rebuilding the mapping table.
Avoid solid storage device to lead to data loss's device because of unusual power down, include: the device comprises a first judging unit, a second judging unit, a first reading unit, a third judging unit, a moving unit and a returning unit;
the first judging unit is used for judging whether unstable pages are still to be processed;
the second judging unit is used for judging whether a mapping pointing to the unstable page exists or not;
the first reading unit is used for reading the unstable page;
the third judging unit is used for judging whether the unstable page is read successfully;
the moving unit is used for moving the data to a new page;
the rollback unit is used for rolling back the mapping pointing to the unstable page.
The further technical scheme is as follows: further comprising: an ending unit for executing the ending step.
The further technical scheme is as follows: further comprising: the device comprises a fourth judging unit, a second reading unit, a fifth judging unit, a third acquiring unit, a sixth judging unit, a recording unit and a creating unit;
the fourth judging unit is used for judging whether pages are to be scanned or not;
the second reading unit is used for reading out-of-band data of the page;
the fifth judging unit is used for judging whether the out-of-band data of the read page is successful or not;
the third obtaining unit is used for obtaining the logical address corresponding to the page through the out-of-band data;
the sixth judging unit is configured to judge whether a page is an unstable page;
the recording unit is used for recording the current mapping of the logical address;
the creating unit is used for creating a new mapping.
The further technical scheme is as follows: further comprising: and the completion unit is used for completing the reconstruction of the mapping table.
A computer device comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor executes the computer program to realize the method for avoiding data loss of the solid storage device caused by abnormal power failure.
A storage medium storing a computer program comprising program instructions which, when executed by a processor, implement the method of avoiding data loss due to abnormal power down in a solid state storage device as described above.
Compared with the prior art, the invention has the beneficial effects that: by moving the data in the unstable page or backing the mapping pointing to the unstable page, the mapping pointing to the unstable page is prevented from being generated, the user data is protected, the user data cannot be lost due to abnormal power failure, and the requirement can be better met.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for avoiding data loss of a solid-state storage device due to abnormal power failure according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of mapping table reconstruction according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating an application of unstable pages according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an application scenario of data in a page with unstable migration according to an embodiment of the present invention;
fig. 5 is a first schematic block diagram of an apparatus for avoiding data loss of a solid-state storage device due to abnormal power failure according to an embodiment of the present invention;
fig. 6 is a schematic block diagram ii of an apparatus for avoiding data loss of a solid-state storage device due to abnormal power failure according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram of a computer device provided by 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 some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Please refer to the embodiments shown in fig. 1 to fig. 7, wherein the english explanation in the present invention is as follows: die, independently concurrently operable units; block, Block; page.
Referring to fig. 1 to 4, the present invention discloses a method for avoiding data loss of a solid storage device due to abnormal power failure, which includes the following steps:
s1, judging whether an unstable page is to be processed;
s2, if there is an unstable page to be processed, judging whether there is a mapping pointing to the unstable page; if there is no mapping pointing to the unstable page, return to step S1;
s3, if there is a mapping pointing to the unstable page, reading the unstable page;
s4, judging whether the unstable page is read successfully;
s5, if the unstable page is read successfully, the data is moved to a new page, and the step S1 is returned;
s6, if the unstable page is not read successfully, the mapping pointing to the unstable page is backed off, and the process returns to step S1.
Further, after the step of S1, the method further includes: s7, if there is no unstable page to be processed, the ending step is executed.
Before the step S1, mapping table rebuilding is further included, where the mapping table rebuilding includes the following steps:
a1, judging whether pages remain to be scanned;
a2, if there are pages to be scanned, reading out-of-band data of the pages;
a3, judging whether the reading of the out-of-band data of the page is successful; if the reading is not successful, returning to the step A1;
a4, if the reading is successful, acquiring a logical address corresponding to the page through the out-of-band data;
a5, judging whether the page is an unstable page; if the page is stable, enter A7;
a6, if the page is unstable, recording the current mapping of the logical address;
a7, create a new mapping, and return to step A1.
Further, after the step a1, the method further includes: and A8, if no page is to be scanned, reconstructing the mapping table is completed.
The method comprises the steps that possible unstable pages are identified in the power-on process, when data are written into a NAND by an SSD, the data are written into a plurality of blocks simultaneously, and the data are required to be written in the order from small to large according to page numbers during writing, so that the last page in the blocks can be regarded as an unstable page; and for the possible unstable page, reading the data in the page, if the data can be read normally, moving the data to a new place, otherwise, backing the mapping pointing to the unstable page, and recovering the previous mapping.
Referring to fig. 3 to 4, in the embodiment of the present invention, the last page containing data of each concurrent write request block may be an unstable page, and 0_ a _3, 1_ a _3, 2_ a _3, and 3_ a _3 may be unstable pages; after map table reconstruction, a map is created that points to an unstable page as follows: 0- >0_ A _3, 1- >1_ A _3, 2- >2_ A _3, 3- >3_ A _ 3; in the processing process, the reading failure mapping of 0_ A _3 and 2_ A _3 is backed off, the reading of 1_ A _3 and 3_ A _3 is successful, and the mapping is moved to a new page after the processing is finished as follows: 0- >0_ A _0, 1- >0_ B _0, 2- >2_ A _0, 3- >1_ B _ 0; there are no more mappings pointing to unstable pages.
According to the invention, by moving the data in the unstable page or backing the mapping pointing to the unstable page, the generation of the mapping pointing to the unstable page is avoided, the user data is protected, the user data is not lost due to abnormal power failure, and the requirement can be better met.
Referring to fig. 5 to 6, the present invention also discloses a device for avoiding data loss caused by abnormal power failure of a solid storage device, including: a first judging unit 10, a second judging unit 20, a first reading unit 30, a third judging unit 40, a moving unit 50, and a returning unit 60;
the first judging unit 10 is configured to judge whether an unstable page remains to be processed;
the second determining unit 20 is configured to determine whether there is a mapping pointing to the unstable page;
the first reading unit 30 for reading the unstable page;
the third judging unit 40 is configured to judge whether reading the unstable page is successful;
the moving unit 50 is used for moving the data to a new page;
the rollback unit 60 is configured to rollback the mapping pointing to the unstable page.
Further, the apparatus further comprises: an ending unit 70 for executing the ending step.
Wherein, the device still includes: a fourth judging unit 80, a second reading unit 90, a fifth judging unit 100, a third acquiring unit 110, a sixth judging unit 120, a recording unit 130, and a creating unit 140;
the fourth judging unit 80 is configured to judge whether there are pages to be scanned;
the second reading unit 90 is configured to read out-of-band data of a page;
the fifth judging unit 100 is configured to judge whether reading out-of-band data of a page succeeds;
the third obtaining unit 110 is configured to obtain a logical address corresponding to a page through out-of-band data;
the sixth judging unit 120 is configured to judge whether a page is an unstable page;
the recording unit 130 is configured to record a current mapping of the logical address;
the creating unit 140 is configured to create a new mapping.
Further, the apparatus further comprises: and a completion unit 150, configured to complete mapping table reconstruction.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation processes of the apparatus and each unit for avoiding data loss of the solid-state storage device due to abnormal power failure may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided here.
The above-mentioned apparatus for avoiding data loss caused by abnormal power failure of the solid-state storage device may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in fig. 7.
Referring to fig. 7, fig. 7 is a schematic block diagram of a computer device according to an embodiment of the present application; the computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 7, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform a method of avoiding data loss in a solid state storage device due to abnormal power down.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 may be enabled to perform a method for avoiding data loss of the solid-state storage device due to abnormal power failure.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 7 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that, in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program comprises program instructions, which when executed by the processor, can implement the above-mentioned method for avoiding data loss of the solid state storage device due to abnormal power failure.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
The technical contents of the present invention are further illustrated by the examples only for the convenience of the reader, but the embodiments of the present invention are not limited thereto, and any technical extension or re-creation based on the present invention is protected by the present invention. The protection scope of the invention is subject to the claims.

Claims (10)

1. The method for avoiding data loss of the solid storage device due to abnormal power failure is characterized by comprising the following steps of:
judging whether unstable pages remain to be processed;
if an unstable page is still to be processed, judging whether a mapping pointing to the unstable page exists;
if the mapping pointing to the unstable page does not exist, returning to the step of judging whether the unstable page is still to be processed;
if the mapping pointing to the unstable page exists, reading the unstable page;
judging whether the unstable page is read successfully;
if the unstable page is successfully read, the data is moved to a new page, and the step of 'judging whether the unstable page is ready for processing' is returned;
if the unstable page is not successfully read, backing the mapping pointing to the unstable page, and returning to the step of judging whether the unstable page is still to be processed.
2. The method for avoiding data loss of the solid storage device due to abnormal power failure according to claim 1, wherein after the step of determining whether an unstable page is pending, the method further comprises: and if the unstable page is not ready to be processed, executing an ending step.
3. The method for avoiding data loss of the solid storage device due to abnormal power failure according to claim 1, wherein before the step of judging whether an unstable page is pending, the method further comprises mapping table reconstruction, and the mapping table reconstruction comprises the following steps:
judging whether pages remain to be scanned;
if the page is to be scanned, reading out-of-band data of the page;
judging whether the out-of-band data of the read page is successful;
if not, returning to the step of judging whether a page is to be scanned or not;
if the reading is successful, acquiring a logical address corresponding to the page through the out-of-band data;
judging whether the page is an unstable page or not;
if the page is stable, creating a new mapping, and returning to the step of judging whether the page is still to be scanned;
if the page is unstable, recording the current mapping of the logical address;
create a new mapping and return to the step "determine if there are more pages to scan".
4. The method for avoiding data loss of the solid storage device due to abnormal power failure according to claim 3, wherein after the step of determining whether pages are to be scanned, the method further comprises: and if no page is to be scanned, rebuilding the mapping table.
5. Avoid solid storage device to lead to data loss's device because of unusual power down, its characterized in that includes: the device comprises a first judging unit, a second judging unit, a first reading unit, a third judging unit, a moving unit and a returning unit;
the first judging unit is used for judging whether unstable pages are still to be processed;
the second judging unit is used for judging whether a mapping pointing to the unstable page exists or not;
the first reading unit is used for reading the unstable page;
the third judging unit is used for judging whether the unstable page is read successfully;
the moving unit is used for moving the data to a new page;
the rollback unit is used for rolling back the mapping pointing to the unstable page.
6. The apparatus for avoiding data loss of a solid state storage device due to abnormal power failure according to claim 5, further comprising: an ending unit for executing the ending step.
7. The apparatus for avoiding data loss of a solid state storage device due to abnormal power failure according to claim 5, further comprising: the device comprises a fourth judging unit, a second reading unit, a fifth judging unit, a third acquiring unit, a sixth judging unit, a recording unit and a creating unit;
the fourth judging unit is used for judging whether pages are to be scanned or not;
the second reading unit is used for reading out-of-band data of the page;
the fifth judging unit is used for judging whether the out-of-band data of the read page is successful or not;
the third obtaining unit is used for obtaining the logical address corresponding to the page through the out-of-band data;
the sixth judging unit is configured to judge whether a page is an unstable page;
the recording unit is used for recording the current mapping of the logical address;
the creating unit is used for creating a new mapping.
8. The apparatus for avoiding data loss of a solid state storage device due to abnormal power failure according to claim 7, further comprising: and the completion unit is used for completing the reconstruction of the mapping table.
9. A computer device, characterized in that the computer device comprises a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the method for avoiding data loss caused by abnormal power failure of the solid state storage device according to any one of claims 1 to 4.
10. A storage medium storing a computer program comprising program instructions which, when executed by a processor, implement the method for avoiding data loss due to abnormal power down of a solid state storage device according to any one of claims 1 to 4.
CN201911147328.5A 2019-11-21 2019-11-21 Method and device for avoiding data loss of solid storage equipment due to abnormal power failure, computer equipment and storage medium Pending CN111104061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911147328.5A CN111104061A (en) 2019-11-21 2019-11-21 Method and device for avoiding data loss of solid storage equipment due to abnormal power failure, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911147328.5A CN111104061A (en) 2019-11-21 2019-11-21 Method and device for avoiding data loss of solid storage equipment due to abnormal power failure, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111104061A true CN111104061A (en) 2020-05-05

Family

ID=70421644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911147328.5A Pending CN111104061A (en) 2019-11-21 2019-11-21 Method and device for avoiding data loss of solid storage equipment due to abnormal power failure, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111104061A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033785A (en) * 2009-10-01 2011-04-27 三星电子株式会社 Memory systems and methods of detecting distribution of unstable memory cells
US20140269053A1 (en) * 2013-03-14 2014-09-18 Lsi Corporation Nonvolatile memory data recovery after power failure
CN106294026A (en) * 2016-08-19 2017-01-04 浪潮(北京)电子信息产业有限公司 Mapping table restoration methods after a kind of solid-state disk powered-off fault and system thereof
CN108228385A (en) * 2016-12-14 2018-06-29 慧荣科技股份有限公司 Data storage device and data maintenance method thereof
CN109977034A (en) * 2017-12-28 2019-07-05 慧荣科技股份有限公司 Data memory device and non-volatile formula memory operating method
CN110308872A (en) * 2019-05-16 2019-10-08 深圳市金泰克半导体有限公司 A kind of solid state hard disk data processing method, device, solid state hard disk and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033785A (en) * 2009-10-01 2011-04-27 三星电子株式会社 Memory systems and methods of detecting distribution of unstable memory cells
US20140269053A1 (en) * 2013-03-14 2014-09-18 Lsi Corporation Nonvolatile memory data recovery after power failure
CN106294026A (en) * 2016-08-19 2017-01-04 浪潮(北京)电子信息产业有限公司 Mapping table restoration methods after a kind of solid-state disk powered-off fault and system thereof
CN108228385A (en) * 2016-12-14 2018-06-29 慧荣科技股份有限公司 Data storage device and data maintenance method thereof
CN109977034A (en) * 2017-12-28 2019-07-05 慧荣科技股份有限公司 Data memory device and non-volatile formula memory operating method
CN110308872A (en) * 2019-05-16 2019-10-08 深圳市金泰克半导体有限公司 A kind of solid state hard disk data processing method, device, solid state hard disk and storage medium

Similar Documents

Publication Publication Date Title
AU2015371849B2 (en) Data reading method and apparatus
CN111880736B (en) Solid state disk access method, device, equipment and medium
CN113391947B (en) SSD RAID stripe power failure rapid recovery method, device, computer equipment and storage medium
CN110825325A (en) Mapping table dynamic loading-based SSD performance improving method and device, computer equipment and storage medium
CN110333971B (en) SSD bad block table backup method and device, computer equipment and storage medium
CN111104246A (en) Method and device for improving verification efficiency of DRAM error detection and correction, computer equipment and storage medium
CN111506452A (en) Data storage protection method and device, computer equipment and storage medium
CN110377276B (en) Source code file management method and device
CN111124314A (en) SSD performance improving method and device for mapping table dynamic loading, computer equipment and storage medium
CN104866388B (en) Data processing method and device
WO2022156369A1 (en) Storage block management information synchronous recording method and system, and terminal and storage medium
CN111338851A (en) Method and device for automatically repairing fault memory startup hPPR, computer equipment and storage medium
CN110865772A (en) Method and device for protecting system data physical block erasure count value, computer equipment and storage medium
CN109634826B (en) Controller limit performance analysis method and device, computer equipment and storage medium
CN112559385A (en) Method and device for improving SSD writing performance, computer equipment and storage medium
CN111104061A (en) Method and device for avoiding data loss of solid storage equipment due to abnormal power failure, computer equipment and storage medium
CN111553847A (en) Image processing method and device
CN110825326A (en) Method and device for improving SSD random reading performance, computer equipment and storage medium
CN113031863B (en) SSD command correlation management method, SSD command correlation management device, computer equipment and storage medium
CN114968297A (en) OTA (over the air) upgrading method, electronic equipment and chip system
CN111857604A (en) Method, apparatus, device and medium for quickly reconstructing packet management mapping reverse lookup table
CN113190472B (en) Method and device for quickly reconstructing NOMAP information of solid-state storage equipment, computer equipment and storage medium
CN111381977A (en) Message processing method and device
CN111782146A (en) Method and device for realizing write cache, computer equipment and storage medium
CN111026332A (en) SSD bad block information protection method and device, computer equipment and 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