Hard disk life estimation method, system, device and equipment, storage medium and program product

By obtaining and analyzing the operating parameters of the hard disk, combining wear and similarity parameters, calculating the life consumption of the hard disk, the problem of inaccurate life estimates of existing SSDs is solved, and more accurate hard disk life prediction is achieved, reducing data loss risk.

CN119311442APending Publication Date: 2025-01-14SUGON INFORMATION IND +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411406912.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The remaining life expectancy method of existing solid-state drives (SSDs) is inaccurate, resulting in data loss and unforeseen consequences.

Method used

By obtaining the operating parameters of the target hard disk within the preset number cycle and the operating parameters of all hard disks in the storage pool during the target cycle, determining the similarity parameters and mapping parameters, calculating the life consumption, and estimating the remaining life of the hard disk based on the wear parameters. The mutual influence and operation parameters between hard disks in the storage pool are considered.

Benefits of technology

Improves the accuracy of hard disk life estimates, provides more reliable residual life prediction, and reduces the risk of data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311442A_ABST
    Figure CN119311442A_ABST
Patent Text Reader

Abstract

The invention relates to a hard disk life estimation method, system and device, equipment, a storage medium and a program product. The method comprises the following steps: acquiring a first operation parameter of a target hard disk in a preset number of periods and second operation parameters of all hard disks in a storage pool in a target period, and determining the service life consumption of the target hard disk in a preset time period according to the first operation parameter and the second operation parameter; estimating the residual life of the target hard disk according to the wear parameter and the life consumption of the target hard disk; the preset number of periods comprise a target period. According to the method, mutual influence among the hard disks in the storage pool and certain relation among the operation parameters of the hard disks in the same sampling period are considered, and the residual life of the target hard disk is estimated according to the operation parameters of the hard disks in the storage pool in the target period and the operation parameters of the target hard disk in the preset number of periods; and the pre-estimation result is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of solid-state hard disks, and in particular to a method, system, device, equipment, storage medium and program product for estimating the life of a hard disk. Background Art

[0002] With the advent of the Internet era, SSD (Solid State Drive) storage devices have gained widespread favor for their superior input / output interface (IO) performance. Domestic and foreign large data centers such as Baidu Cloud, Tencent Cloud and Google Cloud have fully adopted SSD storage devices as the basic storage unit when building storage systems. SSD storage devices have become mainstream storage devices.

[0003] As we all know, once an SSD storage device is damaged, it is easy to cause data loss, and even bring huge losses and unforeseen consequences. Therefore, estimating the remaining life of SSDs has become the core research direction of researchers. At present, the common SSD remaining life estimation method is mainly based on the SMART information provided by SSD chip manufacturers, including wear, operating temperature, number of bad blocks, etc., and linear calculation is performed to estimate the remaining life based on the wear.

[0004] However, the above-mentioned method for estimating the remaining life of the SSD has the problem of inaccurate estimation. Summary of the invention

[0005] Based on this, it is necessary to provide a hard disk life estimation method, system, device, equipment, storage medium and program product that can accurately estimate the remaining life of an SSD in response to the above technical problems.

[0006] In a first aspect, the present application provides a method for estimating hard disk life, comprising:

[0007] Obtaining a first operating parameter of a target hard disk within a preset number of cycles, and a second operating parameter of all hard disks in a storage pool within a target cycle; the preset number of cycles includes the target cycle;

[0008] Determining the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter;

[0009] The remaining life of the target hard disk is estimated based on the wear parameters and life consumption of the target hard disk.

[0010] The above method provides an accurate method for estimating the life of a hard disk. The remaining life of the target hard disk is estimated through the operating parameters of the target hard disk and the operating parameters of each hard disk in the storage pool. Compared with the method of estimating the remaining life of the target hard disk based only on the SMART information of the target hard disk itself, the above method takes into account the mutual influence between the hard disks in the storage pool and the certain connection between the operating parameters of the hard disks within the same sampling period. The remaining life of the target hard disk is estimated based on the operating parameters of each hard disk in the storage pool within the target period and the operating parameters of the target hard disk within a preset number of periods, so that the estimation result is more accurate.

[0011] In one embodiment, the preset number of cycles includes three cycles, and determining the life consumption of the target hard disk within the preset time period according to the first operating parameter and the second operating parameter includes:

[0012] Determine the similarity parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the second operating parameter of each hard disk in the target cycle; the target cycle is the first cycle;

[0013] Determine a first mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle, the duration of the second cycle, and the similarity parameter;

[0014] The life consumption of the target hard disk within a preset time period is determined according to the first mapping parameter, the similarity parameter, the first operating parameter of the target hard disk within the third cycle, and the duration of the second cycle.

[0015] The method for determining the life consumption of a target hard disk within a preset time period provided in an embodiment of the present application determines the life consumption of the target hard disk within the preset time period based on the similarity between the first operating parameters of the target hard disk in the second cycle and the second operating parameters of each hard disk in the target cycle, thereby providing a data basis for subsequently determining the remaining life of the target hard disk based on the life consumption of the target hard disk within the preset time period.

[0016] In one embodiment, determining the similarity parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the second operating parameter of each hard disk in the target cycle includes:

[0017] determining a similarity between the first operating parameter and each second operating parameter;

[0018] The similarity between the second operating parameter with the greatest similarity and the first operating parameter is determined as the similarity parameter.

[0019] The method for determining similarity parameters provided in the embodiment of the present application takes into account the mutual influence between the hard disks in the storage pool, and determines the similarity of the target hard disk based on the similarity between the operating parameters of the hard disks in the storage pool in the first cycle and the operating parameters of the target hard disk in the second cycle, thereby providing data support for accurately estimating the remaining life of the target hard disk.

[0020] In one embodiment, determining the first mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle, the duration of the second cycle, and the similarity parameter includes:

[0021] Determining a second mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the duration of the second cycle;

[0022] A first mapping parameter is determined according to the similarity parameter and the second mapping parameter.

[0023] The method for determining the first mapping parameters provided in the embodiment of the present application recursively infers the first mapping parameters in the next cycle through the second mapping parameters of the target hard disk in the second cycle and the similarity between the operating parameters of the target hard disk in the second cycle and the operating parameters of each hard disk in the first cycle, thereby providing a data basis for subsequently determining the remaining life of the target hard disk based on the first mapping parameters.

[0024] In one embodiment, determining the life consumption of the target hard disk within the preset time period according to the first mapping parameter, the similarity parameter, the first operating parameter of the target hard disk within the third period, and the duration of the second period includes:

[0025] Determine the life consumption corresponding to the second cycle according to the similarity parameter and the duration of the second cycle;

[0026] Determine a first life consumption rate within the preset time period according to the length of the preset time period and the life consumption corresponding to the second cycle;

[0027] Determine the life consumption corresponding to the third cycle according to the first mapping parameter and the first operating parameter of the target hard disk in the third cycle;

[0028] The life consumption of the target hard disk within the preset time period is determined according to the life consumption rate within the preset time period and the life consumption corresponding to the third cycle.

[0029] The method for determining the life consumption of a target hard disk within a preset time period provided in an embodiment of the present application determines the life consumption of the target hard disk within the preset time period through a first mapping parameter, a similarity parameter, a first operating parameter of the target hard disk within a third cycle, and the duration of the second cycle, thereby providing a data basis for subsequently determining the remaining life of the target hard disk based on the life consumption of the target hard disk within the preset time period.

[0030] In one embodiment, the wear parameters include current wear and maximum safe wear; and estimating the remaining life of the target hard disk based on the wear parameters and life consumption of the target hard disk includes:

[0031] Determine the actual wear rate of the target hard disk based on the current wear degree and the maximum safe wear degree;

[0032] Determine a second life consumption rate within the preset time period according to the life consumption and the length of the preset time period;

[0033] Estimate the remaining life of the target hard disk based on the actual wear rate and the second life consumption rate.

[0034] The method for estimating the remaining life of a target hard disk provided in the embodiment of the present application estimates the remaining life of the target hard disk through the wear parameters and life consumption of the target hard disk, thereby improving the estimation accuracy of the remaining life of the target hard disk.

[0035] In a second aspect, the present application also provides a hard disk life estimation system, including: a controller and a user terminal;

[0036] A user terminal, used to send a life estimation request to the controller;

[0037] The controller is used to execute the method described in the first aspect above when receiving a life estimation request, obtain the remaining life of the target hard disk, and send the remaining life of the target hard disk to the user terminal.

[0038] In a third aspect, the present application also provides a device for estimating hard disk life, including:

[0039] An acquisition module, used to acquire a first operating parameter of a target hard disk within a preset number of cycles, and a second operating parameter of all hard disks in a storage pool within a target cycle; the preset number of cycles includes the target cycle;

[0040] A determination module, configured to determine the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter;

[0041] The estimation module is used to estimate the remaining life of the target hard disk according to the wear parameters and life consumption of the target hard disk.

[0042] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0043] Obtaining a first operating parameter of a target hard disk within a preset number of cycles, and a second operating parameter of all hard disks in a storage pool within a target cycle; the preset number of cycles includes the target cycle;

[0044] Determining the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter;

[0045] The remaining life of the target hard disk is estimated based on the wear parameters and life consumption of the target hard disk.

[0046] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0047] Obtaining a first operating parameter of a target hard disk within a preset number of cycles, and a second operating parameter of all hard disks in a storage pool within a target cycle; the preset number of cycles includes the target cycle;

[0048] Determining the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter;

[0049] The remaining life of the target hard disk is estimated based on the wear parameters and life consumption of the target hard disk.

[0050] In a sixth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0051] Obtaining a first operating parameter of a target hard disk within a preset number of cycles, and a second operating parameter of all hard disks in a storage pool within a target cycle; the preset number of cycles includes the target cycle;

[0052] Determining the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter;

[0053] The remaining life of the target hard disk is estimated based on the wear parameters and life consumption of the target hard disk.

[0054] The above-mentioned hard disk life estimation method, system, device, equipment, storage medium and program product, the above-mentioned method provides an accurate hard disk life estimation method, estimates the remaining life of the target hard disk through the operating parameters of the target hard disk and the operating parameters of each hard disk in the storage pool. Compared with the method of estimating the remaining life of the target hard disk based only on the SMART information of the target hard disk itself, the above-mentioned method takes into account the mutual influence between the hard disks in the storage pool and the certain connection between the operating parameters of the hard disks within the same sampling period. According to the operating parameters of each hard disk in the storage pool within the target period and the operating parameters of the target hard disk within a preset number of periods, the remaining life of the target hard disk is estimated, so that the estimation result is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0056] FIG1 is a diagram showing an application environment of a method for estimating hard disk life in one embodiment;

[0057] Figure 2 A flowchart of a method for estimating hard disk life in one embodiment;

[0058] Figure 3 is a flow chart of a method for estimating hard disk life in another embodiment;

[0059] Figure 4 is a flow chart of a method for estimating hard disk life in another embodiment;

[0060] Figure 5 is a flow chart of a method for estimating hard disk life in another embodiment;

[0061] Figure 6 is a flow chart of a method for estimating hard disk life in another embodiment;

[0062] Figure 7 is a flow chart of a method for estimating hard disk life in another embodiment;

[0063] Figure 8 is a flow chart of a method for estimating hard disk life in another embodiment;

[0064] Fig. 9 A flowchart of a method for estimating hard disk life in one embodiment;

[0065] Fig.10 is a schematic diagram of a system for estimating hard disk life in one embodiment;

[0066] Fig.11 A schematic diagram of an information interaction method among a user terminal, a master controller and a slave controller in one embodiment;

[0067] FIG12 is a structural block diagram of a device for estimating hard disk life in one embodiment;

[0068] FIG. 13 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0069] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0070] With the advent of the Internet era, traditional hard disk drive (HDD) storage devices are gradually unable to meet the massive input / output (IO) requirements. Solid State Drive (SSD) has gained wide favor with its superior IO performance. Domestic and foreign large data centers such as Baidu Cloud, Tencent Cloud and Google Cloud have fully adopted SSD storage devices as the basic storage unit when building storage systems. SSD storage devices have become the mainstream storage devices.

[0071] As we all know, once an SSD storage device is damaged, it is difficult to repair and it is easy to cause data loss, and even bring huge losses and unforeseen consequences. Therefore, estimating the remaining life of SSDs has become the core research direction of researchers.

[0072] Currently, common methods for estimating the remaining life of an SSD include:

[0073] 1) Determine the remaining life of the disk based on the SMART information provided by the SSD chip manufacturer (including manufacturer information, wear level, operating temperature, number of bad blocks, etc.). However, due to differences in real-time load, usage scenarios, and SSD storage device processes, the service life estimated by traditional SMART information is inaccurate.

[0074] 2) The time series-based neural network prediction model and the traditional wear-based prediction model are used to estimate the remaining life of the disk, including: linear calculation based on SMART information, and estimating an approximate remaining life value based on the wear value. This method is relatively simple, and the prediction results often change linearly with the write volume and wear, and have low accuracy and reliability.

[0075] 3) Refine the SMART information sampling rate, and construct samples based on sampling timestamps and wear, select different algorithms for processing different dates, select neural network models and linear mappings to construct piecewise functions, and use the divide-and-conquer idea to deal with SSD storage device life estimation in different scenarios. This method combines deep neural networks and traditional linear calculations to estimate the life of SSD storage devices, and has good estimation performance. However, training a good neural network model often requires a large number of training samples, and it is difficult to achieve such large-scale wear sampling and labeling in practical applications.

[0076] 4) Based on the traditional wear prediction model and weighted average algorithm, the remaining life of the SSD is predicted. This method refines the granularity of wear, for example, the number of days used for 1% wear is used as a parameter and sorted by time, and the parameter with a time closer to the current prediction period is given a larger weight. The final weighted summation result can be used to calculate the remaining life of the SSD storage device, or a weighted summation is performed based on different characteristic factors, and different characteristic factors are assigned different weights for calculation. This type of method has the ability to dynamically predict the remaining life of the SSD, but the determination of the weight coefficient needs to be set based on experience, which is difficult to debug.

[0077] In summary, the above-mentioned method for estimating the remaining life of an SSD has the problem of inaccurate estimation. This application aims to solve this problem.

[0078] After introducing the background technology of the hard disk life estimation method provided in the embodiment of the present application, the implementation environment involved in the hard disk life estimation method provided in the embodiment of the present application will be briefly described below. The hard disk life estimation method provided in the embodiment of the present application can be applied in the implementation environment as shown in Figure 1. The implementation environment includes a server 104, which can be implemented as an independent server 104 or a server cluster composed of multiple servers 104, and a data storage system 102 can store data that the server 104 needs to process. The data storage system 102 can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the data storage system 102 can collect and pre-store the operating parameters of the target hard disk in each cycle, as well as the operating parameters of all hard disks in the storage pool in the first cycle. The server 104 can obtain the operating parameters of the target hard disk in each cycle, as well as the operating parameters of all hard disks in the storage pool in the first cycle from the data storage system 102, and determine the life consumption of the target hard disk within a preset time period based on the operating parameters of the target hard disk in each cycle, as well as the operating parameters of all hard disks in the storage pool in the first cycle, and estimate the remaining life of the target hard disk based on the wear parameters and life consumption of the target hard disk.

[0079] In other possible implementations, the hard disk life estimation method provided in the embodiment of the present application can also be applied to terminals, which can be, but are not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart car devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.

[0080] After introducing the application scenarios of the hard disk life estimation method provided in the embodiments of the present application, the following focuses on introducing the hard disk life estimation method described in the present application.

[0081] In one embodiment, Figure 2 As shown, a method for estimating the life of a hard disk is provided, and the method is applied to the server in FIG1 as an example for explanation, including the following steps:

[0082] S201, obtaining first operating parameters of a target hard disk within a preset number of cycles, and second operating parameters of all hard disks in a storage pool within a target cycle.

[0083] The preset number of cycles refers to the cycle of obtaining the operating parameters of the hard disk when estimating the remaining life of the hard disk. In the embodiment of the present application, the preset number of cycles includes the first cycle, the second cycle and the third cycle, wherein the first cycle is the target cycle. It should be noted that the first cycle, the second cycle and the third cycle are three consecutive sampling cycles, and the sampling time of the first cycle is the earliest, and the sampling time of the third cycle is the latest.

[0084] The first operating parameter and the second operating parameter both include at least one of the operating temperature of the hard disk, disk performance parameters (for example, the average number of read / write (I / O) operations per second (Input / Output Operations Per Second, IOPS), read / write parameters (for example, average read / write latency), current wear and tear, and the number of bad blocks.

[0085] The storage pool refers to a hard disk array constructed by multiple solid-state hard disks. For example, the storage pool is constructed using Redundant Array of Independent Disks (RAID) technology. Multiple SSD storage devices in the storage pool organize storage units in the form of strips. On the one hand, the manufacturing process and other characteristics of each SSD in the storage pool are different. On the other hand, some characteristic factors of multiple SSDs in the same stripe have similar characteristics. The remaining life of each SSD fluctuates continuously with changes in these characteristics.

[0086] In an embodiment of the present application, when it is necessary to estimate the remaining life of any solid-state hard disk (i.e., the target hard disk) in the storage pool, the first operating parameters of the target hard disk in the first cycle, the second cycle, and the third cycle, as well as the second operating parameters of all hard disks in the storage pool in the first cycle can be obtained.

[0087] Optionally, the first operating parameters of the target hard disk in the first sampling period, the second period and the third period can be obtained through the SMART information of the target hard disk, and the second operating parameters of each hard disk in the storage pool in the first period can be obtained through the SMART information of each hard disk in the storage pool.

[0088] Optionally, the operating parameters of each hard disk in the storage pool collected in multiple cycles can be stored in a preset database in advance. When the remaining life of the target hard disk needs to be estimated, the computer device can directly obtain the first operating parameters of the target hard disk in the first sampling cycle, the second cycle and the third cycle from the preset database, as well as the second operating parameters of each hard disk in the storage pool in the first cycle.

[0089] S202: Determine the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter.

[0090] In the embodiment of the present application, after obtaining the first operating parameter of the target hard disk within the preset number of cycles and the second operating parameters of all hard disks in the storage pool within the target cycle, the similarity between the first operating parameter and each second operating parameter can be determined, and the life consumption of the target hard disk within the preset time period can be determined according to the similarity that meets the preset requirements. Optionally, the similarity that meets the preset requirements can be the similarity with the maximum similarity between the first operating parameter and each second operating parameter.

[0091] S203: Estimate the remaining life of the target hard disk according to the wear parameters and life consumption of the target hard disk.

[0092] The wear parameters include the current wear degree and the maximum safe wear degree.

[0093] In an embodiment of the present application, after obtaining the life consumption of the target hard disk within the preset time period, the wear parameters of the target hard disk can be obtained, and the remaining life of the target hard disk can be determined based on the wear parameters of the target hard disk and the life consumption of the target hard disk within the preset time period.

[0094] The hard disk life estimation method provided in the embodiment of the present application obtains the first operating parameter of the target hard disk within a preset number of cycles, and the second operating parameter of all hard disks in the storage pool within the target cycle, and determines the life consumption of the target hard disk within the preset time period according to the first operating parameter and the second operating parameter, and then estimates the remaining life of the target hard disk according to the wear parameter and life consumption of the target hard disk; the preset number of cycles includes the target cycle. The above method provides an accurate hard disk life estimation method, which estimates the remaining life of the target hard disk through the operating parameters of the target hard disk and the operating parameters of each hard disk in the storage pool. Compared with the method of estimating the remaining life of the target hard disk based only on the SMART information of the target hard disk itself, the above method takes into account the mutual influence between the hard disks in the storage pool, and the certain connection between the operating parameters of the hard disks within the same sampling period, and estimates the remaining life of the target hard disk according to the operating parameters of each hard disk in the storage pool within the target cycle and the operating parameters of the target hard disk within the preset number of cycles, so that the estimation result is more accurate.

[0095] In one embodiment, Figure 2 Based on the embodiment shown, the above-mentioned preset number of cycles includes three cycles, which can describe the process of determining the life consumption of the target hard disk within the preset time period, such as Figure 3As shown, the above S202 "determining the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter" includes:

[0096] S301 : Determine a similarity parameter of a target hard disk according to a first operating parameter of the target hard disk in a second cycle and a second operating parameter of each hard disk in a target cycle.

[0097] Among them, the target cycle is the first cycle.

[0098] In an embodiment of the present application, after the first operating parameters of the target hard disk within a preset number of cycles are obtained as described above, the first operating parameters of the target hard disk within a second cycle are extracted, and the similarity parameters of the target hard disk are determined based on the similarities between the first operating parameters of the target hard disk within the second cycle and the second operating parameters of each hard disk within the first cycle.

[0099] Optionally, among the similarities between the first operating parameter of the target hard disk in the second cycle and the second operating parameters of each hard disk in the first cycle, the similarity that meets a preset condition may be determined as the similarity parameter of the target hard disk.

[0100] S302: Determine a first mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle, the duration of the second cycle, and the similarity parameter.

[0101] In an embodiment of the present application, after the first operating parameters of the target hard disk in the second cycle and the similarity parameters of the target hard disk are obtained as mentioned above, the duration of the second cycle can be obtained, and the first mapping parameters of the target hard disk can be determined based on the first operating parameters of the target hard disk in the second cycle, the similarity parameters of the target hard disk and the duration of the second cycle.

[0102] S303: Determine the life consumption of the target hard disk within a preset time period according to the first mapping parameter, the similarity parameter, the first operating parameter of the target hard disk in the third cycle, and the duration of the second cycle.

[0103] In an embodiment of the present application, after the first mapping parameters of the target hard disk, the similarity parameters of the target hard disk, and the first operating parameters of the target hard disk within a preset number of cycles are obtained, the first operating parameters of the target hard disk within a third cycle can be extracted from the first operating parameters of the target hard disk within the preset number of cycles, and the duration of the second cycle can be obtained, and the life consumption of the target hard disk within the preset time period can be determined based on the first mapping parameters of the target hard disk, the similarity parameters of the target hard disk, the first operating parameters of the target hard disk within the third cycle, and the duration of the second cycle.

[0104] The method for determining the life consumption of a target hard disk within a preset time period provided in an embodiment of the present application determines the life consumption of the target hard disk within the preset time period based on the similarity between the first operating parameters of the target hard disk in the second cycle and the second operating parameters of each hard disk in the target cycle, thereby providing a data basis for subsequently determining the remaining life of the target hard disk based on the life consumption of the target hard disk within the preset time period.

[0105] In one embodiment, Figure 3 Based on the embodiment shown, the process of determining the similarity parameter of the target hard disk can be described as follows: Figure 4 As shown, the above S301 "determine the similarity parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the second operating parameter of each hard disk in the target cycle" includes:

[0106] S401: Determine the similarity between the first operating parameter and each second operating parameter.

[0107] In the embodiment of the present application, after the first operating parameter of the target hard disk in the second cycle and the second operating parameters of each hard disk in the target cycle are obtained, the similarity between the first operating parameter and each second operating parameter can be determined.

[0108] Optionally, in the embodiment of the present application, the similarity between the operating parameters can be determined by using the Pearson correlation coefficient. The similarity between the operating parameters can be expressed by the following formula (1):

[0109]

[0110] in, is the similarity between the first operating parameter of the target hard disk in the second cycle and the second operating parameter of any hard disk in the storage pool in the first cycle, is the number of parameters in the first operating parameter and the second operating parameter. For example, when the first operating parameter and the second operating parameter both include the operating temperature of the hard disk, disk performance parameters (for example, the average number of read / write (I / O) operations per second (Input / Output Operations Per Second, IOPS), read / write parameters (for example, average read / write latency), current wear and the number of bad blocks, is 5. is one of the first operating parameters of the target hard disk in the second cycle, is the average second operating parameter of the target hard disk in the second cycle, is one of the first operating parameters of the target hard disk in the first cycle, is the average second operating parameter of the target hard disk in the first cycle.

[0111] Optionally, when both the first operating parameter and the second operating parameter include the operating temperature of the hard disk, disk performance parameters (for example, the average number of read / write (I / O) operations per second (Input / Output Operations Per Second, IOPS), read / write parameters (for example, average read / write latency), current wear and the number of bad blocks, for the operating parameter of the operating temperature of the hard disk, the operating temperature of the target hard disk in the second cycle and the operating temperature of each hard disk in the first cycle can be obtained, and the similarity between the operating temperature of the target hard disk in the second cycle and the operating temperature of each hard disk in the first cycle can be obtained. Correspondingly, for the operating parameter of the hard disk read / write parameter, the read / write parameters of the target hard disk in the second cycle and the read / write parameters of each hard disk in the first cycle can be obtained, and the similarity between the read / write parameters of the target hard disk in the second cycle and the read / write parameters of each hard disk in the first cycle can be obtained. It should be noted that for other operating parameters, the acquisition method consistent with the similarity of the above-mentioned operating parameters is adopted to obtain the similarity of other operating parameters.

[0112] S402: Determine the similarity between the second operating parameter with the greatest similarity and the first operating parameter as a similarity parameter.

[0113] In the embodiment of the present application, after the similarities between the first operating parameter and each second operating parameter are obtained, the similarity between the second operating parameter with the greatest similarity and the first operating parameter may be determined as the similarity parameter.

[0114] Optionally, after obtaining the operating temperature of the target hard disk in the second cycle and the similarity between the operating temperatures of each hard disk in the first cycle, the similarity between the operating temperature of the target hard disk in the second cycle with the greatest similarity and the operating temperatures of each hard disk in the first cycle is determined as the similarity parameter of the operating temperature.

[0115] Optionally, after obtaining the read and write parameters of the target hard disk in the second cycle and the similarity between the read and write parameters of each hard disk in the first cycle, the similarity between the operating temperature of the target hard disk with the greatest similarity in the second cycle and the operating temperature of each hard disk in the first cycle is determined as the similarity parameter of the operating temperature.

[0116] It should be noted that, for other operating parameters, the same acquisition method as the above similarity parameters is adopted to obtain similarity parameters of other operating parameters, and the hard disks corresponding to various similarity parameters may be different or the same.

[0117] The method for determining similarity parameters provided in the embodiment of the present application takes into account the mutual influence between the hard disks in the storage pool, and determines the similarity of the target hard disk based on the similarity between the operating parameters of the hard disks in the storage pool in the first cycle and the operating parameters of the target hard disk in the second cycle, thereby providing data support for accurately estimating the remaining life of the target hard disk.

[0118] In one embodiment, Figure 3 Based on the embodiment shown, the process of obtaining the first mapping parameter of the target hard disk can be described as follows: Figure 5 As shown, the above S302 "determine the first mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle, the duration of the second cycle, and the similarity parameter" includes:

[0119] S501 . Determine a second mapping parameter of a target hard disk according to a first operating parameter of the target hard disk in a second cycle and a duration of the second cycle.

[0120] In an embodiment of the present application, after the first operating parameters of the target hard disk in the second cycle are obtained as mentioned above, the duration of the second cycle can continue to be obtained, and the second mapping parameters of the target hard disk can be determined based on the first operating parameters of the target hard disk in the second cycle and the duration of the second cycle, as well as a preset mapping relationship.

[0121] Optionally, the second mapping parameter of the target hard disk may be determined according to the following formula (2):

[0122]

[0123] in, is the duration of the second cycle, is the first operating parameter of the target hard disk in the second cycle, is the second mapping parameter of the target hard disk, is the number of parameters in the first operating parameter. For example, when the first operating parameter includes the operating temperature of the hard disk, disk performance parameters (for example, the average number of read / write (I / O) operations per second (Input / Output Operations Per Second, IOPS), read / write parameters (for example, average read / write latency), current wear and the number of bad blocks, is 5.

[0124] S502: Determine a first mapping parameter according to the similarity parameter and the second mapping parameter.

[0125] In the embodiment of the present application, after the similarity parameter and the second mapping parameter are obtained, the similarity parameter and the second mapping parameter can be operated to obtain the first mapping parameter. Optionally, the first mapping parameter of the target hard disk can be determined according to the following formula (3):

[0126]

[0127] in, is the first mapping parameter of the target hard disk, is the similarity parameter of the target hard disk, It is the second mapping parameter of the target hard disk.

[0128] The method for determining the first mapping parameters provided in the embodiment of the present application recursively infers the first mapping parameters in the next cycle through the second mapping parameters of the target hard disk in the second cycle and the similarity between the operating parameters of the target hard disk in the second cycle and the operating parameters of each hard disk in the first cycle, thereby providing a data basis for subsequently determining the remaining life of the target hard disk based on the first mapping parameters.

[0129] In one embodiment, Figure 3 Based on the embodiment shown, the process of determining the life consumption of the target hard disk within a preset time period can be described as follows: Figure 6 As shown, the above S303 "determine the life consumption of the target hard disk within a preset time period according to the first mapping parameter, the similarity parameter, the first operating parameter of the target hard disk in the third cycle, and the duration of the second cycle" includes:

[0130] S601: Determine the life consumption corresponding to the second cycle according to the similarity parameter and the duration of the second cycle.

[0131] In the embodiment of the present application, after the similarity parameter is obtained, the duration of the second cycle can be obtained, and the life consumption corresponding to the second cycle can be determined according to the similarity parameter and the duration of the second cycle. Optionally, the life consumption corresponding to the second cycle can be determined according to the following formula (4):

[0132]

[0133] in, is the life consumption corresponding to the second cycle, is the similarity parameter, The duration of the second cycle.

[0134] S602: Determine a first life consumption rate within the preset time period according to the length of the preset time period and the life consumption corresponding to the second cycle.

[0135] In the embodiment of the present application, the life consumption corresponding to the second cycle is determined above After that, you can continue to obtain the duration of the preset time period, and calculate the life consumption corresponding to the second cycle based on the duration of the preset time period , determine the first life consumption rate within the preset time period. Optionally, the first life consumption rate within the preset time period can be determined according to the following formula (5):

[0136]

[0137] in, Refers to the first life consumption within a preset time period, It refers to the duration of the preset time period. Refers to the life consumption corresponding to the second cycle.

[0138] S603: Determine the life consumption corresponding to the third cycle according to the first mapping parameter and the first operating parameter of the target hard disk in the third cycle.

[0139] In the embodiment of the present application, after the first mapping parameter and the first operating parameter of the target hard disk in the third cycle are obtained, the life consumption corresponding to the third cycle can be determined according to the first mapping parameter and the first operating parameter of the target hard disk in the third cycle. Optionally, the life consumption corresponding to the third cycle can be determined according to the following formula (6):

[0140]

[0141] in, Refers to the life consumption corresponding to the third cycle, Refers to the first mapping parameter of each operating parameter of the target hard disk. is the number of parameters in the first operating parameter. For example, when the first operating parameter includes the operating temperature of the hard disk, disk performance parameters (for example, the average number of read / write (I / O) operations per second (Input / Output Operations Per Second, IOPS), read / write parameters (for example, average read / write latency), current wear and the number of bad blocks, is 5, Refers to the first operating parameters of the target hard disk in the third cycle.

[0142] S604: Determine the life consumption of the target hard disk within the preset time period according to the life consumption rate within the preset time period and the life consumption corresponding to the third cycle.

[0143] In an embodiment of the present application, after the life consumption rate within the preset time period and the life consumption corresponding to the third cycle are obtained as mentioned above, the life consumption of the target hard disk within the preset time period can be determined based on the life consumption rate within the preset time period and the life consumption corresponding to the third cycle.

[0144] Optionally, the life consumption of the target hard disk within a preset time period may be determined according to the following formula (7):

[0145]

[0146] in, Refers to the life consumption of the target hard disk within a preset time period. Refers to the first life consumption within a preset time period, Refers to the life consumption corresponding to the third cycle.

[0147] The method for determining the life consumption of a target hard disk within a preset time period provided in an embodiment of the present application determines the life consumption of the target hard disk within the preset time period through a first mapping parameter, a similarity parameter, a first operating parameter of the target hard disk within a third cycle, and the duration of the second cycle, thereby providing a data basis for subsequently determining the remaining life of the target hard disk based on the life consumption of the target hard disk within the preset time period.

[0148] In one embodiment, Figure 2-Figure 6 Based on the embodiment shown, the above wear parameters include the current wear degree and the maximum safe wear degree, which can describe the estimation process of the remaining life of the target hard disk, such as Figure 7 As shown, the above S203 “estimating the remaining life of the target hard disk according to the wear parameters and life consumption of the target hard disk” includes:

[0149] S701: Determine the actual wear rate of the target hard disk according to the current wear degree and the maximum safe wear degree.

[0150] In an embodiment of the present application, the current wear parameters of the target hard disk can be obtained, and the maximum safe wear degree can be pre-set. For example, 90% of the initial wear degree of the hard disk is used as the maximum safe wear degree, and the actual wear rate of the target hard disk is determined based on the current wear degree and the maximum safe wear degree.

[0151] Optionally, the actual wear rate of the target hard disk can be determined according to the following formula (8):

[0152]

[0153] in, Refers to the actual wear rate of the target hard disk. refers to the current wear parameters of the target hard disk, Refers to the maximum safe wear of the target hard disk.

[0154] S702: Determine a second life consumption rate within the preset time period according to the life consumption and the length of the preset time period.

[0155] In an embodiment of the present application, after the life consumption of the target hard disk within the preset time period is determined as above, the length of the preset time period can be obtained, and the second life consumption rate within the preset time period can be determined based on the life consumption of the target hard disk within the preset time period and the length of the preset time period.

[0156] Optionally, the second life consumption rate within a preset time period may be determined according to the following formula (9):

[0157]

[0158] in, Refers to the second life consumption rate within a preset time period. It refers to the duration of the preset time period. Refers to life consumption.

[0159] S703: Estimate the remaining life of the target hard disk according to the actual wear rate and the second life consumption rate.

[0160] In an embodiment of the present application, after the actual wear rate of the target hard disk and the second life consumption rate within the preset time period are obtained as mentioned above, the remaining life of the target hard disk can be determined based on the actual wear rate of the target hard disk and the second life consumption rate within the preset time period.

[0161] Optionally, the remaining life of the target hard disk can be determined according to the following formula (10):

[0162]

[0163] in, refers to the remaining life of the target hard disk. Refers to the actual wear rate of the target hard disk. Refers to the second life consumption rate within a preset time period.

[0164] The method for estimating the remaining life of a target hard disk provided in the embodiment of the present application estimates the remaining life of the target hard disk through the wear parameters and life consumption of the target hard disk, thereby improving the estimation accuracy of the remaining life of the target hard disk.

[0165] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0166] In one embodiment, Figure 8 As shown, a method for estimating the life of a hard disk is also provided, including:

[0167] S10, obtaining first operating parameters of the target hard disk in the first cycle, the second cycle, and the third cycle, and second operating parameters of all hard disks in the storage pool in the first cycle;

[0168] S11, determining the similarity between the first operating parameter and each second operating parameter of the target hard disk in the first cycle;

[0169] S12, determining the similarity between the second operating parameter with the greatest similarity and the first operating parameter as a similarity parameter;

[0170] S13, determining a second mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the duration of the second cycle;

[0171] S14, determining a first mapping parameter according to the similarity parameter and the second mapping parameter;

[0172] S15, determining the life consumption corresponding to the second cycle according to the similarity parameter and the duration of the second cycle;

[0173] S16, determining a first life consumption rate within the preset time period according to the length of the preset time period and the life consumption corresponding to the second cycle;

[0174] S17, determining the life consumption corresponding to the third cycle according to the first mapping parameter and the first operating parameter of the target hard disk in the third cycle;

[0175] S18, determining the life consumption of the target hard disk within the preset time period according to the life consumption rate within the preset time period and the life consumption corresponding to the third cycle;

[0176] S19, determining the actual wear rate of the target hard disk according to the current wear degree and the maximum safe wear degree;

[0177] S20, determining a second life consumption rate within the preset time period according to the life consumption and the length of the preset time period;

[0178] S21. Estimate the remaining life of the target hard disk according to the actual wear rate and the second life consumption rate.

[0179] Alternatively, if Fig. 9 As shown below, a schematic diagram of the method for estimating the life of a hard disk is also provided, including (it should be noted that Fig. 9 The MLLEE model in the figure is the method for estimating the hard disk life in each of the above embodiments):

[0180] 1) Create an experience pool and initialize it. If there is a historical record, the experience pool needs to be restored based on the historical record. Each hard disk in the experience pool contains five dimensions: temperature, average IOPS, average read and write latency, current cycle wear, total wear, and number of bad blocks;

[0181] 2) Set the maximum safe wear of the hard disk. Normally, the maximum safe wear is 90% of the initial wear of the hard disk.

[0182] 3) Determine whether the wear degree of the SSD in the storage pool has reached the maximum safe wear degree. If so, set the SSD to read-only mode to prevent damage to the SSD caused by writing. If not, execute the following steps 4)-7);

[0183] 4) Set a timer for sampling, for example, sampling every 5 seconds, obtain wear and temperature information through SMART, obtain performance data through the storage pool, record the sampling results of the current cycle, the sampling period is 5 minutes, and count the parameters of each hard disk in five dimensions, including temperature, average IOPS, average read and write latency, wear in the current cycle, total wear, and number of bad blocks;

[0184] 5) Based on the parameters of each hard disk including temperature, average IOPS, average read / write latency, current cycle wear, total wear, and number of bad blocks, the above hard disk life estimation method is executed to obtain the remaining life of the hard disk;

[0185] 6) Process the remaining life of the hard disk by means of peak shaving and averaging, and save the estimated life of the previous cycle in the experience pool;

[0186] 7) When the user terminal queries the remaining life of a certain SSD, the main controller thread queries the remaining life of the SSD and returns the result to the user terminal.

[0187] The above method provides an accurate method for estimating the life of a hard disk. The remaining life of the target hard disk is estimated through the operating parameters of the target hard disk and the operating parameters of each hard disk in the storage pool. Compared with the method of estimating the remaining life of the target hard disk based only on the SMART information of the target hard disk itself, the above method takes into account the mutual influence between the hard disks in the storage pool and the certain connection between the operating parameters of the hard disks within the same sampling period. The remaining life of the target hard disk is estimated based on the operating parameters of each hard disk in the storage pool within the target period and the operating parameters of the target hard disk within a preset number of periods, so that the estimation result is more accurate.

[0188] Based on the same inventive concept, the embodiment of the present application also provides a hard disk life estimation system for implementing the hard disk life estimation method mentioned above, such as Fig.10 As shown, the hard disk life estimation system includes: a controller 100 and a user terminal 200;

[0189] The user terminal 200 is used to send a life estimation request to the controller;

[0190] The controller 100 is used to execute the above-mentioned Figure 2-Figure 8 The method provided by the illustrated embodiment obtains the remaining life of the target hard disk and sends the remaining life of the target hard disk to the user terminal.

[0191] In an embodiment of the present application, for a storage system with multiple backplane controllers and direct-connected multiple controllers, including a master controller and a slave controller, the slave controller does not perform any operation, and the master controller deploys the program product of the above-mentioned hard disk life estimation method to perform the estimation of the remaining life of the hard disk.

[0192] When a user terminal needs to obtain a real-time life estimate, if the user terminal is connected to a slave controller, the user terminal first sends a request to obtain the remaining life to the slave controller, and then the slave controller forwards the request to obtain the remaining life to the master controller, and the master controller executes the above Figure 2-Figure 8 After the hard disk life estimation method of the illustrated embodiment is implemented, the remaining life of the hard disk is obtained, and the remaining life of the hard disk is forwarded to the user terminal via the slave controller.

[0193] If the user terminal is connected to the main controller, the user terminal directly sends a request to obtain the remaining life to the main controller, and the main controller executes the above Figure 2-Figure 8 After the hard disk life estimation method of the illustrated embodiment is performed, the remaining life of the hard disk is obtained and the remaining life of the hard disk is directly sent to the user terminal.

[0194] In addition, when an abnormal situation occurs in the main controller, a slave controller can be selected from multiple slave controllers as the new main controller, and the original main controller can be downgraded to a slave controller. The program product of the hard disk life estimation method can be reinitialized on the new main controller, the historical records can be restored, and the above-mentioned user terminal acquisition steps can continue to be executed.

[0195] Alternatively, if Fig.11 As shown, a schematic diagram of the interaction between a user terminal, a slave controller and a master controller is provided.

[0196] The hard disk life estimation system provided in the embodiment of the present application realizes the function of sending the remaining life of the target hard disk to the user terminal through the interaction between the user terminal and the controller. That is, when the user needs to obtain the remaining life of the target hard disk, he only needs to send a request to the background controller to achieve it, which is convenient and fast, and improves the user experience.

[0197] Based on the same inventive concept, the embodiment of the present application also provides a hard disk life estimation device for implementing the hard disk life estimation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more hard disk life estimation devices provided below can refer to the limitations of the hard disk life estimation method above, and will not be repeated here.

[0198] In an exemplary embodiment, as shown in FIG. 12 , a device for estimating hard disk life is provided, comprising: an acquisition module 10, a determination module 11 and an estimation module 12, wherein:

[0199] The acquisition module 10 is used to acquire the first operating parameters of the target hard disk within a preset number of cycles, and the second operating parameters of all hard disks in the storage pool within a target cycle; the preset number of cycles includes the target cycle.

[0200] The determination module 11 is used to determine the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter.

[0201] The estimation module 12 is used to estimate the remaining life of the target hard disk according to the wear parameters and life consumption of the target hard disk.

[0202] In an exemplary embodiment, the preset number of cycles includes three cycles, and the determination module 11 includes: a first determination unit, a second determination unit and a third determination unit, wherein:

[0203] A first determining unit is specifically used to determine a similarity parameter of a target hard disk according to a first operating parameter of the target hard disk in a second cycle and a second operating parameter of each hard disk in a target cycle; the target cycle is the first cycle;

[0204] A second determining unit, specifically configured to determine a first mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle, the duration of the second cycle, and the similarity parameter;

[0205] The third determination unit is specifically used to determine the life consumption of the target hard disk within a preset time period according to the first mapping parameter, the similarity parameter, the first operating parameter of the target hard disk in the third cycle, and the duration of the second cycle.

[0206] In an exemplary embodiment, the first determining unit is specifically configured to determine the similarity between the first operating parameter and each second operating parameter; and determine the similarity between the second operating parameter with the greatest similarity and the first operating parameter as the similarity parameter.

[0207] In an exemplary embodiment, the above-mentioned second determination unit is specifically used to determine the second mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the duration of the second cycle; and determine the first mapping parameter according to the similarity parameter and the second mapping parameter.

[0208] In an exemplary embodiment, the above-mentioned second determination unit is specifically used to determine the life consumption corresponding to the second cycle based on the similarity parameter and the length of the second cycle; determine the first life consumption rate within the preset time period based on the length of the preset time period and the life consumption corresponding to the second cycle; determine the life consumption corresponding to the third cycle based on the first mapping parameter and the first operating parameter of the target hard disk in the third cycle; determine the life consumption of the target hard disk within the preset time period based on the life consumption rate within the preset time period and the life consumption corresponding to the third cycle.

[0209] In an exemplary embodiment, the wear parameters include current wear and maximum safe wear; the estimation module includes: a first determination unit, a second determination unit and an estimation unit, wherein:

[0210] A first determination unit, specifically configured to determine an actual wear rate of a target hard disk according to a current wear degree and a maximum safe wear degree;

[0211] A second determining unit, specifically configured to determine a second life consumption rate within a preset time period according to the life consumption and the length of the preset time period;

[0212] The estimation unit is specifically used to estimate the remaining life of the target hard disk according to the actual wear rate and the second life consumption rate.

[0213] Each module in the hard disk life estimation device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0214] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG13. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the operating data of the target hard disk. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for estimating the life of a hard disk is implemented.

[0215] Those skilled in the art will understand that the structure shown in FIG. 13 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0216] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0217] Obtaining a first operating parameter of a target hard disk within a preset number of cycles, and a second operating parameter of all hard disks in a storage pool within a target cycle; the preset number of cycles includes the target cycle;

[0218] Determining the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter;

[0219] The remaining life of the target hard disk is estimated based on the wear parameters and life consumption of the target hard disk.

[0220] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0221] Determine the similarity parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the second operating parameter of each hard disk in the target cycle; the target cycle is the first cycle;

[0222] Determine a first mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle, the duration of the second cycle, and the similarity parameter;

[0223] The life consumption of the target hard disk within a preset time period is determined according to the first mapping parameter, the similarity parameter, the first operating parameter of the target hard disk within the third cycle, and the duration of the second cycle.

[0224] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0225] determining a similarity between the first operating parameter and each second operating parameter;

[0226] The similarity between the second operating parameter with the greatest similarity and the first operating parameter is determined as the similarity parameter.

[0227] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0228] Determining a second mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the duration of the second cycle;

[0229] A first mapping parameter is determined according to the similarity parameter and the second mapping parameter.

[0230] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0231] Determine the life consumption corresponding to the second cycle according to the similarity parameter and the duration of the second cycle;

[0232] Determine a first life consumption rate within the preset time period according to the length of the preset time period and the life consumption corresponding to the second cycle;

[0233] Determine the life consumption corresponding to the third cycle according to the first mapping parameter and the first operating parameter of the target hard disk in the third cycle;

[0234] The life consumption of the target hard disk within the preset time period is determined according to the life consumption rate within the preset time period and the life consumption corresponding to the third cycle.

[0235] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0236] Determine the actual wear rate of the target hard disk based on the current wear degree and the maximum safe wear degree;

[0237] Determine a second life consumption rate within the preset time period according to the life consumption and the length of the preset time period;

[0238] Estimate the remaining life of the target hard disk based on the actual wear rate and the second life consumption rate.

[0239] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0240] Obtaining a first operating parameter of a target hard disk within a preset number of cycles, and a second operating parameter of all hard disks in a storage pool within a target cycle; the preset number of cycles includes the target cycle;

[0241] Determining the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter;

[0242] The remaining life of the target hard disk is estimated based on the wear parameters and life consumption of the target hard disk.

[0243] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0244] Determine the similarity parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the second operating parameter of each hard disk in the target cycle; the target cycle is the first cycle;

[0245] Determine a first mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle, the duration of the second cycle, and the similarity parameter;

[0246] The life consumption of the target hard disk within a preset time period is determined according to the first mapping parameter, the similarity parameter, the first operating parameter of the target hard disk within the third cycle, and the duration of the second cycle.

[0247] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0248] determining a similarity between the first operating parameter and each second operating parameter;

[0249] The similarity between the second operating parameter with the greatest similarity and the first operating parameter is determined as the similarity parameter.

[0250] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0251] Determining a second mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the duration of the second cycle;

[0252] A first mapping parameter is determined according to the similarity parameter and the second mapping parameter.

[0253] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0254] Determine the life consumption corresponding to the second cycle according to the similarity parameter and the duration of the second cycle;

[0255] Determine a first life consumption rate within the preset time period according to the length of the preset time period and the life consumption corresponding to the second cycle;

[0256] Determine the life consumption corresponding to the third cycle according to the first mapping parameter and the first operating parameter of the target hard disk in the third cycle;

[0257] The life consumption of the target hard disk within the preset time period is determined according to the life consumption rate within the preset time period and the life consumption corresponding to the third cycle.

[0258] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0259] Determine the actual wear rate of the target hard disk based on the current wear degree and the maximum safe wear degree;

[0260] Determine a second life consumption rate within the preset time period according to the life consumption and the length of the preset time period;

[0261] Estimate the remaining life of the target hard disk based on the actual wear rate and the second life consumption rate.

[0262] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0263] Obtaining a first operating parameter of a target hard disk within a preset number of cycles, and a second operating parameter of all hard disks in a storage pool within a target cycle; the preset number of cycles includes the target cycle;

[0264] Determining the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter;

[0265] The remaining life of the target hard disk is estimated based on the wear parameters and life consumption of the target hard disk.

[0266] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0267] Determine the similarity parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the second operating parameter of each hard disk in the target cycle; the target cycle is the first cycle;

[0268] Determine a first mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle, the duration of the second cycle, and the similarity parameter;

[0269] The life consumption of the target hard disk within a preset time period is determined according to the first mapping parameter, the similarity parameter, the first operating parameter of the target hard disk within the third cycle, and the duration of the second cycle.

[0270] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0271] determining a similarity between the first operating parameter and each second operating parameter;

[0272] The similarity between the second operating parameter with the greatest similarity and the first operating parameter is determined as the similarity parameter.

[0273] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0274] Determining a second mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the duration of the second cycle;

[0275] A first mapping parameter is determined according to the similarity parameter and the second mapping parameter.

[0276] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0277] Determine the life consumption corresponding to the second cycle according to the similarity parameter and the duration of the second cycle;

[0278] Determine a first life consumption rate within the preset time period according to the length of the preset time period and the life consumption corresponding to the second cycle;

[0279] Determine the life consumption corresponding to the third cycle according to the first mapping parameter and the first operating parameter of the target hard disk in the third cycle;

[0280] The life consumption of the target hard disk within the preset time period is determined according to the life consumption rate within the preset time period and the life consumption corresponding to the third cycle.

[0281] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0282] Determine the actual wear rate of the target hard disk based on the current wear degree and the maximum safe wear degree;

[0283] Determine a second life consumption rate within the preset time period according to the life consumption and the length of the preset time period;

[0284] Estimate the remaining life of the target hard disk based on the actual wear rate and the second life consumption rate.

[0285] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0286] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0287] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0288] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for estimating hard disk life, characterized in that: The method comprises: Obtaining a first operating parameter of a target hard disk within a preset number of cycles, and a second operating parameter of all hard disks in a storage pool within a target cycle; the preset number of cycles includes the target cycle; Determining the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter; The remaining life of the target hard disk is estimated according to the wear parameters of the target hard disk and the life consumption.

2. The method according to claim 1, characterized in that The preset number of cycles includes three cycles, and determining the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter includes: Determining a similarity parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the second operating parameter of each hard disk in the target cycle; the target cycle is the first cycle; Determining a first mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle, the duration of the second cycle, and the similarity parameter; The life consumption of the target hard disk within the preset time period is determined according to the first mapping parameter, the similarity parameter, the first operating parameter of the target hard disk within the third cycle, and the duration of the second cycle.

3. The method according to claim 2, characterized in that Determining the similarity parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the second operating parameter of each hard disk in the target cycle includes: determining a similarity between the first operating parameter and each of the second operating parameters; The similarity between the second operating parameter with the greatest similarity and the first operating parameter is determined as the similarity parameter.

4. The method according to claim 2, characterized in that: Determining the first mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle, the duration of the second cycle, and the similarity parameter includes: Determining a second mapping parameter of the target hard disk according to the first operating parameter of the target hard disk in the second cycle and the duration of the second cycle; The first mapping parameter is determined according to the similarity parameter and the second mapping parameter.

5. The method according to claim 2, characterized in that: Determining the life consumption of the target hard disk within the preset time period according to the first mapping parameter, the similarity parameter, the first operating parameter of the target hard disk within the third cycle, and the duration of the second cycle includes: Determining the life consumption corresponding to the second period according to the similarity parameter and the duration of the second period; Determining a first life consumption rate within the preset time period according to the length of the preset time period and the life consumption corresponding to the second period; determining the life consumption corresponding to the third cycle according to the first mapping parameter and the first operating parameter of the target hard disk in the third cycle; The life consumption of the target hard disk within the preset time period is determined according to the life consumption rate within the preset time period and the life consumption corresponding to the third cycle.

6. The method according to any one of claims 1 to 5, characterized in that: The wear parameters include current wear and maximum safe wear; and estimating the remaining life of the target hard disk according to the wear parameters of the target hard disk and the life consumption, including: Determining an actual wear rate of the target hard disk according to the current wear degree and the maximum safe wear degree; Determining a second life consumption rate within the preset time period according to the life consumption and the length of the preset time period; The remaining life of the target hard disk is estimated according to the actual wear rate and the second life consumption rate.

7. A system for estimating hard disk life, characterized in that: The system includes a controller and a user terminal; The user terminal is used to send a life estimation request to the controller; The controller is used to execute the method according to claims 1-6 when receiving the life estimation request, obtain the remaining life of the target hard disk, and send the remaining life of the target hard disk to the user terminal.

8. A device for estimating hard disk life, characterized in that: The device comprises: An acquisition module, used to acquire a first operating parameter of a target hard disk within a preset number of cycles, and a second operating parameter of all hard disks in a storage pool within a target cycle; the preset number of cycles includes the target cycle; A determination module, configured to determine the life consumption of the target hard disk within a preset time period according to the first operating parameter and the second operating parameter; The estimation module is used to estimate the remaining life of the target hard disk according to the wear parameters of the target hard disk and the life consumption.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.