Control method and device of storage system, electronic equipment and storage medium
By using preset risk prediction models in the storage system to identify high-risk disks and disk groups and perform disk replacement processing, the problem of failure risk disks in the existing technology cannot be handled in a timely manner, and the effect of reducing the failure risk of storage system and ensuring system reliability is achieved.
Patent Information
- Application Number
- CN202510190713.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-20
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2045-02-20
AI Technical Summary
Existing storage systems cannot process disks with failure risk in time, resulting in the number of failed disks exceeding the system's fault tolerance, resulting in a higher risk of system failure and data loss.
Failure risk prediction is carried out through the preset risk prediction model, high-risk disks and disk groups are identified, and when there is no high-risk disk in the high-risk disk group, select the disk to be marked for replacement processing, reducing the failure risk of the entire system.
It realizes the rapid identification of disks and disk groups with high failure risk, and timely backup and replace data, ensuring that the number of failed disks in the storage system does not exceed the fault tolerance of the system, effectively reducing the failure risk of the storage system and ensuring the reliability of the system.
Smart Images

Figure CN119668527A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a storage system control method and device, electronic equipment, and storage medium. Background Art
[0002] With the development of computer technology and network technology, network data is growing at an explosive rate. The massive amount of data poses a huge challenge to the storage system. Therefore, the distributed storage system built with servers has been widely used in data storage management. The increase in the scale of the storage system and the increase in the capacity of a single disk in the storage system have posed a challenge to the reliability of the storage system. In order to improve the reliability of the storage system, it is necessary to use fault-tolerant technology to improve the fault tolerance of the storage system.
[0003] In storage systems, there are two common fault-tolerant technologies: multi-copy fault-tolerant technology and erasure code fault-tolerant technology. However, multi-copy fault-tolerant technology and erasure code fault-tolerant technology have limited fault-tolerant capabilities and cannot promptly handle disks with failure risks in the storage system. This can easily lead to the number of failed disks in the storage system exceeding the system's fault-tolerant capability, causing the storage system to fail and resulting in low reliability of the storage system. Summary of the invention
[0004] The present application provides a control method and device for a storage system, an electronic device, and a storage medium, so as to at least solve the problem in the related art that disks with a risk of failure in the storage system cannot be processed in a timely manner, which easily causes the number of failed disks in the storage system to exceed the fault tolerance capability of the system, causing the storage system to fail, resulting in a high risk of data loss in the storage system.
[0005] The present application provides a storage system control method, including: Performing failure risk prediction processing by using a preset risk prediction model and disk information of disks in a storage system to obtain first failure risk indexes corresponding to each of the plurality of disks, wherein the storage system includes a plurality of disk groups, and each disk group includes a plurality of disks; An index calculation process is performed according to the first failure risk indexes corresponding to the multiple disks included in each disk group and the average risk index corresponding to each disk group, so as to obtain the second failure risk index corresponding to each disk group, wherein the average risk index is obtained by calculating the average value of the first failure risk indexes corresponding to the multiple disks included in the disk group; Identify high-risk disks and high-risk disk groups, wherein a high-risk disk is a disk whose first failure risk index is greater than or equal to a first preset index threshold, and a high-risk disk group is a disk group whose second failure risk index is greater than or equal to a second preset index threshold; In the case that there is no high-risk disk in the high-risk disk group, the disks in the high-risk disk group are selected and processed to obtain the disks to be marked, and the disks to be marked are marked as high-risk disks; Perform disk replacement processing on all high-risk disks in the storage system to obtain a storage system after replacement processing.
[0006] The present application also provides a control device for a storage system, comprising: A prediction unit, configured to perform failure risk prediction processing by using a preset risk prediction model and disk information of disks in a storage system to obtain first failure risk indexes corresponding to each of the plurality of disks, wherein the storage system includes a plurality of disk groups, and each disk group includes a plurality of disks; a calculation unit, configured to perform index calculation processing according to first failure risk indexes corresponding to each of the plurality of disks included in each disk group and an average risk index corresponding to each disk group, so as to obtain a second failure risk index corresponding to each disk group, wherein the average risk index is obtained by calculating the average value of the first failure risk indexes corresponding to each of the plurality of disks included in the disk group; an identification unit, used to identify high-risk disks and high-risk disk groups, wherein a high-risk disk is a disk whose first failure risk index is greater than or equal to a first preset index threshold, and a high-risk disk group is a disk group whose second failure risk index is greater than or equal to a second preset index threshold; A selection unit is used for selecting disks in the high-risk disk group to obtain disks to be marked, and marking the disks to be marked as high-risk disks when there are no high-risk disks in the high-risk disk group; The processing unit is used to perform disk replacement processing on all high-risk disks in the storage system to obtain a storage system after replacement processing.
[0007] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned storage system control methods when executing the computer program.
[0008] The present application also provides a computer-readable storage medium, in which a computer program is stored, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned storage system control methods are implemented.
[0009] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned storage system control methods when the computer program is executed by a processor.
[0010] Through the present application, the present application first calculates the failure risk index of each disk in the storage system through a disk failure prediction model, that is, a preset risk prediction model, and identifies disks with high failure risks, that is, high-risk disks. Since the disk group includes multiple disks, the failure risk index of the disk group can be calculated according to the failure risk index of each disk, and the disk group with high failure risk, that is, high-risk disk group, can be identified. At the same time, since the failure risk index of the disk group is calculated by the failure risk index of the disks included in the disk group, it is possible that there is no high-risk disk in the high-risk disk group. In order to further reduce the failure risk of the storage system, in addition to replacing the high-risk disks, it is also necessary to reduce the failure risk of all high-risk disk groups. Therefore, it is necessary to select in the high-risk disk group where no high-risk disks exist. Take a disk to be marked so as to reduce the failure risk of high-risk disk groups by replacing the disk to be marked, and then replace all high-risk disks and disks to be marked in the storage system, so as to timely handle the disks and disk groups with failure risks in the storage system, so as to solve the technical problem that the existing technology cannot timely handle the disks with failure risks in the storage system, which easily causes the number of failed disks in the storage system to exceed the fault tolerance of the system, causing the storage system to fail and resulting in a high risk of data loss in the storage system, so as to quickly identify disks with high failure risks and disk groups with high failure risks, and back up and replace data in time, so as to ensure that the number of failed disks in the storage system does not exceed the fault tolerance of the system, effectively reduce the failure risk of the storage system, and ensure the technical effect of the reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0012] Figure 1 A flowchart of a storage system control method provided in an embodiment of the present application; Figure 2 A schematic diagram of a disk and a disk group provided in an embodiment of the present application; Figure 3 A schematic diagram of a failure risk prediction process provided in an embodiment of the present application; Figure 4 A schematic diagram of a calculation flow of a second failure risk index provided in an embodiment of the present application; Figure 5 A schematic diagram of a disk selection process provided in an embodiment of the present application; Figure 6A schematic diagram of a disk failure risk level provided in an embodiment of the present application; Figure 7 A schematic diagram of the architecture of a distributed storage system provided in an embodiment of the present application; Figure 8 A schematic diagram of the structure of a control device of a storage system provided in an embodiment of the present application; Fig. 9 A schematic diagram of the structure of another control device of a storage system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0013] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0014] It should be noted that, in the description of this application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence.
[0015] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0016] Figure 1 A flow chart of a control method for a storage system provided in an embodiment of the present application is provided, and the method is described in detail in conjunction with the execution flow of the control method for the storage system.
[0017] like Figure 1 As shown, the control method of the storage system includes: Step 101, performing failure risk prediction processing using a preset risk prediction model and disk information of disks in a storage system to obtain first failure risk indexes corresponding to each of a plurality of disks, wherein the storage system includes a plurality of disk groups, and each disk group includes a plurality of disks.
[0018] In an embodiment of the present application, the preset risk prediction model is a pre-trained model selected by user, which can be used to predict the failure risk of the disk. The type of the preset risk prediction model is, for example, a model designed based on a random forest machine learning algorithm, a model designed based on a neural network, a model designed based on an SVM, a model designed based on a k-NN, a model designed based on a decision tree, or a model designed based on deep learning, etc. Specifically, the present application does not limit the type of the preset risk prediction model.
[0019] It should be noted that this preset risk prediction model can be deployed on a separate server or on the server node where the disk is located.
[0020] The first failure risk index is a quantitative indicator output by the preset risk prediction model, which represents the probability of each disk failing within a certain time frame. The types of the first failure risk index include, but are not limited to: a value between 0 and 1, a percentage, etc. Generally, the higher the value of the first failure risk index, the greater the risk of disk failure.
[0021] Step 102, index calculation is performed based on the first failure risk index corresponding to each of the multiple disks included in each disk group and the average risk index corresponding to each disk group to obtain the second failure risk index corresponding to each disk group, wherein the average risk index is obtained by calculating the average value of the first failure risk index corresponding to each of the multiple disks included in the disk group.
[0022] In the embodiments of the present application, regarding the disk group means that: in a storage system, data is usually distributed on multiple disks, and the disks can be organized into multiple disk groups according to certain rules or strategies, each disk group includes multiple disks, and the disks included in the disk group are jointly responsible for storing and accessing part of the data.
[0023] The second failure risk index is calculated at the disk group level, taking into account the failure risk of all disks within a disk group, thereby providing a more comprehensive assessment that reflects the overall risk of data loss or unavailability of the disk group.
[0024] By determining the second failure risk index of a disk group, we can provide a deeper understanding of storage system risks at the disk group level, identify disk groups that may face higher risks due to simultaneous failure of multiple disks, and take more effective risk mitigation measures to ensure data integrity and system reliability.
[0025] Step 103, identifying high-risk disks and high-risk disk groups, wherein a high-risk disk is a disk whose first failure risk index is greater than or equal to a first preset index threshold, and a high-risk disk group is a disk group whose second failure risk index is greater than or equal to a second preset index threshold.
[0026] In an embodiment of the present application, the first preset index threshold is a pre-set numerical standard used to determine whether the failure risk of a single disk reaches a high risk level. When the first failure risk index of the disk is greater than or equal to the first preset index threshold, the disk is considered to have a higher failure risk, i.e., a high-risk disk.
[0027] The second preset index threshold is also a preset numerical standard, which is a preset numerical standard used to determine the failure risk of the disk group. When the second failure risk index of the disk group is greater than or equal to the second preset index threshold, the disk group is considered to have a higher failure risk as a whole.
[0028] Among them, the method of marking high-risk disks includes but is not limited to: setting warning signs, color coding, etc. on the disk list in the storage management system, and the disk information corresponding to the high-risk disk (including: disk identification (ID), disk type, etc.) can also be recorded in a preset storage location as a high failure risk disk group to facilitate subsequent further operations.
[0029] By identifying high-risk disks and high-risk disk groups, the management efficiency and data protection level of the storage system are improved, which helps to ensure the stable operation of the storage system and the security of data.
[0030] Step 104 , when there is no high-risk disk in the high-risk disk group, the disks in the high-risk disk group are selected to obtain disks to be marked, and the disks to be marked are marked as high-risk disks.
[0031] In an embodiment of the present application, when a disk group is a high-risk disk group, there may not necessarily be a high-risk disk therein. For example, the first failure risk index of each disk in the disk group is large, but is smaller than a first preset threshold. At this time, the second failure risk index calculated based on the first failure risk index may also be large, and there is a possibility that it is greater than the second preset threshold. At this time, even if there is no high-risk disk in the disk group, this disk group is also a high-risk disk group.
[0032] It should be noted that although there is no high-risk disk in the high-risk disk group, due to the high failure risk of the disk group, it is necessary to select a disk in the high-risk disk group and mark it as a high-risk disk so that the high-risk disk can be replaced later to reduce the failure risk of the disk group.
[0033] Specifically, in order to facilitate understanding of the present disclosure, a schematic diagram of a disk and a disk group is provided, such as Figure 2 As shown, although disk group 3 does not have a high-risk disk, disk group 3 may be a high-risk disk group. Further, it can be seen that the disks are divided into high-risk, medium-risk and healthy. The classification of disks includes but is not limited to the following methods: disks with a first failure risk index greater than or equal to the first preset index threshold are marked as high-risk disks; disks with a first failure risk index less than the first preset index threshold and greater than or equal to the third preset index threshold are marked as medium-risk disks; disks with a first failure risk index less than the third preset index threshold are marked as healthy disks. Or, A disk whose first failure risk index is less than a first preset index threshold is marked as a non-high-risk disk; a disk whose first failure risk index is greater than or equal to the first preset index threshold is marked as a high-risk disk.
[0034] Specifically, regarding the division of disks, it is only necessary to identify high-risk disks. The same is true for the division of disk groups. Regarding the division of other content (for example, whether to divide it into healthy or medium risk), this application does not restrict it.
[0035] By marking high-risk disks in a high-risk disk group, the risk management capability of the storage system can be improved. This ensures that appropriate preventive measures can be taken to protect data security when the overall risk of the disk group is high.
[0036] Step 105: Perform disk replacement processing on all high-risk disks in the storage system to obtain a storage system after replacement processing.
[0037] In an embodiment of the present application, all high failure risk disks are traversed, and all high failure risk disks are used as disks to be replaced, and free disks are selected from the free disks in the storage system according to certain rules to replace the high failure risk disks. The storage system uses a data replication method to copy the data in the high failure risk disks to the selected free disks. When the disk data copying is completed, the management service (Manager Daemon, MGRS) performs disk switching to obtain a storage system after the replacement process.
[0038] The present application first calculates the failure risk index of each disk in the storage system through a disk failure prediction model, i.e., a preset risk prediction model, and identifies disks with high failure risk, i.e., high-risk disks. Then, the failure risk index of the disk group is calculated based on the failure risk index of each disk, and the disk group with high failure risk, i.e., high-risk disk group, is identified. When there is no high-risk disk in the high-risk disk group, a disk is selected as the high-risk disk, and then an active protection strategy is adopted to back up and replace data of the high-risk disk, so as to quickly identify disks with high failure risk and disk groups with high failure risk, and perform data backup and replacement in a timely manner, thereby effectively reducing the failure risk of the storage system and ensuring the technical effect of the reliability of the system.
[0039] In an achievable embodiment of the present application, regarding the failure risk prediction processing of the disk in the storage system, the present application provides a flowchart of failure risk prediction, such as Figure 3 As shown, including: Step 301, inputting disk information of the disk in the storage system into a preset risk prediction model for failure risk prediction processing to obtain an initial failure risk index, wherein the preset risk prediction model is a pre-configured model for predicting failure risk.
[0040] In an embodiment of the present application, disk information includes but is not limited to: disk type, disk identification (ID), and disk status data. After the disk information is input into a preset risk prediction model, the output is a disk failure risk index, i.e., an initial failure risk index.
[0041] The initial failure risk index is a relatively messy data. For example, the initial failure risk index of a disk is a value between 0 and 1, and the initial failure risk index of another disk is a percentage, etc. The reason for this phenomenon is that the preset risk prediction model may include multiple sub-models, namely the first prediction model, and the data output by different first prediction models may not have the same unit. Subsequently, the initial failure risk index needs to be normalized to obtain the first failure risk index.
[0042] Step 302 , performing data normalization processing on the initial failure risk index to obtain a first failure risk index.
[0043] In an embodiment of the present application, the initial failure risk indexes of different disks are normalized by disk type, so that the failure risk indexes of different disks in the storage system can be compared. The method for normalizing the initial failure risk data includes but is not limited to: Min-Max normalization method, Z-Score normalization method, or other nonlinear normalization methods, etc. Specifically, the present application does not limit the method for normalizing the initial failure risk data.
[0044] By normalizing the initial failure risk index, comparability can be improved: the first failure risk index of all disks is on the same scale and can be directly compared; consistency: the normalized index is easy to compare and analyze between different storage environments and models; transparency: the normalization process increases the transparency of risk assessment and makes the risk assessment results easier to understand.
[0045] It can improve the accuracy and practicality of disk failure risk assessment in storage systems and provide a more reliable decision-making basis for storage system maintenance and management.
[0046] In an achievable embodiment of the present application, as a refinement of the above-mentioned step 301, when obtaining the initial failure risk index, it can be implemented in the following manner but not limited to: determining the first prediction model corresponding to each of the multiple disks according to the disk type in the disk information, wherein the preset risk prediction model includes at least one first prediction model, and the first prediction model corresponds to one or more disks; inputting the disk information into the corresponding first prediction model for failure risk prediction processing to obtain the initial failure risk index, wherein the disk information includes at least the disk type, disk status data, data collection time, and disk identification.
[0047] In an embodiment of the present application, the first prediction model is one or more sub-models in a preset risk prediction model, and each first prediction model is specifically designed or selected for a specific type of disk or disk group.
[0048] Among them, the disk type is used to determine the applicable first prediction model; the disk status data includes at least the disk's Self-Monitoring, Analysis, and Reporting Technology (SMART) data, error count data, and workload data, etc., which are used to evaluate the health of the disk; the data collection time records the time point when the status data is collected, which is used to analyze the changing trend of the disk status; the disk ID is a unique ID to facilitate tracking and identifying the corresponding disk during the prediction process.
[0049] Determining the first prediction model refers to selecting a suitable first prediction model for each disk or each group of similar disks according to the disk type; inputting disk information refers to inputting information such as the disk type, status data, data collection time and identification into the corresponding first prediction model; failure risk prediction processing refers to the first prediction model performing calculations and analyses based on the input disk information, and outputting an initial failure risk index for each disk.
[0050] By providing customized failure risk predictions for different types of disks, the accuracy and efficiency of predictions are improved, which helps to more accurately identify and manage risks in storage systems, ensuring data security and stable system operation.
[0051] In an achievable embodiment of the present application, before predicting the failure risk of a disk, it is necessary to obtain a preset risk prediction model in advance. When obtaining the preset risk prediction model, it can be implemented by but not limited to the following methods: performing disk modeling processing according to the disk capacity, disk identification, and disk type of the disk to obtain multiple disk models, wherein each disk model corresponds to at least one disk; performing prediction model matching processing according to the disk model to obtain a preset risk prediction model.
[0052] In an embodiment of the present application, each disk model corresponds to at least one disk, and the disk model includes key features of the disk, such as capacity, identification and type, and possible other parameters, such as performance indicators, historical failure data, etc.
[0053] The matching process refers to selecting or configuring one or more suitable first prediction models according to the characteristics of the disk model. The first prediction model is pre-designed and can predict the failure risk for the characteristics of a specific type of disk. Determining the preset risk prediction model refers to determining the most suitable first prediction model for each disk model through the matching process. All the first prediction models together constitute the preset risk prediction model.
[0054] By providing a customized prediction model for each disk, the accuracy and applicability of failure risk prediction is improved, which helps to more effectively monitor and manage the health of each disk in the storage system, detect potential failure risks in advance, and take corresponding preventive measures.
[0055] In an achievable embodiment of the present application, before predicting the failure risk of the disk, it is necessary to obtain the disk information of the disk in advance. When obtaining the disk information, it can be implemented by but not limited to the following methods: collecting disk status data of multiple disks in the storage system according to a preset period; processing the disk status data, disk capacity, disk identification, disk type, and data collection time as a data set to obtain the disk information, wherein the data collection time is the collection time of the disk status data.
[0056] In an embodiment of the present application, disk status data is collected according to a preset period, and the disk status data includes at least SMART data, error count data, workload data, etc. Regarding the preset period, for example, hours, days, weeks, etc., specifically, this application does not impose any restrictions on the setting of the preset period.
[0057] Specifically, the disk status data also includes at least: the number of media errors, the number of data errors (Pending and Uncorrectable sector), the number of reallocated sectors (Reallocated error), the number of program / erase errors, the cumulative power-on time of the disk, the total number of NAND writes (NAND Write), the total number of NAND reads and writes (NAND Read+Write) and the failure status, etc.
[0058] By ensuring that disk information in the storage system is updated in a timely and comprehensive manner, accurate data input is provided to the risk prediction model, which helps to improve the accuracy and real-time nature of disk failure risk prediction, allowing storage system administrators to take appropriate maintenance measures based on the latest disk information.
[0059] In an achievable embodiment of the present application, as a refinement of the above step 102, regarding the calculation of the second failure risk index, the present application provides a schematic diagram of the calculation process of the second failure risk index, such as Figure 4 As shown, including: Step 401 : In each disk group, an average value is calculated based on first failure risk indexes corresponding to a plurality of disks included in the disk group, so as to obtain an average risk index corresponding to each disk group.
[0060] In the embodiment of the present application, it is necessary to calculate the failure risk index of all disk groups, that is, the second failure risk index. Specifically, the calculation of the second failure risk index can be adopted but not limited to the following method: Assume that a certain disk group occupies a total of N disks, and the first failure risk index of the jth disk is At this time, the calculation of the average risk index can be performed using, but not limited to, formula (1): Formula (1) in, is the average risk index, N is the number of disks in the disk group, j is the jth disk in the disk group, is the first failure risk index of the jth disk.
[0061] Step 402 , in each disk group, data calculation processing is performed according to the first failure risk index corresponding to each of the plurality of disks included in the disk group and the average risk index corresponding to the disk group to obtain a discrete value corresponding to each disk group.
[0062] In the embodiment of the present application, the discrete value may be expressed by, but not limited to, formula (2): Formula (2) in, That is, it is a discrete value. The discrete value is calculated based on the first failure risk index corresponding to each of the multiple disks and the average risk index corresponding to the disk group. It is an intermediate data for calculating the second failure risk index and has no specific substantive meaning. However, it can be used to determine the data distribution characteristics of the first failure risk index corresponding to each of the multiple disks included in the disk group.
[0063] Step 403 : in each disk group, index calculation processing is performed according to the average risk index and discrete value corresponding to each disk group, so as to obtain the second failure risk index corresponding to each disk group.
[0064] In the embodiment of the present application, the calculation of the second failure risk index may be performed using, but not limited to, formula (3): Formula (3) in, is the second failure risk index.
[0065] The first failure risk index and the second failure risk index enable a more detailed and comprehensive risk assessment, which not only considers the risk of a single disk, but also the overall risk status of the disk group. This helps to better identify and manage high-risk disk groups, thereby taking more effective preventive measures to ensure data security and stable system operation.
[0066] In an achievable embodiment of the present application, it is necessary to perform risk assessment of disks and disk groups based on a first failure risk index and a second failure risk index. Specifically, it can be implemented in the following manner but not limited to: comparing the first failure risk index with a first preset index threshold, and when the first failure risk index is less than the first preset index threshold, marking the disk whose first failure risk index is less than the first preset index threshold as a non-high-risk disk; when the first failure risk index is greater than or equal to the first preset index threshold, marking the disk whose first failure risk index is greater than or equal to the first preset index threshold as a high-risk disk; comparing the second failure risk index with the second preset index threshold, and when the second failure risk index is less than the second preset index threshold, marking the disk group whose second failure risk index is less than the second preset index threshold as a non-high-risk disk group; when the second failure risk index is greater than or equal to the second preset index threshold, marking the disk group whose second failure risk index is greater than or equal to the second preset index threshold as a high-risk disk group.
[0067] In the embodiment of the present application, a non-high-risk disk means that the disk has a low risk of failure in the current evaluation cycle. A high-risk disk means that the disk has a high risk of failure in the current evaluation cycle and may require additional monitoring or maintenance.
[0068] A non-high-risk disk group indicates that the disk group has a low overall risk of failure. A high-risk disk group indicates that the disk group has a high overall risk of failure and may require appropriate risk mitigation measures.
[0069] The risk level of disks and disk groups can be determined by the size of the first failure risk index and the second failure risk index. Disks and disk groups can be classified according to the risk level, so that resources can be allocated in a targeted manner, maintenance plans can be optimized, and the reliability and data protection capabilities of the storage system can be improved. This helps to identify potential failure points in advance and take preventive measures to reduce data loss and system downtime.
[0070] In an achievable embodiment of the present application, as a refinement of the above step 104, regarding the selection of disks in the high-risk disk group, the present application provides a flowchart of disk selection, such as Figure 5 As shown, including: Step 501, according to the magnitude of the first failure risk index corresponding to each of the plurality of disks included in the high-risk disk group, risk index grading processing is performed to obtain a plurality of levels of first failure risk indexes, wherein the first failure risk index of the high level is greater than the first failure risk index of the low level.
[0071] In an embodiment of the present application, when a high-risk disk group does not include a high-risk disk, it is necessary to select a disk in the high-risk disk group as a high-risk disk and replace the disk later to reduce the risk index of the high-risk disk group.
[0072] Regarding the grading of the first failure risk index, the following method may be used but is not limited to: the first failure risk index is divided into K levels, and each disk in the high-risk disk group is classified into different levels according to the value of the first failure risk index. Specifically, a disk failure risk level matrix may be used to record, such as Figure 6 As shown, Figure 6 A schematic diagram of a disk failure risk level provided for this application.
[0073] Step 502, traverse the first failure risk indexes of multiple levels to obtain a target failure risk index, and determine a first number of the target failure risk index, wherein the target failure risk index is the first failure risk index of the highest level among the first failure risk indexes of multiple levels.
[0074] In an embodiment of the present application, traversal is started from the highest level downwards to find the first failure risk index corresponding to one or more disks with the highest failure level in the high-risk disk group, that is, the first failure risk index of the highest level.
[0075] Step 503: When the first number is not greater than a preset number threshold, the disk corresponding to the target failure risk index is determined as a disk to be marked.
[0076] In an embodiment of the present application, if there is only one first failure risk index with the highest failure level in the high-risk disk group, the disk corresponding to the first failure risk index is determined as a high-failure-risk disk.
[0077] Step 504, when the first number is greater than a preset number threshold, obtain the power-on time of the disk corresponding to each target failure risk index, and determine the disk with the longest power-on time among the disks corresponding to each target failure risk index as the disk to be marked.
[0078] In an embodiment of the present application, if there are multiple first failure risk indices with the highest failure level in a high-risk disk group, the cumulative power-on times of the disks corresponding to the multiple first failure risk indices with the highest failure levels are compared, and the disk with the longest cumulative power-on time is determined as the disk to be marked.
[0079] By identifying the disks to be marked in the high-risk disk group, the risk of the storage system can be effectively managed. In addition, when there are no high-risk disks in the high-risk disk group, the disks that need to be replaced can be identified to reduce the risk level of the disk group, which helps to improve the reliability and maintenance efficiency of the storage system.
[0080] In an achievable embodiment of the present application, when performing disk replacement processing, it can also be implemented in but not limited to the following manner: based on high-risk disks and preset selection conditions, disk selection processing is performed in the storage system to obtain a target free disk corresponding to each high-risk disk; the data in the high-risk disk is copied to the corresponding target free disk to obtain a copied target free disk; the high-risk disk is replaced by the copied target free disk to obtain a storage system after replacement processing.
[0081] In the embodiments of the present application, the preset selection conditions are some custom set conditions, such as: the performance, capacity, health status, location, etc. of the disk. Specifically, the present application does not impose any restrictions on the preset selection conditions.
[0082] For each high-risk disk, find the corresponding target free disk. The target free disk will be used to replace the high-risk disk, so it needs to meet certain requirements and standards, namely the preset selection conditions. Data replication refers to copying the data in the high-risk disk to the corresponding target free disk. This process includes but is not limited to: data migration, synchronization or mirroring operations to ensure data consistency and integrity. After the replication is completed, the target free disk will contain the same data copy as the high-risk disk.
[0083] The process of replacing a high-risk disk with a copied target free disk includes, but is not limited to, updating the storage system configuration, disk mapping, Redundant Array of Independent Disks configuration (RAID), file system, etc., to ensure that the system continues to operate normally. After the replacement process, the original high-risk disk can be removed, repaired, or used as a spare disk, while the storage system continues to be provided by the new, lower-risk disk (i.e., the copied target free disk).
[0084] By replacing the disk, potential failure points can be removed from the storage system in a timely manner, thereby improving system stability and data reliability, helping to prevent data loss and system downtime, and ensuring the continuous availability of the storage system.
[0085] In an achievable embodiment of the present application, before performing a disk replacement, it is necessary to determine in advance whether the number of free disks in the storage system is sufficient. If the storage system does not have enough free disks, it is necessary to remind the operating personnel to add new disks. Specifically, the following method can be used but is not limited to: determine whether there is a target free disk in the storage system based on high-risk disks and preset selection conditions; if there is no target free disk in the storage system, generate disk addition information, and perform alarm processing through a preset alarm method based on the disk addition information and preset alarm information.
[0086] In the embodiment of the present application, the existence of the target free disk is first determined, that is, based on the high-risk disks and the preset selection conditions, it is checked in the storage system whether there is a suitable free disk available for replacement.
[0087] If no target free disk that meets the conditions is found in the storage system, the next step is to generate disk addition information. After determining that there is no target free disk, the disk addition information is generated. The disk addition information includes but is not limited to: the type, quantity, and specifications of the disk to be added, so that the operator can understand the specific actions to be taken.
[0088] Alarm processing refers to alarm processing through a preset alarm method based on the generated disk addition information and preset alarm information. The preset alarm information is custom-set information, and the preset alarm method is a custom-selected method. The preset alarm method includes but is not limited to: sending emails, text messages, system notifications, sound warnings, etc. The purpose is to notify the storage system operator or related personnel of the current storage system status and the measures to be taken. Specifically, this application does not limit the preset alarm information and preset alarm method.
[0089] By implementing the above method, it is ensured that relevant personnel can be notified in time when storage system resources are insufficient, so that necessary measures (such as adding new disks, optimizing storage resources, etc.) can be taken to maintain the normal operation of the system and the security of data, which helps to avoid potential storage resource bottlenecks and prevent system failures in advance.
[0090] In an achievable embodiment of the present application, after the disk replacement is performed, the operating personnel are reminded that the disk replacement has been completed. Specifically, the following methods may be used but are not limited to: based on the data copying process in the high-risk disk, processing log data of the storage system is generated; based on the processing log data and preset prompt information, prompt processing is performed through a preset prompt method.
[0091] In an embodiment of the present application, during the data replication process in the high-risk disk, relevant operations and events are recorded to generate processing log data.
[0092] Processing log data includes, but is not limited to: the start and end time of the copy operation, the amount of data copied, any error or warning information during the copy process, the disk identification involved, operator information, etc. Processing log data is an important record of the storage system operation history and is of great significance for tracking operation history, troubleshooting and system auditing.
[0093] The preset prompt method is a custom selected method, including but not limited to: pop-up window, sound prompt, email notification, SMS notification, etc., the purpose of which is to provide real-time operation feedback and system status updates to system administrators or operators. The preset prompt information is custom set information, including but not limited to: the progress of the copy operation, the success or failure status, the subsequent actions to be taken, etc. Specifically, this application does not limit the preset prompt information and preset prompt method.
[0094] The user feedback mechanism ensures the transparency and traceability of storage system operations, helping administrators to promptly understand system status changes and quickly respond to possible problems, thereby improving the management efficiency and reliability of the storage system.
[0095] In conjunction with the control method of the storage system, the present application also provides an application environment architecture and a hardware architecture for executing the control method of the storage system. The application environment architecture and the hardware architecture are described herein.
[0096] like Figure 7 As shown, Figure 7 A schematic diagram of the architecture of a distributed storage system provided for this application, which mainly includes an application layer, a protocol layer, a management layer and a hardware layer.
[0097] The application layer is a program that implements user needs, including but not limited to: clients, applications, and virtual machines. The protocol layer is mainly used to meet the protocol access requirements of different users. It is composed of the Data Management and Protocol Fusion (LIBUDOSS) library. The LIBUDOSS library is a custom library developed for specific distributed storage functions or systems. It can provide different interface protocols, allowing applications to interact with distributed storage systems through it.
[0098] The management layer is the core of the distributed storage system and is composed of the Unified Distributed Storage System (UDDOS). It mainly includes the following four types of services: (1) Monitoring Service (MONS): A daemon used to maintain the cluster status map. The cluster status includes the number of storage pools in the cluster, the number of placement groups (PG) in each storage pool, and the mapping relationship between storage pools and PGs. (2) Manager Daemon (MGRS): A daemon responsible for managing cluster information and tracking runtime indicators and current status. (3) Object Storage Daemon (OSD): Each disk corresponds to an OSD daemon, which is responsible for handling cluster data replication, recovery, and rebalancing, and provides information to the monitoring service and the management service by checking the mentality of other OSD daemons. (4) Metadata Server (MDS): Manages the metadata of the cluster. A storage pool is a logical storage unit in Ceph Distributed File System (Ceph), which is used to organize and manage data. There are two types of storage pools: multi-copy storage pools and erasure coded storage pools. A disk group (PG) is a physical data distribution unit in a distributed storage system, which is used to distribute data to different OSDs. A storage pool includes multiple disk groups, each of which is responsible for a part of data management and storage.
[0099] The hardware layer is composed of physical disks that actually provide storage services.
[0100] It should be noted that this architecture is only an example of an architecture for executing a control method of a storage system and does not constitute a limitation to the present application.
[0101] In summary, this application can achieve the following technical effects: The present application first calculates the failure risk index of each disk in the storage system through a disk failure prediction model, i.e., a preset risk prediction model, and identifies disks with high failure risks, i.e., high-risk disks. Since a disk group includes multiple disks, the failure risk index of the disk group can be calculated based on the failure risk index of each disk, and disk groups with high failure risks, i.e., high-risk disk groups, can be identified. At the same time, since the failure risk index of the disk group is calculated from the failure risk indexes of the disks included in the disk group, it is possible that there are no high-risk disks in the high-risk disk group. In order to further reduce the failure risk of the storage system, in addition to replacing the high-risk disks, it is also necessary to reduce the failure risks of all high-risk disk groups. Therefore, it is necessary to select a high-risk disk group in which no high-risk disks exist. The disks to be marked are used to reduce the failure risk of high-risk disk groups by replacing the disks to be marked. After that, all high-risk disks and disks to be marked in the storage system are replaced, which can timely handle the disks and disk groups with failure risks in the storage system to solve the technical problem that the existing technology cannot timely handle the disks with failure risks in the storage system, which easily causes the number of failed disks in the storage system to exceed the fault tolerance of the system, causing the storage system to fail and resulting in a high risk of data loss in the storage system. The technical effect is to quickly identify disks with high failure risks and disk groups with high failure risks, and to back up and replace data in time to ensure that the number of failed disks in the storage system does not exceed the fault tolerance of the system, effectively reduce the failure risk of the storage system, and ensure the reliability of the system.
[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.
[0103] The embodiment of the present application also provides a control device for a storage system, Figure 8 A schematic diagram of the structure of a control device of a storage system provided for the application, such as Figure 8 As shown, including: The prediction unit 801 is used to perform failure risk prediction processing by using a preset risk prediction model and disk information of disks in the storage system to obtain first failure risk indexes corresponding to each of the plurality of disks, wherein the storage system includes a plurality of disk groups, and each disk group includes a plurality of disks; The calculation unit 802 is used to perform index calculation processing according to the first failure risk indexes corresponding to the multiple disks included in each disk group and the average risk index corresponding to each disk group, so as to obtain the second failure risk index corresponding to each disk group, wherein the average risk index is obtained by calculating the average value of the first failure risk indexes corresponding to the multiple disks included in the disk group; The identification unit 803 is used to identify high-risk disks and high-risk disk groups, wherein the high-risk disks are disks whose first failure risk index is greater than or equal to a first preset index threshold, and the high-risk disk group is a disk group whose second failure risk index is greater than or equal to a second preset index threshold; The selection unit 804 is used for selecting the disks in the high-risk disk group to obtain the disks to be marked, and marking the disks to be marked as high-risk disks when there are no high-risk disks in the high-risk disk group. The processing unit 805 is used to perform disk replacement processing on all high-risk disks in the storage system to obtain a storage system after replacement processing.
[0104] In one embodiment of the present application, the prediction unit 801 is further configured to: Inputting disk information of the disk in the storage system into a preset risk prediction model for failure risk prediction processing to obtain an initial failure risk index, wherein the preset risk prediction model is a pre-configured model for predicting failure risk; The initial failure risk index is subjected to data normalization processing to obtain a first failure risk index.
[0105] In one embodiment of the present application, the prediction unit 801 is further configured to: Determine first prediction models corresponding to each of the plurality of disks according to the disk type in the disk information, wherein the preset risk prediction model includes at least one first prediction model, and the first prediction model corresponds to one or more disks; The disk information is input into the corresponding first prediction model for failure risk prediction processing to obtain an initial failure risk index, wherein the disk information at least includes disk type, disk status data, data collection time, and disk identification.
[0106] In one embodiment of the present application, Fig. 9 As shown, the control device of the storage system also includes: The modeling unit 806 is used to perform disk modeling processing according to the disk capacity, disk identification, and disk type of the disk to obtain multiple disk models, wherein each disk model corresponds to at least one disk; The matching unit 807 is used to perform prediction model matching processing according to the disk model to obtain a preset risk prediction model.
[0107] In one embodiment of the present application, Fig. 9 As shown, the control device of the storage system also includes: The collecting unit 808 is used to collect disk status data of multiple disks in the storage system according to a preset period; The collection unit 809 is used to perform data collection processing on the disk status data, disk capacity, disk identification, disk type, and data collection time to obtain disk information, wherein the data collection time is the collection time of the disk status data.
[0108] In one embodiment of the present application, the calculation unit 802 is further configured to: In each disk group, an average value is calculated according to first failure risk indexes corresponding to each of the plurality of disks included in the disk group, so as to obtain an average risk index corresponding to each disk group; In each disk group, data calculation and processing are performed according to the first failure risk indexes corresponding to the plurality of disks included in the disk group and the average risk index corresponding to the disk group to obtain a discrete value corresponding to each disk group; In each disk group, index calculation processing is performed according to the average risk index and discrete value corresponding to each disk group, so as to obtain the second failure risk index corresponding to each disk group.
[0109] In one embodiment of the present application, Fig. 9 As shown, the control device of the storage system also includes: A comparison unit 810 is used to compare the first failure risk index with a first preset index threshold, and when the first failure risk index is less than the first preset index threshold, mark the disk whose first failure risk index is less than the first preset index threshold as a non-high-risk disk; The comparison unit 810 is further configured to, when the first failure risk index is greater than or equal to the first preset index threshold, mark the disk whose first failure risk index is greater than or equal to the first preset index threshold as a high-risk disk; The comparison unit 810 is further configured to compare the second failure risk index with a second preset index threshold, and when the second failure risk index is less than the second preset index threshold, mark the disk group whose second failure risk index is less than the second preset index threshold as a non-high-risk disk group; The comparison unit 810 is further configured to, when the second failure risk index is greater than or equal to the second preset index threshold, mark the disk group whose second failure risk index is greater than or equal to the second preset index threshold as a high-risk disk group.
[0110] In one embodiment of the present application, the selection unit 804 is further configured to: According to the magnitudes of the first failure risk indexes corresponding to the multiple disks included in the high-risk disk group, a risk index grading process is performed to obtain multiple levels of first failure risk indexes, wherein the first failure risk index of the high level is greater than the first failure risk index of the low level; Traversing the first failure risk indexes of multiple levels to obtain a target failure risk index, and determining a first number of the target failure risk index, wherein the target failure risk index is the first failure risk index of the highest level among the first failure risk indexes of the multiple levels; When the first number is not greater than a preset number threshold, determining the disk corresponding to the target failure risk index as a disk to be marked; When the first number is greater than a preset number threshold, the power-on time of the disk corresponding to each target failure risk index is obtained, and the disk with the longest power-on time among the disks corresponding to each target failure risk index is determined as the disk to be marked.
[0111] In one embodiment of the present application, the processing unit 805 is further configured to: According to the high-risk disks and the preset selection conditions, disk selection processing is performed in the storage system to obtain the target free disk corresponding to each high-risk disk; Copy the data in the high-risk disk to the corresponding target free disk to obtain the copied target free disk; The high-risk disk is replaced by the copied target idle disk to obtain a replaced storage system.
[0112] In one embodiment of the present application, Fig. 9 As shown, the control device of the storage system also includes: A determination unit 811 is used to determine whether there is a target free disk in the storage system according to the high-risk disk and the preset selection condition; The alarm unit 812 is used to generate disk addition information if there is no target free disk in the storage system, and perform alarm processing in a preset alarm manner according to the disk addition information and preset alarm information.
[0113] In one embodiment of the present application, Fig. 9 As shown, the control device of the storage system also includes: A generating unit 813, configured to generate processing log data of the storage system according to the data replication process in the high-risk disk; The prompt unit 814 is used to perform prompt processing in a preset prompt manner according to the processing log data and the preset prompt information.
[0114] For the description of the features in the embodiment corresponding to the control device of the storage system, reference can be made to the relevant description of the embodiment corresponding to the control method of the storage system, which will not be repeated here.
[0115] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above-mentioned storage system control method embodiments.
[0116] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above-mentioned storage system control method embodiments when running.
[0117] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0118] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above-mentioned storage system control method embodiments are implemented.
[0119] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps in any of the above-mentioned storage system control method embodiments are implemented.
[0120] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0121] The above is a detailed introduction to a control method and device for a storage system, an electronic device, and a storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the method and core idea of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A storage system control method, characterized in that: include: Performing failure risk prediction processing through a preset risk prediction model and disk information of disks in a storage system to obtain first failure risk indexes corresponding to each of the plurality of disks, wherein the storage system includes a plurality of disk groups, and each of the disk groups includes a plurality of the disks; An index calculation process is performed according to the first failure risk index corresponding to each of the plurality of disks included in each disk group and the average risk index corresponding to each disk group, so as to obtain a second failure risk index corresponding to each disk group, wherein the average risk index is obtained by calculating the average value of the first failure risk index corresponding to each of the plurality of disks included in the disk group; Identify high-risk disks and high-risk disk groups, wherein the high-risk disks are disks whose first failure risk index is greater than or equal to a first preset index threshold, and the high-risk disk groups are disk groups whose second failure risk index is greater than or equal to a second preset index threshold; In the case that the high-risk disk does not exist in the high-risk disk group, selecting and processing the disks in the high-risk disk group to obtain disks to be marked, and marking the disks to be marked as the high-risk disks; Perform disk replacement processing on all the high-risk disks in the storage system to obtain a storage system after replacement processing.
2. The control method of the storage system according to claim 1, characterized in that: The method of performing failure risk prediction processing on the disks in the storage system by using a preset risk prediction model to obtain first failure risk indexes corresponding to each of the plurality of disks includes: Inputting the disk information of the disk in the storage system into the preset risk prediction model for failure risk prediction processing to obtain an initial failure risk index, wherein the preset risk prediction model is a pre-configured model for predicting failure risk; The initial failure risk index is subjected to data normalization processing to obtain the first failure risk index.
3. The control method of the storage system according to claim 2, characterized in that: The step of inputting the disk information of the disk in the storage system into the preset risk prediction model to perform failure risk prediction processing to obtain an initial failure risk index includes: Determine, according to the disk type in the disk information, first prediction models corresponding to each of the plurality of disks, wherein the preset risk prediction model includes at least one first prediction model, and the first prediction model corresponds to one or more of the disks; The disk information is input into the corresponding first prediction model for failure risk prediction processing to obtain the initial failure risk index, wherein the disk information at least includes the disk type, disk status data, data collection time, and disk identification.
4. The control method of the storage system according to claim 3, characterized in that: Before performing failure risk prediction processing by using a preset risk prediction model and disk information of disks in a storage system to obtain first failure risk indexes corresponding to each of the plurality of disks, the method further includes: Performing disk modeling processing according to the disk capacity, the disk identifier, and the disk type of the disk to obtain a plurality of disk models, wherein each of the disk models corresponds to at least one of the disks; Prediction model matching processing is performed according to the disk model to obtain the preset risk prediction model.
5. The control method of the storage system according to claim 4, characterized in that: Before performing failure risk prediction processing by using a preset risk prediction model and disk information of disks in a storage system to obtain first failure risk indexes corresponding to each of the plurality of disks, the method further includes: In the storage system, collecting the disk status data of the plurality of disks according to a preset period; The disk status data, the disk capacity, the disk identification, the disk type, and the data collection time are processed as a data set to obtain the disk information, wherein the data collection time is the collection time of the disk status data.
6. The control method of the storage system according to claim 1, characterized in that: The index calculation process is performed based on the first failure risk indexes corresponding to the plurality of disks included in each disk group and the average risk index corresponding to each disk group to obtain the second failure risk index corresponding to each disk group, which includes: In each of the disk groups, an average value is calculated according to the first failure risk indexes corresponding to the plurality of disks included in the disk group, so as to obtain the average risk index corresponding to each of the disk groups; In each of the disk groups, data calculation processing is performed according to the first failure risk indexes corresponding to the plurality of disks included in the disk group and the average risk index corresponding to the disk group to obtain a discrete value corresponding to each of the disk groups; In each of the disk groups, index calculation processing is performed according to the average risk index and the discrete value corresponding to each of the disk groups to obtain the second failure risk index corresponding to each of the disk groups.
7. The control method of the storage system according to claim 1, characterized in that: After performing index calculation processing according to the first failure risk indexes corresponding to the plurality of disks included in each disk group and the average risk index corresponding to each disk group to obtain the second failure risk index corresponding to each disk group, the method further includes: Compare the first failure risk index with the first preset index threshold, and if the first failure risk index is less than the first preset index threshold, mark the disk whose first failure risk index is less than the first preset index threshold as a non-high-risk disk; In the case where the first failure risk index is greater than or equal to the first preset index threshold, marking the disk whose first failure risk index is greater than or equal to the first preset index threshold as the high-risk disk; Comparing the second failure risk index with the second preset index threshold, and if the second failure risk index is less than the second preset index threshold, marking the disk group whose second failure risk index is less than the second preset index threshold as a non-high-risk disk group; When the second failure risk index is greater than or equal to the second preset index threshold, the disk group whose second failure risk index is greater than or equal to the second preset index threshold is marked as the high-risk disk group.
8. The storage system control method according to claim 1, characterized in that: In the case that the high-risk disk does not exist in the high-risk disk group, selecting and processing the disks in the high-risk disk group to obtain the disks to be marked includes: According to the magnitudes of the first failure risk indexes corresponding to the plurality of disks included in the high-risk disk group, a risk index grading process is performed to obtain a plurality of levels of first failure risk indexes, wherein the first failure risk index of a high level is greater than the first failure risk index of a low level; Traversing the first failure risk indexes of the multiple levels to obtain a target failure risk index, and determining a first number of the target failure risk index, wherein the target failure risk index is the first failure risk index of the highest level among the first failure risk indexes of the multiple levels; In a case where the first number is not greater than a preset number threshold, determining the disk corresponding to the target failure risk index as the disk to be marked; When the first number is greater than the preset number threshold, the power-on time of each disk corresponding to the target failure risk index is obtained, and the disk with the longest power-on time among the disks corresponding to each target failure risk index is determined as the disk to be marked.
9. The control method of the storage system according to claim 1, characterized in that: The performing disk replacement processing on all the high-risk disks in the storage system to obtain a storage system after the replacement processing comprises: According to the high-risk disks and preset selection conditions, disk selection processing is performed in the storage system to obtain a target free disk corresponding to each high-risk disk; Copying the data in the high-risk disk to the corresponding target free disk to obtain a copied target free disk; The high-risk disk is replaced by the copied target free disk to obtain the replaced storage system.
10. The control method of the storage system according to claim 9, characterized in that: Before performing disk selection processing in the storage system according to the high-risk disks and the preset selection conditions to obtain the free disks corresponding to each of the high-risk disks, the method further includes: Determine whether the target free disk exists in the storage system according to the high-risk disk and the preset selection condition; If the target free disk does not exist in the storage system, disk addition information is generated, and alarm processing is performed in a preset alarm manner according to the disk addition information and preset alarm information.
11. The control method of the storage system according to claim 9, characterized in that: After copying the data in the high-risk disk to the corresponding target free disk to obtain the copied target free disk, the method further includes: generating processing log data of the storage system according to the data replication process in the high-risk disk; According to the processing log data and the preset prompt information, prompt processing is performed through a preset prompt method.
12. A control device for a storage system, characterized in that: include: A prediction unit, configured to perform failure risk prediction processing by using a preset risk prediction model and disk information of disks in a storage system to obtain first failure risk indexes corresponding to each of the plurality of disks, wherein the storage system includes a plurality of disk groups, and each of the disk groups includes a plurality of the disks; A calculation unit, configured to perform index calculation processing according to first failure risk indexes corresponding to each of the plurality of disks included in each disk group and an average risk index corresponding to each disk group, to obtain a second failure risk index corresponding to each disk group, wherein the average risk index is obtained by calculating the average value of the first failure risk indexes corresponding to each of the plurality of disks included in the disk group; an identification unit, configured to identify a high-risk disk and a high-risk disk group, wherein the high-risk disk is a disk whose first failure risk index is greater than or equal to a first preset index threshold, and the high-risk disk group is a disk group whose second failure risk index is greater than or equal to a second preset index threshold; A selection unit, configured to select disks in the high-risk disk group to obtain disks to be marked, and mark the disks to be marked as the high-risk disks if the high-risk disk does not exist in the high-risk disk group; The processing unit is used to perform disk replacement processing on all the high-risk disks in the storage system to obtain a storage system after replacement processing.
13. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the storage system control method according to any one of claims 1 to 11 when executing the computer program.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the storage system control method according to any one of claims 1 to 11.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the storage system control method according to any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Data storage method, device and system, electronic equipment and readable storage medium
CN112783445A
Disk fault prediction method, device and equipment and computer storage medium
CN113127274A
Storage pool management method, system and equipment and storage medium
CN116701067A
Disk failure prediction processing method and device, medium and computer program product
CN118673393A
Re-allocation of disks based on disk health prior to restore
US20240126445A1