Search

CN-121979451-A - Data patrol method and system

CN121979451ACN 121979451 ACN121979451 ACN 121979451ACN-121979451-A

Abstract

The application relates to the technical field of storage and discloses a data patrol method and a system, wherein patrol configuration information is acquired through a RAID controller, and patrol instructions are generated based on the patrol configuration information, wherein the patrol instructions comprise patrol modes, storage equipment determines patrol time based on the patrol instructions, the patrol time is sent to the RAID controller, and patrol results are determined based on the patrol modes, the RAID controller generates inquiry instructions based on the patrol time, so that the patrol results are acquired based on the inquiry instructions, the data integrity of the storage equipment can be determined based on the patrol results, the bandwidth occupied by the whole read data is reduced, and the data patrol speed between the RAID and the storage equipment is improved.

Inventors

  • FANG HAOJUN
  • WANG LU
  • HUANG YUNXIN

Assignees

  • 深圳大普微电子股份有限公司

Dates

Publication Date
20260505
Application Date
20251231

Claims (11)

  1. 1. The data patrol method is characterized by being applied to a data patrol system, wherein the system comprises a RAID controller and at least two storage devices which are in communication connection with the RAID controller, the storage devices comprise a data storage module, and the method comprises the following steps: The RAID controller acquires patrol configuration information and generates patrol instructions based on the patrol configuration information, wherein the patrol instructions comprise patrol modes; the storage equipment determines the patrol time based on the patrol instruction, sends the patrol time to the RAID controller, and determines a patrol result based on the patrol mode; And the RAID controller generates a query instruction based on the patrol time so as to acquire the patrol result based on the query instruction.
  2. 2. The method of claim 1, wherein the patrol mode comprises a full patrol mode or a fast patrol mode or an ultra-fast patrol mode; The determining the patrol result based on the patrol mode includes: If the patrol mode in the patrol instruction is a comprehensive patrol mode, the RAID controller acquires data corresponding to the patrol instruction from the storage device to obtain the patrol result, wherein the patrol result comprises the data corresponding to the patrol instruction; If the patrol mode in the patrol instruction is a fast patrol mode or an ultra-fast patrol mode, decomposing the patrol instruction into at least two read operation instructions, and acquiring data corresponding to the at least two read operation instructions from the data storage module by the storage device based on the patrol instruction, checking the data corresponding to the at least two read operation instructions to obtain at least two first check results, and aggregating the at least two check results to obtain an aggregation result to obtain the patrol result, wherein the patrol result comprises the aggregation result.
  3. 3. The method of claim 2, wherein the storage device comprises a storage device controller comprising a front end module and a back end module connected to each other, the back end module being connected to the data storage module; The comprehensive patrol mode corresponds to a first path range, wherein the first path range is that data sequentially passes through the storage equipment and the RAID controller; the quick patrol mode corresponds to a second path range, and the second path range sequentially passes through the data storage module, the rear end module and the front end module in the storage equipment; The ultra-fast patrol mode corresponds to a third path range, and the third path range sequentially passes through the data storage module and the back-end module in the storage device.
  4. 4. The method of claim 3, wherein verifying the data corresponding to the at least two read operation instructions to obtain at least two first verification results comprises: if the patrol mode in the patrol instruction is a fast patrol mode, the front-end module checks data corresponding to at least two read operation instructions to obtain at least two first check results; and if the patrol mode in the patrol instruction is an ultrafast patrol mode, the back-end module checks the data corresponding to at least two read operation instructions to obtain at least two first check results.
  5. 5. The method of claim 3, wherein if the patrol mode in the patrol instruction is a full patrol mode, the method further comprises: And the RAID controller checks the data corresponding to the patrol instruction in the patrol result to obtain a second check result.
  6. 6. The data patrol system is characterized by comprising a RAID controller and at least two storage devices, wherein the RAID controller comprises a first patrol module, and the storage devices comprise a storage device controller and a data storage module; The first patrol module is connected with the storage device and used for acquiring patrol configuration information to generate patrol instructions, wherein the patrol instructions comprise patrol modes and patrol logic block numbers; the storage device controller is connected with the first patrol module, and is used for determining patrol time based on the patrol instruction, sending the patrol time to the first patrol module, setting the current patrol mode of the storage device based on the patrol instruction, and determining patrol results based on the patrol mode; The first patrol module is further configured to generate a query instruction after the patrol time is spaced, and send the query instruction to the storage device to obtain a patrol result returned by the storage device.
  7. 7. The system of claim 6, wherein the patrol mode comprises a full patrol mode or a fast patrol mode or an ultra-fast patrol mode, and the first patrol module comprises a first configuration module, a first management control module, and a result check module; The first configuration module is connected with the first management control module and is used for configuring the time periods of the comprehensive patrol mode, the rapid patrol mode and the ultra-rapid patrol mode; The first management control module is connected with the first configuration module, the result checking module and the storage device and is used for generating the patrol instruction, sending the patrol instruction to the storage device, and generating the query instruction after the patrol time is separated so as to receive the patrol result sent by the storage device; the result checking module is connected with the first management control module and used for checking the patrol result to obtain a second checking result, and sending the second checking result to the first management control module for judgment.
  8. 8. The system of claim 7, wherein the storage device comprises a cache space, and the storage device controller comprises a front-end module, a second patrol module, a data processing module, an algorithm module, and a back-end module; when the patrol mode in the patrol instruction is a full patrol mode: the front end module is connected with the first patrol module and is used for receiving patrol instructions of the first patrol module; the data processing module is connected with the algorithm module and is used for sending at least two read operation instructions to the algorithm module, wherein the read operation instructions comprise logic block addresses; The algorithm module is connected with the data processing module and the back-end module and is used for converting a logical block address in a read operation instruction into a physical address; The back-end module is connected with the algorithm module and the data storage module and is used for acquiring data corresponding to the read operation instruction from the data storage module based on the physical address, caching the data corresponding to the read operation instruction in the cache space and transmitting the data corresponding to the read operation instruction to the first patrol module by the front-end module.
  9. 9. The system of claim 8, wherein when the patrol mode in the patrol instruction is a fast patrol mode: The front end module is connected with the first patrol module and the second patrol module and is used for receiving patrol instructions of the first patrol module and sending the patrol instructions to the second patrol module; The second patrol module is connected with the front-end module and the data processing module and is used for decomposing the patrol instruction into at least two read operation instructions and sending the at least two read operation instructions to the data processing module; the data processing module is connected with the algorithm module and is used for sending at least two read operation instructions to the algorithm module, wherein the read operation instructions comprise logic block addresses; The algorithm module is connected with the data processing module and the back-end module and is used for converting a logical block address in a read operation instruction into a physical address; The back-end module is connected with the algorithm module and the data storage module and is used for acquiring data corresponding to the read operation instruction from the data storage module based on the physical address and caching the data corresponding to the read operation instruction in the cache space. The front-end module is further used for respectively checking the data corresponding to each reading operation instruction to generate at least two third checking results, and sending the at least two third checking results to the second patrol module; And the second inspection module is used for carrying out aggregation treatment on at least two third verification results to obtain an aggregation result, and sending the aggregation result to the front-end module.
  10. 10. The system of claim 9, wherein the system further comprises a controller configured to control the controller, When the patrol mode in the patrol instruction is an ultrafast patrol mode: The front end module is connected with the first patrol module and the second patrol module and is used for receiving patrol instructions of the first patrol module and sending the patrol instructions to the second patrol module; the second patrol module is connected with the front end module, the algorithm module and the back end module and is used for decomposing the patrol instruction into at least two read operation instructions, and the at least two read operation instructions are sent to the back end module after the physical address is obtained from the algorithm module; the back end module is connected with the second patrol module and is used for respectively checking the data corresponding to each read operation instruction to generate at least two fourth check results, and sending the at least two fourth check results to the second patrol module; the second inspection module is connected with the back-end module and used for carrying out aggregation treatment on at least two fourth verification results to obtain an aggregation result, and the aggregation result is sent to the front-end module.
  11. 11. The system of claim 9, wherein the second patrol module comprises a second management control module, a second configuration module, a command distribution module, a result aggregation module; The second management control module is connected with the second configuration module, the command distribution module, the result aggregation module, the data processing module, the front end module and the back end module and is used for sending the patrol instruction to the second configuration module, the command distribution module, receiving at least two third check results and sending at least two third check results to the result aggregation module; the second configuration module is connected with the front-end module and the second management control module and is used for setting the current patrol mode of the storage equipment based on the patrol instruction; The command distribution module is connected with the second management control module and is used for decomposing the patrol command into at least two read operation commands, sending the at least two read operation commands to the second management control module, and sending the at least two read operation commands to the data processing module or the back-end module by the second management control module; And the result aggregation module is connected with the second management control module and is used for carrying out aggregation treatment on at least two third verification results to obtain an aggregation result.

Description

Data patrol method and system Technical Field The embodiment of the application relates to the technical field of storage, in particular to a data patrol method and system. Background The redundant array of independent disks technology (Redundant Array of INDEPENDENT DISKS, RAID) combines a plurality of disks to form a unified logic storage unit, so that the optimization and improvement of the performance, the reliability and the capacity of a storage system are realized, and data Patrol (PR) is a core maintenance function of a RAID array controller, and mainly determines whether a hardware medium fails or not by pre-Patrol data on the RAID array so as to ensure the integrity of the data. At present, when the RAID performs patrol on the Solid state disk (Solid STATE DISK, SSD), all addresses of each SSD are traversed, data are read, and then the correctness of the data is checked through the RAID internal controller, so that the total read method has high system overhead, namely, a large amount of bandwidth resources between the RAID and the storage device are occupied, the bandwidth utilization rate between the RAID and the SSD is reduced, so that the patrol is performed for a long time in the prior art, and the risk of delayed error discovery is brought to the long time. Disclosure of Invention In order to solve the technical problems, the embodiments of the present application provide a data patrol method and system, which perform patrol in different modes for data integrity of different paths, so that errors can be found early, and the data integrity of a storage device can be determined based on the patrol result, so that the bandwidth occupied by the total read data is reduced, and the data patrol rate between RAID and the storage device is improved. In order to solve the technical problems, the embodiment of the application provides the following technical scheme: in a first aspect, an embodiment of the present application provides a data patrol method, which is characterized in that the method is applied to a data patrol system, the system includes a RAID controller and at least two storage devices communicatively connected to the RAID controller, the RAID controller is communicatively connected to the storage devices, the storage devices include a data storage module, and the method includes: the RAID controller acquires the patrol configuration information and generates a patrol instruction based on the patrol configuration information, wherein the patrol instruction comprises a patrol mode; The storage device determines the patrol time based on the patrol instruction, sends the patrol time to the RAID controller, and determines a patrol result based on the patrol mode; And the RAID controller generates a query instruction based on the patrol time so as to acquire a patrol result based on the query instruction. In some embodiments, the patrol mode includes a full patrol mode or a fast patrol mode or an ultra-fast patrol mode; based on the patrol mode, determining a patrol result includes: If the patrol mode in the patrol instruction is a comprehensive patrol mode, the RAID controller acquires data corresponding to the patrol instruction from the storage device to obtain a patrol result, wherein the patrol result comprises the data corresponding to the patrol instruction; If the patrol mode in the patrol instruction is a fast patrol mode or an ultra-fast patrol mode, decomposing the patrol instruction into at least two read operation instructions, acquiring data corresponding to the at least two read operation instructions from the data storage module by the storage device based on the patrol instruction, checking the data corresponding to the at least two read operation instructions to obtain at least two first check results, and aggregating the at least two check results to obtain an aggregation result, wherein the patrol result comprises the aggregation result. In some embodiments, a storage device includes a storage device controller including a front-end module and a back-end module coupled to each other, the back-end module coupled to a data storage module; The comprehensive patrol mode corresponds to a first path range, wherein the first path range is that data sequentially passes through the storage equipment and the RAID controller; the quick patrol mode corresponds to a second path range, and the second path range sequentially passes through the data storage module, the rear end module and the front end module in the storage equipment; The ultra-fast patrol mode corresponds to a third path range, and the third path range sequentially passes through the data storage module and the back-end module in the storage device. In some embodiments, verifying data corresponding to at least two read operation instructions to obtain at least two first verification results includes: If the patrol mode in the patrol instruction is a fast patrol mode, the front-end module checks the data corresponding to