[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113254276A - Method, system, equipment and medium for eliminating Redundant Array of Independent Disks (RAID) abnormity - Google Patents

Method, system, equipment and medium for eliminating Redundant Array of Independent Disks (RAID) abnormity Download PDF

Info

Publication number
CN113254276A
CN113254276A CN202110646460.1A CN202110646460A CN113254276A CN 113254276 A CN113254276 A CN 113254276A CN 202110646460 A CN202110646460 A CN 202110646460A CN 113254276 A CN113254276 A CN 113254276A
Authority
CN
China
Prior art keywords
disk
redundant array
disks
independent disks
threshold
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
CN202110646460.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 CN202110646460.1A priority Critical patent/CN113254276A/en
Publication of CN113254276A publication Critical patent/CN113254276A/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/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2053Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
    • G06F11/2094Redundant storage or storage space
    • 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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a system, equipment and a storage medium for eliminating the abnormality of a redundant array of independent disks, wherein the method comprises the following steps: responding to the abnormality of member disks of the redundant array of independent disks, and screening out the currently effective hot standby disk according to the redundant array of independent disks; matching from the currently effective hot standby disk according to the read-write speed of the member disks of the redundant array of independent disks; in response to the fact that the matching is successful and the matched hot spare disk is not unique, determining the optimal hot spare disk according to the position of the matched hot spare disk; and replacing the abnormal member disk in the redundant array of independent disks by the optimal hot spare disk. According to the invention, the hot spare disk most suitable for the current redundant array of independent disks is determined through the matching of the read-write speed, the space utilization rate, the performance and the position, so that the reliability and the stability of the redundant array of independent disks are improved.

Description

Method, system, equipment and medium for eliminating Redundant Array of Independent Disks (RAID) abnormity
Technical Field
The present invention relates to the field of virtualization, and more particularly, to a method, a system, a computer device, and a readable medium for eliminating an abnormal redundant array of independent disks.
Background
RAID (Redundant Array of Independent Disks) is a virtualization technology that virtualizes a plurality of physical Disks into a large-capacity logical disk for an external host. In order to ensure the high performance and reliability of the logical disk, the RAID adopts key technologies such as mirror redundancy, data striping, and data verification in the development process. RAID hot standby management is also one method to ensure reliability.
The purpose of RAID hot-standby management is to recover the redundant nature of a RAID array in the event that the RAID array loses a member drive (the drive associated with the array member goes wrong or is removed). When the member disk of the RAID is in error or is removed, the RAID selects the corresponding hot spare disk as the current member disk according to the currently set hot spare disk, so that the stability and reliability of the RAID are improved.
In the existing RAID hot standby management, after an existing array is created, an existing hot standby redundant disk is separately added as redundancy of the current array, and when a member disk of the current array is removed or has an error, a redundant disk that is more matched with the current array is selected for replacement by judging the disk capacity and disk attribute of the existing hot standby redundancy. However, in the prior art, hot spare disks are mainly matched according to performance/position, and in such a matching mode, real-time array performance is not considered, and optimal matching is not necessarily suitable for the current array.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, a system, a computer device, and a computer readable storage medium for eliminating an abnormal condition of a redundant array of independent disks, where the hot-spare disk most suitable for a current redundant array of independent disks is determined by matching a read-write speed, a space utilization rate, a performance, and a position, so as to improve reliability and stability of the redundant array of independent disks.
Based on the above object, an aspect of the embodiments of the present invention provides a method for eliminating an raid exception, including the following steps: responding to the abnormality of member disks of the redundant array of independent disks, and screening out the currently effective hot standby disk according to the redundant array of independent disks; matching from the currently effective hot standby disk according to the read-write speed of the member disks of the redundant array of independent disks; in response to the fact that the matching is successful and the matched hot spare disk is not unique, determining the optimal hot spare disk according to the position of the matched hot spare disk; and replacing the abnormal member disks in the redundant array of independent disks by the optimal hot standby disk, wherein the matching from the currently effective hot standby disk according to the read-write speed of the member disks of the redundant array of independent disks comprises: judging whether the read-write speed of the member disks of the redundant array of independent disks exceeds a first threshold value; responding to the fact that the read-write speed of the member disk of the redundant array of independent disks does not exceed a first threshold value, and selecting a first hot standby disk with the performance closest to that of the member disk as a hot standby disk successfully matched; the matching from the currently effective hot standby disk according to the read-write speed of the member disks of the redundant array of independent disks comprises: responding to the fact that the read-write speed of the member disk of the redundant array of independent disks exceeds a first threshold, and judging whether the read-write speed of the member disk of the redundant array of independent disks exceeds a second threshold; responding to the fact that the read-write speed of the member disks of the redundant array of independent disks does not exceed a second threshold, and judging whether the space utilization rate of the redundant array of independent disks exceeds a third threshold or not; and responding to the fact that the space utilization rate of the redundant array of independent disks does not exceed a third threshold, and selecting the hot standby disk with the rotating speed larger than a fourth threshold and the average seek time larger than a fifth threshold as the hot standby disk successfully matched.
In some embodiments, the screening the currently valid hot-spare disk according to the redundant array of independent disks includes: judging whether the capacities of all member disks in the redundant array of independent disks are consistent; and screening the hot standby disks with the capacity consistent with that of the member disks in response to the capacity consistency of all the member disks in the redundant array of independent disks.
In some embodiments, the matching from the currently active hot spare disk according to the read-write speed of the member disk of the redundant array of independent disks includes: and in response to the space utilization rate of the redundant array of independent disks exceeding a third threshold, selecting the hot standby disk with the data transmission rate larger than a sixth threshold and the average seek time smaller than a seventh threshold as the hot standby disk with successful matching.
In some embodiments, the matching from the currently active hot spare disk according to the read-write speed of the member disk of the redundant array of independent disks includes: and responding to the fact that the read-write speed of the member disks of the redundant array of independent disks exceeds a second threshold value, and selecting the hot spare disk with the same capacity as the member disks and the highest comprehensive performance score as the hot spare disk successfully matched.
In some embodiments, the determining an optimal hot spare disk according to the matched location of the hot spare disk includes: judging whether a driver in the matched hot standby disk and a driver of the member disk belong to the same slot or not; and determining the hot standby disk as the optimal hot standby disk in response to the fact that the matched hot standby disk has a drive which belongs to the same slot as the drive of the member disk.
In another aspect of the embodiments of the present invention, a system for eliminating an abnormal redundant array of independent disks is provided, which includes: the screening module is configured to screen out a currently effective hot standby disk according to the redundant array of independent disks in response to the abnormal condition of the member disks of the redundant array of independent disks; the matching module is configured to match the member disks of the redundant array of independent disks from the currently effective hot spare disk according to the read-write speed of the member disks of the redundant array of independent disks; the selection module is configured to respond to the fact that the matching is successful and the matched hot spare disk is not unique, and determine an optimal hot spare disk according to the position of the matched hot spare disk; and a replacement module configured to replace the abnormal member disk in the redundant array of independent disks with the optimal hot spare disk, wherein the matching from the currently effective hot spare disk according to the read-write speed of the member disk of the redundant array of independent disks comprises: judging whether the read-write speed of the member disks of the redundant array of independent disks exceeds a first threshold value; responding to the fact that the read-write speed of the member disk of the redundant array of independent disks does not exceed a first threshold value, and selecting a first hot standby disk with the performance closest to that of the member disk as a hot standby disk successfully matched; responding to the fact that the read-write speed of the member disk of the redundant array of independent disks exceeds a first threshold, and judging whether the read-write speed of the member disk of the redundant array of independent disks exceeds a second threshold; responding to the fact that the read-write speed of the member disks of the redundant array of independent disks does not exceed a second threshold, and judging whether the space utilization rate of the redundant array of independent disks exceeds a third threshold or not; and responding to the fact that the space utilization rate of the redundant array of independent disks does not exceed a third threshold, and selecting the hot standby disk with the rotating speed larger than a fourth threshold and the average seek time larger than a fifth threshold as the hot standby disk successfully matched.
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 computer instructions executable on the processor, the instructions 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: the hot spare disk most suitable for the current redundant array of independent disks is determined through the matching of the read-write speed, the space utilization rate, the performance and the position, and the reliability and the stability of the redundant array of independent disks 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 schematic diagram of an embodiment of a method for eliminating RAID exceptions according to the present invention;
FIG. 2 is a schematic diagram of a hardware structure of an embodiment of a computer apparatus for eliminating RAID exceptions provided in the present invention;
FIG. 3 is a diagram of a computer storage medium for eliminating RAID anomalies 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.
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 a first aspect of the embodiments of the present invention, an embodiment of a method for eliminating an anomaly of a redundant array of independent disks is provided. FIG. 1 is a schematic diagram illustrating an embodiment of a method for eliminating RAID exceptions according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, responding to the abnormal condition of the member disks of the redundant array of independent disks, and screening out the currently effective hot spare disks according to the redundant array of independent disks;
s2, matching the member disks of the redundant array of independent disks from the currently effective hot spare disk according to the read-write speed of the member disks of the redundant array of independent disks;
s3, in response to the fact that the matching is successful and the matched hot spare disk is not unique, determining the optimal hot spare disk according to the position of the matched hot spare disk; and
and S4, replacing the abnormal member disk in the redundant array of independent disks by the optimal hot spare disk.
And responding to the abnormality of the member disks of the redundant array of independent disks, and screening out the currently effective hot standby disk according to the redundant array of independent disks.
In some embodiments, the screening the currently valid hot-spare disk according to the redundant array of independent disks includes: judging whether the capacities of all member disks in the redundant array of independent disks are consistent; and screening the hot standby disks with the capacity consistent with that of the member disks in response to the capacity consistency of all the member disks in the redundant array of independent disks. In this embodiment, the redundant array of independent disks includes 6 member disks a1 and a2 … … a6, and the hot spare disk includes B1, B2, and B3. Assuming that the capacities of the 6 member disks in this embodiment are all 1TB, the capacities of B1 and B2 are all 1TB, and the capacity of B3 is 2TB, hot spare disks, that is, B1 and B2, which are consistent with the capacities of the member disks can be screened. However, capacity is only one parameter of the screening, and the hot spare disk may be preliminarily screened in combination with other parameters.
And matching the member disks of the redundant array of independent disks from the currently effective hot standby disk according to the read-write speed and the space utilization rate of the member disks of the redundant array of independent disks. A portion may be filtered through attributes first, for example, assuming that the attributes of B1 are consistent with those of the member disks, the attributes of B2 are not consistent with B1, but the performance of B2 is consistent with B1, the attributes of B3 are different from both B1 and B2, and the performance of B3 is different from that of B1, then B3 may be removed from the current queue because the performance of B3 is not consistent with that of the member disks.
In some embodiments, the matching from the currently active hot spare disk according to the read-write speed of the member disk of the redundant array of independent disks includes: judging whether the read-write speed of the member disks of the redundant array of independent disks exceeds a first threshold value; and responding to the fact that the read-write speed of the member disk of the redundant array of independent disks does not exceed a first threshold value, and selecting a first hot standby disk with the performance closest to that of the member disk as a hot standby disk successfully matched. That is, the first threshold may be 10M/s, and if the read-write speed of the member disk of the redundant array of independent disks does not exceed 10M/s at this time, it indicates that the read-write operation of the input and output at this stage is not high, and the utilization rate of the entire array is not high, and the hot spare disk with the performance closest to that of the redundant array of independent disks may be selected as the hot spare disk successfully matched. The performance includes the following factors: 1. hard disk capacity, 2. rotation speed, 3. buffer, 4. average seek time, and 5. data transmission rate of hard disk. The several factors may be weighted differently and then summed, and the hot spare disk whose value is closest to the member disk is selected.
In some embodiments, the matching from the currently active hot spare disk according to the read-write speed of the member disk of the redundant array of independent disks includes: responding to the fact that the read-write speed of the member disk of the redundant array of independent disks exceeds a first threshold, and judging whether the read-write speed of the member disk of the redundant array of independent disks exceeds a second threshold; responding to the fact that the read-write speed of the member disks of the redundant array of independent disks does not exceed a second threshold, and judging whether the space utilization rate of the redundant array of independent disks exceeds a third threshold or not; and responding to the fact that the space utilization rate of the redundant array of independent disks does not exceed a third threshold, and selecting the hot standby disk with the rotating speed larger than a fourth threshold and the average seek time larger than a fifth threshold as the hot standby disk successfully matched. That is, the second threshold may be 15M/s, and the third threshold may be 70%, if the read-write speed of the member disk of the raid exceeds 10M/s and does not exceed 15M/s, this indicates that the pressure of the input and output becomes large at this stage, but is still within the tolerance range, and the hot spare disk may be selected according to the space utilization rate of the raid. If the utilization rate of the whole array space is small, the disk with high rotating speed and high average seek time in the disk performance can be preferentially selected, and the seek time of the disk can be reduced and the read-write possibility can be increased under the condition of the same data transmission rate.
In some embodiments, the matching from the currently active hot spare disk according to the read-write speed of the member disk of the redundant array of independent disks includes: and in response to the space utilization rate of the redundant array of independent disks exceeding a third threshold, selecting the hot standby disk with the data transmission rate larger than a sixth threshold and the average seek time smaller than a seventh threshold as the hot standby disk with successful matching. If the space utilization rate of the whole array is high, the time length of the hot spare disk for recovering the redundancy of the array is correspondingly increased, because the data of the offline disk needs to be reconstructed into the redundant disk at the moment, and new data is issued at the same time, the high data transmission rate and the lower seek time need to be considered at this moment.
The matching from the currently effective hot standby disk according to the read-write speed of the member disks of the redundant array of independent disks comprises: and responding to the fact that the read-write speed of the member disks of the redundant array of independent disks exceeds a second threshold value, and selecting the hot spare disk with the same capacity as the member disks and the best comprehensive performance as the hot spare disk which is successfully matched. If the read-write speed of the member disk of the redundant array of independent disks exceeds 15M/s, independent performance does not need to be considered independently, and a hot spare disk with the highest comprehensive performance score can be selected on the basis of the same capacity. The highest composite performance score, i.e., the highest weighted value, may be, for example, a hot spare disk with high spin rate, high cache, low average seek time, and high data transfer rate.
When the read-write speed is less than or equal to the first threshold, it indicates that the IO (input/output) read-write operation is not high and the utilization rate of the entire array is not high, and at this time, a hot spare disk with performance similar to that of the current array may be selected. When the read-write speed is greater than the first threshold and less than or equal to the second threshold, it indicates that the IO pressure is increased, but within the tolerance range, the read-write speed is divided into two cases according to the size of the array space utilization rate: when the space utilization rate is less than or equal to the third threshold, the disk with high rotating speed and high average seek time can be preferentially selected, and the seek time can be reduced and the read-write possibility can be increased under the condition that the disk has the same data transmission rate; when the space utilization is greater than the third threshold, it indicates that the duration of recovering the redundancy of the array by the hot-standby disk is also correspondingly increased, because at this time, the offline disk data needs to be reconstructed into the redundant disk, and new data is issued, and a disk with a high data transmission rate and a low average seek time needs to be considered at this time. When the read-write speed is greater than the second threshold, it indicates that a certain performance does not need to be considered independently at this time, the configuration required to be increased is to use the hot spare disk with high rotation speed, high cache, low average seek time and high data transmission rate under the same capacity as the hot spare disk of the current array, and at this time, the hot spare disk with the same capacity as the member disk and the best comprehensive performance can be selected as the hot spare disk which is successfully matched.
And in response to the fact that the matching is successful and the matched hot spare disk is not unique, determining the optimal hot spare disk according to the position of the matched hot spare disk.
In some embodiments, the determining an optimal hot spare disk according to the matched location of the hot spare disk includes: judging whether a driver in the matched hot standby disk and a driver of the member disk belong to the same slot or not; and determining the hot standby disk as the optimal hot standby disk in response to the fact that the matched hot standby disk has a drive which belongs to the same slot as the drive of the member disk. If a plurality of selected optimal hot spare disks exist, namely the performances of the hot spare disks are consistent, the optimal hot spare disks can be selected through positions. Firstly, drivers belonging to the same slot (slot) are selected, secondly, drivers of the same box body (enclosure) but different slots are selected, and thirdly, drivers of the same data chain (chain) but different box bodies are selected.
In some embodiments, the determining an optimal hot spare disk according to the location of the hot spare disk includes: responding to the situation that the driver does not exist in the hot standby disk and the driver of the member disk belong to the same slot, and judging whether the driver in the hot standby disk and the driver of the member disk belong to the same box body or not; and determining the hot standby disk as the optimal hot standby disk in response to the fact that the driver in the hot standby disk and the driver of the member disk belong to the same box.
And replacing the abnormal member disk in the redundant array of independent disks by the optimal hot spare disk.
The embodiment of the invention can ensure that the redundant array of independent disks can be normally used when the member disks are replaced, and the embodiment of the invention selects the disk which best meets the current array in all the current disks, ensures that the hot standby disk after replacement has the performance which is not lower than that of the member disks before replacement, and improves the reliability and the stability of the RAID.
It should be particularly noted that, the steps in the embodiments of the above-mentioned method for eliminating raid exception may be mutually intersected, replaced, added, and deleted, so that these methods for eliminating raid exception, which are reasonably changed by permutation and combination, should also belong to the scope of the present invention, and should not limit the scope of the present invention to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides a system for eliminating raid exceptions, including: the screening module is configured to screen out a currently effective hot standby disk according to the redundant array of independent disks in response to the abnormal condition of the member disks of the redundant array of independent disks; the matching module is configured to match the member disks of the redundant array of independent disks from the currently effective hot spare disk according to the read-write speed of the member disks of the redundant array of independent disks; the selection module is configured to respond to the fact that the matching is successful and the matched hot spare disk is not unique, and determine an optimal hot spare disk according to the position of the matched hot spare disk; and a replacement module configured to replace the abnormal member disk in the redundant array of independent disks with the optimal hot spare disk, wherein the matching from the currently effective hot spare disk according to the read-write speed of the member disk of the redundant array of independent disks comprises: judging whether the read-write speed of the member disks of the redundant array of independent disks exceeds a first threshold value; responding to the fact that the read-write speed of the member disk of the redundant array of independent disks does not exceed a first threshold value, and selecting a first hot standby disk with the performance closest to that of the member disk as a hot standby disk successfully matched; responding to the fact that the read-write speed of the member disk of the redundant array of independent disks exceeds a first threshold, and judging whether the read-write speed of the member disk of the redundant array of independent disks exceeds a second threshold; responding to the fact that the read-write speed of the member disks of the redundant array of independent disks does not exceed a second threshold, and judging whether the space utilization rate of the redundant array of independent disks exceeds a third threshold or not; and responding to the fact that the space utilization rate of the redundant array of independent disks does not exceed a third threshold, and selecting the hot standby disk with the rotating speed larger than a fourth threshold and the average seek time larger than a fifth threshold as the hot standby disk successfully matched.
In some embodiments, the screening module is configured to: judging whether the capacities of all member disks in the redundant array of independent disks are consistent; and screening the hot standby disks with the capacity consistent with that of the member disks in response to the capacity consistency of all the member disks in the redundant array of independent disks.
In some embodiments, the matching module is configured to: and in response to the space utilization rate of the redundant array of independent disks exceeding a third threshold, selecting the hot standby disk with the data transmission rate larger than a sixth threshold and the average seek time smaller than a seventh threshold as the hot standby disk with successful matching.
In some embodiments, the matching module is configured to: and responding to the fact that the read-write speed of the member disks of the redundant array of independent disks exceeds a second threshold value, and selecting the hot spare disk with the same capacity as the member disks and the highest comprehensive performance score as the hot spare disk successfully matched.
In some embodiments, the selection module is configured to: judging whether a driver in the matched hot standby disk and a driver of the member disk belong to the same slot or not; and determining the hot standby disk as the optimal hot standby disk in response to the fact that the matched hot standby disk has a drive which belongs to the same slot as the drive of the member disk.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, responding to the abnormal condition of the member disks of the redundant array of independent disks, and screening out the currently effective hot spare disks according to the redundant array of independent disks; s2, matching the member disks of the redundant array of independent disks from the currently effective hot spare disk according to the read-write speed of the member disks of the redundant array of independent disks; s3, in response to the fact that the matching is successful and the matched hot spare disk is not unique, determining the optimal hot spare disk according to the position of the matched hot spare disk; and S4, replacing the abnormal member disks in the redundant array of independent disks by the optimal hot spare disk, wherein the matching from the currently effective hot spare disks according to the read-write speed of the member disks of the redundant array of independent disks comprises: judging whether the read-write speed of the member disks of the redundant array of independent disks exceeds a first threshold value; responding to the fact that the read-write speed of the member disk of the redundant array of independent disks does not exceed a first threshold value, and selecting a first hot standby disk with the performance closest to that of the member disk as a hot standby disk successfully matched; responding to the fact that the read-write speed of the member disk of the redundant array of independent disks exceeds a first threshold, and judging whether the read-write speed of the member disk of the redundant array of independent disks exceeds a second threshold; responding to the fact that the read-write speed of the member disks of the redundant array of independent disks does not exceed a second threshold, and judging whether the space utilization rate of the redundant array of independent disks exceeds a third threshold or not; and responding to the fact that the space utilization rate of the redundant array of independent disks does not exceed a third threshold, and selecting the hot standby disk with the rotating speed larger than a fourth threshold and the average seek time larger than a fifth threshold as the hot standby disk successfully matched.
In some embodiments, the screening the currently valid hot-spare disk according to the redundant array of independent disks includes: judging whether the capacities of all member disks in the redundant array of independent disks are consistent; and screening the hot standby disks with the capacity consistent with that of the member disks in response to the capacity consistency of all the member disks in the redundant array of independent disks.
In some embodiments, the matching from the currently active hot spare disk according to the read-write speed of the member disk of the redundant array of independent disks includes: and in response to the space utilization rate of the redundant array of independent disks exceeding a third threshold, selecting the hot standby disk with the data transmission rate larger than a sixth threshold and the average seek time smaller than a seventh threshold as the hot standby disk with successful matching.
In some embodiments, the matching from the currently active hot spare disk according to the read-write speed of the member disk of the redundant array of independent disks includes: and responding to the fact that the read-write speed of the member disks of the redundant array of independent disks exceeds a second threshold value, and selecting the hot spare disk with the same capacity as the member disks and the highest comprehensive performance score as the hot spare disk successfully matched.
In some embodiments, the determining an optimal hot spare disk according to the matched location of the hot spare disk includes: judging whether a driver in the matched hot standby disk and a driver of the member disk belong to the same slot or not; and determining the hot standby disk as the optimal hot standby disk in response to the fact that the matched hot standby disk has a drive which belongs to the same slot as the drive of the member disk.
Fig. 2 is a schematic hardware structural diagram of an embodiment of the computer apparatus for eliminating raid exception provided in the present invention.
Taking the apparatus shown in fig. 2 as an example, the apparatus includes a processor 201 and a memory 202, and may further include: an input device 203 and an output device 204.
The processor 201, the memory 202, the input device 203 and the output device 204 may be connected by a bus or other means, and fig. 2 illustrates the connection by a bus as an example.
The memory 202, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for eliminating raid exceptions in the embodiments of the present application. The processor 201 executes various functional applications and data processing of the server by running the nonvolatile software program, instructions and modules stored in the memory 202, that is, the method for eliminating the raid exception of the above-described method embodiment is implemented.
The memory 202 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the method of eliminating the raid abnormality, or the like. Further, the memory 202 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 202 may optionally include memory located remotely from processor 201, which may be connected to local modules via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 203 may receive information such as a user name and a password that are input. The output device 204 may include a display device such as a display screen.
One or more program instructions/modules corresponding to the method for eliminating raid exceptions are stored in the memory 202, and when executed by the processor 201, perform the method for eliminating raid exceptions in any of the above-described method embodiments.
Any embodiment of the computer device executing the method for eliminating the raid exception can achieve the same or similar effects as any corresponding embodiment of the method.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
FIG. 3 is a schematic diagram of an embodiment of a computer storage medium for eliminating RAID exceptions according to the present invention. Taking the computer storage medium as shown in fig. 3 as an example, the computer readable storage medium 3 stores a computer program 31 which, when executed by a processor, performs the method as described above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for eliminating the raid exception can be stored in a computer readable storage medium, and when executed, the program can 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 (8)

1. A method for eliminating the abnormality of the redundant array of independent disks is characterized by comprising the following steps:
responding to the abnormality of member disks of the redundant array of independent disks, and screening out the currently effective hot standby disk according to the redundant array of independent disks;
matching from the currently effective hot standby disk according to the read-write speed of the member disks of the redundant array of independent disks;
in response to the fact that the matching is successful and the matched hot spare disk is not unique, determining the optimal hot spare disk according to the position of the matched hot spare disk; and
replacing the abnormal member disks in the redundant array of independent disks by the optimal hot spare disk,
wherein the matching from the currently effective hot spare disk according to the read-write speed of the member disks of the redundant array of independent disks comprises:
judging whether the read-write speed of the member disks of the redundant array of independent disks exceeds a first threshold value;
responding to the fact that the read-write speed of the member disk of the redundant array of independent disks does not exceed a first threshold value, and selecting a first hot standby disk with the performance closest to that of the member disk as a hot standby disk successfully matched;
responding to the fact that the read-write speed of the member disk of the redundant array of independent disks exceeds a first threshold, and judging whether the read-write speed of the member disk of the redundant array of independent disks exceeds a second threshold;
responding to the fact that the read-write speed of the member disks of the redundant array of independent disks does not exceed a second threshold, and judging whether the space utilization rate of the redundant array of independent disks exceeds a third threshold or not; and
and responding to the fact that the space utilization rate of the redundant array of independent disks does not exceed a third threshold, and selecting a hot standby disk with the rotating speed larger than a fourth threshold and the average seek time larger than a fifth threshold as a hot standby disk which is successfully matched.
2. The method of claim 1, wherein the screening the currently valid hot spare disk according to the redundant array of independent disks comprises:
judging whether the capacities of all member disks in the redundant array of independent disks are consistent; and
and in response to the consistency of the capacities of all the member disks in the redundant array of independent disks, screening out the hot spare disks with the capacities consistent with the capacities of the member disks.
3. The method of claim 1, wherein the matching from the currently active hot spare disk according to the read-write speed of the member disk of the redundant array of independent disks comprises:
and in response to the space utilization rate of the redundant array of independent disks exceeding a third threshold, selecting the hot standby disk with the data transmission rate larger than a sixth threshold and the average seek time smaller than a seventh threshold as the hot standby disk with successful matching.
4. The method of claim 1, wherein the matching from the currently active hot spare disk according to the read-write speed of the member disk of the redundant array of independent disks comprises:
and responding to the fact that the read-write speed of the member disks of the redundant array of independent disks exceeds a second threshold value, and selecting the hot spare disk with the same capacity as the member disks and the highest comprehensive performance score as the hot spare disk successfully matched.
5. The method of claim 1, wherein determining the optimal hot spare disk according to the matched location of the hot spare disk comprises:
judging whether a driver in the matched hot standby disk and a driver of the member disk belong to the same slot or not; and
and determining the hot standby disk as the optimal hot standby disk in response to the fact that the matched hot standby disk has a drive which belongs to the same slot as the drive of the member disk.
6. A system for eliminating raid exceptions, comprising:
the screening module is configured to screen out a currently effective hot standby disk according to the redundant array of independent disks in response to the abnormal condition of the member disks of the redundant array of independent disks;
the matching module is configured to match the member disks of the redundant array of independent disks from the currently effective hot spare disk according to the read-write speed of the member disks of the redundant array of independent disks;
the selection module is configured to respond to the fact that the matching is successful and the matched hot spare disk is not unique, and determine an optimal hot spare disk according to the position of the matched hot spare disk; and
a replacement module configured to replace the member disk with the optimal hot spare disk, where the abnormality occurs, in the redundant array of independent disks,
wherein the matching from the currently effective hot spare disk according to the read-write speed of the member disks of the redundant array of independent disks comprises:
judging whether the read-write speed of the member disks of the redundant array of independent disks exceeds a first threshold value;
responding to the fact that the read-write speed of the member disk of the redundant array of independent disks does not exceed a first threshold value, and selecting a first hot standby disk with the performance closest to that of the member disk as a hot standby disk successfully matched;
responding to the fact that the read-write speed of the member disk of the redundant array of independent disks exceeds a first threshold, and judging whether the read-write speed of the member disk of the redundant array of independent disks exceeds a second threshold;
responding to the fact that the read-write speed of the member disks of the redundant array of independent disks does not exceed a second threshold, and judging whether the space utilization rate of the redundant array of independent disks exceeds a third threshold or not; and
and responding to the fact that the space utilization rate of the redundant array of independent disks does not exceed a third threshold, and selecting a hot standby disk with the rotating speed larger than a fourth threshold and the average seek time larger than a fifth threshold as a hot standby disk which is successfully matched.
7. 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 5.
8. 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 5.
CN202110646460.1A 2021-06-10 2021-06-10 Method, system, equipment and medium for eliminating Redundant Array of Independent Disks (RAID) abnormity Pending CN113254276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110646460.1A CN113254276A (en) 2021-06-10 2021-06-10 Method, system, equipment and medium for eliminating Redundant Array of Independent Disks (RAID) abnormity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110646460.1A CN113254276A (en) 2021-06-10 2021-06-10 Method, system, equipment and medium for eliminating Redundant Array of Independent Disks (RAID) abnormity

Publications (1)

Publication Number Publication Date
CN113254276A true CN113254276A (en) 2021-08-13

Family

ID=77187416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110646460.1A Pending CN113254276A (en) 2021-06-10 2021-06-10 Method, system, equipment and medium for eliminating Redundant Array of Independent Disks (RAID) abnormity

Country Status (1)

Country Link
CN (1) CN113254276A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183623A (en) * 2015-08-25 2015-12-23 浙江宇视科技有限公司 Method and apparatus for improving VDG reconstruction performance based on hot standby VD
CN106326038A (en) * 2016-08-22 2017-01-11 浪潮(北京)电子信息产业有限公司 Hot standby space selection method and system
CN108153622A (en) * 2016-12-06 2018-06-12 华为技术有限公司 The method, apparatus and equipment of a kind of troubleshooting

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183623A (en) * 2015-08-25 2015-12-23 浙江宇视科技有限公司 Method and apparatus for improving VDG reconstruction performance based on hot standby VD
CN106326038A (en) * 2016-08-22 2017-01-11 浪潮(北京)电子信息产业有限公司 Hot standby space selection method and system
CN108153622A (en) * 2016-12-06 2018-06-12 华为技术有限公司 The method, apparatus and equipment of a kind of troubleshooting

Similar Documents

Publication Publication Date Title
US10949314B2 (en) Method and apparatus for failure recovery of storage device
CN101567211A (en) Method for improving usability of disk and disk array controller
CN103942112A (en) Magnetic disk fault-tolerance method, device and system
CN103765373A (en) Data storage method, data storage device, and storage equipment
CN102999587A (en) Arrangement for mirror database across different servers used for failover
CN111240595A (en) Method, system, equipment and medium for optimizing storage cache
CN103019623B (en) Memory disc disposal route and device
US20170123926A1 (en) Ensuring crash-safe forward progress of a system configuration update
WO2024103977A1 (en) Metadata configuration method and apparatus, and nonvolatile readable storage medium
US20100082793A1 (en) Server-Embedded Distributed Storage System
CN113051428B (en) Method and device for back-up storage at front end of camera
CN105573872A (en) Hardware maintenance method and device of data storage system
AU2021269916B2 (en) Write sort management in data storage system
CN113254276A (en) Method, system, equipment and medium for eliminating Redundant Array of Independent Disks (RAID) abnormity
US10915405B2 (en) Methods for handling storage element failures to reduce storage device failure rates and devices thereof
CN115550287B (en) Method for establishing remote copy relationship and related device
US10901846B2 (en) Maintenance of storage devices with multiple logical units
CN112131201B (en) Method, system, equipment and medium for high availability of network additional storage
CN116360680A (en) Method and system for performing copy recovery operations in a storage system
CN111506259B (en) Data storage method, data reading method, data storage device, data reading apparatus, data storage device, and readable storage medium
CN115562593A (en) Abnormal RAID member disk processing method, device and medium
CN104572350B (en) A kind of metadata processing method and device
CN114840362A (en) Cloud host recovery method, device and medium
CN110851443A (en) Database storage management method and device, storage medium and electronic equipment
CN116302007B (en) Disk array firmware upgrading method, device, equipment, medium and disk array card

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210813

RJ01 Rejection of invention patent application after publication