CN114924923A - Method, system, equipment and medium for verifying correctness of hard disk write-in point - Google Patents

Method, system, equipment and medium for verifying correctness of hard disk write-in point Download PDF

Info

Publication number
CN114924923A
CN114924923A CN202210577699.2A CN202210577699A CN114924923A CN 114924923 A CN114924923 A CN 114924923A CN 202210577699 A CN202210577699 A CN 202210577699A CN 114924923 A CN114924923 A CN 114924923A
Authority
CN
China
Prior art keywords
write
point
test
partition
address
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
CN202210577699.2A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210577699.2A priority Critical patent/CN114924923A/en
Publication of CN114924923A publication Critical patent/CN114924923A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention provides a method for verifying the correctness of a hard disk write-in point, which comprises the following steps: determining a write-in point of a storage partition through the storage partition, and determining a test interval of the storage partition based on the write-in point; performing write test on the logic block in the test interval, and judging whether the logic block which is successfully written in the test is the same as the logic address of the write-in point or not; and judging the writing point of the storage partition as abnormal in response to that the logical block address of the writing point is the same as the logical address of the logical block with the successful writing test. The correctness verification method for the hard disk write-in point respectively verifies the correctness of WP corresponding to Zone in writable state and WP corresponding to Zone in non-writable state, thereby verifying the correctness of WP and ensuring the correctness and safety of data write-in.

Description

Method, system, equipment and medium for verifying correctness of hard disk write-in point
Technical Field
The invention belongs to the field of computers, and particularly relates to a method, a system, equipment and a medium for verifying the correctness of a hard disk write-in point.
Background
With the development of technologies such as internet, cloud computing, internet of things and the like, solid state disks are widely used as a new generation of storage. However, a new generation of ZNS (partitioned Namespace) SSD realizes a leap-forward in performance, capacity, lifetime, cost, usability, etc., and becomes a new development direction of solid state disk. SSDs using ZNS do not need to be over-configured as traditional enterprise SSDs. The ZNS SSD is also responsible for performing wear leveling, but no longer needs to provide a large spare area for the garbage collection process. With proper use, ZNS allows host software to avoid almost all cases of SSD internal Write Amplification (WA). Enterprise-level SSDs typically use an over-provisioning ratio of up to 28% (800 GB available per 1024GB of flash memory on a typical 3DWPD model), while ZNS SSDs can expose almost all of the capacity to the host system without impacting the ability to have high sustained write performance. The ZNS SSD still needs some spare capacity (e.g. to cope with sudden failures when the flash memory is exhausted), and further in some cases ZNS can be reduced by about 10 times in overload ratio.
In the ZNS specification, the entire LBA (logical block address) range of the SSD namespace is divided into a plurality of equal-length zones, each equal-length LBA Zone becomes a Zone, data must be written in each Zone in a sequential manner, and the position where data starts to be written is not arbitrary, so as to avoid the phenomenon of data random writing such as overwriting, the ZNS specification strictly defines the position where data starts to be written, that is, Write Pointer, abbreviated as WP, and in order to ensure the correctness of data writing, we need to further verify the WP defined by the ZNS specification to ensure the correctness of the data writing.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method for verifying correctness of a hard disk write point, comprising:
determining a writing point of the storage partition through the storage partition, and determining a test interval of the storage partition based on the writing point;
performing write test on the logic block in the test interval, and judging whether the logic address of the logic block which is successfully written in the test is the same as the logic address of the write-in point;
and judging the write point of the storage partition as abnormal in response to the fact that the logical address of the logical block which is successfully written in the test is the same as the logical address of the write point.
In some embodiments of the present invention, determining the test interval of the memory partition based on the write point comprises:
and determining the test interval according to the type and the size of the storage partition and/or the adjacent storage partition based on the write-in point.
In some embodiments of the present invention, determining the test interval according to the type of the memory partition and/or the neighboring memory partition and the size thereof comprises:
and determining the logical block address of the writing point of the storage partition, and moving the logical block address forwards and backwards by corresponding distances according to the size of the storage partition to be used as a test interval.
In some embodiments of the present invention, determining the test interval according to the type of the memory partition and/or the adjacent memory partition and the size thereof further comprises:
and acquiring the write-in points of adjacent partitions, and taking the logic block address of the write-in points of the adjacent partitions as the test interval.
In some embodiments of the present invention, determining the test interval according to the type of the memory partition and/or the adjacent memory partition and the size thereof further comprises:
and acquiring writing points and boundaries of adjacent partitions, and taking the logic block addresses of the writing points and the boundaries as the test interval.
In some embodiments of the present invention, performing a write test on the logic block in the test interval, and determining whether the logic block successfully subjected to the write test is the same as the logic address of the write point includes:
traversing all the logic block addresses in the test interval, and writing data into the logic block addresses;
and receiving a result of writing data into the logic block address, and judging whether the logic block address of the successfully written data is the same as the logic block address of the writing point of the storage partition.
In some embodiments of the invention, the method further comprises:
and receiving a result of writing data into the logic block address, and judging whether the logic block address of the successfully written data is the same as the logic block address of the writing point of the adjacent storage partition.
Another aspect of the present invention further provides a system for verifying correctness of a hard disk write point, including:
the test interval generation module is configured to determine a write point of a storage partition through the storage partition, and determine a test interval of the storage partition based on the write point;
the write-in test module is configured to perform write-in test on the logic block in the test interval and judge whether the logic address of the logic block successfully subjected to the write-in test is the same as the logic address of the write-in point;
and the write-in test judgment module is configured to respond that the logical address of the logical block with successful write-in test is the same as the logical address of the write-in point, and judge the write-in point of the storage partition as abnormal.
Yet another aspect of the present invention also provides a computer apparatus, including:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any of the above embodiments.
Yet another aspect of the present invention further provides a computer-readable storage medium, which stores a computer program, and the computer program realizes the steps of the method of any one of the above embodiments when executed by a processor.
The correctness verification method for the hard disk write-in point provided by the invention respectively verifies the correctness of WP by verifying the correctness of WP corresponding to the Zone in the writable state and the WP corresponding to the Zone in the non-writable state, thereby ensuring the correctness and the safety of data write-in.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for verifying correctness of a hard disk write point according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a prior art ZNS SSD usage reference;
FIG. 3 is a block diagram of a system for verifying correctness of a hard disk write point according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
ZNS storage technology is developed from OC (Open Channel) SSD, and realizes that FTL (Flash Translation Layer) is migrated from the inside of SSD to Host end of upper Layer, and the inside of SSD is opened to the Host end, so that users can flexibly own specific FTL according to own needs, and the cost is that software architecture must be redesigned, the cost is very high, and the requirement on technical strength of users is also very high.
The ZNS is a structure that the whole storage space of the solid state disk is equally divided into a plurality of partitions with the same size, that is, a zone, each zone partition includes a plurality of logical blocks, each logical block corresponds to one logical block address, that is, an LBA, but unlike the conventional SSD storage technology, the ZNS directly interfaces the solid state disk to an operating system or an application program on an upper layer through the LBA, so that in order to facilitate the use of an upper layer application, only the LBA is used as a data storage and index structure interfacing with the upper layer application. In this implementation, the storage space can be directly provided to the application program, and the application program exclusively uses the space allocated to the application program, as shown in fig. 2, the left side of fig. 2 is a conventional solid state control structure, the application program (which broadly includes an operating system) needs to store corresponding data through a controller of the SSD, and the conventional implementation cannot determine the location where the data is stored by the application program, and the data is stored through a management mechanism implemented by the SSD controller when the data is written into the SSD, that is, if a certain application program on the computer writes data into the SSD, the written data is written into different areas according to a scheduling policy of the SSD controller according to a time relationship. In contrast, the ZNS SSD, as shown on the right side of fig. 2, may be divided into fixed storage areas, for example, the application 2 has the right to use the storage space in the middle dotted line.
However, due to the requirement of sequential writing in a zone, when the same zone is written in multiple threads, the writing speed is limited or the writing position is incorrect due to competition of writing pointers between threads, and therefore, the correctness check of the writing pointers of the corresponding zones is required.
As shown in fig. 1, to solve the above problems, the present invention provides a method for verifying correctness of a hard disk write point, including:
step S1, determining a write-in point of the storage partition through the storage partition, and determining a test interval of the storage partition based on the write-in point;
step S1, performing write test on the logic block in the test interval, and judging whether the logic address of the logic block successfully subjected to the write test is the same as the logic address of the write-in point;
and step S2, in response to that the logical address of the logical block which is successfully written in the test is the same as the logical address of the writing point, determining the writing point of the storage partition as abnormal.
In the embodiment of the present invention, in step S1, the storage partition refers to a zone partition in the ZNS SSD, and since there is one write point per zone partition, the zone partition may be referred to as a test partition for its write point test. The write point refers to a write point of the zone partition, and as described above, due to the characteristics of the ZNS SSD, data of the zone partition is written in a sequential manner, and when the data is written into the zone partition, the corresponding write point needs to be acquired.
Further, in the present invention, the test interval refers to a plurality of LBA address ranges including the write point. The logical block refers to the smallest unit of storage in a zone partition, and each unit of storage corresponds to one logical block address, namely LBA. After the corresponding write point needing to be verified is obtained, an address space in a certain range before and after the write point is used as a test interval. If the LBA address of the write point is 21, several LBA addresses before and after 21 are used as a test space, that is, a range from LBA addresses 15 to 26 may be used as a test interval.
In step S2, traverse the LBA addresses in the test interval, and write data to the LBA addresses in the test interval, and if the write is successful, determine whether the LBA addresses that are successfully written are the same as the logical address of the write point.
If the LBA address of the write-in point is different from the LBA address written successfully, according to the specification of the ZNS SSD, a plurality of write-in points exist in a zone partition, namely, a write-in point error exists. According to the mechanism of the ZNS SSD, after an error write point is used as a start address of write data, the phenomenon of abnormal write data can be caused. There is some data that will be overwritten.
In some embodiments of the present invention, determining the test interval of the memory partition based on the write point comprises:
and determining the test interval according to the type and the size of the storage partition and/or the adjacent storage partition based on the write-in point.
In some embodiments of the invention, determining the test interval according to the type of the memory partition and/or the neighboring memory partition and the size thereof comprises:
and determining the logical block address of the writing point of the storage partition, and moving the logical block address forwards and backwards by corresponding distances according to the size of the storage partition to be used as a test interval.
In the present embodiment, the range of the test interval is selected to be determined according to the size of the test zone partition and the type of the adjacent zone partition.
In the ZNS SSD, there are 3 types of zone partitions related to correctness of writing points, one empty type that the whole zone partition is empty, one openend type that partial data is stored in the partition, and the other full type that the data in the partition is stored enough data and cannot store other data. Thus, in some embodiments of the invention, the size of the test interval is set according to the number of logical blocks of the test partition, i.e. if the tested zone partition has 10 logical blocks and the LBA address is [21,30], the test interval may be the entire zone partition, i.e. [21,30 ]. If the write point of the zone is 21, the test interval may be [11,30 ].
In some embodiments of the present invention, if the type of the partition to be tested is empty, its write point is the first logical block of the partition, and if its neighboring partition is also empty, assuming that the partition size is 10, the interval of the test partition is [21,30], and the address space of the previous partition is [11,20], then the test interval is an interval of 10 LBA sizes around the write point 21, i.e., [11, 21,30 ].
In some embodiments of the present invention, determining the test interval according to the type of the memory partition and/or the neighboring memory partition and the size thereof further comprises:
and acquiring the write-in points of adjacent partitions, and taking the logic block address of the write-in points of the adjacent partitions as the test interval.
In this embodiment, if the test partition is of an opened type, the write point of the test partition is within a certain address space range in the zone partition. At this time, if the partition types of the adjacent partitions are all opened, the addresses of the write points of the two adjacent partitions may be used as the test interval of the test partition for the test interval of the test partition.
Specifically, if the write point of the test partition is 26(LBA address, the same below), the write point of the previous zone is 15, and the write point of the next zone is 33, the test interval of the test partition may be [15,32], and data is written into the address space of [15,32], and if the logical blocks in the test interval are all normal, data is written into the logical block with the LBA address of 26 successfully, but data cannot be written into other LBA addresses.
In some embodiments of the present invention, when the test interval is traversed to perform the write data test, the write point of the test partition needs to be skipped, and finally, the write point is subjected to the write data test.
In some embodiments of the present invention, determining the test interval according to the type of the memory partition and/or the neighboring memory partition and the size thereof further comprises:
and acquiring a write-in point and a boundary of adjacent partitions, and taking the logic block address of the write-in point and the boundary as the test interval.
In this embodiment, a write point of a partition of adjacent partitions and a boundary of another partition are used as test intervals. Specifically, if the type of the left zone partition of the test partition is an opened partition and the right partition is an empty partition, the write point of the partition on the left side of the test partition (sorted in the order of LBA addresses) may be the start address, and the entire partition on the right side of the test partition may be the test interval.
Correspondingly, if the left side of the test partition is empty partition or full partition, and the right side is opened partition, the boundary of the partition on the left side, i.e. the write point, is used as the start address of the test interval, and the write point of the partition on the right side is used as the end address of the test interval.
In some embodiments of the present invention, performing a write test on the logic block in the test interval, and determining whether the logic block successfully subjected to the write test is the same as the logic address of the write point includes:
traversing all the logic block addresses in the test interval, and writing data into the logic block addresses;
and receiving a result of writing data into the logic block address, and judging whether the logic block address of the successfully written data is the same as the logic block address of the writing point of the storage partition.
In this embodiment, as described above, traversing all the logical addresses in the test interval, writing data to each logical address, and receiving corresponding write feedback, if the write is successful, determining whether the write address is the same as the corresponding write point, and if the write successful LBA address is the same as the write point, it indicates that the write point is normal, and if the write successful LBA address is different from the write point LBA address, it indicates that an LBA address with a write point error exists in the test interval, and immediately processes the data of the test partition or masks the partition.
In some embodiments of the invention, the method further comprises:
and receiving a result of writing data into the logical block address, and judging whether the logical block address of the write-in point of the adjacent storage partition is the same as the logical block address of the write-in point of the adjacent storage partition.
In this embodiment, if the test interval covers multiple zone partitions, it is determined whether the LBA address where the write test is successful in the test interval is the same as the address of the write point of the zone partition covered, and the LBA address where the write test is successful is compared with the write point of the adjacent partition. If the data is the same, the successful writing point of the written data is correct. The difference indicates that a write point error exists in the zone partition corresponding to the LBA address.
The correctness verification method for the hard disk write-in point respectively verifies the correctness of WP corresponding to Zone in writable state and WP corresponding to Zone in non-writable state, thereby verifying the correctness of WP and ensuring the correctness and safety of data write-in.
Another aspect of the present invention further provides a system for verifying correctness of a hard disk write point, including:
the test interval generating module 1 is configured to determine a write point of a storage partition through the storage partition, and determine a test interval of the storage partition based on the write point;
the write test module 2 is configured to perform a write test on the logic block in the test interval, and determine whether a logic address of the logic block successfully subjected to the write test is the same as a logic address of the write point;
and the write-in test judgment module 3 is configured to respond that the logical address of the logical block with a successful write-in test is the same as the logical address of the write-in point, and determine the write-in point of the storage partition as abnormal.
In some embodiments of the present invention, the test interval generation module 1 is further configured to:
and determining the test interval according to the type and the size of the storage partition and/or the adjacent storage partition based on the write-in point.
In some embodiments of the present invention, the test interval generation module 1 is further configured to:
and determining the logical block address of the writing point of the storage partition, and moving the logical block address forwards and backwards by corresponding distances according to the size of the storage partition to be used as a test interval.
In some embodiments of the present invention, the test interval generation module 1 is further configured to:
and acquiring the write-in points of adjacent partitions, and taking the logic block address of the write-in points of the adjacent partitions as the test interval.
In some embodiments of the present invention, the test interval generation module 1 is further configured to:
acquiring write points and boundaries of adjacent partitions, and taking the logic block addresses of the write points and the boundaries as the test interval
In some embodiments of the invention, the write test module configuration 2 is configured to:
traversing all the logic block addresses in the test interval, and writing data into the logic block addresses;
and receiving a result of writing data into the logic block address, and judging whether the logic block address of the successfully written data is the same as the logic block address of the writing point of the storage partition.
In some embodiments of the present invention, the write test determining module 3 is further configured to:
and receiving a result of writing data into the logical block address, and judging whether the logical block address of the write-in point of the adjacent storage partition is the same as the logical block address of the write-in point of the adjacent storage partition.
Yet another aspect of the present invention also provides a computer apparatus, including:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing a hard disk write point correctness verification method comprising:
determining a writing point of the storage partition through the storage partition, and determining a test interval of the storage partition based on the writing point;
performing write test on the logic block in the test interval, and judging whether the logic address of the logic block which is successfully written in the test is the same as the logic address of the write-in point;
and judging the writing point of the memory partition as abnormal in response to the fact that the logical address of the logical block which is successfully written in the test is the same as the logical address of the writing point.
In some embodiments of the present invention, determining the test interval of the memory partition based on the write point comprises:
and determining the test interval according to the type and the size of the storage partition and/or the adjacent storage partition based on the write-in point.
In some embodiments of the present invention, determining the test interval according to the type of the memory partition and/or the neighboring memory partition and the size thereof comprises:
determining the logical block address of a writing point of the storage partition, and moving the logical block address forward and backward by a corresponding distance according to the size of the storage partition to be used as a test interval;
in some embodiments of the present invention, determining the test interval according to the type of the memory partition and/or the neighboring memory partition and the size thereof further comprises:
and acquiring a write-in point of an adjacent partition, and taking the logic block address of the write-in point of the adjacent partition as the test interval.
In some embodiments of the present invention, determining the test interval according to the type of the memory partition and/or the neighboring memory partition and the size thereof further comprises:
acquiring writing points and boundaries of adjacent partitions, and taking the logic block addresses of the writing points and the boundaries as the test interval
In some embodiments of the present invention, performing a write test on the logic block in the test interval, and determining whether the logic block successfully subjected to the write test is the same as the logic address of the write point includes:
traversing all the logic block addresses in the test interval, and writing data into the logic block addresses;
and receiving a result of writing data into the logical block address, and judging whether the logical block address of the write-in point of the memory partition is the same as the logical block address of the write-in point of the memory partition.
In some embodiments of the invention, the method further comprises:
and receiving a result of writing data into the logic block address, and judging whether the logic block address of the successfully written data is the same as the logic block address of the writing point of the adjacent storage partition.
Yet another aspect of the present invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements a method for verifying correctness of a hard disk write point, including:
determining a writing point of the storage partition through the storage partition, and determining a test interval of the storage partition based on the writing point;
performing write test on the logic block in the test interval, and judging whether the logic address of the logic block which is successfully written in the test is the same as the logic address of the write-in point;
and judging the writing point of the memory partition as abnormal in response to the fact that the logical address of the logical block which is successfully written in the test is the same as the logical address of the writing point.
In some embodiments of the present invention, determining the test interval of the memory partition based on the write point comprises:
and determining the test interval according to the type and the size of the storage partition and/or the adjacent storage partition based on the write-in point.
In some embodiments of the present invention, determining the test interval according to the type of the memory partition and/or the neighboring memory partition and the size thereof comprises:
determining the logical block address of the write-in point of the storage partition, and moving the logical block address forward and backward by a corresponding distance according to the size of the storage partition to serve as a test interval;
in some embodiments of the present invention, determining the test interval according to the type of the memory partition and/or the neighboring memory partition and the size thereof further comprises:
and acquiring the write-in points of adjacent partitions, and taking the logic block address of the write-in points of the adjacent partitions as the test interval.
In some embodiments of the present invention, determining the test interval according to the type of the memory partition and/or the neighboring memory partition and the size thereof further comprises:
acquiring writing points and boundaries of adjacent partitions, and taking the logic block addresses of the writing points and the boundaries as the test interval
In some embodiments of the present invention, performing a write test on the logic block in the test interval, and determining whether the logic block successfully subjected to the write test is the same as the logic address of the write point includes:
traversing all the logic block addresses in the test interval, and writing data into the logic block addresses;
and receiving a result of writing data into the logical block address, and judging whether the logical block address of the write-in point of the memory partition is the same as the logical block address of the write-in point of the memory partition.
In some embodiments of the invention, the method further comprises:
and receiving a result of writing data into the logical block address, and judging whether the logical block address of the write-in point of the adjacent storage partition is the same as the logical block address of the write-in point of the adjacent storage partition.
The foregoing are exemplary embodiments of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of an embodiment of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for verifying correctness of a hard disk write point is characterized by comprising the following steps:
determining a writing point of the storage partition through the storage partition, and determining a test interval of the storage partition based on the writing point;
performing write test on the logic block in the test interval, and judging whether the logic address of the logic block which is successfully written in the test is the same as the logic address of the write-in point;
and judging the write point of the storage partition as abnormal in response to the fact that the logical address of the logical block which is successfully written in the test is the same as the logical address of the write point.
2. The method of claim 1, wherein determining the test interval for the memory partition based on the write point comprises:
and determining the test interval according to the type and the size of the storage partition and/or the adjacent storage partition based on the write-in point.
3. The method of claim 2, wherein the determining the test interval according to the type of the memory partition and/or the neighboring memory partition and the size thereof comprises:
and determining the logical block address of the writing point of the storage partition, and moving the logical block address forwards and backwards by corresponding distances according to the size of the storage partition to be used as a test interval.
4. The method of claim 2, wherein said determining the test interval according to the type and size of the memory partition and/or the neighboring memory partition further comprises:
and acquiring a write-in point of an adjacent partition, and taking the logic block address of the write-in point of the adjacent partition as the test interval.
5. The method of claim 2, wherein determining the test interval according to the type of the memory partition and/or the neighboring memory partition and the size thereof further comprises:
and acquiring a write-in point and a boundary of adjacent partitions, and taking the logic block address of the write-in point and the boundary as the test interval.
6. The method of claim 1, wherein performing a write test on the logic block in the test interval, and determining whether the logic block successfully subjected to the write test and the logic address of the write point are the same comprises:
traversing all the logic block addresses in the test interval, and writing data into the logic block addresses;
and receiving a result of writing data into the logic block address, and judging whether the logic block address of the successfully written data is the same as the logic block address of the writing point of the storage partition.
7. The method of claim 6, further comprising:
and receiving a result of writing data into the logical block address, and judging whether the logical block address of the write-in point of the adjacent storage partition is the same as the logical block address of the write-in point of the adjacent storage partition.
8. A system for verifying correctness of a write point of a hard disk, comprising:
the test interval generation module is configured to determine a write point of a storage partition through the storage partition, and determine a test interval of the storage partition based on the write point;
the write-in test module is configured to perform write-in test on the logic block in the test interval and judge whether the logic address of the logic block which is successfully written in the test is the same as the logic address of the write-in point;
and the write-in test judgment module is configured to respond that the logical address of the logical block with successful write-in test is the same as the logical address of the write-in point, and judge the write-in point of the storage partition as abnormal.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202210577699.2A 2022-05-25 2022-05-25 Method, system, equipment and medium for verifying correctness of hard disk write-in point Pending CN114924923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210577699.2A CN114924923A (en) 2022-05-25 2022-05-25 Method, system, equipment and medium for verifying correctness of hard disk write-in point

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210577699.2A CN114924923A (en) 2022-05-25 2022-05-25 Method, system, equipment and medium for verifying correctness of hard disk write-in point

Publications (1)

Publication Number Publication Date
CN114924923A true CN114924923A (en) 2022-08-19

Family

ID=82809834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210577699.2A Pending CN114924923A (en) 2022-05-25 2022-05-25 Method, system, equipment and medium for verifying correctness of hard disk write-in point

Country Status (1)

Country Link
CN (1) CN114924923A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117075810A (en) * 2023-08-18 2023-11-17 武汉麓谷科技有限公司 ZNS solid state disk-based data management method
CN117854580A (en) * 2024-03-06 2024-04-09 深圳玖合精工科技有限公司 Method, device, equipment and storage medium for rapidly detecting hard disk bad track
CN117854580B (en) * 2024-03-06 2024-05-31 深圳玖合精工科技有限公司 Method, device, equipment and storage medium for rapidly detecting hard disk bad track

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117075810A (en) * 2023-08-18 2023-11-17 武汉麓谷科技有限公司 ZNS solid state disk-based data management method
CN117854580A (en) * 2024-03-06 2024-04-09 深圳玖合精工科技有限公司 Method, device, equipment and storage medium for rapidly detecting hard disk bad track
CN117854580B (en) * 2024-03-06 2024-05-31 深圳玖合精工科技有限公司 Method, device, equipment and storage medium for rapidly detecting hard disk bad track

Similar Documents

Publication Publication Date Title
US10459814B2 (en) Drive extent based end of life detection and proactive copying in a mapped RAID (redundant array of independent disks) data storage system
CN110531940B (en) Video file processing method and device
CN103019888B (en) Backup method and device
KR101870521B1 (en) Methods and systems for improving storage journaling
US10120769B2 (en) Raid rebuild algorithm with low I/O impact
JP2005122338A (en) Disk array device having spare disk drive, and data sparing method
KR20110001881A (en) Bit error threshold and remapping a memory device
KR20110001883A (en) Bit error threshold and content addressable memory to address a remapped memory device
KR101090394B1 (en) Solid State Storage System For Controlling of Reserved Area Flexibly and Method of Controlling the Same
US11086565B2 (en) Reducing effects of read array operations of read apparent voltage
US10324794B2 (en) Method for storage management and storage device
CN103425589A (en) Control apparatus, storage device, and storage control method
US11436159B2 (en) Using multi-tiered cache to satisfy input/output requests
CN113419685B (en) RAID creation based on SMR, data writing aiming at RAID and RAID recovery method
CN108255414B (en) Solid state disk access method and device
US11989452B2 (en) Read-disturb-based logical storage read temperature information identification system
CN102981969A (en) Method for deleting repeated data and solid hard disc thereof
CN110673789A (en) Metadata storage management method, device, equipment and storage medium of solid state disk
US11922067B2 (en) Read-disturb-based logical storage read temperature information maintenance system
CN114924923A (en) Method, system, equipment and medium for verifying correctness of hard disk write-in point
US9977599B2 (en) Data deduplication with support for both thick and thin provisioning of storage objects
JP2011008663A (en) Storage control device and data recovery method of storage device
US11922020B2 (en) Read-disturb-based read temperature information persistence system
US6813687B1 (en) Raid volume for sequential use that needs no redundancy pre-initialization
JP6556980B2 (en) Storage control device, storage control method, and storage control program

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