CN110275800B - SSD data physical backup method and device, computer equipment and storage medium - Google Patents

SSD data physical backup method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110275800B
CN110275800B CN201910536357.4A CN201910536357A CN110275800B CN 110275800 B CN110275800 B CN 110275800B CN 201910536357 A CN201910536357 A CN 201910536357A CN 110275800 B CN110275800 B CN 110275800B
Authority
CN
China
Prior art keywords
data
command
ssd
backed
physical
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
Application number
CN201910536357.4A
Other languages
Chinese (zh)
Other versions
CN110275800A (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.)
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 CN201910536357.4A priority Critical patent/CN110275800B/en
Publication of CN110275800A publication Critical patent/CN110275800A/en
Application granted granted Critical
Publication of CN110275800B publication Critical patent/CN110275800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • 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/0604Improving or facilitating administration, e.g. storage management
    • 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/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]

Abstract

The invention relates to a physical backup method, a device, computer equipment and a storage medium of SSD data, wherein the method comprises the steps of obtaining a first command; returning physical composition information of the SSD according to the first command; acquiring a second command; processing the internal data of the SSD according to the second command to obtain data to be backed up; feeding back data to be backed up to a file corresponding to the host; judging whether the internal data of the SSD are completely backed up or not; and if not, returning to obtain the second command. The invention realizes the physical backup of the internal data of the SSD, so as to meet the requirements of special scenes, can carry out fault analysis or debugging, can carry out subsequent applications such as failure analysis, fault recurrence and the like based on the backed-up data, and greatly improves the reliability of the SSD.

Description

SSD data physical backup method and device, computer equipment and storage medium
Technical Field
The invention relates to a solid state disk, in particular to a method and a device for physically backing up SSD data, a computer device and a storage medium.
Background
SSD (Solid State Drive) has been widely used in various occasions, and is gradually replacing a conventional hard disk due to its excellent indexes in performance, power consumption, environmental adaptability, and the like.
Due to the erasing and writing characteristics of the NAND, data cannot be directly modified at the stored physical address, the NAND address needs to be reallocated for new data writing, and a logical-to-physical address table is needed to maintain the mapping relationship in order to track the latest data written by the host. The whole read command flow is shown in fig. 1, where the host submits a read command to the front-end module of the SSD; the SSD front-end module divides the command into mapping units; submitting an operation request to a mapping table management module; the mapping table management module is responsible for converting the logical address into the NAND physical address; submitting an operation request to a back-end module, and initiating a NAND reading request by the back-end module according to the physical address; waiting for the NAND read operation request to be completed, and loading the data into the NAND buffer at the moment; after the data is read, the transfer of the data from the NAND buffer to the host is initiated. In this process, as shown in fig. 2, each unit capable of independent concurrent operation has a buffer, and when data is read, the data is loaded into the buffer from an internal block and then transmitted to the controller through the NAND interface.
As shown in fig. 3, the data types physically stored inside the SSD include system management data, user garbage data, and user valid data, where the system management data, such as bad block table, statistical information, mapping table, etc., is essential for the SSD to operate normally, but these data are only visible inside the SSD, and the host cannot access the data through a conventional logical data access path; user garbage data is data that is overwritten by the host, and because there is a new copy of the data, the old data is marked as garbage data, such as at time t0, writing directly to logical address LBA0 to physical address PPA _0, and at time t1, writing again to logical address LBA0 to physical address PPA _1, the data in physical address PPA _0 is marked as garbage data, and as such, these data are only visible inside the SSD and the host cannot access the data through the regular logical data access path; user valid data is the most recent data written by the host, which can be accessed by the host through conventional logical data access paths. As shown in FIG. 4, a physical page typically contains 16KB +2200 bytes, where 16KB becomes the main data area, logically used to store user data; 2200 bytes is an auxiliary data area logically used to store some auxiliary data; the physical page is logically divided into 4 cells, each consisting of: data: storing user data written by a host or SSD internal system management data; meta information data: SSD management data one, such as a timestamp, logical address information, etc.; error correction data: redundant data for data protection and error correction.
The host accesses internal data of the SSD based on the logical address, the SSD is converted into a physical address according to a mapping table relation to access the data, the NAND stores some system data besides user data, the information cannot be accessed, in a special scene, in order to perform fault analysis or debugging, all data on the NAND needs to be deeply analyzed, namely, when the host accesses through the logical address, only part of data area can be accessed, and if and only the latest user valid data is stored in the data area; and the meta information data and the error correction data cannot be accessed, and failure analysis or scene reconstruction cannot be performed.
Therefore, it is necessary to design a new method for implementing physical backup of SSD internal data to meet the requirement of special scenarios, and performing fault analysis or debugging.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a device for physically backing up SSD data, computer equipment and a storage medium.
In order to achieve the purpose, the invention adopts the following technical scheme: the SSD data physical backup method comprises the following steps:
acquiring a first command;
returning physical composition information of the SSD according to the first command;
acquiring a second command;
processing the internal data of the SSD according to the second command to obtain data to be backed up;
feeding back the data to be backed up to a file corresponding to the host;
judging whether the internal data of the SSD are completely backed up or not;
if not, returning to the second acquiring command.
The further technical scheme is as follows: the physical composition information includes a number of channels, a number of die storage areas under each channel, a number of independently erasable units per independently concurrently operable unit, a number of physical pages per independently erasable unit, and a size of each physical page.
The further technical scheme is as follows: the second command includes specific physical address information.
The further technical scheme is as follows: the physical address information includes a channel, a die storage area, an independently erasable unit, a physical page, an offset amount within the physical page, and an indication of an amount of data read from within the physical page.
The further technical scheme is as follows: the processing the internal data of the SSD according to the second command to obtain the data to be backed up comprises:
reading data at a corresponding position inside the SSD according to the second command;
and intercepting the data corresponding to the offset in the physical page of the second command for the data to obtain the data to be backed up.
The further technical scheme is as follows: the feeding back the data to be backed up to the file corresponding to the host comprises:
and storing the data to be backed up into the file created by the host.
The invention also provides a device for physically backing up the SSD data, which comprises:
a first acquisition unit configured to acquire a first command;
an information returning unit for returning the physical composition information of the SSD according to the first command;
a second acquisition unit configured to acquire a second command;
the processing unit is used for processing the internal data of the SSD according to the second command to obtain data to be backed up;
the feedback unit is used for feeding back the data to be backed up to the file corresponding to the host;
the judging unit is used for judging whether the internal data of the SSD are completely backed up; if not, returning to the second acquiring command.
The further technical scheme is as follows: the processing unit includes:
the reading subunit is used for reading the data at the corresponding position inside the SSD according to the second command;
and the intercepting subunit is used for intercepting the data corresponding to the offset in the physical page of the second command for the data so as to obtain the data to be backed up.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor realizes the method when executing the computer program.
The invention also provides a storage medium storing a computer program which, when executed by a processor, is operable to carry out the method as described above.
Compared with the prior art, the invention has the beneficial effects that: according to the invention, the physical composition information of the solid state disk is read by the first command issued by the host to the solid state disk, the data to be backed up is fed back to the host according to the second command received by the solid state disk, and the physical backup of the data of the solid state disk is carried out by the host until all the data in the solid state disk are backed up, so that the physical backup of the internal data of the SSD is realized, the requirement of special scenes is met, the fault analysis or debugging can be carried out, the subsequent applications such as failure analysis and fault recurrence can be carried out based on the backed-up data, and the reliability of the SSD is greatly improved.
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 flow diagram illustrating the internal processing of a read command SSD according to the prior art;
FIG. 2 is a prior art NAND composition schematic;
FIG. 3 is a schematic diagram of the types of data physically stored inside a SSD of the prior art;
FIG. 4 is a diagram illustrating data in a physical read/write unit according to the prior art;
fig. 5 is a schematic view of an application scenario of the SSD data physical backup method according to the embodiment of the present invention;
fig. 6 is a schematic flowchart of a method for physically backing up SSD data according to an embodiment of the present invention;
fig. 7 is a schematic sub-flow chart of a method for physically backing up SSD data according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of an SSD data physical backup device according to an embodiment of the invention;
fig. 9 is a schematic block diagram of a processing unit of an SSD data physical backup device according to an embodiment of the invention;
FIG. 10 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.
Referring to fig. 5 and fig. 6, fig. 5 is a schematic view of an application scenario of the SSD data physical backup method according to the embodiment of the invention. Fig. 6 is a schematic flowchart of a method for physically backing up SSD data according to an embodiment of the present invention. The SSD data physical backup method is applied to a solid state disk, the solid state disk and a host carry out data interaction, and after a command is obtained from the host, the data is intercepted and output and is stored in the host to complete the physical backup of the data.
Fig. 6 is a flowchart illustrating a method for physically backing up SSD data according to an embodiment of the present invention. As shown in fig. 6, the method includes the following steps S110 to S160.
And S110, acquiring a first command.
In this embodiment, the first command refers to a command issued by the host to the solid state disk and used for acquiring physical composition information of the solid state disk, such as VU _ Get _ Device _ Config; wherein the command is custom formed by the user.
And S120, returning the physical composition information of the SSD according to the first command.
In this embodiment, the physical composition information of the SSD is information showing all data compositions and physical composition components of the solid state disk.
Specifically, the physical composition information of the SSD includes the number of channels, the number of die storage areas under each channel, the number of independently erasable units under each independently concurrently operable unit, the number of physical pages under each independently erasable unit, and the size of each physical page.
When the solid state disk responds to a user-defined command issued by the host, the following contents are returned:
the number of channels CH _ NUM; the number of wafer storage areas CE _ NUM under each channel; the number of independently erasable units Block _ NUM under each independently concurrently operable unit; the physical Page number amount Page _ NUM under each independently erasable cell number; size of each physical Page Size. According to the information returned by the solid state disk, the host can know the data volume of the solid state disk which needs to be physically backed up.
And S130, acquiring a second command.
In this embodiment, the second command refers to specific physical address information of the data currently being backed up.
The physical address information includes a channel, a die storage area, an independently erasable unit, a physical page, an offset amount within the physical page, and an indication of an amount of data read from within the physical page.
The second command is issued by the host to the solid state disk, and the second command is user-defined, such as VU _ Get _ Device _ Physical _ Data, and the second command includes the following parameters:
CH _ Index 0-CH _ NUM-1, i.e., indicating which channel; CE _ Index 0-CE _ NUM-1, which indicates which die storage area; block _ Index 0-Block _ NUM-1, which indicates which independently erasable units; page _ Index 0-Page _ NUM-1, i.e., indicating which physical Page; page _ Offset is 0-Page _ Size-1, i.e., indicating the physical intra-Page Offset; data _ Len, which indicates the amount of Data read from the page.
And S140, processing the internal data of the SSD according to the second command to obtain the data to be backed up.
In this embodiment, the data to be backed up refers to data that is intercepted from the internal data of the SSD and needs to be physically backed up.
In an embodiment, referring to fig. 7, the step S140 may include steps S141 to S142.
S141, reading data at a corresponding position inside the SSD according to the second command;
and S142, intercepting the data corresponding to the offset in the physical page of the second command from the data to obtain the data to be backed up.
And the second command issued by the host carries physical address information of the data, and after the data at the corresponding position is read from the SSD according to the physical address information carried in the second command, the data at the corresponding offset is intercepted according to the offset in the physical page, so that the data to be backed up is achieved.
S150, feeding back the data to be backed up to the file corresponding to the host.
In this embodiment, the data to be backed up is stored in a file created by the host.
And the solid state disk returns data with specified position, specified offset and length according to a user-defined second command issued by the host, namely returns data to be backed up. And the host creates and writes each file, typically creates a file for each physical block, and writes the data of each physical page in sequence, that is, writes the obtained data to be backed up into the corresponding file, thereby avoiding the occurrence of errors in the sequence of the data during backup.
Specifically, the corresponding data to be backed up can be stored in the host in a data storage manner corresponding to the data storage position of the emulated solid state disk, so as to improve the success rate of physical data backup.
S160, judging whether the internal data of the SSD are completely backed up or not;
if not, returning to the step S130;
if yes, entering the ending step.
And carrying out physical backup on the data in the solid state disk according to the backup mode until the feedback and backup of all the physical data are completed. By physically backing up the SSD internal data, all physical data on the SSD can be acquired. Based on the backed-up data, subsequent failure analysis, failure reproduction and other applications can be carried out, and the reliability of the SSD is greatly improved.
According to the SSD data physical backup method, the physical composition information of the solid state disk is read through the first command issued by the host to the solid state disk, the data to be backed up is fed back to the host according to the second command received by the solid state disk, the host is used for carrying out physical backup on the solid state disk data until all data in the solid state disk are backed up, the physical backup on the SSD internal data is realized, the requirement of special scenes is met, fault analysis or debugging can be carried out, based on the backed-up data, subsequent applications such as failure analysis and fault recurrence can be carried out, and the reliability of the SSD is greatly improved.
Fig. 8 is a schematic block diagram of an SSD data physical backup device 300 according to an embodiment of the invention. As shown in fig. 8, the present invention also provides an SSD data physical backup device 300 corresponding to the above SSD data physical backup method. The SSD data physical backup device 300 includes a unit for executing the above SSD data physical backup method, and the device may be configured in a solid state disk.
Specifically, referring to fig. 8, the SSD data physical backup device 300 includes:
a first acquisition unit 301 configured to acquire a first command;
an information returning unit 302 for returning physical composition information of the SSD according to the first command;
a second obtaining unit 303 configured to obtain a second command;
the processing unit 304 is configured to process the SSD internal data according to the second command to obtain data to be backed up;
a feedback unit 305, configured to feed back the data to be backed up to a file corresponding to the host;
a determining unit 306, configured to determine whether all the data in the SSD is backed up; if not, returning to the second acquiring command.
In one embodiment, as shown in fig. 9, the processing unit 304 includes:
a reading subunit 3041, configured to read, according to the second command, data at a corresponding location inside the SSD;
an intercepting subunit 3042, configured to intercept, for the data, data corresponding to the offset in the physical page of the second command, so as to obtain data to be backed up.
It should be noted that, as can be clearly understood by those skilled in the art, for the specific implementation process of the SSD data physical backup device 300 and each unit, reference may be made to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
The above-described SSD data physical backup apparatus 300 may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a device with a solid state disk.
Referring to fig. 10, 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 physical backup method of SSD data.
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 execute a physical backup method for SSD data.
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. 10 is a block diagram of only a portion of the configuration relevant to the present teachings and is not intended to limit the computing device 500 to which the present teachings may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
acquiring a first command;
returning physical composition information of the SSD according to the first command;
acquiring a second command;
processing the internal data of the SSD according to the second command to obtain data to be backed up;
feeding back the data to be backed up to a file corresponding to the host;
judging whether the internal data of the SSD are completely backed up or not;
if not, returning to the second acquiring command.
Wherein the physical composition information includes a number of channels, a number of die storage areas per channel, a number of independently erasable units per independently concurrently operable unit, a number of physical pages per independently erasable unit, and a size of each physical page.
The second command includes specific physical address information.
The physical address information includes a channel, a die storage area, an independently erasable unit, a physical page, an offset amount within the physical page, and an indication of an amount of data read from within the physical page.
In an embodiment, when implementing the step of processing the internal data of the SSD according to the second command to obtain the data to be backed up, the processor 502 specifically implements the following steps:
reading data at a corresponding position inside the SSD according to the second command;
and intercepting the data corresponding to the offset in the physical page of the second command for the data to obtain the data to be backed up.
In an embodiment, when implementing the step of feeding back the data to be backed up to the file corresponding to the host, the processor 502 specifically implements the following steps:
and storing the data to be backed up into the file created by the host.
It should be understood that, in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit 304 (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, when executed by a processor, causes the processor to perform the steps of:
acquiring a first command;
returning physical composition information of the SSD according to the first command;
acquiring a second command;
processing the internal data of the SSD according to the second command to obtain data to be backed up;
feeding back the data to be backed up to a file corresponding to the host;
judging whether the internal data of the SSD are completely backed up or not;
if not, returning to the second acquiring command.
Wherein the physical composition information includes a number of channels, a number of die storage areas per channel, a number of independently erasable units per independently concurrently operable unit, a number of physical pages per independently erasable unit, and a size of each physical page.
The second command includes specific physical address information.
The physical address information includes a channel, a die storage area, an independently erasable unit, a physical page, an offset amount within the physical page, and an indication of an amount of data read from within the physical page.
In an embodiment, when the processor executes the computer program to implement the step of processing the SSD internal data according to the second command to obtain the data to be backed up, the following steps are specifically implemented:
reading data at a corresponding position inside the SSD according to the second command;
and intercepting the data corresponding to the offset in the physical page of the second command for the data to obtain the data to be backed up.
In an embodiment, when the processor executes the computer program to implement the step of feeding back the data to be backed up to the file corresponding to the host, the following steps are specifically implemented:
and storing the data to be backed up into the file created by the host.
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.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

  1. A physical backup method for SSD data, comprising:
    acquiring a first command;
    returning physical composition information of the SSD according to the first command;
    acquiring a second command;
    processing the internal data of the SSD according to the second command to obtain data to be backed up;
    feeding back the data to be backed up to a file corresponding to the host;
    judging whether the internal data of the SSD are completely backed up or not;
    if not, returning to the second command;
    the physical composition information comprises the number of channels, the number of wafer storage areas under each channel, the number of independently erasable units under each independently concurrently operable unit, the number of physical pages under each independently erasable unit, and the size of each physical page;
    according to the information returned by the solid state disk, the host can know the data volume of the solid state disk which needs to be physically backed up.
  2. 2. The method of claim 1, wherein the second command includes specific physical address information.
  3. 3. The method of claim 2 wherein the physical address information includes a channel, a die storage area, an independently erasable unit, a physical page, an offset within a physical page, and an indication of an amount of data read from within the physical page.
  4. 4. The physical backup method for SSD data according to any of claims 1 to 3, wherein the processing internal data of the SSD according to the second command to obtain data to be backed up comprises:
    reading data at a corresponding position inside the SSD according to the second command;
    and intercepting the data corresponding to the offset in the physical page of the second command for the data to obtain the data to be backed up.
  5. 5. The method of claim 1, wherein the feeding back the data to be backed up to a file corresponding to a host includes:
    and storing the data to be backed up into the file created by the host.
  6. A physical backup apparatus for SSD data, comprising:
    a first acquisition unit configured to acquire a first command;
    an information returning unit for returning the physical composition information of the SSD according to the first command;
    a second acquisition unit configured to acquire a second command;
    the processing unit is used for processing the internal data of the SSD according to the second command to obtain data to be backed up;
    the feedback unit is used for feeding back the data to be backed up to the file corresponding to the host;
    the judging unit is used for judging whether the internal data of the SSD are completely backed up; if not, returning to the second command;
    the physical composition information comprises the number of channels, the number of wafer storage areas under each channel, the number of independently erasable units under each independently concurrently operable unit, the number of physical pages under each independently erasable unit, and the size of each physical page;
    according to the information returned by the solid state disk, the host can know the data volume of the solid state disk which needs to be physically backed up.
  7. 7. The physical backup arrangement of SSD data of claim 6, wherein the processing unit comprises:
    the reading subunit is used for reading the data at the corresponding position inside the SSD according to the second command;
    and the intercepting subunit is used for intercepting the data corresponding to the offset in the physical page of the second command for the data so as to obtain the data to be backed up.
  8. 8. A computer arrangement, characterized in that the computer arrangement comprises a memory having stored thereon a computer program and a processor implementing the method according to any of claims 1-5 when executing the computer program.
  9. 9. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 5.
CN201910536357.4A 2019-06-20 2019-06-20 SSD data physical backup method and device, computer equipment and storage medium Active CN110275800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910536357.4A CN110275800B (en) 2019-06-20 2019-06-20 SSD data physical backup method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910536357.4A CN110275800B (en) 2019-06-20 2019-06-20 SSD data physical backup method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110275800A CN110275800A (en) 2019-09-24
CN110275800B true CN110275800B (en) 2021-06-08

Family

ID=67961274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910536357.4A Active CN110275800B (en) 2019-06-20 2019-06-20 SSD data physical backup method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110275800B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI791966B (en) * 2020-03-27 2023-02-11 瑞昱半導體股份有限公司 Data processing method and memory controller utilizing the same
CN111913835A (en) * 2020-07-30 2020-11-10 深圳忆联信息系统有限公司 Data multi-backup storage method and device based on cross mapping, computer equipment and storage medium
CN112817533A (en) * 2021-01-29 2021-05-18 深圳忆联信息系统有限公司 SSD management method, device computer equipment and storage medium
CN113268205B (en) * 2021-05-28 2023-02-03 海信集团控股股份有限公司 Vehicle-mounted data storage method and device and vehicle-mounted electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159800A (en) * 2015-09-10 2015-12-16 华为技术有限公司 Data recovery method, data backup method, data recovery equipment, data backup equipment, data recovery system and data backup system
CN105630704A (en) * 2015-06-10 2016-06-01 上海磁宇信息科技有限公司 Storage device and read-write method applying block-based logic physical address comparison table
WO2018119901A1 (en) * 2016-12-29 2018-07-05 华为技术有限公司 Storage system and solid state hard disk
CN109086006A (en) * 2018-07-24 2018-12-25 浪潮电子信息产业股份有限公司 A kind of method and relevant apparatus of reading data
CN109460186A (en) * 2018-11-02 2019-03-12 深圳忆联信息系统有限公司 A kind of method and its system promoting solid state hard disk reading performance

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9075957B2 (en) * 2008-08-04 2015-07-07 Sandisk Il Ltd. Backing up digital content that is stored in a secured storage device
CN108073475A (en) * 2016-11-15 2018-05-25 广明光电股份有限公司 The method of the solid state disk backup table of comparisons
US10761937B2 (en) * 2017-09-21 2020-09-01 Western Digital Technologies, Inc. In-field adaptive drive recovery
CN108664218A (en) * 2018-04-23 2018-10-16 浙江大华技术股份有限公司 A kind of SSD storage methods based on data characteristics, apparatus and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630704A (en) * 2015-06-10 2016-06-01 上海磁宇信息科技有限公司 Storage device and read-write method applying block-based logic physical address comparison table
CN105159800A (en) * 2015-09-10 2015-12-16 华为技术有限公司 Data recovery method, data backup method, data recovery equipment, data backup equipment, data recovery system and data backup system
WO2018119901A1 (en) * 2016-12-29 2018-07-05 华为技术有限公司 Storage system and solid state hard disk
CN109086006A (en) * 2018-07-24 2018-12-25 浪潮电子信息产业股份有限公司 A kind of method and relevant apparatus of reading data
CN109460186A (en) * 2018-11-02 2019-03-12 深圳忆联信息系统有限公司 A kind of method and its system promoting solid state hard disk reading performance

Also Published As

Publication number Publication date
CN110275800A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN110275800B (en) SSD data physical backup method and device, computer equipment and storage medium
US9874918B2 (en) Power interrupt management
US8495338B2 (en) Transaction log recovery
KR101562781B1 (en) Self-journaling and hierarchical consistency for non-volatile storage
US10372619B2 (en) Data backup method, data recovery method and storage controller
CN109710451B (en) Firmware event tracking for NAND-based storage devices, methods and instruction sets for performing same
AU2015371849A1 (en) Data reading method and apparatus
US20150052415A1 (en) Data storage device, operating method thereof and data processing system including the same
US11630769B2 (en) Data processing method for controlling write speed of memory device to avoid significant write delay and data storage device utilizing the same
KR20180130229A (en) Data storage device and operating method thereof
KR20200113992A (en) Apparatus and method for reducing cell disturb in open block of the memory system during receovery procedure
CN111399750B (en) Flash memory data writing method and computer readable storage medium
US20190227738A1 (en) Integrated circuit memory devices with enhanced buffer memory utilization during read and write operations and methods of operating same
US20150052290A1 (en) Data storage device and operating method thereof
CN106055488B (en) Data storage device and operation method thereof
US11662940B2 (en) Data storage device and data processing method for restoring MLC/TLC memory to avoid degradation of access performance of a memory device caused by word line short
KR101756228B1 (en) Memory apparatus
KR102102248B1 (en) Method for testing performance of solid state drivce emulator
TWI814625B (en) Data storage device and method for managing write buffer
TWI810095B (en) Data storage device and method for managing write buffer
US20230026712A1 (en) Generating system memory snapshot on memory sub-system with hardware accelerated input/output path
CN113703671B (en) Data block erasing method and related device
CN101697285B (en) Method and system for debugging hardware of memory device
KR101467302B1 (en) Method for Fast Booting with Error Detection Table and System using the same
KR101467309B1 (en) Method for Storage Management by Error Detection Table Creation and System using the same

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