CN113741811A - Reconstruction method, system, equipment and medium of disk array of storage system - Google Patents

Reconstruction method, system, equipment and medium of disk array of storage system Download PDF

Info

Publication number
CN113741811A
CN113741811A CN202110876405.1A CN202110876405A CN113741811A CN 113741811 A CN113741811 A CN 113741811A CN 202110876405 A CN202110876405 A CN 202110876405A CN 113741811 A CN113741811 A CN 113741811A
Authority
CN
China
Prior art keywords
bitmap
disk array
reconstructed
reconstruction
stripe
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.)
Withdrawn
Application number
CN202110876405.1A
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 CN202110876405.1A priority Critical patent/CN113741811A/en
Publication of CN113741811A publication Critical patent/CN113741811A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0689Disk arrays, e.g. RAID, JBOD
    • 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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0611Improving I/O performance in relation to response time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • 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
    • G06F3/0634Configuration or reconfiguration of storage systems by changing the state or mode of one or more devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses a reconstruction method, a system, equipment and a medium of a disk array of a storage system, wherein the reconstruction method comprises the following steps: creating a reconstruction bitmap and an effective area bitmap based on the disk array; in response to the input and output writing of the strip of the disk array, marking the strip of the effective area bitmap corresponding to the strip of the input and output writing as an effective area; responding to the disk offline in the disk array, sequentially traversing the strips of the reconstructed bitmap and the strips of the effective area bitmap, and judging whether the corresponding strips of the disk array need to be reconstructed or not based on the currently traversed strips of the reconstructed bitmap and the currently traversed strips of the effective area bitmap; reconstructing a strip of a corresponding disk array which needs to be reconstructed, and updating a currently traversed strip of a reconstructed bitmap; and continuing to traverse to complete the reconstruction of the disk array. By the scheme of the invention, the direct full-disk data reconstruction during reconstruction is avoided, the reconstruction time is reduced, the reconstruction efficiency is improved, and the safety and the reliability of the storage system are improved.

Description

Reconstruction method, system, equipment and medium of disk array of storage system
Technical Field
The present invention relates to the field of storage system technologies, and in particular, to a method, a system, a device, and a medium for reconstructing a disk array of a storage system.
Background
RAID (Redundant Arrays of Independent Disks) is divided into hard RAID (based on a hardware RAID card and integrating a certain RAID algorithm) and soft RAID (based on software to realize RAID). The RAID consists of a large number of storage units (hard disks), a plurality of disks in the storage system form an array, the storage system is used as a single disk, data are stored in different disks in a strip mode, and when the data are accessed, related disks in the array act together, so that the data access time is greatly reduced, and meanwhile, the space utilization rate is better.
With the continuous improvement of global informatization degree, mass high-value data is generated in an accelerated manner, data generated inside enterprises and needed to be stored are increased rapidly, and the exponentially-increased high-value data provides a lot of challenges for IT departments of the enterprises. In order to deal with data safety, a hot spare disk is added to the RAID and serves as array redundancy fault tolerance, when a hard disk in an array is suddenly damaged, the hot spare disk can replace the damaged hard disk, and at the moment, data of the damaged hard disk is reconstructed onto the hot spare disk by using other member disks through a data verification and recovery algorithm, and the process is the data reconstruction process.
In a traditional storage system, when a disk is offline in a RAID, if a hot spare disk exists in the system, a reconstruction process of the RAID is triggered, that is, data of the offline disk is restored and reconstructed based on full disk data, at this time, there are defects that a data volume is large, a recovery time is slow, and a system io (input output) read-write performance is poor (resources are left for reading and rewriting old data) in a recovery process.
Disclosure of Invention
In view of this, the present invention provides a method, a system, a device, and a medium for reconstructing a disk array of a storage system, which avoid directly reconstructing full disk data, reduce reconstruction time, improve reconstruction efficiency, and improve security and reliability of the storage system.
Based on the above object, an aspect of the embodiments of the present invention provides a method for reconstructing a disk array of a storage system, which specifically includes the following steps:
creating a reconstruction bitmap and an effective area bitmap based on a disk array, wherein the disk array, the reconstruction bitmap and the effective area bitmap all comprise strips;
in response to the input and output writing of the strip of the disk array, marking the strip of the effective area bitmap corresponding to the strip of the input and output writing as an effective area;
responding to the disk offline in the disk array, sequentially traversing the strips of the reconstructed bitmap and the strips of the effective area bitmap, and judging whether the corresponding strips of the disk array need to be reconstructed or not based on the currently traversed strips of the reconstructed bitmap and the currently traversed strips of the effective area bitmap;
if the reconstruction is needed, reconstructing the corresponding stripe of the disk array, and updating the currently traversed stripe of the reconstructed bitmap;
and continuously traversing the strips of the reconstruction bitmap and the strips of the effective area bitmap until the traversal is finished to finish the reconstruction of the disk array.
In some embodiments, creating the reconstruction bitmap and the effective area bitmap based on the disk array further includes:
marking the strips of each of the reconstruction bitmaps as not reconstructed and marking the strips of each of the valid region bitmaps as invalid regions.
In some embodiments, determining whether a corresponding stripe of the disk array needs to be reconstructed based on the currently traversed stripe of the reconstruction bitmap and the currently traversed stripe of the active area bitmap includes:
if the currently traversed strip of the reconstructed bitmap is not reconstructed and the currently traversed strip of the effective area bitmap is an effective area, determining that the corresponding strip of the disk array needs to be reconstructed;
otherwise, the corresponding stripe of the disk array is determined not to need to be reconstructed, and the reconstructed bitmap and the next stripe of the effective region bitmap are traversed.
In some embodiments, reconstructing the corresponding stripe of the disk array includes:
reading data of a strip corresponding to an online disk in a disk array, and recovering data of an offline disk;
and rewriting the recovered data of the offline disc to the corresponding strip of the disk array.
In some embodiments, updating the current stripe of the reconstructed bitmap comprises:
marking a current stripe of the reconstruction bitmap as a complete reconstruction.
In some embodiments, the method further comprises:
in response to the disk array being completely reconstructed, marking the strip of the reconstruction bitmap as not reconstructed.
In some embodiments, creating a reconstruction bitmap and an active area bitmap based on a disk array includes:
and creating the reconstruction bitmap and the effective region bitmap based on the size of the disk array and with the stripe size of the disk array as granularity.
In another aspect of the embodiments of the present invention, a system for reconstructing a disk array of a storage system is further provided, including:
the system comprises a creating module, a processing module and a processing module, wherein the creating module is configured to create a reconstruction bitmap and an effective area bitmap based on a disk array, and the disk array, the reconstruction bitmap and the effective area bitmap all comprise strips;
a marking module configured to mark a stripe of an effective area bitmap corresponding to a stripe of an input-output write as an effective area in response to the stripe of the disk array being input-output written;
the first traversal module is configured to sequentially traverse a band of a reconstructed bitmap and a band of an effective area bitmap in response to the fact that a disk in the disk array is offline, and judge whether the corresponding band of the disk array needs to be reconstructed or not based on the currently traversed band of the reconstructed bitmap and the currently traversed band of the effective area bitmap;
a reconstruction module configured to reconstruct the corresponding stripe of the disk array and update a currently traversed stripe of the reconstructed bitmap if reconstruction is required;
a second traversal module configured to continue traversing the strip of the reconstruction bitmap and the strip of the active area bitmap until traversal is complete to complete reconstruction of the disk array.
In some embodiments, creating the reconstruction bitmap and the effective area bitmap based on the disk array further includes:
marking the strips of each of the reconstruction bitmaps as not reconstructed and marking the strips of each of the valid region bitmaps as invalid regions.
In some embodiments, determining whether a corresponding stripe of the disk array needs to be reconstructed based on the currently traversed stripe of the reconstruction bitmap and the currently traversed stripe of the active area bitmap includes:
if the currently traversed strip of the reconstructed bitmap is not reconstructed and the currently traversed strip of the effective area bitmap is an effective area, determining that the corresponding strip of the disk array needs to be reconstructed;
otherwise, the corresponding stripe of the disk array is determined not to need to be reconstructed, and the reconstructed bitmap and the next stripe of the effective region bitmap are traversed.
In some embodiments, reconstructing the corresponding stripe of the disk array includes:
reading data of a strip corresponding to an online disk in a disk array, and recovering data of an offline disk;
and rewriting the recovered data of the offline disc to the corresponding strip of the disk array.
In some embodiments, updating the current stripe of the reconstructed bitmap comprises:
marking a current stripe of the reconstruction bitmap as a complete reconstruction.
In some embodiments, the system further comprises an initialization module configured to: in response to the disk array being completely reconstructed, marking the strip of the reconstruction bitmap as not reconstructed.
In some embodiments, creating a reconstruction bitmap and an active area bitmap based on a disk array includes:
and creating the reconstruction bitmap and the effective region bitmap based on the size of the disk array and with the stripe size of the disk array as granularity.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing a computer program executable on the processor, the computer program when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: by constructing the reconstruction bitmap and the effective region bitmap, marking the effective region generated in the input/output writing process in the effective region bitmap and utilizing the effective region bitmap field reconstruction bitmap to cooperatively process the reconstruction of the offline disk, the direct full disk data reconstruction during reconstruction is avoided, the reconstruction time is reduced, the reconstruction efficiency is improved, and the safety and the reliability of the storage system are improved.
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, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a block diagram of an embodiment of a disk array reconfiguration method for a storage system according to the present invention;
FIG. 2 is a schematic diagram of an embodiment of a disk array reconfiguration system for a storage system according to the present invention;
FIG. 3 is a schematic structural diagram of an embodiment of a computer device provided in the present invention;
fig. 4 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided in 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.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above objects, a first aspect of the embodiments of the present invention provides an embodiment of a method for reconstructing a disk array of a storage system. As shown in fig. 1, it includes the following steps:
step S101, a reconstruction bitmap and an effective area bitmap are created based on a disk array, wherein the disk array, the reconstruction bitmap and the effective area bitmap all comprise strips;
step S103, responding to the input and output writing of the strip of the disk array, and marking the strip of the effective area bitmap corresponding to the strip of the input and output writing as an effective area;
step S105, responding to the disk offline in the disk array, sequentially traversing the strips of the reconstructed bitmap and the strips of the effective area bitmap, and judging whether the corresponding strips of the disk array need to be reconstructed or not based on the currently traversed strips of the reconstructed bitmap and the currently traversed strips of the effective area bitmap;
step S107, if reconstruction is needed, reconstructing the corresponding strip of the disk array, and updating the currently traversed strip of the reconstructed bitmap;
and step S109, continuously traversing the strips of the reconstruction bitmap and the strips of the effective area bitmap until the traversal is finished to complete the reconstruction of the disk array.
Specifically, a reconstruction bitmap and an effective area bitmap are created based on the disk array. The data in the disk array is stored in strips in the disks constituting the disk array; recording whether the corresponding stripe in the disk array is reconstructed or not in the reconstruction bitmap by the stripe, wherein the stripe is marked with 0/1, 0 represents that the reconstruction is completed, 1 represents that the reconstruction is not completed, and when the reconstruction bitmap is created, all the stripes in the reconstruction bitmap are marked with 1, namely are not reconstructed; whether the current stripe is a valid area is marked by a stripe in the valid area bitmap, wherein the current stripe is marked by 0/1, 0 represents a valid area and represents an invalid area, all stripes in the valid area bitmap are marked as 1, namely, the invalid area when the valid area bitmap is created, and the corresponding stripe in the valid area bitmap is marked as the valid area when the stripe in the disk array is input and output written. Responding to the disk offline in the disk array, sequentially traversing the strips of the reconstructed bitmap and the strips of the effective area bitmap, judging whether the corresponding strips of the disk array need to be reconstructed or not based on the currently traversed strips of the reconstructed bitmap and the currently traversed strips of the effective area bitmap, if so, reconstructing the corresponding strips of the disk array, updating the currently traversed strips of the reconstructed bitmap, and continuously traversing the strips of the reconstructed bitmap and the strips of the effective area bitmap until the traversal is finished to complete the reconstruction of the disk array.
According to the method, the reconstruction bitmap and the effective region bitmap are constructed, the effective region generated in the input/output writing process is marked in the effective region bitmap, the reconstruction of the offline disk is cooperatively processed by the effective region bitmap region reconstruction bitmap, the situation that full disk data reconstruction is directly carried out during reconstruction is avoided, the reconstruction time is shortened, the reconstruction efficiency is improved, and the safety and the reliability of the storage system are improved.
In some embodiments, creating the reconstruction bitmap and the effective area bitmap based on the disk array further includes:
marking the strips of each of the reconstruction bitmaps as not reconstructed and marking the strips of each of the valid region bitmaps as invalid regions.
In some embodiments, determining whether a corresponding stripe of the disk array needs to be reconstructed based on the currently traversed stripe of the reconstruction bitmap and the currently traversed stripe of the active area bitmap includes:
if the currently traversed strip of the reconstructed bitmap is not reconstructed and the currently traversed strip of the effective area bitmap is an effective area, determining that the corresponding strip of the disk array needs to be reconstructed;
otherwise, the corresponding stripe of the disk array is determined not to need to be reconstructed, and the reconstructed bitmap and the next stripe of the effective region bitmap are traversed.
In some embodiments, reconstructing the corresponding stripe of the disk array includes:
reading data of a strip corresponding to an online disk in a disk array, and recovering data of an offline disk;
and rewriting the recovered data of the offline disc to the corresponding strip of the disk array.
In some embodiments, updating the current stripe of the reconstructed bitmap comprises:
marking a current stripe of the reconstruction bitmap as a complete reconstruction.
In some embodiments, the method further comprises:
in response to the disk array being completely reconstructed, marking the strip of the reconstruction bitmap as not reconstructed.
In some embodiments, creating a reconstruction bitmap and an active area bitmap based on a disk array includes:
and creating the reconstruction bitmap and the effective region bitmap based on the size of the disk array and with the stripe size of the disk array as granularity.
In another aspect of the embodiments of the present invention, a system for reconstructing a disk array of a storage system is further provided, including:
a creating module 10, where the creating module 10 is configured to create a reconstruction bitmap and an effective area bitmap based on a disk array, where the disk array, the reconstruction bitmap, and the effective area bitmap all include a stripe;
a marking module 20, wherein the marking module 20 is configured to mark a stripe of an effective area bitmap corresponding to the stripe of the input/output write as an effective area in response to the stripe of the disk array being input/output written;
a first traversal module 30, where the first traversal module 30 is configured to sequentially traverse a stripe of a reconstructed bitmap and a stripe of an effective area bitmap in response to a disk offline in a disk array, and determine whether a corresponding stripe of the disk array needs to be reconstructed based on a currently traversed stripe of the reconstructed bitmap and the currently traversed stripe of the effective area bitmap;
a reconstruction module 40, where the reconstruction module 40 is configured to reconstruct the corresponding stripe of the disk array and update the currently traversed stripe of the reconstructed bitmap if reconstruction is needed;
a second traversal module 50, the second traversal module 50 configured to continue traversing the strips of the reconstruction bitmap and the strips of the active area bitmap until the traversal is completed to complete the reconstruction of the disk array.
The system constructs the reconstruction bitmap and the effective region bitmap, marks the effective region generated in the input/output writing process in the effective region bitmap, and utilizes the effective region bitmap field reconstruction bitmap to cooperatively process the reconstruction of the offline disk, so that the direct full disk data reconstruction during reconstruction is avoided, the reconstruction time is reduced, the reconstruction efficiency is improved, and the safety and the reliability of the storage system are improved.
In some embodiments, creating the reconstruction bitmap and the effective area bitmap based on the disk array further includes:
marking the strips of each of the reconstruction bitmaps as not reconstructed and marking the strips of each of the valid region bitmaps as invalid regions.
In some embodiments, determining whether a corresponding stripe of the disk array needs to be reconstructed based on the currently traversed stripe of the reconstruction bitmap and the currently traversed stripe of the active area bitmap includes:
if the currently traversed strip of the reconstructed bitmap is not reconstructed and the currently traversed strip of the effective area bitmap is an effective area, determining that the corresponding strip of the disk array needs to be reconstructed;
otherwise, the corresponding stripe of the disk array is determined not to need to be reconstructed, and the reconstructed bitmap and the next stripe of the effective region bitmap are traversed.
In some embodiments, reconstructing the corresponding stripe of the disk array includes:
reading data of a strip corresponding to an online disk in a disk array, and recovering data of an offline disk;
and rewriting the recovered data of the offline disc to the corresponding strip of the disk array.
In some embodiments, updating the current stripe of the reconstructed bitmap comprises:
marking a current stripe of the reconstruction bitmap as a complete reconstruction.
In some embodiments, the system further comprises an initialization module configured to: in response to the disk array being completely reconstructed, marking the strip of the reconstruction bitmap as not reconstructed.
In some embodiments, creating a reconstruction bitmap and an active area bitmap based on a disk array includes:
and creating the reconstruction bitmap and the effective region bitmap based on the size of the disk array and with the stripe size of the disk array as granularity.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 3, an embodiment of the present invention further provides a computer device 20, in which the computer device 20 includes a processor 210 and a memory 220, the memory 220 stores a computer program 221 executable on the processor, and the processor 210 executes the program to perform the following method steps:
creating a reconstruction bitmap and an effective area bitmap based on a disk array, wherein the disk array, the reconstruction bitmap and the effective area bitmap all comprise strips;
in response to the input and output writing of the strip of the disk array, marking the strip of the effective area bitmap corresponding to the strip of the input and output writing as an effective area;
responding to the disk offline in the disk array, sequentially traversing the strips of the reconstructed bitmap and the strips of the effective area bitmap, and judging whether the corresponding strips of the disk array need to be reconstructed or not based on the currently traversed strips of the reconstructed bitmap and the currently traversed strips of the effective area bitmap;
if the reconstruction is needed, reconstructing the corresponding stripe of the disk array, and updating the currently traversed stripe of the reconstructed bitmap;
and continuously traversing the strips of the reconstruction bitmap and the strips of the effective area bitmap until the traversal is finished to finish the reconstruction of the disk array.
In some embodiments, creating the reconstruction bitmap and the effective area bitmap based on the disk array further includes:
marking the strips of each of the reconstruction bitmaps as not reconstructed and marking the strips of each of the valid region bitmaps as invalid regions.
In some embodiments, determining whether a corresponding stripe of the disk array needs to be reconstructed based on the currently traversed stripe of the reconstruction bitmap and the currently traversed stripe of the active area bitmap includes:
if the currently traversed strip of the reconstructed bitmap is not reconstructed and the currently traversed strip of the effective area bitmap is an effective area, determining that the corresponding strip of the disk array needs to be reconstructed;
otherwise, the corresponding stripe of the disk array is determined not to need to be reconstructed, and the reconstructed bitmap and the next stripe of the effective region bitmap are traversed.
In some embodiments, reconstructing the corresponding stripe of the disk array includes:
reading data of a strip corresponding to an online disk in a disk array, and recovering data of an offline disk;
and rewriting the recovered data of the offline disc to the corresponding strip of the disk array.
In some embodiments, updating the current stripe of the reconstructed bitmap comprises:
marking a current stripe of the reconstruction bitmap as a complete reconstruction.
In some embodiments, the method further comprises:
in response to the disk array being completely reconstructed, marking the strip of the reconstruction bitmap as not reconstructed.
In some embodiments, creating a reconstruction bitmap and an active area bitmap based on a disk array includes:
and creating the reconstruction bitmap and the effective region bitmap based on the size of the disk array and with the stripe size of the disk array as granularity.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 4, an embodiment of the present invention further provides a computer-readable storage medium 30, the computer-readable storage medium 30 storing a computer program 310 which, when executed by a processor, performs the following method:
creating a reconstruction bitmap and an effective area bitmap based on a disk array, wherein the disk array, the reconstruction bitmap and the effective area bitmap all comprise strips;
in response to the input and output writing of the strip of the disk array, marking the strip of the effective area bitmap corresponding to the strip of the input and output writing as an effective area;
responding to the disk offline in the disk array, sequentially traversing the strips of the reconstructed bitmap and the strips of the effective area bitmap, and judging whether the corresponding strips of the disk array need to be reconstructed or not based on the currently traversed strips of the reconstructed bitmap and the currently traversed strips of the effective area bitmap;
if the reconstruction is needed, reconstructing the corresponding stripe of the disk array, and updating the currently traversed stripe of the reconstructed bitmap;
and continuously traversing the strips of the reconstruction bitmap and the strips of the effective area bitmap until the traversal is finished to finish the reconstruction of the disk array.
In some embodiments, creating the reconstruction bitmap and the effective area bitmap based on the disk array further includes:
marking the strips of each of the reconstruction bitmaps as not reconstructed and marking the strips of each of the valid region bitmaps as invalid regions.
In some embodiments, determining whether a corresponding stripe of the disk array needs to be reconstructed based on the currently traversed stripe of the reconstruction bitmap and the currently traversed stripe of the active area bitmap includes:
if the currently traversed strip of the reconstructed bitmap is not reconstructed and the currently traversed strip of the effective area bitmap is an effective area, determining that the corresponding strip of the disk array needs to be reconstructed;
otherwise, the corresponding stripe of the disk array is determined not to need to be reconstructed, and the reconstructed bitmap and the next stripe of the effective region bitmap are traversed.
In some embodiments, reconstructing the corresponding stripe of the disk array includes:
reading data of a strip corresponding to an online disk in a disk array, and recovering data of an offline disk;
and rewriting the recovered data of the offline disc to the corresponding strip of the disk array.
In some embodiments, updating the current stripe of the reconstructed bitmap comprises:
marking a current stripe of the reconstruction bitmap as a complete reconstruction.
In some embodiments, the method further comprises:
in response to the disk array being completely reconstructed, marking the strip of the reconstruction bitmap as not reconstructed.
In some embodiments, creating a reconstruction bitmap and an active area bitmap based on a disk array includes:
and creating the reconstruction bitmap and the effective region bitmap based on the size of the disk array and with the stripe size of the disk array as granularity.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
The foregoing is an exemplary embodiment 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 disclosed 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, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
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 the embodiments 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 reconstructing a disk array of a storage system, comprising:
creating a reconstruction bitmap and an effective area bitmap based on a disk array, wherein the disk array, the reconstruction bitmap and the effective area bitmap all comprise strips;
in response to the input and output writing of the strip of the disk array, marking the strip of the effective area bitmap corresponding to the strip of the input and output writing as an effective area;
responding to the disk offline in the disk array, sequentially traversing the strips of the reconstructed bitmap and the strips of the effective area bitmap, and judging whether the corresponding strips of the disk array need to be reconstructed or not based on the currently traversed strips of the reconstructed bitmap and the currently traversed strips of the effective area bitmap;
if the reconstruction is needed, reconstructing the corresponding stripe of the disk array, and updating the currently traversed stripe of the reconstructed bitmap;
and continuously traversing the strips of the reconstruction bitmap and the strips of the effective area bitmap until the traversal is finished to finish the reconstruction of the disk array.
2. The method of claim 1, wherein creating the reconstructed bitmap and the valid region bitmap based on the disk array further comprises:
marking the strips of each of the reconstruction bitmaps as not reconstructed and marking the strips of each of the valid region bitmaps as invalid regions.
3. The method of claim 2, wherein determining whether a corresponding stripe of the disk array needs to be reconstructed based on the currently traversed stripe of the reconstructed bitmap and the currently traversed stripe of the active area bitmap comprises:
if the currently traversed strip of the reconstructed bitmap is not reconstructed and the currently traversed strip of the effective area bitmap is an effective area, determining that the corresponding strip of the disk array needs to be reconstructed;
otherwise, the corresponding stripe of the disk array is determined not to need to be reconstructed, and the reconstructed bitmap and the next stripe of the effective region bitmap are traversed.
4. The method of claim 1, wherein reconstructing the corresponding stripe of the disk array comprises:
reading data of a strip corresponding to an online disk in a disk array, and recovering data of an offline disk;
and rewriting the recovered data of the offline disc to the corresponding strip of the disk array.
5. The method of claim 2, wherein updating the current stripe of the reconstructed bitmap comprises:
marking a current stripe of the reconstruction bitmap as a complete reconstruction.
6. The method of claim 2, further comprising:
in response to the disk array being completely reconstructed, marking the strip of the reconstruction bitmap as not reconstructed.
7. The method of claim 1, wherein creating the reconstructed bitmap and the valid region bitmap based on the disk array comprises:
and creating the reconstruction bitmap and the effective region bitmap based on the size of the disk array and with the stripe size of the disk array as granularity.
8. A system for reconfiguring a disk array of a storage system, comprising:
the system comprises a creating module, a processing module and a processing module, wherein the creating module is configured to create a reconstruction bitmap and an effective area bitmap based on a disk array, and the disk array, the reconstruction bitmap and the effective area bitmap all comprise strips;
a marking module configured to mark a stripe of an effective area bitmap corresponding to a stripe of an input-output write as an effective area in response to the stripe of the disk array being input-output written;
the first traversal module is configured to sequentially traverse a band of a reconstructed bitmap and a band of an effective area bitmap in response to the fact that a disk in the disk array is offline, and judge whether the corresponding band of the disk array needs to be reconstructed or not based on the currently traversed band of the reconstructed bitmap and the currently traversed band of the effective area bitmap;
a reconstruction module configured to reconstruct the corresponding stripe of the disk array and update a currently traversed stripe of the reconstructed bitmap if reconstruction is required;
a second traversal module configured to continue traversing the strip of the reconstruction bitmap and the strip of the active area bitmap until traversal is complete to complete reconstruction of the disk array.
9. A computer device, comprising:
at least one processor; and
memory storing a computer program operable on the processor, wherein the processor executes the program to perform the steps of the method according to any of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 7.
CN202110876405.1A 2021-07-29 2021-07-29 Reconstruction method, system, equipment and medium of disk array of storage system Withdrawn CN113741811A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110876405.1A CN113741811A (en) 2021-07-29 2021-07-29 Reconstruction method, system, equipment and medium of disk array of storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110876405.1A CN113741811A (en) 2021-07-29 2021-07-29 Reconstruction method, system, equipment and medium of disk array of storage system

Publications (1)

Publication Number Publication Date
CN113741811A true CN113741811A (en) 2021-12-03

Family

ID=78729750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110876405.1A Withdrawn CN113741811A (en) 2021-07-29 2021-07-29 Reconstruction method, system, equipment and medium of disk array of storage system

Country Status (1)

Country Link
CN (1) CN113741811A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115543696A (en) * 2022-11-30 2022-12-30 苏州浪潮智能科技有限公司 Disk array reconstruction task acceleration method, system, storage medium and equipment
CN115878052A (en) * 2023-03-08 2023-03-31 苏州浪潮智能科技有限公司 RAID array inspection method, inspection device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115543696A (en) * 2022-11-30 2022-12-30 苏州浪潮智能科技有限公司 Disk array reconstruction task acceleration method, system, storage medium and equipment
CN115543696B (en) * 2022-11-30 2023-03-17 苏州浪潮智能科技有限公司 Disk array reconstruction task acceleration method, system, storage medium and equipment
CN115878052A (en) * 2023-03-08 2023-03-31 苏州浪潮智能科技有限公司 RAID array inspection method, inspection device and electronic equipment

Similar Documents

Publication Publication Date Title
CN102945201B (en) The non-volatile media log recording of verification msg set
CN104503706B (en) A kind of data storage and read method based on disk array
CN113741811A (en) Reconstruction method, system, equipment and medium of disk array of storage system
CN101840360A (en) Rapid reconstruction method and device of RAID (Redundant Array of Independent Disk) system
WO2012051931A1 (en) Method, device and system for reconstructing redundant array of inexpensive disks
CN108170555A (en) A kind of data reconstruction method and equipment
CN102483714A (en) Restore Index Page
CN102929750A (en) Nonvolatile media dirty region tracking
JPH0773602A (en) Optical disk device
CN101609420A (en) Realize method and the redundant arrays of inexpensive disks and the controller thereof of rebuilding of disc redundant array
CN104142872A (en) Quick reestablishment method for RAID (redundan array of inexpensive disk)
CN107665096A (en) Weighted data slitting
CN102184129A (en) Fault tolerance method and device for disk arrays
CN104881242A (en) Data writing method and data writing device
CN107885620B (en) Method and system for improving performance and reliability of solid-state disk array
WO2024103977A1 (en) Metadata configuration method and apparatus, and nonvolatile readable storage medium
CN103744751B (en) Storage device configuration information continuous optimization backup system and application method thereof
CN115543217A (en) Data organization method, device, server and medium for independent redundant disk array
CN112068770B (en) Stripe write optimization method based on RAID
CN109542671B (en) Verification data generation method and solid state disk
CN110309012B (en) Data processing method and device
CN113625950B (en) Initialization method, system, equipment and medium for redundant array of independent disks
CN111124251A (en) Method, apparatus and computer readable medium for I/O control
CN112463460B (en) Erasure code-based small block data recovery method and system
CN111897495B (en) Implementation method, device, computer equipment and storage medium for improving SSD writing performance

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20211203