CN117130854A - Hard disk life prediction method and device, electronic equipment and storage medium - Google Patents

Hard disk life prediction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117130854A
CN117130854A CN202310970858.XA CN202310970858A CN117130854A CN 117130854 A CN117130854 A CN 117130854A CN 202310970858 A CN202310970858 A CN 202310970858A CN 117130854 A CN117130854 A CN 117130854A
Authority
CN
China
Prior art keywords
hard disk
predicted
overheat
temperature
time length
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310970858.XA
Other languages
Chinese (zh)
Inventor
孙琦
杨海超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingzhuo Technology Co ltd
Original Assignee
Beijing Jingzhuo Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingzhuo Technology Co ltd filed Critical Beijing Jingzhuo Technology Co ltd
Priority to CN202310970858.XA priority Critical patent/CN117130854A/en
Publication of CN117130854A publication Critical patent/CN117130854A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a hard disk life prediction method, a device, electronic equipment and a storage medium, wherein the method is applied to a client and comprises the following steps: acquiring the health state, the current power-on time length and the overheat temperature boundary value of a hard disk to be predicted; if the health state of the hard disk to be detected is undamaged, detecting the current temperature of the hard disk to be predicted according to a preset time interval after starting the life monitoring of the hard disk; obtaining a detection result according to the current temperature and the overheat temperature boundary value; updating the total overheat temperature accumulated time length of the hard disk to be predicted according to the detection result; and sending the total overheat temperature accumulated time length and the current power-on time length to the server side, so that the server side ranks the hard disks to be predicted and the hard disks stored in the database according to the total overheat temperature accumulated time length, and predicts the service life of the hard disks to be predicted according to the ranking result and the current power-on time length of all the hard disks in the ranking result. And more hardware calculation force conditions are not needed in the prediction process, so that the calculation efficiency is improved.

Description

Hard disk life prediction method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for predicting a hard disk life, an electronic device, and a storage medium.
Background
The hard disk is the primary storage device of the computer. In practical application, data loss is caused by hard disk use faults, and a system is not available, so that a hard disk life prediction method is needed to predict the life of a hard disk and provide effective suggestions for users to reasonably use the hard disk.
In the prior art, the life of a hard disk is generally predicted based on data obtained by a Self-detection analysis and reporting technique (Self-Monitoring Analysis And Reporting Technology, SMART), and the life of the hard disk is predicted by establishing a machine learning model for characteristic data obtained by the Self-detection analysis and reporting technique of the hard disk.
However, the prior art has at least the following problems: the machine learning model needs to occupy certain hardware calculation force conditions in the process of calculating the service life of the hard disk, and has low calculation efficiency.
Disclosure of Invention
The application provides a hard disk life prediction method, a hard disk life prediction device, electronic equipment, storage media and a computer program product, which are used for solving the problem of lower calculation efficiency in the hard disk life prediction process.
In a first aspect, the present application provides a hard disk life prediction method, applied to a client, including:
acquiring the health state of a hard disk to be predicted, the current power-on duration and the overheat temperature boundary value, wherein the health state comprises damaged and undamaged;
If the health state of the hard disk to be predicted is undamaged, detecting the current temperature of the hard disk to be predicted according to a preset time interval after starting the life monitoring of the hard disk;
comparing the current temperature with the overheat temperature boundary value to obtain a detection result, wherein the detection result comprises overheat and non-overheat;
updating the total overheat temperature accumulated time length of the hard disk to be predicted according to the detection result;
and sending the total overheat temperature accumulated time length and the current power-on time length to the server side, so that the server side ranks the hard disks to be predicted and the hard disks stored in the database according to the total overheat temperature accumulated time length to obtain a ranking result, and the server side predicts the service life of the hard disks to be predicted according to the ranking result and the current power-on time length of all the hard disks in the ranking result.
Optionally, updating the total overheat temperature accumulated duration of the hard disk to be predicted according to the detection result, including: updating the overheat temperature accumulated time length after the hard disk life monitoring is started according to the detection result; acquiring the power-on time before the service life of the hard disk is started, and calculating the power-on time after the service life of the hard disk is started according to the power-on time before the service life of the hard disk is started and the current power-on time of the hard disk to be predicted; calculating the overheat temperature accumulation duration after the hard disk life monitoring is started according to the overheat temperature accumulation duration after the hard disk life monitoring is started and the power-on duration after the hard disk life monitoring is started; calculating the overheat temperature accumulated time length before the service life monitoring of the hard disk is started according to the overheat temperature accumulated time length occupation ratio after the service life monitoring of the hard disk is started and the power-on time length before the service life monitoring of the hard disk is started; and calculating the total overheat temperature accumulation duration according to the overheat temperature accumulation duration before the hard disk life monitoring is started and the overheat temperature accumulation duration after the hard disk life monitoring is started.
Optionally, acquiring the overheat temperature boundary value of the hard disk includes: inquiring whether the temperature information of the hard disk to be predicted contains the highest normal working temperature, and if the temperature information of the hard disk to be predicted contains the highest normal working temperature, determining that the highest normal working temperature is an overheat temperature boundary value; and if the temperature information of the hard disk to be predicted does not contain the highest normal working temperature, determining that the preset highest temperature value is an overheat temperature boundary value.
Optionally, after the total overheat temperature accumulated duration and the current power-on duration are sent to the server, the method further includes: and displaying the hard disks to be predicted in the sequencing result in the form of an upper ladder diagram on a display, presetting the health states, the current power-on time length and the total overheat temperature accumulation time of a plurality of hard disks up and down, and displaying the hard disk life of the hard disks to be predicted in the continuous overheat state and the non-overheat state respectively on the upper ladder diagram.
In a second aspect, the present application provides a method for predicting a lifetime of a hard disk, which is applied to a server, and includes:
receiving the health state of the hard disk to be predicted, the total overheat temperature accumulated time length and the current power-on time length, which are sent by a client, wherein the health state comprises damaged and undamaged hard disk overheat temperature boundary values, detecting the current temperature of the hard disk to be predicted according to a preset time interval after the client starts the life monitoring of the hard disk, and comparing the current temperature with the overheat temperature boundary values to obtain detection results, wherein the detection results comprise overheat and non-overheat, and updating the total overheat temperature accumulated time length of the hard disk to be predicted according to the detection results;
Sequencing the hard disk to be predicted and the hard disk stored in the database according to the total overheat temperature accumulated time length to obtain a sequencing result;
and predicting the service life of the hard disk to be predicted according to the sequencing result and the current power-on time of all the hard disks in the sequencing result.
Optionally, predicting the service life of the hard disk to be predicted according to the ordering result and the current power-on duration of all the hard disks in the ordering result includes: the total overheat temperature accumulation duration of the hard disk to be predicted in the sequencing result and the total overheat temperature accumulation duration corresponding to the adjacent damaged hard disk which is longer than the total overheat temperature accumulation duration of the hard disk to be predicted are calculated to obtain the service life of the hard disk in an overheat state; and obtaining a difference value between the current power-on time length of the hard disk to be predicted in the sequencing result and the current power-on time length corresponding to the adjacent undamaged hard disk which is shorter than the total overheat temperature cumulative time length of the hard disk to be predicted, so as to obtain the service life of the hard disk in the non-overheat state.
Optionally, predicting the service life of the hard disk to be predicted according to the ordering result and the current power-on duration of all the hard disks in the ordering result, and further includes: obtaining the hard disk type of a hard disk to be predicted; if the hard disk type of the hard disk to be predicted is a solid state hard disk, acquiring the used life percentage of the hard disk to be predicted; and correcting the hard disk life of the hard disk to be predicted based on the used life percentage of the hard disk to be predicted.
In a third aspect, the present application provides a hard disk life prediction apparatus, comprising:
the system comprises an acquisition module, a prediction module and a prediction module, wherein the acquisition module is used for acquiring the health state of a hard disk to be predicted, the current power-on duration and the overheat temperature boundary value, wherein the health state comprises damaged and undamaged;
the detection module is used for detecting the current temperature of the hard disk to be predicted according to a preset time interval after starting the life monitoring of the hard disk if the health state of the hard disk to be predicted is undamaged;
the comparison module is used for comparing the current temperature with the overheat temperature boundary value to obtain a detection result, wherein the detection result comprises overheat and non-overheat;
the updating module is used for updating the total overheat temperature accumulated duration of the hard disk to be predicted according to the detection result;
the sending module is used for sending the total overheat temperature accumulated time length and the current power-on time length to the server side so that the server side can sort the hard disk to be predicted and the hard disk stored in the database according to the total overheat temperature accumulated time length to obtain a sorting result, and the server side can predict the service life of the hard disk to be predicted according to the sorting result and the current power-on time length of all the hard disks in the sorting result.
In a fourth aspect, the present application provides a hard disk life prediction apparatus, comprising:
The system comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving the health state of a hard disk to be predicted, the total overheat temperature accumulated time length and the current power-on time length which are sent by a client, wherein the health state comprises damaged and undamaged hard disk overheat temperature boundary values, the client detects the current temperature of the hard disk to be predicted according to a preset time interval after starting the life monitoring of the hard disk, and compares the current temperature with the overheat temperature boundary values to obtain detection results, the detection results comprise overheat and non-overheat, and the total overheat temperature accumulated time length of the hard disk to be predicted is updated according to the detection results;
the ordering module is used for ordering the hard disk to be predicted and the hard disk stored in the database according to the total overheat temperature accumulation duration to obtain an ordering result;
and the prediction module is used for predicting the service life of the hard disk to be predicted according to the sequencing result and the current power-on duration of all the hard disks in the sequencing result.
In a fifth aspect, the present application provides an electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
at least one processor executes computer-executable instructions stored in a memory, causing the at least one processor to perform the hard disk life prediction method of any one of the first or second aspects.
In a sixth aspect, a computer storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the hard disk life prediction method according to any one of the first or second aspects.
In a seventh aspect, the present application provides a computer program product comprising: a computer program; the computer program, when executed by a processor, implements the hard disk life prediction method according to any one of the first or second aspects.
The application provides a hard disk life prediction method, which is characterized in that the temperature of a hard disk to be predicted is detected, the total overheat temperature accumulation duration of the hard disk to be predicted is updated according to the temperature detection result of the hard disk to be predicted, and the total overheat temperature accumulation duration of the hard disk to be predicted is sent to a server, so that the service life of the hard disk to be predicted is predicted by the server, and the service life of the hard disk to be predicted is simply calculated only based on the total overheat temperature accumulation duration and the current power-on duration in the calculation process, so that the calculation efficiency is improved, more hardware calculation conditions are not occupied, the requirement on hardware equipment is lower, and the hardware cost is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic view of an application scenario provided by the present application;
FIG. 2 is a flowchart of a method for predicting a lifetime of a hard disk according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for predicting a lifetime of a hard disk according to another embodiment of the present application;
FIG. 4 is a process of initializing the process;
FIG. 5 is a process of detecting temperature;
FIG. 6 is a graph of a hard disk overheat temperature accumulation time ladder;
FIG. 7 is a method for estimating hard disk life in detail;
FIG. 8 is a schematic diagram of a hard disk life prediction apparatus according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a hard disk life prediction apparatus according to another embodiment of the present application;
fig. 10 is a schematic diagram of a hardware structure of a server according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It will be apparent that the described embodiments are some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In this context, unless otherwise specified, the term "/" generally indicates that the associated object is an "or" relationship.
Embodiments of the application are described in further detail below with reference to the drawings.
In the prior art, a large number of characteristic data in a hard disk are acquired through a SMART, machine learning is carried out on the acquired characteristic data to obtain a machine learning model for predicting the service life of the hard disk, however, a good prediction result can be achieved only by respectively modeling the hard disk with different types, the modeling process is complicated, the requirement on the data quantity is high, and meanwhile, the machine learning requires prediction equipment to be provided with a central processor and a display card with higher performance, so that the learning and prediction cost is higher; or inputting the characteristic data into a pre-established mathematical model to calculate model parameters of the mathematical model, wherein the parameters are excessive, the calculation process is complex, and the situation that the mathematical model parameters have no solution easily occurs.
In order to solve the problems in the prior art, after analyzing a large amount of hard disk data, it is found that the service life of the hard disk is related to the total overheat temperature accumulation duration of the hard disk, and the embodiment provides the following technical concept: the method comprises the steps of detecting the temperature of a hard disk to be predicted at a client, calculating the total overheat temperature accumulated time length of the hard disk to be predicted, sending the total overheat temperature accumulated time length to a server, sequencing the total overheat temperature accumulated time lengths of all the hard disks at the server, and predicting the service life of the hard disk according to the current power-on time length in a sequencing result.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario provided by the present application, as shown in fig. 1, including: a client 101 and a server 102. The client 101 detects the temperature of the hard disk to be predicted carried by the client, obtains the total overheat temperature accumulated time length of the hard disk to be predicted, sends the total overheat temperature accumulated time length of the hard disk to be predicted to the server 102, orders the hard disk to be predicted and the hard disk stored in the database according to the total overheat temperature accumulated time length of the hard disk to be predicted, predicts the service life of the hard disk to be predicted according to the ordering result, and sends the predicted service life of the hard disk to be predicted to the client 101 and displays the service life on a display of the client 101. Reference may be made to the following examples for specific implementation.
Referring to fig. 2, fig. 2 is a flow chart of a hard disk life prediction method according to an embodiment of the present application, and the execution subject of the embodiment may be the client in the embodiment shown in fig. 1, which is not particularly limited herein. As shown in fig. 2, the method includes:
s201: and acquiring the health state of the hard disk to be predicted, the current power-on duration and the overheat temperature boundary value, wherein the health state comprises damaged and undamaged.
The health state is a sign of whether the hard disk can be continuously used normally or not, and is obtained by a self-detection analysis and reporting technology through a carried client; the current power-on duration is the total using time of the hard disk, and in general, the longer the current power-on duration is, the shorter the residual life of the hard disk is; the overheat temperature boundary value is the highest temperature of the hard disk in a normal working state, and the hard disk is damaged when exceeding the overheat temperature boundary value.
Specifically, by running software pre-installed at the client, the execution related code obtains the health state of the hard disk to be predicted, the current power-on duration and the overheat temperature boundary value from the self-detection analysis and report.
S202: if the health state of the hard disk to be predicted is undamaged, detecting the current temperature of the hard disk to be predicted according to a preset time interval after starting the life monitoring of the hard disk.
The hard disk life monitoring is to start running software by a client, detect the state of the hard disk at intervals of preset time after starting a hard disk life prediction function, and record hard disk data to predict the life of the hard disk.
S203: and comparing the current temperature with the overheat temperature boundary value to obtain a detection result, wherein the detection result comprises overheat and non-overheat.
Specifically, if the current temperature of the hard disk to be predicted is higher than the overheat temperature boundary value, the detection result is overheat; if the current temperature of the hard disk to be predicted is lower than or equal to the overheat temperature boundary value, the detection result is non-overheat.
In the embodiment of the application, the preset time interval can be a fixed time interval or can be obtained by carrying out mathematical relation transformation on the current temperature of the hard disk.
For example, the temperature of the hard disk may be detected every 1s, or may be a mathematical function of the current temperature of the hard disk.
S204: and updating the total overheat temperature accumulated time length of the hard disk to be predicted according to the detection result.
Specifically, when the detection result is overheat, the total overheat temperature accumulation duration is increased by a preset time interval; when the detection result is non-overheat, the total overheat temperature accumulated time length is unchanged.
S205: and sending the total overheat temperature accumulated time length and the current power-on time length to the server side, so that the server side ranks the hard disks to be predicted and the hard disks stored in the database according to the total overheat temperature accumulated time length to obtain a ranking result, and the server side predicts the service life of the hard disks to be predicted according to the ranking result and the current power-on time length of all the hard disks in the ranking result.
In summary, according to the hard disk life prediction method provided by the embodiment of the application, the temperature of the hard disk to be predicted is detected, the total overheat temperature accumulation duration of the hard disk to be predicted is updated according to the temperature detection result of the hard disk to be predicted, and the total overheat temperature accumulation duration of the hard disk to be predicted is sent to the server, so that the service life of the hard disk to be predicted is predicted by the server, and the service life of the hard disk to be predicted is simply calculated only based on the total overheat temperature accumulation duration and the current power-on duration in the calculation process, so that the calculation efficiency is improved, more hardware calculation conditions are not occupied, the requirement on hardware equipment is lower, and the hardware cost is reduced.
In some embodiments, updating the overheat temperature accumulated time length after the hard disk life monitoring is started according to the detection result; acquiring the power-on time before the service life of the hard disk is started, and calculating the power-on time after the service life of the hard disk is started according to the power-on time before the service life of the hard disk is started and the current power-on time of the hard disk to be predicted; calculating the overheat temperature accumulation duration after the hard disk life monitoring is started according to the overheat temperature accumulation duration after the hard disk life monitoring is started and the power-on duration after the hard disk life monitoring is started; calculating the overheat temperature accumulated time length before the service life monitoring of the hard disk is started according to the overheat temperature accumulated time length occupation ratio after the service life monitoring of the hard disk is started and the power-on time length before the service life monitoring of the hard disk is started; and calculating the total overheat temperature accumulation duration according to the overheat temperature accumulation duration before the hard disk life monitoring is started and the overheat temperature accumulation duration after the hard disk life monitoring is started.
Specifically, if the detection result is overheat, starting the overheat temperature accumulation duration after the hard disk life monitoring to increase by a preset time interval, and if the detection result is non-overheat, starting the overheat temperature accumulation duration after the hard disk life monitoring to be unchanged; obtaining the power-on time before the service life of the hard disk is started, calculating the difference between the power-on time before the service life of the hard disk is started and the current power-on time of the hard disk to be predicted to obtain the power-on time after the service life of the hard disk is started, and calculating the accumulated time ratio of the overheat temperature after the service life of the hard disk is started by a quotient of the power-on time after the service life of the hard disk is started and the accumulated time of the overheat temperature after the service life of the hard disk is started; the method comprises the steps that the overheat temperature accumulation duration after the service life monitoring of the hard disk is started is used for approximately replacing the overheat temperature accumulation duration before the service life monitoring of the hard disk, and the overheat temperature accumulation duration before the service life monitoring of the hard disk is started are calculated by taking the integral of the overheat temperature accumulation duration before the service life monitoring of the hard disk; and summing the total overheat temperature accumulated time length according to the overheat temperature accumulated time length after the hard disk life is started and the overheat temperature accumulated time length before the hard disk life is started.
The calculation mode of the power-on time after the hard disk life is monitored is as follows:
power-on duration after monitoring of open hard disk lifetime = current power-on duration-power-on duration before monitoring of open hard disk lifetime
The calculation formula of the overheat temperature accumulated duration ratio after the open hard disk life monitoring provided in this embodiment is as follows:
the overheat temperature accumulated time length after the hard disk life monitoring is started is equal to the overheat temperature accumulated time length after the hard disk life monitoring is started/the power-on time length after the hard disk life monitoring is started
It should be noted that, the ratio of the total overheat temperature duration after the service life monitoring of the hard disk is approximately used to replace the ratio of the total overheat temperature duration before the service life monitoring of the hard disk is started, so as to calculate the total overheat temperature duration before the service life monitoring of the hard disk is started, as follows:
overheat temperature accumulated time length before starting the hard disk life monitoring = overheat temperature accumulated time length before starting the hard disk life monitoring accounting for the power-on time length before starting the hard disk life monitoring
The calculation formula of the total overheat temperature accumulated time length provided in the embodiment is as follows:
total overheat temperature cumulative time length=overheat temperature cumulative time length after starting hard disk life monitoring+overheat temperature cumulative time length before starting hard disk life monitoring
According to the embodiment, under the condition that the overheat temperature accumulation duration before the service life monitoring of the hard disk is started is not recorded, the overheat temperature accumulation duration before the service life monitoring of the hard disk is started is approximately estimated by using the overheat temperature accumulation duration duty ratio after the service life monitoring of the hard disk and the power-on duration before the service life monitoring of the hard disk, and therefore the accurate total overheat temperature accumulation duration is obtained.
In some embodiments, whether the temperature information of the hard disk to be predicted includes the highest normal working temperature or not may be queried, and if the temperature information of the hard disk to be predicted includes the highest normal working temperature, the highest normal working temperature is determined to be an overheat temperature boundary value; and if the temperature information of the hard disk to be predicted does not contain the highest normal working temperature, determining that the preset highest temperature value is an overheat temperature boundary value.
Wherein the highest normal operating temperature is the highest value of the normal operating temperature of the hard disk.
Specifically, executing a preset code for acquiring temperature information to acquire temperature information of the hard disk, wherein the temperature information can comprise a current temperature working temperature, a lowest normal working temperature and a highest normal working temperature, judging whether the temperature information contains the highest normal working temperature, and if so, determining that the highest normal working temperature is an overheat temperature boundary value; and if the maximum normal working temperature is not contained, determining that the preset maximum temperature value is an overheat temperature boundary value.
In this embodiment, the maximum normal operating temperature is the maximum normal operating temperature specified by the manufacturer for the hard disk of the present model, and the preset maximum temperature value is generally an industry-accepted value and is 50 ℃.
For example, the temperature information in the SMART information of the hard disk to be predicted is found to be 40 (Min/Max 12/49), that is, the current temperature is 40 ℃, the lowest normal working temperature is 12 ℃, and the highest normal working temperature is 49 ℃, and the 49 ℃ is determined to be the overheat temperature boundary value of the hard disk to be predicted.
According to the embodiment, the overheat temperature boundary value can be obtained under the conditions that the hard disk has the highest normal working temperature information and has no highest normal working temperature information, so that the total overheat temperature accumulated duration is obtained, and the service life of the hard disk is predicted.
The method for predicting the service life of the hard disk in the embodiment based on the embodiment of fig. 2 includes:
and displaying the hard disks to be predicted in the sequencing result in the form of an upper ladder diagram on a display, presetting the health states, the current power-on time length and the total overheat temperature accumulation time of a plurality of hard disks up and down, and displaying the hard disk life of the hard disks to be predicted in the continuous overheat state and the non-overheat state respectively on the upper ladder diagram.
Wherein, the ladder diagram is a diagram of arranging products from high to low or from low to high according to a certain index value of the products.
Specifically, the hard disk to be predicted, the health states of a plurality of hard disks preset up and down of the hard disk to be predicted, the current power-on time length, the total overheat accumulated temperature and the predicted hard disk life of the hard disk to be predicted in the overheat state and the non-overheat state are read, and the current power-on time length and the total overheat accumulated temperature are displayed on a display in a chart mode according to the total overheat temperature accumulated time descending order.
By way of example, the graph may be a bar graph, a table, or the like.
In summary, according to the hard disk life prediction method provided by the embodiment of the application, the health state, the power-on duration and the total overheat temperature accumulated time of the hard disk to be predicted are displayed on the display in the form of the ladder diagram, so that a user can more intuitively see the prediction result of the hard disk life, and the hard disk is reasonably used according to the prediction result.
Referring to fig. 3, fig. 3 is a flowchart of a hard disk life prediction method according to another embodiment of the present application, where the execution subject of the embodiment may be the server in the embodiment shown in fig. 1, and the embodiment is not limited herein. As shown in fig. 3, the method includes:
S301: and receiving the health state, the total overheat temperature accumulated time length and the current power-on time length of the hard disk to be predicted, which are sent by the client, wherein the health state comprises damaged and undamaged hard disk overheat temperature boundary values, detecting the current temperature of the hard disk to be predicted according to a preset time interval after the client acquires the overheat temperature boundary values of the hard disk to be predicted, and obtaining detection results if the current temperature and the overheat temperature boundary values, wherein the detection results comprise overheat and non-overheat, and updating the total overheat temperature accumulated time length of the hard disk to be predicted according to the detection results.
Specifically, receiving identification information of a hard disk to be predicted, which is sent by a client, inquiring whether information of the hard disk to be predicted exists in a hard disk state storage table in a server according to the identification information of the hard disk to be predicted, and if the information of the hard disk to be predicted does not exist, storing the information of the hard disk to be predicted into the hard disk state storage table; if the information of the hard disk to be predicted exists, updating the information of the hard disk to be predicted in the hard disk state storage table.
In the embodiment of the application, the identification information comprises a hard disk device name and a serial number, wherein the hard disk device name is set by a manufacturer in a factory, and is generally a character string containing information such as the name of the manufacturer, the type of the hard disk and the like; the serial number is set by the manufacturer in factory, and each hard disk of the same manufacturer is different and is generally a character string with mixed English numbers.
S302: and sequencing the hard disk to be predicted and the hard disk stored in the database according to the total overheat temperature accumulated time length to obtain a sequencing result.
In some embodiments provided by the application, under the condition that the data is rich enough, the hard disks of the same manufacturer and the same model can be ordered according to the total overheat temperature accumulated time length so as to improve the accuracy of hard disk life prediction.
S303: and predicting the service life of the hard disk to be predicted according to the sequencing result and the current power-on time of all the hard disks in the sequencing result.
Specifically, the predicted service life of the hard disk to be predicted under the condition of the damaged hard disk is calculated according to the total overheat temperature accumulated time length of the hard disk, and the service life of the hard disk to be predicted under the condition of non overheat is calculated according to the current power-on time length of the hard disk, the health state of which is not damaged.
In summary, according to the hard disk life prediction method provided by the embodiment of the application, the total overheat temperature accumulated time and the current power-on time sent by the client are received, the hard disks to be predicted and the hard disks stored in the database are sequenced according to the total overheat temperature accumulated time, the life of the hard disks to be predicted is predicted according to the sequencing result and the current power-on time of all the hard disks in the sequencing result, fewer hardware calculation conditions are occupied in the process of predicting the life of the hard disks, the cost of hardware is reduced, and meanwhile, the efficiency of hard disk life prediction is improved.
In some embodiments provided by the application, the total overheat temperature accumulation duration of the hard disk to be predicted in the sequencing result and the total overheat temperature accumulation duration corresponding to the adjacent damaged hard disk longer than the total overheat temperature accumulation duration of the hard disk to be predicted are subjected to difference value to obtain the service life of the hard disk in the overheat state; and obtaining a difference value between the current power-on time length of the hard disk to be predicted in the sequencing result and the current power-on time length corresponding to the adjacent undamaged hard disk which is shorter than the total overheat temperature cumulative time length of the hard disk to be predicted, so as to obtain the service life of the hard disk in the non-overheat state.
For example, the total overheat temperature accumulated time length corresponding to the adjacent damaged hard disk which is longer than the total overheat temperature accumulated time length of the hard disk to be predicted is 400 minutes, the total overheat temperature accumulated time length of the hard disk to be predicted is 200 minutes, and the service life of the hard disk to be predicted in the overheat state is 400-200=200 minutes; the current power-on time length of the adjacent undamaged hard disk which is shorter than the total overheat temperature accumulation time length of the hard disk to be predicted is 40000 hours, the current power-on time length of the hard disk to be predicted is 20001 hours, and the service life of the hard disk to be predicted in a non-overheat state is 40000-20001=19999 hours.
The hard disk life prediction method provided by the embodiment of the application has the advantages of fewer required parameters, simple calculation mode and higher efficiency of hard disk life prediction, and does not occupy a large amount of hardware calculation conditions.
In some embodiments, since the percentage of life of the solid state drive that has been used is also a factor that affects the life of the solid state drive, it is also necessary to consider the impact of the percentage of life that has been used in predicting the life of the solid state drive
In some embodiments of the present application, if the hard disk to be predicted is a solid state hard disk, the prediction of the hard disk life needs to be corrected according to the type of the solid state hard disk and the used life percentage of the hard disk, and the specific steps are as follows:
obtaining the hard disk type of a hard disk to be predicted; if the hard disk type of the hard disk to be predicted is a solid state hard disk, acquiring the used life percentage of the hard disk to be predicted; the hard disk life of the hard disk to be predicted is corrected based on the used life percentage of the hard disk to be predicted.
The hard disk type comprises a mechanical hard disk and a solid state disk, the used life percentage is the ratio of the residual quality assurance writing quantity and the quality assurance writing quantity of the solid state disk, and the quality assurance writing quantity is the total quality assurance writing quantity value specified by manufacturers.
Specifically, running preset software and executing related codes for obtaining the type of the hard disk to be predicted, obtaining the type of the hard disk, and if the type of the hard disk is a solid state disk, running the preset software and executing related codes for obtaining the used life percentage of the hard disk to be predicted; if the used life percentage reaches 100%, the predicted hard disk life of the hard disk to be predicted in the overheated state and the non-overheated state is 0; if the used service life percentage does not reach 100%, the predicted service life of the hard disk to be predicted in the overheated state and the non-overheated state does not need to be corrected.
For example, if the used life percentage of the solid state hard disk to be predicted is 5%, the life of the hard disk in the overheated state is 200 minutes, and the life of the hard disk in the non-overheated state is 40000-20001=19999 hours, the life of the solid state hard disk to be predicted in the overheated state is 200 minutes, and the life of the hard disk in the non-overheated state is 19999 hours; if the service life percentage of the solid state disk to be predicted is 100%, the service life of the hard disk in the overheat state is 200 minutes, and the service life of the hard disk in the non-overheat state is 40000-20001=19999 hours, the service life of the solid state disk to be predicted in the overheat state and the non-overheat state is 0, and the user is reminded to replace the hard disk as soon as possible.
Correspondingly, if the hard disk to be predicted is a solid state hard disk, displaying the used life percentage on the ladder diagram.
The embodiment of the application can correct the predicted life of the solid state disk based on the used life percentage to obtain a more accurate life prediction result.
In some embodiments, the agent end (client) is installed on a monitored computer or server, collects state information (identification information, health status, power-on duration, maximum normal operating temperature, power-on duration before life monitoring on, current power-on duration, current temperature, hard disk type, percentage of used life, etc.) of a specified monitored mechanical hard disk (hard disk to be predicted), estimates the hard disk from the beginning of power-on to the current [ total overheat temperature cumulative duration ], and sends these hard disk state information to the server end (server) (for hard disk life estimation).
The following is information configured by the agent end:
configuration items Description of the invention
First time use of this software (open hard disk life monitoring) flag The initial value is true, the software is updated to false when being used for the first time, and then the software is not changed any more And (3) changing.
The hard disk power-on time length (hard start when the software is used for the first time Power-up time period before disc life monitoring Initial value is 0, and the initial value is updated from specified hard disk smart information when the software is used for the first time Power_on_Hours current Power-On duration, and then no longer changes.
The accumulated duration of overheat temperature after the first use of the software (on Overheat temperature accumulated time length after starting hard disk life monitoring Saving the calculated overheat temperature after the first use of the software Time counting
Health status Saving specified hard disk smart information to retrieve hard disk health values, including OK (intact Bad) -normal or Bad, failed, etc. do not contain OK (corrupted) values.
The Agent end processing comprises initialization processing and temperature detection processing.
Referring to fig. 4, fig. 4 is a process of initializing process, including:
(1) Obtaining unique identification information of a monitored mechanical hard disk (information data for uniquely determining the hard disk in a server end database)
(2) Execute [ overheat temperature boundary value ] acquisition algorithm
(3) Extracting the initial value of the current process from the configuration file
(4) Setting trigger conditions for triggering detection temperature processing
The detected temperature process is initiated by a timed trigger, and referring to fig. 5, fig. 5 is a detected temperature process, comprising:
(1) Obtaining the basic state of a hard disk
(2) Execute (total overheat temperature accumulated time length) estimation algorithm
(3) Saving local configuration files
(4) Hard disk state reporting server (service end)
According to the states of a plurality of hard disks accumulated and stored by a database, a server end visually sees the relationship between the concerned hard disk and the hard disk with similar overheat temperature accumulation duration through a hard disk overheat temperature accumulation duration ladder diagram, and judges how long the server end can be used or how long the health state of the hard disk is possibly abnormal after the comparison. With the accumulation of data, the data of the same type of hard disk is rich and perfect, and the estimation is more and more accurate.
The data storage adopts a relational database to provide a hard disk state storage table, and the table field is described as follows:
table field name Description of the invention
DeviceModel hard disk device name The hard disk name extracted from the hard disk smart information is factory set by the manufacturer and generally contains the manufacturer name A character string of information such as disc type
Serial number of SerialNumber The serial number of the hard disk is taken out from the smart information of the hard disk, factory setting is carried out by a manufacturer, and each hard disk of the same manufacturer Are all different, are generally character strings of mixed English numbers
Total overheat temperature accumulated time length The accumulated minute value estimated by algorithm according to the using habit of the user, and the value type
Power_on_Hours current Power-up duration Hard disk service life, representing hours, value type, taken from hard disk smart information
Health status Extracting hard disk health value character string from hard disk smart information, including OK-normal or Bad, failed Faults, etc. do not contain an OK value.
Hard disk type Harddisk/SSD mechanical hard disk and solid state disk
Percentage used lifetime Percentage of Over 100%, indicatingSSD devices have exceeded their useful life (although generally available, manufacturers recommend devices By the design life, it is no longer reliable and recommends backup replacement as soon as possible
Regarding sudden damage of the monitored hard disk, processing that the hard disk [ health status ] cannot be transferred to the database
The following update SQL text settings [ health ] may be performed manually:
update hard disk state storage table
set health status= "Bad"
Where
DeviceModel hard disk device name = device name specifying damaged hard disk
And serial number=serial number specifying a damaged hard disk
Server side (server side) receives and stores hard disk state processing step
(1) Accepting hard disk state information sent by each agent
(2) Querying a database for the presence of the hard disk information using the following SQL
select count(*) cnt
From hard disk state memory table
Where
DeviceModel hard disk device name = device name of the received hard disk
And serial number=serial number of hard disk received
(3) When the queried cnt (record bar value) is 0, the hard disk state information is inserted, and SQL is as follows
Inert hard disk state storage table values @
The received Device Model hard disk Device name,
the received Serial Number sequence Number,
the total superheat temperature received is accumulated for a period of time,
the received Power On Hours is currently powered up for a period of time,
the received health status is indicative of a state of health,
the type of hard disk is a type of hard disk,
percentage of lifetime used by Percentage_used
(4) When cnt (record bar value) >0 is inquired, the hard disk state information is updated, and SQL is as follows
Update hard disk state storage table
set
Total superheat temperature cumulative duration = total superheat temperature cumulative duration received,
power On Hours current Power-On duration = received Power On Hours current Power-On duration,
health status = received health status
Percentage of lifetime used by Percentage_used = Percentage of lifetime used by received Percentage_used
Where
DeviceModel hard disk device name = device name of the received hard disk
And serial number=serial number of hard disk received
Referring to fig. 6, fig. 6 is a ladder diagram of the cumulative duration of the overheat temperature of the hard disk.
The display of the ladder diagram is that hard disk data are read out through SQL described below and are displayed in a descending order in a form of a horizontal bar diagram according to the total overheat temperature accumulated time length.
Select
The DeviceModel hard disk device name,
the serial number of the serial number,
the total superheat temperature is accumulated for a period of time,
Power_on_Hours is currently powered On for a period of time,
the health status of the patient is that,
the type of hard disk is a type of hard disk,
percentage of lifetime used by permanent_used
From hard disk state memory table
Cumulative time length desc of Order by total overheat temperature
Referring to fig. 7, fig. 7 is a method of estimating the lifetime of a hard disk in detail.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a hard disk life prediction apparatus according to an embodiment of the present application. As shown in fig. 8, the hard disk life predicting apparatus includes: acquisition module 801, detection module 802, comparison module 803, update module 804, and transmission module 805.
An obtaining module 801, configured to obtain a health state of a hard disk to be predicted, a current power-on duration, and an overheat temperature boundary value, where the health state includes damaged and undamaged;
The detecting module 802 is configured to detect, according to a preset time interval, a current temperature of the hard disk to be predicted after the life monitoring of the hard disk is started if the health status of the hard disk to be predicted is undamaged;
a comparison module 803, configured to compare the current temperature with the overheat temperature boundary value to obtain a detection result, where the detection result includes overheat and non-overheat;
an updating module 804, configured to update a total overheat temperature accumulated duration of the hard disk to be predicted according to the detection result;
and the sending module 805 is configured to send the total overheat temperature accumulated time length and the current power-on time length to the server, so that the server ranks the hard disk to be predicted and the hard disk stored in the database according to the total overheat temperature accumulated time length, and obtain a ranking result, so that the server predicts the service life of the hard disk to be predicted according to the ranking result and the current power-on time lengths of all the hard disks in the ranking result.
In one possible implementation manner, the detection module 802 is specifically configured to update the overheat temperature accumulated duration after the hard disk lifetime monitoring is started according to the detection result; acquiring the power-on time before the service life of the hard disk is started, and calculating the power-on time after the service life of the hard disk is started according to the power-on time before the service life of the hard disk is started and the current power-on time of the hard disk to be predicted; calculating the overheat temperature accumulation duration after the hard disk life monitoring is started according to the overheat temperature accumulation duration after the hard disk life monitoring is started and the power-on duration after the hard disk life monitoring is started; calculating the overheat temperature accumulated time length before the service life monitoring of the hard disk is started according to the overheat temperature accumulated time length occupation ratio after the service life monitoring of the hard disk is started and the power-on time length before the service life monitoring of the hard disk is started; and calculating the total overheat temperature accumulation duration according to the overheat temperature accumulation duration before the hard disk life monitoring is started and the overheat temperature accumulation duration after the hard disk life monitoring is started.
In one possible implementation manner, the obtaining module 801 is specifically configured to query whether the temperature information of the hard disk to be predicted includes the highest normal operating temperature, and if the temperature information of the hard disk to be predicted includes the highest normal operating temperature, determine that the highest normal operating temperature is an overheat temperature boundary value; and if the temperature information of the hard disk to be predicted does not contain the highest normal working temperature, determining that the preset highest temperature value is an overheat temperature boundary value.
In a possible implementation manner, the hard disk life prediction device further includes a display module 806, where the display module 806 is specifically configured to display, on a display, the to-be-predicted hard disks and health states, current power-on duration and total overheat temperature accumulation duration of a plurality of hard disks preset up and down in the ranking result in a form of an ladder diagram, and display, on the ladder diagram, the hard disk life of the to-be-predicted hard disk in the continuously overheat state and the non-overheat state, respectively.
The hard disk life prediction device provided in this embodiment may be used to implement the technical solution of the above method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be repeated here.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a hard disk life prediction apparatus according to another embodiment of the present application. As shown in fig. 9, the hard disk life predicting apparatus includes: a receiving module 901, a ranking module 902 and a predicting module 903.
The receiving module 901 is configured to receive a health state of a hard disk to be predicted, a total overheat temperature accumulated duration and a current power-on duration, which are sent by a client, wherein the health state includes damaged and undamaged hard disks, detect a current temperature of the hard disk to be predicted according to a preset time interval after the client acquires overheat temperature boundary values of the hard disk to be predicted, compare the current temperature with the overheat temperature boundary values to obtain detection results, and update the total overheat temperature accumulated duration of the hard disk to be predicted according to the detection results, wherein the overheat and the non-overheat are included in the detection results;
the ordering module 902 is configured to order the hard disk to be predicted and the hard disk stored in the database according to the total overheat temperature accumulation duration, so as to obtain an ordering result;
the predicting module 903 is configured to predict a lifetime of the hard disk to be predicted according to the ordering result and current power-on durations of all the hard disks in the ordering result.
In one possible implementation manner, the prediction module 903 is specifically configured to calculate a difference between a total overheat temperature accumulated duration of the hard disk to be predicted in the sequencing result and a total overheat temperature accumulated duration corresponding to an adjacent damaged hard disk longer than the total overheat temperature accumulated duration of the hard disk to be predicted, so as to obtain a service life of the hard disk in an overheat state; and obtaining a difference value between the current power-on time length of the hard disk to be predicted in the sequencing result and the current power-on time length corresponding to the adjacent undamaged hard disk which is shorter than the total overheat temperature cumulative time length of the hard disk to be predicted, so as to obtain the service life of the hard disk in the non-overheat state.
In one possible implementation manner, the hard disk life prediction device further includes a correction module 904, where the correction module 904 is specifically configured to obtain a 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 hard disk, acquiring the used life percentage of the hard disk to be predicted; the hard disk life of the hard disk to be predicted is corrected based on the used life percentage of the hard disk to be predicted.
The hard disk life prediction device provided in this embodiment may be used to implement the technical solution of the above method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be repeated here.
Referring to fig. 10, fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 10, the electronic apparatus 100 of the present embodiment includes: a processor 1001 and a memory 1002; wherein the method comprises the steps of
Memory 1002 for storing computer-executable instructions;
the processor 1001 is configured to execute computer-executable instructions stored in the memory to implement the steps executed by the electronic device in the above embodiment. In particular, the description of the foregoing method embodiments may be referred to, where the electronic device is a client when executing a method executed by the client, and the electronic device is a server when executing a method executed by the server.
Alternatively, the memory 1002 may be separate or integrated with the processor 1001.
When the memory 1002 is provided separately, the server further includes a bus 1003 for connecting the memory 1002 and the processor 1001.
The embodiment of the application also provides a computer storage medium, wherein computer execution instructions are stored in the computer storage medium, and when a processor executes the computer execution instructions, the hard disk life prediction method is realized.
The embodiment of the application also provides a computer program product, which comprises a computer program, and when the computer program is executed by a processor, the hard disk life prediction method is realized. The embodiment of the application also provides a computer program product, which comprises a computer program, and the intelligent analysis and evaluation method is realized when the computer program is executed by a processor.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, e.g., the division of modules is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.
In addition, each functional module in the embodiments of the present application may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one unit. The units formed by the modules can be realized in a form of hardware or a form of hardware and software functional units.
The integrated modules, which are implemented in the form of software functional modules, may be stored in a computer readable storage medium. The software functional modules described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or processor to perform some of the steps of the methods described in the various embodiments of the application.
It should be understood that the above processor may be a central processing unit (Central Processing Unit, abbreviated as CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, abbreviated as DSP), application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile memory NVM, such as at least one magnetic disk memory, and may also be a U-disk, a removable hard disk, a read-only memory, a magnetic disk or optical disk, etc.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or to one type of bus.
The storage medium may be implemented by any type or combination of volatile or nonvolatile memory devices 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 memory, flash memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). It is also possible that the processor and the storage medium reside as discrete components in an electronic device or a master device.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.

Claims (10)

1. The hard disk life prediction method is characterized by being applied to a client and comprising the following steps of:
acquiring the health state, the current power-on duration and the overheat temperature boundary value of a hard disk to be predicted, wherein the health state comprises damaged and undamaged;
if the health state of the hard disk to be predicted is undamaged, detecting the current temperature of the hard disk to be predicted according to a preset time interval after starting the life monitoring of the hard disk;
comparing the current temperature with the overheat temperature boundary value to obtain a detection result, wherein the detection result comprises overheat and non-overheat;
updating the total overheat temperature accumulated time length of the hard disk to be predicted according to the detection result;
And sending the total overheat temperature accumulated time length and the current power-on time length to a server side, so that the server side sequences the hard disks to be predicted and the hard disks stored in the database according to the total overheat temperature accumulated time length to obtain a sequencing result, and predicting the service life of the hard disks to be predicted according to the sequencing result and the current power-on time length of all the hard disks in the sequencing result.
2. The method of claim 1, wherein updating the total superheat temperature cumulative time of the hard disk to be predicted according to the detection result comprises:
updating the overheat temperature accumulated time length after the hard disk life monitoring is started according to the detection result;
acquiring the power-on time before the service life of the hard disk is started, and calculating the power-on time after the service life of the hard disk is started according to the power-on time before the service life of the hard disk is started and the current power-on time of the hard disk to be predicted;
calculating the overheat temperature accumulation duration after the service life monitoring of the opened hard disk according to the overheat temperature accumulation duration after the service life monitoring of the opened hard disk and the power-on duration after the service life monitoring of the opened hard disk;
calculating the overheat temperature accumulated time before the service life monitoring of the hard disk is started according to the overheat temperature accumulated time occupation ratio after the service life monitoring of the hard disk is started and the power-on time before the service life monitoring of the hard disk is started;
And calculating the total overheat temperature accumulation duration according to the overheat temperature accumulation duration before the service life monitoring of the open hard disk and the overheat temperature accumulation duration after the service life monitoring of the open hard disk.
3. The method of claim 1, wherein the obtaining the overheat temperature boundary value of the hard disk to be predicted comprises:
inquiring whether the temperature information of the hard disk to be predicted contains the highest normal working temperature, and if the temperature information of the hard disk to be predicted contains the highest normal working temperature, determining that the highest normal working temperature is an overheat temperature boundary value;
and if the temperature information of the hard disk to be predicted does not contain the highest normal working temperature, determining that the preset highest temperature value is an overheat temperature boundary value.
4. The method of any one of claims 1 to 3, further comprising, after said sending the total superheat temperature cumulative length and the current power-on length to a server:
and displaying the hard disks to be predicted in the sequencing result in the form of an upper ladder diagram on a display, presetting the health states, the current power-on time length and the total overheat temperature accumulation time of a plurality of hard disks up and down, and displaying the hard disk life of the hard disks to be predicted in the continuous overheat state and the non-overheat state respectively on the upper ladder diagram.
5. The hard disk life prediction method is characterized by being applied to a server and comprising the following steps:
receiving the health state of the hard disk to be predicted, the total overheat temperature accumulated time length and the current power-on time length, which are sent by a client, wherein the health state comprises damaged and undamaged hard disk overheat temperature boundary values, detecting the current temperature of the hard disk to be predicted according to a preset time interval after starting the hard disk life monitoring, and comparing the current temperature with the overheat temperature boundary values to obtain detection results, wherein the detection results comprise overheat and non-overheat, and updating the total overheat temperature accumulated time length of the hard disk to be predicted according to the detection results;
sequencing the hard disk to be predicted and the hard disk stored in the database according to the total overheat temperature accumulated time length to obtain a sequencing result;
predicting the service lives of the hard disks to be predicted according to the sequencing result and the current power-on duration of all the hard disks in the sequencing result.
6. The method of claim 5, wherein predicting the life of the hard disk to be predicted according to the ranking result and the current power-on duration of all hard disks in the ranking result comprises:
Obtaining a difference value between the total overheat temperature accumulated time length of the hard disk to be predicted in the sequencing result and the total overheat temperature accumulated time length corresponding to the adjacent damaged hard disk which is longer than the total overheat temperature accumulated time length of the hard disk to be predicted, and obtaining the service life of the hard disk in an overheat state;
and obtaining a difference value between the current power-on time length of the hard disk to be predicted in the sequencing result and the current power-on time length corresponding to the adjacent undamaged hard disk which is shorter than the total overheat temperature accumulation time length of the hard disk to be predicted, and obtaining the service life of the hard disk in the non-overheat state.
7. The method according to claim 5 or 6, wherein predicting the life of the hard disk to be predicted according to the ranking result and the current power-on duration of all hard disks in the ranking result, further comprises:
obtaining the hard disk type of a hard disk to be predicted;
if the hard disk type of the hard disk to be predicted is a solid state hard disk, acquiring the used life percentage of the hard disk to be predicted;
and correcting the hard disk life of the hard disk to be predicted based on the used life percentage of the hard disk to be predicted.
8. A hard disk life prediction apparatus, applied to a client, comprising:
the system comprises an acquisition module, a prediction module and a prediction module, wherein the acquisition module is used for acquiring the health state of a hard disk to be predicted, the current power-on duration and the overheat temperature boundary value, wherein the health state comprises damaged and undamaged;
The detection module is used for detecting the current temperature of the hard disk to be predicted according to a preset time interval after starting the life monitoring of the hard disk if the health state of the hard disk to be predicted is undamaged;
the comparison module is used for comparing the current temperature with the overheat temperature boundary value to obtain a detection result, wherein the detection result comprises overheat and non-overheat;
the updating module is used for updating the total overheat temperature accumulated duration of the hard disk to be predicted according to the detection result;
the sending module is used for sending the total overheat temperature accumulated time length and the current power-on time length to a server side, so that the server side orders the hard disks to be predicted and the hard disks stored in the database according to the total overheat temperature accumulated time length to obtain an ordering result, and the server side predicts the service life of the hard disks to be predicted according to the ordering result and the current power-on time length of all the hard disks in the ordering result.
9. The hard disk life prediction device is characterized by being applied to a server and comprising:
the system comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving the health state of a hard disk to be predicted, the total overheat temperature accumulated time length and the current power-on time length which are sent by a client, wherein the health state comprises damaged and undamaged hard disk overheat temperature boundary values, the client detects the current temperature of the hard disk to be predicted according to a preset time interval after starting the life monitoring of the hard disk, compares the current temperature with the overheat temperature boundary values to obtain detection results, the detection results comprise overheat and non-overheat, and updates the total overheat temperature accumulated time length of the hard disk to be predicted according to the detection results;
The sequencing module is used for sequencing the hard disk to be predicted and the hard disk stored in the database according to the total overheat temperature accumulated time length to obtain a sequencing result;
and the prediction module is used for predicting the service life of the hard disk to be predicted according to the sequencing result and the current power-on duration of all the hard disks in the sequencing result.
10. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory causes the at least one processor to perform the hard disk life prediction method of any one of claims 1 to 7.
CN202310970858.XA 2023-08-03 2023-08-03 Hard disk life prediction method and device, electronic equipment and storage medium Pending CN117130854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310970858.XA CN117130854A (en) 2023-08-03 2023-08-03 Hard disk life prediction method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310970858.XA CN117130854A (en) 2023-08-03 2023-08-03 Hard disk life prediction method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117130854A true CN117130854A (en) 2023-11-28

Family

ID=88853688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310970858.XA Pending CN117130854A (en) 2023-08-03 2023-08-03 Hard disk life prediction method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117130854A (en)

Similar Documents

Publication Publication Date Title
JP4573179B2 (en) Performance load abnormality detection system, performance load abnormality detection method, and program
EP2803048B1 (en) System and method for providing diagnostic fault information
CN104956373A (en) Determining suspected root causes of anomalous network behavior
CN112751711B (en) Alarm information processing method and device, storage medium and electronic equipment
CN112101665A (en) Fault detection early warning method and device, storage medium and electronic equipment
CN115033453A (en) Abnormality detection method, apparatus, device, storage medium, and program
JP2008090682A (en) Apparatus and method for providing module trouble information
CN114202238A (en) Power supply equipment health degree evaluation method, operation and maintenance method, device and server
CN115080555A (en) Method, system and medium for distinguishing outliers by acquiring population data based on signaling
CN111752481A (en) Memory monitoring and service life prediction method and system based on SPD
US20080244296A1 (en) Computer system fault detection
CN111367584A (en) Power supply adaptation method and device and computer readable storage medium
CN117130854A (en) Hard disk life prediction method and device, electronic equipment and storage medium
CN112652351A (en) Hardware state detection method and device, computer equipment and storage medium
CN111949646A (en) Big data-based equipment running condition analysis method, device, equipment and medium
CN112005223A (en) Device state assessment
CN114637577A (en) Method and device for identifying use state of instance
CN115358336A (en) Power utilization abnormity detection method and device and electronic equipment
CN112416896A (en) Data abnormity warning method and device, storage medium and electronic device
CN112379832B (en) Storage medium detection method and device
CN106649069B (en) User behavior statistical method and system
CN107748333B (en) Method and system for estimating residual capacity of storage battery
CN112579327B (en) Fault detection method, device and equipment
CN116259337B (en) Disk abnormality detection method, model training method and related device
CN114598590B (en) Detection method for stability element and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination