Hard drive life prediction methods, devices, electronic equipment and storage media

By detecting the cumulative duration of the hard drive's total overheating temperature on the client side and sending it to the server for sorting, the problem of low calculation efficiency in hard drive life prediction is solved, achieving efficient hard drive life prediction and reducing hardware costs.

CN117130854BActive Publication Date: 2025-10-31BEIJING JINGZHUO TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310970858.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-03
Publication Date
2025-10-31
Estimated Expiration
2043-08-03

AI Technical Summary

Technical Problem

Existing hard drive life prediction methods have low computational efficiency, require a large amount of hardware computing power, and are costly.

Method used

By detecting the total cumulative duration of hard drive overheating on the client side and sending it to the server for sorting, the hard drive lifespan is predicted based on the total cumulative duration of overheating and the current power-on time, simplifying the calculation process and reducing hardware computing power requirements.

Benefits of technology

It improves the computational efficiency of hard drive life prediction, reduces hardware costs, and eliminates the need for high-performance CPUs and graphics cards, thus lowering hardware requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117130854B_ABST
    Figure CN117130854B_ABST
Patent Text Reader

Abstract

This application relates to a hard disk lifespan prediction method, apparatus, electronic device, and storage medium. The method, applied to a client, includes: acquiring the health status, current power-on duration, and overheating temperature boundary value of the hard disk to be predicted; if the hard disk to be tested is undamaged, detecting the current temperature of the hard disk to be predicted at preset time intervals after enabling hard disk lifespan monitoring; obtaining the detection result based on the current temperature and the overheating temperature boundary value; updating the total cumulative overheating temperature duration of the hard disk to be predicted based on the detection result; and sending the total cumulative overheating temperature duration and current power-on duration to a server, so that the server sorts the hard disk to be predicted and the hard disks already stored in the database based on the total cumulative overheating temperature duration, and so that the server predicts the lifespan of the hard disk to be predicted based on the sorting result and the current power-on duration of all hard disks in the sorting result. The prediction process does not require significant hardware computing power, thus improving computational efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and storage medium for predicting hard disk lifespan. Background Technology

[0002] Hard drives are the primary storage devices in computers. In practical applications, hard drive failure can lead to data loss and system unavailability. Therefore, there is an urgent need for a hard drive lifespan prediction method that can predict hard drive lifespan and provide users with effective suggestions for the proper use of hard drives.

[0003] In existing technologies, hard drive lifespan is generally predicted based on data obtained from Self-Monitoring Analysis and Reporting Technology (SMART). This involves building a machine learning model from the feature data obtained from SMART to predict hard drive lifespan.

[0004] However, existing technologies have at least the following problems: machine learning models require a certain amount of hardware computing power to calculate hard drive lifespan, resulting in low computational efficiency. Summary of the Invention

[0005] This application provides a hard disk life prediction method, apparatus, electronic device, storage medium, and computer program product to overcome the problem of low computational efficiency in the hard disk life prediction process.

[0006] Firstly, this application provides a hard disk lifespan prediction method, applied to a client-side application, including:

[0007] Obtain the health status, current power-on duration, and overheating temperature boundary value of the hard drive to be predicted, where the health status includes damaged and undamaged;

[0008] If the health status of the hard drive to be predicted is undamaged, then after enabling hard drive life monitoring, the current temperature of the hard drive to be predicted will be detected at preset time intervals.

[0009] The current temperature is compared with the overheating temperature boundary value to obtain the detection results, which include both overheating and non-overheating conditions.

[0010] Update the total cumulative duration of overheating temperature of the hard drive to be predicted based on the test results;

[0011] The total accumulated overheating temperature duration and the current power-on duration are sent to the server so that the server can sort the hard drive to be predicted and the hard drives already stored in the database according to the total accumulated overheating temperature duration. The server can then predict the lifespan of the hard drive to be predicted based on the sorting results and the current power-on duration of all hard drives in the sorting results.

[0012] Optionally, update the total cumulative duration of overheating temperature of the hard drive to be predicted based on the test results, including: updating the cumulative duration of overheating temperature after enabling hard drive life monitoring based on the test results; obtaining the power-on time before enabling hard drive life monitoring, and calculating the power-on time after enabling hard drive life monitoring based on the power-on time before enabling hard drive life monitoring and the current power-on time of the hard drive to be predicted; calculating the percentage of the cumulative duration of overheating temperature after enabling hard drive life monitoring based on the cumulative duration of overheating temperature after enabling hard drive life monitoring and the power-on time after enabling hard drive life monitoring; calculating the cumulative duration of overheating temperature before enabling hard drive life monitoring based on the percentage of the cumulative duration of overheating temperature after enabling hard drive life monitoring and the power-on time before enabling hard drive life monitoring; and calculating the total cumulative duration of overheating temperature based on the cumulative duration of overheating temperature before enabling hard drive life monitoring and the cumulative duration of overheating temperature after enabling hard drive life monitoring.

[0013] Optionally, obtaining the overheating temperature boundary value of the hard drive includes: querying whether the temperature information of the hard drive to be predicted contains the maximum normal operating temperature; if the temperature information of the hard drive to be predicted contains the maximum normal operating temperature, then the maximum normal operating temperature is determined as the overheating temperature boundary value; if the temperature information of the hard drive to be predicted does not contain the maximum normal operating temperature, then the preset maximum temperature value is determined as the overheating temperature boundary value.

[0014] Optionally, after sending the total overheating temperature cumulative duration and the current power-on duration to the server, the method further includes: displaying the health status, current power-on duration, and total overheating temperature cumulative duration of the hard drive to be predicted and the preset number of hard drives above and below the hard drive to be predicted in the sorting results in the form of a ladder graph on the display, and displaying the hard drive life of the hard drive to be predicted in continuous overheating and non-overheating states on the ladder graph.

[0015] Secondly, this application provides a hard disk lifespan prediction method, applied to the server side, including:

[0016] The system receives the health status of the hard drive to be predicted, the total cumulative duration of overheating temperature, and the current power-on duration from the client. The health status includes damaged and undamaged. After the client obtains the overheating temperature boundary value of the hard drive to be predicted, it detects the current temperature of the hard drive to be predicted at preset time intervals after enabling hard drive life monitoring. It compares the current temperature with the overheating temperature boundary value to obtain the detection result, which includes overheating and non-overheating. Then, it updates the total cumulative duration of overheating temperature of the hard drive to be predicted based on the detection result.

[0017] The disks to be predicted and the disks already stored in the database are sorted according to the total cumulative duration of overheating temperature to obtain the sorting results;

[0018] The lifespan of the hard drive to be predicted is predicted based on the sorting results and the current power-on duration of all hard drives in the sorting results.

[0019] Optionally, the lifespan of the hard drive to be predicted can be predicted based on the sorting results and the current power-on duration of all hard drives in the sorting results, including: obtaining the hard drive lifespan under overheating conditions by calculating the difference between the total accumulated overheating temperature duration of the hard drive to be predicted in the sorting results and the total accumulated overheating temperature duration of the adjacent damaged hard drive that is longer than the total accumulated overheating temperature duration of the hard drive to be predicted; and obtaining the hard drive lifespan under non-overheating conditions by calculating the difference between the current power-on duration of the hard drive to be predicted in the sorting results and the current power-on duration of the adjacent undamaged hard drive that is shorter than the total accumulated overheating temperature duration of the hard drive to be predicted.

[0020] Optionally, predicting the lifespan of the hard drive to be predicted based on the sorting results and the current power-on duration of all hard drives in the sorting results further includes: obtaining the hard drive type of the hard drive to be predicted; if the hard drive type of the hard drive to be predicted is a solid-state drive, then obtaining the percentage of the hard drive's used lifespan; and correcting the hard drive lifespan of the hard drive to be predicted based on the percentage of the hard drive's used lifespan.

[0021] Thirdly, this application provides a hard disk life prediction device, comprising:

[0022] The acquisition module is used to acquire the health status, current power-on duration, and overheating temperature boundary value of the hard drive to be predicted, where the health status includes damaged and undamaged;

[0023] The detection module is used to detect the current temperature of the hard drive to be predicted at preset time intervals after enabling hard drive life monitoring if the health status of the hard drive to be predicted is undamaged.

[0024] The comparison module is used to compare the current temperature with the overheating temperature boundary value to obtain the detection results, which include overheating and non-overheating.

[0025] The update module is used to update the total cumulative duration of overheating temperature of the hard drive to be predicted based on the detection results;

[0026] The sending module is used to send the total cumulative overheating temperature duration and the current power-on duration to the server, so that the server can sort the hard drive to be predicted and the hard drives already stored in the database according to the total cumulative overheating temperature duration, and obtain the sorting results. The server can then predict the lifespan of the hard drive to be predicted based on the sorting results and the current power-on duration of all hard drives in the sorting results.

[0027] Fourthly, this application provides a hard disk life prediction device, comprising:

[0028] The receiving module is used to receive the health status of the hard drive to be predicted, the total cumulative duration of overheating temperature, and the current power-on duration sent by the client. The health status includes damaged and undamaged. After the client obtains the overheating temperature boundary value of the hard drive to be predicted, it detects the current temperature of the hard drive to be predicted at preset time intervals after starting hard drive life monitoring, compares the current temperature with the overheating temperature boundary value, and obtains the detection result. The detection result includes overheating and non-overheating. Then, the total cumulative duration of overheating temperature of the hard drive to be predicted is updated according to the detection result.

[0029] The sorting module is used to sort the hard disk to be predicted and the hard disks already stored in the database according to the total cumulative duration of overheating temperature, and obtain the sorting results;

[0030] The prediction module is used to predict the lifespan of the hard drive to be predicted based on the sorting results and the current power-on duration of all hard drives in the sorting results.

[0031] Fifthly, this application provides an electronic device, comprising: at least one processor and a memory;

[0032] The memory stores instructions that the computer executes;

[0033] At least one processor executes computer execution instructions stored in memory, causing at least one processor to execute a hard disk life prediction method as described in either the first or second aspect.

[0034] Sixthly, a computer storage medium storing computer-executable instructions, which, when executed by a processor, implements a hard disk life prediction method as described in either the first or second aspect.

[0035] In a seventh aspect, this application provides a computer program product, comprising: a computer program; and when the computer program is executed by a processor, implementing a hard disk life prediction method as described in either the first or second aspect.

[0036] This application provides a method for predicting hard drive lifespan. The method involves detecting the temperature of the hard drive to be predicted, updating the total accumulated duration of overheating temperature based on the temperature detection results, and sending the total accumulated duration of overheating temperature to the server. This allows the server to predict the lifespan of the hard drive. The calculation process only requires simple calculations based on the total accumulated duration of overheating temperature and the current power-on time, which improves computational efficiency. At the same time, it does not require a large amount of hardware computing power, has low hardware requirements, and reduces hardware costs. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0038] Figure 1 This application provides an illustration of an application scenario.

[0039] Figure 2 This is a schematic flowchart of a hard disk life prediction method provided in one embodiment of this application;

[0040] Figure 3 This is a schematic flowchart of a hard disk life prediction method provided in another embodiment of this application;

[0041] Figure 4 This is the initialization process;

[0042] Figure 5 For temperature detection processing;

[0043] Figure 6 A time-based tiered chart of cumulative overheating temperatures for hard drives;

[0044] Figure 7 A method for accurately estimating hard drive lifespan;

[0045] Figure 8 This is a schematic diagram of the hard disk life prediction device provided in the embodiments of this application;

[0046] Figure 9 This is a schematic diagram of the structure of a hard disk life prediction device provided in another embodiment of this application;

[0047] Figure 10 This is a schematic diagram of the hardware structure of the server provided in an embodiment of this application. Detailed Implementation

[0048] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0049] Furthermore, the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article, unless otherwise specified, generally indicates that the preceding and following related objects have an "or" relationship.

[0050] The embodiments of this application will now be described in further detail with reference to the accompanying drawings.

[0051] In existing technologies, a large amount of feature data from hard drives is acquired through SMART, and machine learning is performed on the acquired feature data to obtain a machine learning model for predicting hard drive lifespan. However, modeling is required for different models of hard drives to achieve good prediction results. The modeling process is cumbersome and requires a large amount of data. At the same time, machine learning requires the prediction device to be equipped with a high-performance central processing unit and graphics card, resulting in high learning and prediction costs. Alternatively, feature data can be input into a pre-established mathematical model to calculate the model parameters. However, this involves too many parameters, makes the calculation process complex, and is prone to situations where the mathematical model parameters are unsolvable.

[0052] To address the problems in existing technologies, after analyzing a large amount of hard drive data, it was found that the lifespan of a hard drive is related to the cumulative duration of its total overheating temperature. This embodiment proposes the following technical concept: by detecting the temperature of the hard drive to be predicted on the client side, calculating the cumulative duration of the total overheating temperature of the hard drive to be predicted, and sending the cumulative duration of the total overheating temperature to the server, the server sorts the cumulative duration of the total overheating temperature of all hard drives, and then predicts the lifespan of the hard drive based on the current power-on time in the sorting results.

[0053] refer to Figure 1 , Figure 1 This application provides an illustration of an application scenario, such as... Figure 1 As shown, the system includes a client 101 and a server 102. The client 101 performs temperature detection on the hard drive to be predicted, obtains the total cumulative duration of overheating temperature of the hard drive, and sends this total cumulative duration to the server 102. The server 102 sorts the hard drives to be predicted and the hard drives already stored in the database based on the total cumulative duration of overheating temperature, predicts the lifespan of the hard drive to be predicted based on the sorting result, and sends the predicted lifespan of the hard drive to the client 101 and displays it on the client 101's monitor. A specific implementation method can be found in the following embodiment.

[0054] refer to Figure 2 , Figure 2 This is a schematic flowchart of a hard disk life prediction method provided in one embodiment of this application. The execution subject of this embodiment can be... Figure 1 The client in the illustrated embodiment is not specifically limited in this embodiment. Figure 2 As shown, the method includes:

[0055] S201: Obtain the health status, current power-on duration, and overheating temperature boundary value of the hard drive to be predicted, where the health status includes damaged and undamaged.

[0056] Among them, the health status is an indicator of whether the hard drive can continue to be used normally, which is obtained by the client using self-testing analysis and reporting technology; the current power-on time is the total usage time of the hard drive. Generally, the longer the current power-on time, the shorter the remaining lifespan of the hard drive; the overheating temperature boundary value is the highest temperature of the hard drive under normal working conditions. If the overheating temperature boundary value is exceeded, the hard drive is at risk of damage.

[0057] Specifically, by running the software pre-installed on the client, the relevant code is executed to obtain the health status of the hard drive to be predicted, the current power-on duration, and the overheating temperature boundary value from the self-test analysis and report.

[0058] S202: If the health status of the hard drive to be predicted is undamaged, then after enabling hard drive life monitoring, the current temperature of the hard drive to be predicted will be detected at preset time intervals.

[0059] Among them, hard drive life monitoring is performed by the client starting the software and enabling the hard drive life prediction function. The hard drive status is checked at preset time intervals, and hard drive data is recorded to predict the hard drive life.

[0060] S203: Compare the current temperature with the overheating temperature boundary value to obtain the detection result, which includes overheating and non-overheating.

[0061] Specifically, if the current temperature of the hard drive to be predicted is higher than the overheating temperature boundary value, the detection result is overheating; if the current temperature of the hard drive to be predicted is lower than or equal to the overheating temperature boundary value, the detection result is not overheating.

[0062] In this embodiment, the preset time interval can be a fixed time interval or it can be obtained by mathematical transformation of the current temperature of the hard disk.

[0063] For example, the hard drive temperature can be detected every 1 second, or it can be a mathematical function of the current hard drive temperature.

[0064] S204: Update the total cumulative duration of overheating temperature of the hard drive to be predicted based on the detection results.

[0065] Specifically, when the detection result is overheating, the total overheating temperature accumulation time is increased by a preset time interval; when the detection result is not overheating, the total overheating temperature accumulation time remains unchanged.

[0066] S205: Send the total accumulated overheating temperature duration and the current power-on duration to the server so that the server can sort the hard drive to be predicted and the hard drives already stored in the database according to the total accumulated overheating temperature duration, and obtain the sorting results so that the server can predict the lifespan of the hard drive to be predicted according to the sorting results and the current power-on duration of all hard drives in the sorting results.

[0067] In summary, the hard drive lifespan prediction method provided in this application detects the temperature of the hard drive to be predicted, updates the total overheating temperature accumulation time of the hard drive to be predicted based on the temperature detection results, and sends the total overheating temperature accumulation time of the hard drive to be predicted to the server so that the server can predict the lifespan of the hard drive to be predicted. The calculation process only requires simple calculation based on the total overheating temperature accumulation time and the current power-on time, which improves the calculation efficiency. At the same time, it does not require a lot of hardware computing power, has low hardware requirements, and reduces hardware costs.

[0068] In some embodiments, the cumulative duration of overheating temperature after enabling hard drive life monitoring is updated based on the detection results; the power-on time before enabling hard drive life monitoring is obtained, and the power-on time after enabling hard drive life monitoring is calculated based on the power-on time before enabling hard drive life monitoring and the current power-on time of the hard drive to be predicted; the percentage of cumulative overheating temperature after enabling hard drive life monitoring is calculated based on the cumulative duration of overheating temperature after enabling hard drive life monitoring and the power-on time after enabling hard drive life monitoring; the cumulative duration of overheating temperature before enabling hard drive life monitoring is calculated based on the percentage of cumulative overheating temperature after enabling hard drive life monitoring and the power-on time before enabling hard drive life monitoring; and the total cumulative duration of overheating temperature is calculated based on the cumulative duration of overheating temperature before enabling hard drive life monitoring and the cumulative duration of overheating temperature after enabling hard drive life monitoring.

[0069] Specifically, if the detection result is overheating, the cumulative overheating time after enabling hard drive lifespan monitoring is increased by a preset time interval; if the detection result is not overheating, the cumulative overheating time after enabling hard drive lifespan monitoring remains unchanged. The power-on time before enabling hard drive lifespan monitoring is obtained. The difference between the power-on time before enabling hard drive lifespan monitoring and the current power-on time of the hard drive to be predicted is calculated to obtain the power-on time after enabling hard drive lifespan monitoring. The quotient of the power-on time after enabling hard drive lifespan monitoring and the cumulative overheating time after enabling hard drive lifespan monitoring is calculated to determine the percentage of the cumulative overheating time after enabling hard drive lifespan monitoring. This percentage is used to approximate the percentage of the cumulative overheating time before enabling hard drive lifespan monitoring, and the product of the power-on time before enabling hard drive lifespan monitoring and the percentage of the cumulative overheating time before enabling hard drive lifespan monitoring is calculated to determine the cumulative overheating time before enabling hard drive lifespan monitoring. Finally, the total cumulative overheating time is obtained by summing the cumulative overheating time after enabling hard drive lifespan monitoring and the cumulative overheating time before enabling hard drive lifespan monitoring.

[0070] The calculation method for power-on time after enabling hard drive life monitoring provided in this embodiment is as follows:

[0071] Power-on time after enabling hard drive life monitoring = Current power-on time - Power-on time before enabling hard drive life monitoring

[0072] The formula for calculating the percentage of cumulative overheating time after enabling hard drive life monitoring, provided in this embodiment, is as follows:

[0073] Percentage of cumulative overheating time after enabling hard drive life monitoring = Cumulative overheating time after enabling hard drive life monitoring / Power-on time after enabling hard drive life monitoring

[0074] It should be noted that the percentage of cumulative overheating time after enabling hard drive life monitoring is used as an approximation of the percentage of cumulative overheating time before enabling hard drive life monitoring, in order to calculate the cumulative overheating time before enabling hard drive life monitoring. Therefore, the cumulative overheating time before enabling hard drive life monitoring is shown below:

[0075] Cumulative duration of overheating before enabling hard drive life monitoring = Percentage of cumulative duration of overheating before enabling hard drive life monitoring * Power-on time before enabling hard drive life monitoring

[0076] The formula for calculating the total superheat temperature accumulation time provided in this embodiment is as follows:

[0077] Total overheating duration = Total overheating duration after enabling hard drive life monitoring + Total overheating duration before enabling hard drive life monitoring

[0078] This embodiment can approximate the total cumulative overheating time before enabling hard drive life monitoring by using the percentage of cumulative overheating time after hard drive life monitoring and the power-on time before enabling hard drive life monitoring, even without recording the cumulative overheating time before enabling hard drive life monitoring.

[0079] In some embodiments, the maximum normal operating temperature can be determined by querying whether the temperature information of the hard drive to be predicted contains the maximum normal operating temperature. If the temperature information of the hard drive to be predicted contains the maximum normal operating temperature, the maximum normal operating temperature is determined as the overheating temperature boundary value; if the temperature information of the hard drive to be predicted does not contain the maximum normal operating temperature, the preset maximum temperature value is determined as the overheating temperature boundary value.

[0080] The maximum normal operating temperature is the highest value of the hard drive's normal operating temperature.

[0081] Specifically, the preset code for obtaining temperature information is executed to obtain the hard drive's temperature information. The temperature information may include the current operating temperature, the minimum normal operating temperature, and the maximum normal operating temperature. It is determined whether the temperature information includes the maximum normal operating temperature. If it does, the maximum normal operating temperature is determined as the overheating temperature boundary value; if it does not, the preset maximum temperature value is determined as the overheating temperature boundary value.

[0082] In this embodiment, the maximum normal operating temperature is the maximum normal operating temperature specified by the manufacturer for this model of hard drive. The preset maximum temperature value is generally an industry-recognized value of 50 degrees Celsius.

[0083] For example, if the temperature information in the SMART information of the hard drive to be predicted is found to be 40 (Min / Max 12 / 49), that is, the current temperature is 40 degrees Celsius, the minimum normal operating temperature is 12 degrees Celsius, and the maximum normal operating temperature is 49 degrees Celsius, then 49 degrees Celsius is determined as the overheating temperature boundary value of the hard drive to be predicted.

[0084] This embodiment enables the hard drive to obtain overheating temperature boundary values ​​both when maximum normal operating temperature information is available and when no maximum normal operating temperature information is available, thereby obtaining the total cumulative duration of overheating temperature and predicting the hard drive's lifespan.

[0085] This embodiment is in Figure 2 Based on the embodiments, the hard disk life prediction method includes:

[0086] The monitor displays the health status, current power-on time, and total overheating temperature accumulation time of the hard drive to be predicted and the preset number of hard drives above and below it in the sorting results in the form of a ladder chart. The ladder chart also displays the hard drive lifespan of the hard drive to be predicted under continuous overheating and non-overheating conditions.

[0087] Among them, the ladder chart is a chart that arranges products from high to low or from low to high according to a certain indicator value.

[0088] Specifically, the system reads the health status of the hard drive to be predicted and the preset number of hard drives above and below it, the current power-on time, the total cumulative overheating temperature, and the predicted lifespan of the hard drive to be predicted in both overheating and non-overheating states. The current power-on time and the total cumulative overheating temperature are then displayed on the monitor in a chart format, ordered in descending order by the total cumulative overheating temperature time.

[0089] For example, a chart can be a horizontal bar chart, a table, etc.

[0090] In summary, the hard disk life prediction method provided in this application displays the health status, power-on time, and total overheating temperature accumulation time of the hard disk to be predicted on the display in the form of a ladder chart. This allows users to see the prediction results of the hard disk life more intuitively and use the hard disk reasonably based on the prediction results.

[0091] refer to Figure 3 , Figure 3 This is a schematic flowchart of a hard disk life prediction method provided in another embodiment of this application. The execution subject of this embodiment can be... Figure 1 The server-side implementation shown in the example is not specifically limited in this embodiment. Figure 3 As shown, the method includes:

[0092] S301: Receive the health status, total overheating temperature cumulative duration, and current power-on duration of the hard drive to be predicted sent by the client. The health status includes damaged and undamaged. After the client obtains the overheating temperature boundary value of the hard drive to be predicted, it detects the current temperature of the hard drive to be predicted at preset time intervals after enabling hard drive life monitoring. If the current temperature and the overheating temperature boundary value are not equal, the detection result is obtained. The detection result includes overheating and non-overheating. Then, the total overheating temperature cumulative duration of the hard drive to be predicted is updated according to the detection result.

[0093] Specifically, the system receives the identification information of the hard drive to be predicted sent by the client, and queries the hard drive status storage table in the server to see if the information of the hard drive to be predicted exists. If the information of the hard drive to be predicted does not exist, the information of the hard drive to be predicted is stored in the hard drive status storage table; if the information of the hard drive to be predicted exists, the information of the hard drive to be predicted in the hard drive status storage table is updated.

[0094] In this embodiment of the application, the identification information includes the hard disk device name and serial number. The hard disk device name is set by the manufacturer and is generally a string containing information such as the manufacturer's name and hard disk type. The serial number is set by the manufacturer and is different for each hard disk from the same manufacturer. It is generally a string of mixed alphanumeric characters.

[0095] S302: Sort the hard disk to be predicted and the hard disks already stored in the database according to the total cumulative duration of overheating temperature, and obtain the sorting results.

[0096] In some embodiments provided in this application, when there is sufficient data, hard drives of the same manufacturer and model can be sorted according to the cumulative duration of total overheating temperature to improve the accuracy of hard drive life prediction.

[0097] S303: Predict the lifespan of the hard drive to be predicted based on the sorting results and the current power-on duration of all hard drives in the sorting results.

[0098] Specifically, the predicted lifespan of the hard drive to be predicted is calculated based on the total cumulative overheating time of the hard drives whose health status is damaged, and the lifespan of the hard drive to be predicted in a non-overheating state is calculated based on the current power-on time of the hard drives whose health status is not damaged.

[0099] In summary, the hard disk life prediction method provided in this application receives the total cumulative overheating temperature duration and the current power-on duration sent by the client, sorts the hard disk to be predicted and the hard disks already stored in the database according to the total cumulative overheating temperature duration, and predicts the life of the hard disk to be predicted based on the sorting result and the current power-on duration of all hard disks in the sorting result. The process of predicting hard disk life uses less hardware computing power, reduces hardware costs, and improves the efficiency of hard disk life prediction.

[0100] In some embodiments provided in this application, the hard drive lifespan under overheating conditions is obtained by calculating the difference between the total cumulative duration of overheating temperature of the hard drive to be predicted in the sorting results and the total cumulative duration of overheating temperature of the adjacent damaged hard drive that is longer than the total cumulative duration of overheating temperature of the hard drive to be predicted; the hard drive lifespan under non-overheating conditions is obtained by calculating the difference between the current power-on time of the hard drive to be predicted in the sorting results and the current power-on time of the adjacent undamaged hard drive that is shorter than the total cumulative duration of overheating temperature of the hard drive to be predicted.

[0101] For example, if the total overheating duration of an adjacent damaged hard drive is longer than that of the hard drive to be predicted, and the total overheating duration is 400 minutes, while the total overheating duration of the hard drive to be predicted is 200 minutes, then the lifespan of the hard drive to be predicted under overheating conditions is 400 - 200 = 200 minutes. If the current power-on duration of an adjacent undamaged hard drive is shorter than that of the hard drive to be predicted, and the current power-on duration of the hard drive to be predicted is 40,000 hours, while the current power-on duration of the hard drive to be predicted is 20,001 hours, then the lifespan of the hard drive to be predicted under non-overheating conditions is 40,000 - 20,001 = 19,999 hours.

[0102] The hard disk life prediction method provided in this application requires fewer parameters and has a simple calculation method. It does not require a large amount of hardware computing power, which makes the hard disk life prediction more efficient.

[0103] In some embodiments, since the percentage of a solid-state drive's (SSD) lifespan is also a factor affecting its lifespan, the impact of this percentage must be considered when predicting the SSD's lifespan.

[0104] In some embodiments provided in this application, if the hard drive to be predicted is a solid-state drive (SSD), the prediction of the hard drive's lifespan needs to be corrected based on the type of SSD and the percentage of the hard drive's used lifespan. The specific steps are as follows:

[0105] Obtain the hard drive type of the hard drive to be predicted; if the hard drive type is a solid-state drive (SSD), obtain the percentage of the hard drive's lifespan that has been used; adjust the hard drive's lifespan based on the percentage of the hard drive's lifespan that has been used.

[0106] The hard drive types include mechanical hard drives and solid-state drives (SSDs). The percentage of used lifespan is the ratio of the remaining warranty writes to the total warranty writes for the SSD. The warranty writes are the total warranty writes specified by the manufacturer.

[0107] Specifically, the preset software is run and the relevant code for obtaining the type of hard drive to be predicted is executed. If the hard drive type is a solid-state drive (SSD), the preset software is run and the relevant code for obtaining the percentage of the hard drive's lifespan that has been used is executed. If the percentage of the lifespan that has been used reaches 100%, the predicted lifespan of the hard drive under overheating and non-overheating conditions is 0. If the percentage of the lifespan that has been used does not reach 100%, the predicted lifespan of the hard drive under overheating and non-overheating conditions does not need to be corrected.

[0108] For example, if the predicted lifespan percentage of the solid-state drive (SSD) is 5%, the lifespan under overheating conditions is 200 minutes, and the lifespan under non-overheating conditions is 40000-20001=19999 hours, then the predicted lifespan of the SSD under overheating conditions is 200 minutes, and the lifespan under non-overheating conditions is 19999 hours. If the predicted lifespan percentage of the SSD is 100%, the lifespan under overheating conditions is 200 minutes, and the lifespan under non-overheating conditions is 40000-20001=19999 hours, then the predicted lifespan of the SSD under both overheating and non-overheating conditions is 0, and the user is reminded to replace the drive as soon as possible.

[0109] Correspondingly, if the hard drive to be predicted is a solid-state drive, the percentage of its lifespan already used will be displayed on the performance chart.

[0110] The embodiments of this application can correct the predicted lifespan of a solid-state drive based on the percentage of lifespan already used, resulting in a more accurate lifespan prediction.

[0111] In some embodiments, the agent (client) is installed on the monitored computer or server, collects the status information (identification information, health status, power-on duration, maximum normal operating temperature, power-on duration before life monitoring is enabled, current power-on duration, current temperature, hard drive type, percentage of lifespan used, etc.) of the specified monitored mechanical hard drive (hard drive to be predicted), estimates the total cumulative duration of overheating from the start of power-on to the present, and sends this hard drive status information to the server (for hard drive lifespan estimation).

[0112] The following is the information configured on the agent side:

[0113] Configuration Project illustrate First time using this software (hard drive life monitoring enabled) The initial value is true, and it is updated to false the first time the software is used, and then remains unchanged. Hard drive power-on time when using this software for the first time (power-on time before enabling hard drive life monitoring) The initial value is 0. When this software is used for the first time, it is updated to the [Power_On_Hours current power-on duration] from the smart information of the specified hard drive, and will not be changed thereafter. Cumulative duration of overheating temperature after first use of this software (cumulative duration of overheating temperature after enabling hard drive life monitoring) Save the cumulative duration of overheating temperature calculated after each test, following the first use of this software. health status Save the specified hard drive's SMART information and retrieve the hard drive's health value, including OK (not damaged) - normal or Bad, Failed, etc., but excluding OK (damaged) values.

[0114] Agent-side processing includes initialization processing and temperature detection processing.

[0115] refer to Figure 4 , Figure 4 The initialization process includes:

[0116] (1) Obtain the unique identifier information of the monitored mechanical hard drive (used to uniquely identify the hard drive in the server database).

[0117] (2) Execute the algorithm to obtain the superheated temperature boundary value.

[0118] (3) Retrieve the initial values ​​for this processing from the configuration file.

[0119] (4) Set the trigger conditions for triggering temperature detection processing

[0120] The temperature detection process is triggered periodically; see reference [link / reference] Figure 5 , Figure 5 The temperature detection process includes:

[0121] (1) Obtain the basic status of the hard drive

[0122] (2) Execute the total superheat temperature cumulative duration estimation algorithm

[0123] (3) Save local configuration files

[0124] (4) Hard disk status reporting to the server (server-side)

[0125] The server-side system uses a database to store the status of multiple hard drives. A cumulative overheating temperature chart shows the relationship between the hard drive of interest and drives with similar cumulative overheating temperatures. By comparing these charts, users can determine how much longer the drive can be used, or how long before its health may become abnormal. As data accumulates and becomes more comprehensive and accurate for similar hard drives, the estimation will become increasingly precise.

[0126] Data storage uses a relational database, providing a disk status storage table. The table fields are described below:

[0127] Table field names illustrate DeviceModel (Hard disk device name) The hard drive name retrieved from the hard drive SMART information is a string set by the manufacturer and typically includes information such as the manufacturer's name and hard drive type. SerialNumber The hard drive serial number, retrieved from the hard drive's SMART information, is set at the manufacturer and is unique for each hard drive from the same manufacturer. It is typically a string of mixed alphanumeric characters. Total superheat temperature cumulative duration The cumulative minutes value estimated by an algorithm based on user habits, and the numerical type. Power_On_Hours: Current power-on duration The hard drive usage duration, expressed in hours and of type SMART data, is retrieved from the hard drive's SMART information. health status Extract the hard drive health value string from the hard drive SMART information, including OK (normal) or Bad, Failed, etc., values ​​that do not contain OK. Hard drive type Harddisk / SSD (Mechanical Hard Drive, Solid State Drive) Percentage_used is the percentage of lifetime already used. A reading exceeding 100% indicates that the SSD has exceeded its lifespan (although it may still be usable, the manufacturer recommends that the device has reached its design life and is no longer reliable, suggesting immediate backup and replacement).

[0128] Regarding the handling of a monitored hard drive suddenly failing and its "health status" being unable to be transmitted to the database.

[0129] The following update SQL statements can be executed manually to set the [health status]:

[0130] Update the hard disk status storage table

[0131] Set health status="Bad"

[0132] Where

[0133] DeviceModel_hard_device_name = Specifies the device name of the damaged hard drive

[0134] And SerialNumber = the serial number of the damaged hard drive.

[0135] Server-side (server-side) steps for receiving and storing hard disk status processing

[0136] (1) Receive hard disk status information sent by each agent.

[0137] (2) Use the following SQL query to check if the hard drive information exists in the database.

[0138] select count(*) cnt

[0139] From hard disk status storage table

[0140] Where

[0141] DeviceModel_hard_disk_device_name = the device name of the received hard drive

[0142] And SerialNumber = serial number of the receiving hard drive.

[0143] (3) When the queried cnt (record value) is 0, insert the hard disk status information. The SQL text is as follows:

[0144] Insert hard disk status storage table values(

[0145] The received Device Model hard drive device name.

[0146] Received Serial Number

[0147] Total cumulative duration of overheating temperature received.

[0148] The received Power_On_Hours is the current power-on duration.

[0149] Received health status,

[0150] Hard drive type

[0151] Percentage_used (percentage of lifetime used)

[0152] (4) When the queried cnt (record value) is greater than 0, update the hard disk status information. The SQL text is as follows:

[0153] Update the hard disk status storage table

[0154] set

[0155] Total superheat temperature cumulative duration = received total superheat temperature cumulative duration.

[0156] Power_On_Hours current power-on duration = Received Power_On_Hours current power-on duration

[0157] Health status = Received health status

[0158] Percentage_used (used lifetime percentage) = Received Percentage_used (used lifetime percentage)

[0159] Where

[0160] DeviceModel_hard_disk_device_name = the device name of the received hard drive

[0161] And SerialNumber = serial number of the receiving hard drive.

[0162] refer to Figure 6 , Figure 6 This is a chart showing the cumulative duration of hard drive overheating temperatures.

[0163] The ladder chart is displayed by reading hard disk data using the following SQL and sorting it in descending order by [Total Overheating Temperature Cumulative Duration] in the form of a horizontal bar chart.

[0164] Select

[0165] DeviceModel: Hard drive device name

[0166] SerialNumber serial number

[0167] Total superheat temperature cumulative duration

[0168] Power_On_Hours: Current power-on duration.

[0169] health status

[0170] Hard drive type

[0171] Percentage_used is the percentage of lifetime already used.

[0172] From hard disk status storage table

[0173] Order by Total Overheat Temperature Cumulative Duration desc

[0174] refer to Figure 7 , Figure 7 A method for accurately estimating hard drive lifespan.

[0175] refer to Figure 8 , Figure 8 This is a schematic diagram of the hard disk life prediction device provided in an embodiment of this application. Figure 8 As shown, the hard disk life prediction device includes: an acquisition module 801, a detection module 802, a comparison module 803, an update module 804, and a sending module 805.

[0176] The acquisition module 801 is used to acquire the health status, current power-on duration and overheating temperature boundary value of the hard drive to be predicted, wherein the health status includes damaged and undamaged;

[0177] The detection module 802 is used to detect the current temperature of the hard drive to be predicted at preset time intervals after enabling hard drive life monitoring if the health status of the hard drive to be predicted is undamaged.

[0178] The comparison module 803 is used to compare the current temperature with the overheating temperature boundary value to obtain the detection result, which includes overheating and non-overheating;

[0179] Update module 804 is used to update the total cumulative duration of overheating temperature of the hard drive to be predicted based on the detection results;

[0180] The sending module 805 is used to send the total cumulative overheating temperature duration and the current power-on duration to the server, so that the server can sort the hard drive to be predicted and the hard drives already stored in the database according to the total cumulative overheating temperature duration, and obtain the sorting result, so that the server can predict the lifespan of the hard drive to be predicted according to the sorting result and the current power-on duration of all hard drives in the sorting result.

[0181] In one possible implementation, the detection module 802 is specifically used to update the cumulative overheating time after enabling hard drive life monitoring based on the detection results; obtain the power-on time before enabling hard drive life monitoring, and calculate the power-on time after enabling hard drive life monitoring based on the power-on time before enabling hard drive life monitoring and the current power-on time of the hard drive to be predicted; calculate the percentage of the cumulative overheating time after enabling hard drive life monitoring based on the cumulative overheating time after enabling hard drive life monitoring and the power-on time after enabling hard drive life monitoring; calculate the cumulative overheating time before enabling hard drive life monitoring based on the percentage of the cumulative overheating time after enabling hard drive life monitoring and the power-on time before enabling hard drive life monitoring; and calculate the total cumulative overheating time based on the cumulative overheating time before enabling hard drive life monitoring and the cumulative overheating time after enabling hard drive life monitoring.

[0182] In one possible implementation, the acquisition module 801 is specifically used to query whether the temperature information of the hard drive to be predicted contains the maximum normal operating temperature. If the temperature information of the hard drive to be predicted contains the maximum normal operating temperature, then the maximum normal operating temperature is determined as the overheating temperature boundary value; if the temperature information of the hard drive to be predicted does not contain the maximum normal operating temperature, then the preset maximum temperature value is determined as the overheating temperature boundary value.

[0183] In one possible implementation, the hard disk life prediction device further includes a display module 806, which is specifically used to display the health status, current power-on duration, and total overheating temperature cumulative duration of the hard disk to be predicted and the preset number of hard disks above and below the hard disk to be predicted in the sorting results in the form of a ladder diagram on the display, and to display the hard disk life of the hard disk to be predicted under continuous overheating and non-overheating states on the ladder diagram.

[0184] The hard disk life prediction device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and will not be described again in this embodiment.

[0185] refer to Figure 9 , Figure 9 This is a schematic diagram of a hard disk life prediction device provided in another embodiment of this application. Figure 9 As shown, the hard disk life prediction device includes: a receiving module 901, a sorting module 902, and a prediction module 903.

[0186] The receiving module 901 is used to receive the health status of the hard drive to be predicted, the total cumulative duration of overheating temperature, and the current power-on duration sent by the client. The health status includes damaged and undamaged. After the client obtains the overheating temperature boundary value of the hard drive to be predicted, after enabling hard drive life monitoring, it detects the current temperature of the hard drive to be predicted at preset time intervals, compares the current temperature with the overheating temperature boundary value, and obtains the detection result. The detection result includes overheating and non-overheating. Then, the total cumulative duration of overheating temperature of the hard drive to be predicted is updated according to the detection result.

[0187] The sorting module 902 is used to sort the hard disk to be predicted and the hard disks already stored in the database according to the total cumulative duration of overheating temperature, and obtain the sorting result;

[0188] The prediction module 903 is used to predict the lifespan of the hard drive to be predicted based on the sorting results and the current power-on duration of all hard drives in the sorting results.

[0189] In one possible implementation, the prediction module 903 is specifically used to calculate the difference between the total accumulated overheating temperature duration of the hard disk to be predicted in the sorting results and the total accumulated overheating temperature duration of the adjacent damaged hard disk that is longer than the total accumulated overheating temperature duration of the hard disk to be predicted, to obtain the hard disk lifespan under overheating conditions; and to calculate the difference between the current power-on duration of the hard disk to be predicted in the sorting results and the current power-on duration of the adjacent undamaged hard disk that is shorter than the total accumulated overheating temperature duration of the hard disk to be predicted, to obtain the hard disk lifespan under non-overheating conditions.

[0190] In one possible implementation, the hard disk life prediction device further includes a correction module 904, which is specifically used to obtain the hard disk type of the hard disk to be predicted; if the hard disk type of the hard disk to be predicted is a solid-state drive, then obtain the percentage of the hard disk's used life; and correct the hard disk life of the hard disk to be predicted based on the percentage of the hard disk's used life.

[0191] The hard disk life prediction device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and will not be described again in this embodiment.

[0192] refer to Figure 10 , Figure 10 This is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application. Figure 10 As shown, the electronic device 100 of this embodiment includes: a processor 1001 and a memory 1002; wherein

[0193] Memory 1002 is used to store computer-executed instructions;

[0194] The processor 1001 is used to execute computer execution instructions stored in the memory to implement the various steps performed by the electronic device in the above embodiments. For details, please refer to the relevant descriptions in the foregoing method embodiments. When executing a method executed by the client, the electronic device is the client; when executing a method executed by the server, the electronic device is the server.

[0195] Alternatively, the memory 1002 can be either standalone or integrated with the processor 1001.

[0196] When the memory 1002 is set up independently, the server also includes a bus 1003 for connecting the memory 1002 and the processor 1001.

[0197] This application also provides a computer storage medium storing computer execution instructions. When the processor executes the computer execution instructions, the above-mentioned hard disk life prediction method is implemented.

[0198] This application also provides a computer program product, including a computer program, which, when executed by a processor, implements the above-described hard disk lifespan prediction method. This application also provides a computer program product, including a computer program, which, when executed by a processor, implements the above-described intelligent analysis and evaluation method.

[0199] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.

[0200] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs.

[0201] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.

[0202] The integrated modules implemented as software functional modules described above can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application.

[0203] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly manifested as execution by a hardware processor, or execution by a combination of hardware and software modules within the processor.

[0204] The memory may include high-speed RAM, and may also include non-volatile storage (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk or optical disc, etc.

[0205] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0206] The aforementioned storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0207] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. Both the processor and the storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic device or host device.

[0208] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0209] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A method for predicting hard disk lifespan, characterized in that, Applied to the client side, including: The health status, current power-on duration, and overheating temperature boundary value of the hard drive to be predicted are obtained, wherein the health status includes damaged and undamaged; If the health status of the hard drive to be predicted is undamaged, then after enabling hard drive life monitoring, the current temperature of the hard drive to be predicted will be detected at preset time intervals. The current temperature and the overheating temperature boundary value are compared to obtain the detection result, wherein the detection result includes overheating and non-overheating. Update the total cumulative duration of overheating temperature of the hard drive to be predicted based on the detection results; The total accumulated overheating temperature duration and the current power-on duration are sent to the server. The server then sorts the hard drive to be predicted and the hard drives already stored in the database based on the total accumulated overheating temperature duration, obtaining a sorting result. The server then predicts the lifespan of the hard drive to be predicted based on the sorting result and the current power-on duration of all hard drives in the sorting result, including A1 and A2. A1: The lifespan of the hard drive under overheating condition is obtained by calculating the difference between the total cumulative duration of the overheating temperature of the hard drive to be predicted in the sorting results and the total cumulative duration of the overheating temperature of the adjacent damaged hard drive that is longer than the total cumulative duration of the overheating temperature of the hard drive to be predicted. The difference between the current power-on duration of the hard drive to be predicted in the sorting results and the current power-on duration of the adjacent undamaged hard drive that is shorter than the total accumulated overheating temperature duration of the hard drive to be predicted is used to obtain the hard drive life under non-overheating conditions. A2: Obtain the hard drive type of the hard drive to be predicted; If the hard drive to be predicted is a solid-state drive, then obtain the percentage of the hard drive's lifespan that has been used. The hard drive lifespan of the hard drive to be predicted is adjusted based on the percentage of its used lifespan.

2. The method according to claim 1, characterized in that, The step of updating the total cumulative duration of overheating temperature of the hard drive to be predicted based on the detection results includes: Update the cumulative duration of overheating temperature after enabling hard drive life monitoring based on the test results; Obtain the power-on duration before enabling hard drive life monitoring, and calculate the power-on duration after enabling hard drive life monitoring based on the power-on duration before enabling hard drive life monitoring and the current power-on duration of the hard drive to be predicted; The percentage of the cumulative overheating time after enabling hard drive life monitoring is calculated based on the cumulative overheating time after enabling hard drive life monitoring and the power-on time after enabling hard drive life monitoring. The cumulative overheating time before enabling hard drive life monitoring is calculated based on the percentage of cumulative overheating time after enabling hard drive life monitoring and the power-on time before enabling hard drive life monitoring. The total cumulative overheating time is calculated based on the cumulative overheating time before and after enabling hard drive life monitoring.

3. The method according to claim 1, characterized in that, The process of obtaining the overheating temperature boundary value of the hard drive to be predicted includes: Query whether the temperature information of the hard drive to be predicted contains the highest normal operating temperature. If the temperature information of the hard drive to be predicted contains the highest normal operating temperature, then determine the highest normal operating temperature as the overheating temperature boundary value. If the temperature information of the hard drive to be predicted does not include the highest normal operating temperature, then the preset maximum temperature value is determined to be the overheating temperature boundary value.

4. The method according to any one of claims 1 to 3, further comprising, after sending the total superheat temperature accumulation time and the current power-on time to the server: The monitor displays the health status, current power-on time, and total overheating temperature accumulation time of the hard drive to be predicted and the preset number of hard drives above and below it in the sorting results in the form of a ladder chart. The ladder chart also displays the hard drive lifespan of the hard drive to be predicted under continuous overheating and non-overheating conditions.

5. A method for predicting hard disk lifespan, characterized in that, Applied to the server side, including: The system receives the health status of the hard drive to be predicted, the total cumulative duration of overheating, and the current power-on duration sent by the client. The health status includes damaged and undamaged. After obtaining the overheating temperature boundary value of the hard drive to be predicted, the client detects the current temperature of the hard drive to be predicted at preset time intervals after enabling hard drive life monitoring. The current temperature is compared with the overheating temperature boundary value to obtain the detection result. The detection result includes overheating and non-overheating. The total cumulative duration of overheating of the hard drive to be predicted is then updated based on the detection result. The hard disk to be predicted and the hard disks already stored in the database are sorted according to the total cumulative duration of overheating temperature to obtain the sorting result; The lifespan of the hard drive to be predicted is predicted based on the sorting results and the current power-on duration of all hard drives in the sorting results, including A1 and A2: A1: The lifespan of the hard drive under overheating condition is obtained by calculating the difference between the total cumulative duration of the overheating temperature of the hard drive to be predicted in the sorting results and the total cumulative duration of the overheating temperature of the adjacent damaged hard drive that is longer than the total cumulative duration of the overheating temperature of the hard drive to be predicted. The difference between the current power-on duration of the hard drive to be predicted in the sorting results and the current power-on duration of the adjacent undamaged hard drive that is shorter than the total accumulated overheating temperature duration of the hard drive to be predicted is used to obtain the hard drive life under non-overheating conditions. A2: Obtain the hard drive type of the hard drive to be predicted; If the hard drive to be predicted is a solid-state drive, then obtain the percentage of the hard drive's lifespan that has been used. The hard drive lifespan of the hard drive to be predicted is adjusted based on the percentage of its used lifespan.

6. A hard disk life prediction device, characterized in that, Applied to the client side, including: The acquisition module is used to acquire the health status, current power-on duration, and overheating temperature boundary value of the hard drive to be predicted, wherein the health status includes damaged and undamaged; The detection module is used to detect the current temperature of the hard drive to be predicted at preset time intervals after enabling hard drive life monitoring if the health status of the hard drive to be predicted is undamaged. The comparison module is used to compare the current temperature with the overheating temperature boundary value to obtain a detection result, wherein the detection result includes overheating and non-overheating. The update module is used to update the total cumulative duration of overheating temperature of the hard drive to be predicted based on the detection results; The sending module is used to send the total accumulated overheating temperature duration and the current power-on duration to the server, so that the server sorts the hard drive to be predicted and the hard drives already stored in the database according to the total accumulated overheating temperature duration, and obtains a sorting result. The server then predicts the lifespan of the hard drive to be predicted based on the sorting result and the current power-on duration of all hard drives in the sorting result, including A1 and A2: A1: The lifespan of the hard drive under overheating condition is obtained by calculating the difference between the total cumulative duration of the overheating temperature of the hard drive to be predicted in the sorting results and the total cumulative duration of the overheating temperature of the adjacent damaged hard drive that is longer than the total cumulative duration of the overheating temperature of the hard drive to be predicted. The difference between the current power-on duration of the hard drive to be predicted in the sorting results and the current power-on duration of the adjacent undamaged hard drive that is shorter than the total accumulated overheating temperature duration of the hard drive to be predicted is used to obtain the hard drive life under non-overheating conditions. A2: Obtain the hard drive type of the hard drive to be predicted; If the hard drive to be predicted is a solid-state drive, then obtain the percentage of the hard drive's lifespan that has been used. The hard drive lifespan of the hard drive to be predicted is adjusted based on the percentage of its used lifespan.

7. A hard disk life prediction device, characterized in that, Applied to the server side, including: The receiving module is used to receive the health status of the hard drive to be predicted, the total cumulative duration of overheating temperature, and the current power-on duration sent by the client. The health status includes damaged and undamaged. After the client obtains the overheating temperature boundary value of the hard drive to be predicted, it detects the current temperature of the hard drive to be predicted at preset time intervals after starting hard drive life monitoring, compares the current temperature with the overheating temperature boundary value, and obtains the detection result. The detection result includes overheating and non-overheating. Then, the total cumulative duration of overheating temperature of the hard drive to be predicted is updated according to the detection result. The sorting module is used to sort the hard disk to be predicted and the hard disks already stored in the database according to the total cumulative duration of overheating temperature, and obtain the sorting result; The prediction module is used to predict the lifespan of the hard drive to be predicted based on the sorting results and the current power-on duration of all hard drives in the sorting results, including A1 and A2: A1: The lifespan of the hard drive under overheating condition is obtained by calculating the difference between the total cumulative duration of the overheating temperature of the hard drive to be predicted in the sorting results and the total cumulative duration of the overheating temperature of the adjacent damaged hard drive that is longer than the total cumulative duration of the overheating temperature of the hard drive to be predicted. The difference between the current power-on duration of the hard drive to be predicted in the sorting results and the current power-on duration of the adjacent undamaged hard drive that is shorter than the total accumulated overheating temperature duration of the hard drive to be predicted is used to obtain the hard drive life under non-overheating conditions. A2: Obtain the hard drive type of the hard drive to be predicted; If the hard drive to be predicted is a solid-state drive, then obtain the percentage of the hard drive's lifespan that has been used. The hard drive lifespan of the hard drive to be predicted is adjusted based on the percentage of its used lifespan.

8. An electronic device, characterized in that, include: At least one processor and memory; The memory stores computer-executed instructions; The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the hard disk life prediction method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Solid state disk service life prediction method, device and system

    CN109558287A

  • Method and device for detecting life loss of mechanical hard disk

    CN114936004A