Hard disk running state monitoring method, device and equipment

By periodically collecting SSD status information, forming a target set and calculating reference status information, the problem of low accuracy of SSD status analysis is solved, and more accurate hard disk operation status monitoring and life prediction are achieved.

CN119597570APending Publication Date: 2025-03-11SUGON INFORMATION IND +1
View PDF -1 Cites 1 Cited by

Patent Information

Application Number
CN202411630160.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the prior art, the accuracy of SSD state analysis is low, and it is impossible to effectively monitor the operating status of the SSD and estimate its operational time.

Method used

By periodically collecting the status information of the SSD, forming a target set of multiple sampling periods, and calculating the reference status information based on the status information in the set, determining whether the set is an exception set, and then determining whether there is an exception in the operating state of the hard disk.

Benefits of technology

Improve the accuracy of SSD status monitoring, and can more effectively predict the remaining life of the hard disk, avoiding data loss caused by hard disk failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119597570A_ABST
    Figure CN119597570A_ABST
Patent Text Reader

Abstract

The invention relates to a hard disk running state monitoring method, device and equipment, and the method comprises the steps: collecting the state information of a target hard disk every sampling period; when it is determined that the number of times of collection meets a preset condition, state information collected in multiple historical sampling periods is obtained, and a target set is formed based on the obtained state information and state information collected in the current sampling period; determining reference state information corresponding to the target set based on each piece of state information included in the target set; determining whether the target set is an abnormal set based on the change value of the reference state information between the target set and the first historical set; the first historical set is a historical set adjacent to the target set after sorting each historical set and the target set based on the formation time; and whether the running state of the target hard disk is abnormal or not is determined based on the number of the currently existing abnormal sets, so that the accuracy of SSD state analysis is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device and equipment for monitoring the operating status of a hard disk. Background Art

[0002] With the development of SSD (Solid State Disk) technology, SSD can provide customers with more reliable services and gradually become an indispensable part of storage devices. As one of the key storage media in storage devices, the operation of SSD has a great impact on the stability of the entire storage system. Although most storage systems have added corresponding redundancy strategies to avoid hard disk failures, due to limited redundancy and usually unpredictable failures, monitoring the operation status of SSD and estimating its operational length (i.e., remaining life) is one of the keys to improving the stability of storage systems.

[0003] Since most SSD manufacturers usually only open SSD-related information within the standard protocol, SMART (Self-Monitoring Analysis and Reporting Technology) is a standardized technology supported by SSDs. It can provide rich fields and comprehensive SSD information to the outside world, so it has become an important parameter source for analyzing the operating status of SSDs.

[0004] In the related art, when performing SSD status analysis based on SMART, usually only the current real-time static SMART parameters are referenced. However, SSD operation is a dynamic process, and its operating status will change dynamically over time. Therefore, this method will result in low accuracy of status analysis. Summary of the invention

[0005] The present invention provides a hard disk operation status monitoring method, device and equipment, which are used to solve the problem of low accuracy of SSD status analysis in related technologies.

[0006] In a first aspect, an embodiment of the present application provides a method for monitoring a hard disk operation status, the method comprising:

[0007] At each sampling period, the status information of the target hard disk is collected, and the status information includes the wear degree of the target hard disk at the current collection time;

[0008] When it is determined that the number of acquisitions meets the preset conditions, the state information acquired in multiple historical sampling periods is acquired, and a target set is formed based on the acquired state information and the state information acquired in the current sampling period; the multiple historical sampling periods are: the first preset number of sampling periods before the current sampling period;

[0009] Based on each state information included in the target set, reference state information corresponding to the target set is determined; and based on the change value of the reference state information between the target set and the first historical set, whether the target set is an abnormal set is determined; the first historical set is: after sorting each historical set and the target set based on the formation time, the historical set adjacent to the target set;

[0010] Based on the number of currently existing abnormality sets, it is determined whether the operation status of the target hard disk is abnormal.

[0011] The above method, by forming a target set with status data collected in multiple sampling periods, and calculating the reference status information corresponding to the target set based on the status information included in the set, can uniformly process a certain amount of data, effectively avoid the influence of possible fluctuations on the data, and ensure the accuracy of the data; by calculating the change value of the reference status information between the target set and the adjacent historical set, it is determined whether the current target set is an abnormal set, and it is able to fully refer to the dynamic changes of the status information, determine whether the hard disk has an abnormality based on the number of abnormal sets, and comprehensively consider the status information collected multiple times in history, as well as the degree of change of the information, which can effectively improve the accuracy of the target hard disk status monitoring.

[0012] In a possible implementation, before determining whether the target set is an abnormal set, the method further includes:

[0013] Obtaining reference state information corresponding to the first history set;

[0014] It is determined that a value of the reference state information corresponding to the target set is not less than a value of the reference state information corresponding to the first history set.

[0015] The above method, before determining whether the target set is an abnormal set, first determines whether the value of the reference state information corresponding to the current target set is less than the corresponding value of the adjacent historical set, which can ensure the accuracy and effectiveness of the reference state information of the currently determined target set.

[0016] In a possible implementation manner, the reference state information includes a reference wear degree, and the determining whether the target set is an abnormal set based on a change value of the reference state information between the target set and the first historical set includes:

[0017] If the change value of the reference wear degree is greater than a preset multiple of the reference change value, the target set is determined to be an abnormal set;

[0018] The reference change value is determined based on the following method:

[0019] After sorting each history set based on the formation time, for each history set, obtaining a reference wear change value between the history set and an adjacent previous history set;

[0020] Candidate change values ​​that are not zero are selected from each change value, and the candidate change value with the smallest value is used as a reference change value; wherein each change value includes: a reference wear change value between the target set and the first history set.

[0021] The above method determines the reference change value based on the change value of the reference wear between adjacent historical sets, and can ensure the real-time accuracy of the determined reference change value.

[0022] In a possible implementation, the determining whether the operation status of the target hard disk is abnormal based on the number of currently existing abnormal sets includes:

[0023] Sort each anomaly set according to the formation time of the anomaly set;

[0024] Screening the sorted abnormality sets, and determining whether the operation status of the target hard disk is abnormal based on the number of the screened abnormality sets;

[0025] Among the screened abnormal sets, the number of historical sets between two adjacent abnormal sets is less than a second preset number.

[0026] The above method, by screening the exception set and then determining whether there is an abnormality in the operating status of the target hard disk based on the screened exception set, can avoid interference with the operating status determination process caused by exception sets that are too far apart from other exception sets, that is, invalid exception sets, and improve the accuracy of operating status determination.

[0027] In a possible implementation, if it is determined that the operating state of the target hard disk is abnormal, the method further includes:

[0028] Adjust the current business volume of the target hard disk based on the preset adjustment strategy;

[0029] Based on the wear degree of the target hard disk within the adjusted preset time period, determining whether the target hard disk has an abnormality;

[0030] If it is determined that there is no abnormality in the target hard disk, the business volume of the target hard disk is restored.

[0031] The above method, when determining that there is an abnormality in the operating status of the target hard disk, adjusts its business volume based on a preset adjustment strategy, and restores its business volume when it is determined that there is no abnormality within a preset time after adjustment. This can effectively alleviate the abnormal state of the target hard disk and maximize the business execution efficiency.

[0032] In a possible implementation, the above-mentioned state information further includes: the power-on time of the target hard disk at the current acquisition time; the reference state information includes: reference wear and reference power-on time; the method further includes:

[0033] Acquire a reference state corresponding to a second history set; the second history set is: a history set that is separated from the target set by a third preset number of history sets after sorting the history sets and the target set based on the formation time;

[0034] Determine a wear degree change rate based on a change value between the target set and the second history set, a change value between reference wear degrees, and a change value between reference power-on durations;

[0035] Based on the wear upper limit and wear change rate of the target hard disk, the remaining life of the target hard disk is predicted.

[0036] The above method, the present application adopts the power-on time of the target hard disk, rather than the conventional sampling timestamp, which can effectively avoid data distortion caused by the hard disk being powered off and then powered on again due to human intervention or some other reasons. Based on the change values ​​between the target set and the historical set, the change values ​​between the reference wear degrees and the reference power-on time, combined with the upper limit of the wear degree of the target hard disk, the remaining life is estimated through status information over a longer period of time, and the remaining life of the target hard disk can be accurately predicted.

[0037] In a possible implementation manner, after predicting the remaining life of the target hard disk, the method further includes:

[0038] When the remaining life is less than a preset threshold, a pre-processing operation is triggered;

[0039] The pre-processing operation includes at least one of the following: reducing the current business volume of the target hard disk and backing up the data of the target hard disk.

[0040] The above method triggers the preprocessing operation when the remaining life is lower than a preset threshold, which can effectively avoid emergencies such as possible data loss due to sudden hard disk failure.

[0041] In a second aspect, an embodiment of the present application provides a hard disk operation status monitoring device, the device comprising:

[0042] A collection module, used for collecting the status information of the target hard disk at each sampling period, the status information including the wear degree of the target hard disk at the current collection time;

[0043] An acquisition module, used to acquire state information acquired during multiple historical sampling periods when it is determined that the number of acquisitions meets a preset condition, and to form a target set based on each acquired state information and the state information acquired during the current sampling period; the multiple historical sampling periods are: a first preset number of sampling periods before the current sampling period;

[0044] A first determination module is used to determine reference state information corresponding to the target set based on each state information included in the target set; and determine whether the target set is an abnormal set based on a change value of the reference state information between the target set and a first historical set; the first historical set is: a historical set adjacent to the target set after sorting each historical set and the target set based on formation time;

[0045] The second determination module is used to determine whether there is an abnormality in the operation status of the target hard disk based on the number of currently existing abnormality sets.

[0046] In a possible implementation manner, before the first determination module determines whether the target set is an abnormal set, it is further configured to:

[0047] Obtaining reference state information corresponding to the first history set;

[0048] It is determined that a value of the reference state information corresponding to the target set is not less than a value of the reference state information corresponding to the first history set.

[0049] In a possible implementation manner, the reference state information includes a reference wear degree, and the first determination module is specifically configured to:

[0050] If the change value of the reference wear degree is greater than a preset multiple of the reference change value, the target set is determined to be an abnormal set;

[0051] The above reference change value is determined based on the following method:

[0052] After sorting each history set based on the formation time, for each history set, obtaining a reference wear change value between the history set and an adjacent previous history set;

[0053] Candidate change values ​​that are not zero are selected from each change value, and the candidate change value with the smallest value is used as a reference change value; wherein each change value includes: a reference wear change value between the target set and the first history set.

[0054] In a possible implementation manner, the second determining module is specifically configured to:

[0055] Sort each anomaly set according to the formation time of the anomaly set;

[0056] Screening the sorted abnormality sets, and determining whether the operation status of the target hard disk is abnormal based on the number of the screened abnormality sets;

[0057] Among the screened abnormal sets, the number of historical sets between two adjacent abnormal sets is less than a second preset number.

[0058] In a possible implementation manner, if it is determined that the operating state of the target hard disk is abnormal, the second determination module is further configured to:

[0059] Adjust the current business volume of the target hard disk based on the preset adjustment strategy;

[0060] Based on the wear degree of the target hard disk within the adjusted preset time period, determining whether the target hard disk has an abnormality;

[0061] If it is determined that there is no abnormality in the target hard disk, the business volume of the target hard disk is restored.

[0062] In a possible implementation, the state information further includes: the power-on time of the target hard disk at the current acquisition time; the reference state information includes: reference wear and reference power-on time; the device further includes a life prediction module, which is specifically used to:

[0063] Acquire a reference state corresponding to a second history set; the second history set is: a history set that is separated from the target set by a third preset number of history sets after sorting the history sets and the target set based on the formation time;

[0064] Determine a wear degree change rate based on a change value between the target set and the second history set, a change value between reference wear degrees, and a change value between reference power-on durations;

[0065] Based on the wear upper limit and wear change rate of the target hard disk, the remaining life of the target hard disk is predicted.

[0066] In a possible implementation manner, after predicting the remaining life of the target hard disk, the life prediction module is further used to:

[0067] When the remaining life is less than a preset threshold, a pre-processing operation is triggered;

[0068] The pre-processing operation includes at least one of the following: reducing the current business volume of the target hard disk and backing up the data of the target hard disk.

[0069] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the hard disk operation status monitoring method when executing the computer program.

[0070] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps in the hard disk operation status monitoring method described above in the present application are implemented.

[0071] In the fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which is stored in a computer-readable storage medium; when the processor of the memory access device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the memory access device executes the steps in the above-mentioned hard disk operation status monitoring method of the present application.

[0072] For each of the above-mentioned second to fifth aspects and the technical effects that may be achieved by each of the above-mentioned aspects, please refer to the above-mentioned description of the technical effects that can be achieved by the first aspect or various possible schemes in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0074] Figure 1 A flowchart of a hard disk operation status monitoring method provided in an embodiment of the present application;

[0075] Figure 2 A flowchart of a hard disk operation status monitoring process provided in an embodiment of the present application;

[0076] Figure 3 A flowchart of a hard disk life prediction process provided in an embodiment of the present application;

[0077] Figure 4 A schematic diagram of a hard disk operation status monitoring device provided in an embodiment of the present application;

[0078] Figure 5 A schematic diagram of a possible electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0079] In order to make the purpose, technical solution and advantages of the present application more clear, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operation method in the method embodiment can also be applied to the device embodiment or the system embodiment.

[0080] In the description of this application, "multiple" is understood to be "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. A is connected to B, which can represent two situations: A is directly connected to B and A is connected to B through C. In addition, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0081] In order to facilitate those skilled in the art to better understand the technical solutions provided by the embodiments of the present application, the following is a brief description of the professional terms involved:

[0082] (1) Percentage Used (percentage of used life or estimated durability): an indicator in SMART, namely the wear degree described in the embodiments of this application. It is an estimate made by the SSD manufacturer based on the detailed operation log and actual operation status of the SSD hard disk, with reference to multiple types of field information.

[0083] (2) SMART (Self-Monitoring Analysis and Reporting Technology): is a technology that monitors the hard disk status and predicts hard disk failures. If the SMART function is enabled, the system will regularly analyze the hard disk status during the hard disk operation period and return a warning message if there is any abnormality.

[0084] (3) SSD (Solid State Disk or Solid State Drive): Also known as a solid-state drive, it is a hard disk made of an array of solid-state electronic storage chips.

[0085] With the development of SSD technology and manufacturers' technological breakthroughs in particles and other aspects, SSD can provide customers with more reliable services and gradually become an indispensable part of storage devices.

[0086] As one of the key storage media in storage devices, the operation of SSD has a great impact on the stability of the entire storage system. Although most storage systems have added corresponding redundancy strategies to avoid hard disk failures, due to limited redundancy and the fact that failures are usually unpredictable, monitoring the operating status of SSD and estimating its operational length (i.e., remaining life) is one of the keys to improving the stability of the storage system.

[0087] Currently, SSDs and storage are made by different manufacturers. Most SSD manufacturers usually only open SSD-related information within the standard protocol. Only a few SSD manufacturers will add exclusive commands including manufacturer fields in open source tools to facilitate the acquisition of additional information. As a standardized technology supported by SSDs, SMART can provide a wealth of fields and comprehensive SSD information, including temperature, power-on time, write volume, and some error statistics. Therefore, it has become an important parameter source for storage manufacturers to analyze the operating status of SSDs.

[0088] In the related art, when performing SSD status analysis based on SMART, some manufacturers in the industry usually choose to assign different weights to different data when collecting and modeling SMART data. However, this method is not only computationally cumbersome, but the selected parameters are not necessarily strongly related to the usage of the hard disk itself; or, only the current real-time static SMART parameters are referenced, but the SSD operation is a dynamic process, and its operating status will change dynamically over time. Therefore, this method will result in lower accuracy of status analysis.

[0089] In this regard, the embodiment of the present application provides a hard disk operation status monitoring method applied to this scenario, which periodically samples the target hard disk, counts the status information in a fixed number of sampling cycles (i.e., sets), and then continuously monitors the change value of the status information between adjacent sets. When the change value of the status information in adjacent sets is greater than or equal to a certain value, the set with a larger corresponding sampling time is determined to be abnormal. Based on the number of abnormal sets, it can be determined whether the target hard disk is abnormal. Since the wear degree has a strong correlation with the loss of the SSD, by monitoring the dynamic changes of the wear degree data between multiple cycles, the current operation status of the target hard disk can be accurately monitored, thereby improving the accuracy of monitoring.

[0090] The present application is further described in detail below in conjunction with the accompanying drawings. Figure 1 FIG. 1 is a flow chart of a method for monitoring the operation status of a hard disk provided in an embodiment of the present application. The specific implementation process of the method is as follows:

[0091] Step S101, collecting the status information of the target hard disk at each sampling period, the status information including the wear degree of the target hard disk at the current collection time;

[0092] In some embodiments, the target hard disk is an SSD.

[0093] In some embodiments, the embodiments of the present application use the Percentage Used field in SMART (i.e., the above-mentioned wear) as an observation item. In specific implementation, the wear value corresponding to the target hard disk at the current collection time can be obtained by querying SMART; since the wear of the target hard disk usually changes slowly, for example, if the warranty period of a target hard disk is five years, and the wear is calculated as 100% in five years, it will take nearly 20 days to wear out 1%, that is, the wear value of the hard disk remains unchanged for about 20 days or even longer, and the current wear accuracy in SMART is 1%. In order to better monitor the wear change, the present application analyzes the hard disk operation status by collecting status information over a period of time in the form of a set.

[0094] Optionally, in the embodiments of the present application, there is no restriction on the sampling period of the above-mentioned status information. In one possible implementation manner, the above-mentioned sampling period is a pre-set fixed value, and its value can be set based on demand, for example, set to one day, that is, the wear value in SMART is sampled at a fixed time every day; in another possible implementation manner, the sampling period is a dynamic value adjusted in real time based on the operating status of the hard disk, and its initial value can be pre-configured. The specific adjustment rules can be set based on demand. In some embodiments, it can be set to: based on the number of currently existing exception sets, adjust the value of the sampling period, that is, as the number of exception sets increases, reduce the value of the sampling period, and the value of each reduction can be set based on demand.

[0095] It should be noted that when the value of the sampling period is dynamically adjusted, in order to ensure the accuracy of the operating status monitoring of the target hard disk, it is necessary to adjust the method of determining the reference change value in step S103 accordingly. When determining the reference change value, the reference power-on duration and the reference wear change value corresponding to each historical set and the target set are referred to at the same time. That is, for each historical set, the reference wear and the reference power-on duration change value between the historical set and the adjacent previous historical set are obtained; the wear change rate is determined based on the reference wear and the reference power-on duration, and the product of the minimum wear change rate (non-zero) and the reference power-on duration change value corresponding to the current target set (that is, the power-on duration change value between the target set and the first historical set) is used as the reference change value.

[0096] In some embodiments, the above status information includes not only the wear degree of the target hard disk at the current collection time, but also the power-on time of the target hard disk at the current collection time. The power-on time may be power-on hours, ie, POH.

[0097] Step S102, when it is determined that the number of acquisitions meets the preset condition, the state information acquired in multiple historical sampling periods is acquired, and a target set is formed based on the acquired state information and the state information acquired in the current sampling period;

[0098] Among them, the multiple historical sampling periods are: the first preset number of sampling periods before the current sampling period.

[0099] In some embodiments, since the wear value changes slowly, the change in the wear value obtained by periodic sampling is still small. Therefore, in order to ensure that the wear value changes to a certain extent within the statistical period and avoid the impact of possible fluctuations on the data, in the embodiment of the present application, N (that is, the first preset number + 1, it should be noted that the value of the first preset number here can be set based on demand, for example, N can be set to 7 or 10, etc.) sampling periods are taken as a set.

[0100] In some embodiments, the present application does not impose any restrictions on the above-mentioned preset conditions. Optionally, the preset conditions can be set as: the number of collection times is a positive integer multiple of N, or the number of collection times is N+K×n, where K is a positive integer greater than 0 and less than N, and n is an integer greater than or equal to 0, that is, there is overlap between two adjacent sets.

[0101] Step S103, based on each state information included in the target set, determining reference state information corresponding to the target set; and based on the change value of the reference state information between the target set and the first historical set, determining whether the target set is an abnormal set;

[0102] The first history set is: a history set adjacent to the target set after the history sets and the target set are sorted based on the formation time.

[0103] In some embodiments, the present application pre-sorts each historical set and target set based on the formation time corresponding to each set.

[0104] In some embodiments, for a target set, when the state information includes a wear value and a power-on duration, and the reference state information includes: a reference wear value and a reference power-on duration, based on each state information included in the target set, determining the reference state information corresponding to the target set specifically includes:

[0105] The average value of each wear degree included in the target set is used as the reference wear degree of the current target set; and the average value of the power-on duration included in the target set is used as the reference power-on duration of the current target set.

[0106] Assume that the wear values ​​of the target set (i.e., the Mth set) obtained by sampling in N sampling cycles are W and M1 , W M2...W MN , the power-on time is POH M1 、POH M2 ...POH MN , then the reference wear value of the target set WM=(W M1 +W M2 +…+W MN ) / N, the value of power-on time is POH M =(POH M1 +POH M2 +…+POH MN ) / N.

[0107] In a possible implementation manner, before determining whether the target set is an abnormal set, the present application further performs the following operations:

[0108] Obtaining reference state information corresponding to the first history set;

[0109] It is determined that a value of the reference state information corresponding to the target set is not less than a value of the reference state information corresponding to the first history set.

[0110] In some embodiments, as the status information should increase with the increase of running time, and as the values ​​of wear and power-on time should be strictly increasing, after determining the reference status information corresponding to the target set, the present application needs to compare the value of the reference status information corresponding to the target set with the value of the reference status information corresponding to the adjacent first historical set. If it is not less than the corresponding value of the first historical set, it indicates that the value is normal. If it is less than the corresponding value of the first historical set, it indicates that the value is abnormal. At this time, it needs to be reported and the status information monitoring process is terminated.

[0111] In a possible implementation manner, the reference state information includes a reference wear degree, and the process of determining whether the target set is an abnormal set based on a change value of the reference state information between the target set and the first historical set is specifically as follows:

[0112] If the change value of the reference wear degree is greater than a preset multiple of the reference change value, the target set is determined to be an abnormal set;

[0113] The reference change value is determined based on the following method:

[0114] After sorting each history set based on the formation time, for each history set, obtaining a reference wear change value between the history set and an adjacent previous history set;

[0115] Candidate change values ​​that are not zero are selected from each change value, and the candidate change value with the smallest value is used as a reference change value; wherein each change value includes: a reference wear change value between the target set and the first history set.

[0116] In some embodiments, the present application determines whether the target set is an abnormal set based on the change in the wear value; specifically, the change in the difference in the numerical value of the reference wear between two adjacent sets (here the sets include the target set and the historical set) (i.e., the change in the reference wear value) is calculated. Assuming that the reference wear values ​​of the first set and the second cycle are known to be W1 and W2 respectively, the change in the reference wear value corresponding to the second set is ΔW1=W2-W1, and the change in the reference wear value corresponding to each set (except the first set) is calculated in turn. Since there may be a situation where the change in the reference wear value is small and the change value is 0, after determining the change in the reference wear value corresponding to each set, the present application selects candidate change values ​​with non-zero values ​​from each change value, and takes the candidate change value with the smallest value as the reference change value, i.e., ΔW MIN It should be noted that ΔW MIN The value of needs to be recalculated after each target set is formed.

[0117] In determining ΔW MIN After taking the value, if the change value of the reference wear degree of the target set is greater than a preset multiple (P times, which can be set based on demand) of the reference change value, the target set is determined to be an abnormal set (i.e., the wear value increases too fast).

[0118] Step S104: determining whether there is any abnormality in the operation status of the target hard disk based on the number of currently existing abnormality sets.

[0119] In some embodiments, based on the number of currently existing abnormal sets, determining whether the operating state of the target hard disk is abnormal specifically includes the following steps:

[0120] Sort each anomaly set according to the formation time of the anomaly set;

[0121] Screening the sorted abnormality sets, and determining whether the operation status of the target hard disk is abnormal based on the number of the screened abnormality sets;

[0122] Among them, in the filtered exception sets, the number of historical sets between two adjacent exception sets is less than a second preset number (the value of which is not limited in the embodiment of the present application and can be set based on demand. For example, when it is set to 0, the filtered exception set is a continuously occurring exception set).

[0123] In a specific implementation, when it is determined that the target set is an abnormal set, the existing abnormal sets are obtained and sorted, and the number of abnormal sets that meet the requirements (i.e., are filtered out) after sorting is compared with a preset number threshold (whose value can be set based on demand). When it is determined that it is greater than the number threshold, it can be determined that there is an abnormality in the target hard disk, that is, the wear degree increases too fast. If it is not adjusted at this time, its wear degree may be consumed at a faster rate in subsequent operations. Therefore, after the abnormality is identified, it can be notified to the storage system level (i.e., the upper layer) through alarms or other forms so that it can perform corresponding processing.

[0124] In a possible implementation manner, after determining that the operating state of the target hard disk is abnormal, the embodiment of the present application further needs to perform the following steps:

[0125] Adjust the current business volume of the target hard disk based on the preset adjustment strategy;

[0126] Based on the wear degree of the target hard disk within the adjusted preset time period, determine whether the target hard disk has an abnormality; if it is determined that the target hard disk has no abnormality, restore the business volume of the target hard disk.

[0127] In a specific implementation, when it is determined that an abnormality exists in the target hard disk, the abnormal alarm mechanism is triggered and the message that the wear value of the hard disk is increasing too fast is reported to the upper layer, so that the upper layer can adjust the business volume of the target hard disk based on the preset adjustment strategy; it should be noted that the adjustment strategy in the present application is not limited to the above-mentioned one (i.e., business volume adjustment), and can be set based on specific needs, and it is only necessary to achieve the effect of slowing down the growth trend of the wear value of the disk.

[0128] In some embodiments, based on the wear degree of the target hard disk within the adjusted preset time period, the process of determining whether the target hard disk is abnormal is specifically as follows:

[0129] If it is determined that a specified number of sets after adjustment are not abnormal sets (the process of determining whether a set is an abnormal set refers to the above step S103 and will not be repeated here), it can be determined that the abnormality of the target hard disk's wear increasing too fast has been restored. At this time, a notification message can be sent to the upper layer, and the upper layer can restore the limit on the disk's business volume.

[0130] The above method, by forming a target set with status data collected in multiple sampling periods, and calculating the reference status information corresponding to the target set based on the status information included in the set, can uniformly process a certain amount of data, effectively avoid the influence of possible fluctuations on the data, and ensure the accuracy of the data; by calculating the change value of the reference status information between the target set and the adjacent historical set, it is determined whether the current target set is an abnormal set, and it is able to fully refer to the dynamic changes of the status information, determine whether the hard disk has an abnormality based on the number of abnormal sets, and comprehensively consider the status information collected multiple times in history, as well as the degree of change of the information, which can effectively improve the accuracy of the target hard disk status monitoring.

[0131] In some embodiments, based on this, the present application further provides a method for predicting the remaining life. Specifically, the above-mentioned state information includes: the wear degree and power-on time of the target hard disk at the current acquisition time; the reference state information includes: reference wear degree and reference power-on time; the method specifically includes:

[0132] Obtaining a reference state corresponding to a second historical set; wherein the second historical set is: a historical set of historical sets separated from the target set by a third preset number (the value can be set based on demand) after sorting the historical sets and the target set based on the formation time;

[0133] Determine a wear degree change rate based on a change value between the target set and the second history set, a change value between reference wear degrees, and a change value between reference power-on durations;

[0134] Based on the wear upper limit and wear change rate of the target hard disk, the remaining life of the target hard disk is predicted.

[0135] In some embodiments, the present application uses the average value of each wear degree in the target set as the reference wear degree of the current target set; and uses the average value of each power-on duration in the target set as the reference power-on duration of the current target set. The calculation of the reference wear degree and reference power-on duration corresponding to the second historical set is similar.

[0136] Assume that the values ​​of wear obtained by sampling in N sampling periods in the Mth set (i.e., the target set) are W and M1 , W M2 ...W MN , the power-on time (in terms of power-on hours) is POH M1 、POH M2 ...POH MN , then the reference wear degree W of the target set M =(W M1 +W M2 +…+W MN) / N, reference power-on time POH M =(POH M1 +POH M2 +…+POH MN ) / N.

[0137] When predicting the remaining life of the target hard disk, it is necessary to ensure that the total number of the historical set and the target set is greater than T (i.e., the third preset number + 2), and there is a second historical set. At this time, the change value between the reference wear degree and the reference power-on duration between the target set and the second historical set is calculated. Specifically, assuming that the reference wear degree of the second historical set is W1, the reference power-on duration is POH1, and the wear degree of the target set is W T , the power-on time is POH T , then it can be considered that in POH T -POH1 (reference power-on time change value) time, wear increases by W T -W1 (the change value between the reference wear degrees), the difference between the two is the hourly wear consumption (i.e. the wear change rate).

[0138] After obtaining the wear change rate, the current wear degree W can be used to calculate the wear change rate. T , and the upper limit of wear (usually 100, can also be set to other values ​​based on demand, here is 100 as an example), calculate the wear value to be calculated as 100-W T (If the wear accuracy can be higher, the decimal point can be moved to the right, that is, 100 is expanded to 1000 or 10000, etc., and the wear value is 1000-W T or 10000-W T wait).

[0139] After obtaining the value to be worn and the rate of change of wear, the remaining life of the target hard disk can be further predicted. Since the power-on time used in this application is hours, the unit of the remaining life here is hours (special values ​​are specially processed), and appropriate unit conversion (such as conversion to months) can be performed based on demand. In addition, the embodiment of the present application also provides an interface for querying the remaining life, so as to visualize the life information on the display interface.

[0140] In some embodiments, after predicting the remaining life of the target hard disk, the embodiment of the present application further performs the following operations:

[0141] When the remaining life is less than a preset threshold, a pre-processing operation is triggered;

[0142] The pre-processing operation includes at least one of the following: reducing the current business volume of the target hard disk and backing up the data of the target hard disk.

[0143] In some embodiments, after obtaining the predicted remaining life, the smaller the remaining life, the shorter the time the hard disk is expected to run. For example, if the predicted remaining life is 6 months, it means that the hard disk is expected to run only for another 6 months. The smaller the remaining life of the hard disk, the higher the possibility of failure.

[0144] In order to avoid possible data loss caused by sudden hard disk failure, the present invention sets at least one preset threshold (the number of preset thresholds can be set based on demand), and different preset thresholds correspond to different levels of preprocessing operations. When the remaining life is lower than the corresponding preset threshold, the corresponding preprocessing operation is performed. It should be noted that the preprocessing operation can also be set based on demand, for example, it can be set to: notify the storage system level in an alarm or other form, so that the upper layer can take intervention actions such as reducing the business volume and starting pre-copying.

[0145] The following combination Figure 2 The above hard disk operation status monitoring process is described in detail with a specific example, and the process specifically includes:

[0146] Step S201, collecting the wear degree of the target hard disk at each sampling period;

[0147] Step S202, when it is determined that the number of acquisitions is a multiple of N, a target set is formed based on the currently acquired wear and the wear acquired in the previous N-1 historical sampling periods;

[0148] The above N is a positive integer greater than 1, and its value can be set based on demand.

[0149] Step S203, taking the average of the currently collected wear degree and the wear degree collected in the previous N-1 sampling periods as the reference wear degree of the current target set;

[0150] Step S204, sorting each historical set and target set according to the formation time, and counting the change value of the reference wear degree between every two adjacent sets;

[0151] It should be noted that the above change value is obtained by subtracting the wear degree of the next set from the wear degree of the previous set, that is, the change value includes three possibilities: positive value, zero and negative value.

[0152] Step S205, determining whether the change value between the target set and the adjacent historical set is less than zero; if so, executing step S209, otherwise, executing step S206;

[0153] Step S206, screening candidate change values ​​whose values ​​are not zero from each change value, and taking the candidate change value with the smallest value as a reference change value;

[0154] Step S207, if the change value between the target set and the adjacent historical set is greater than a preset multiple of the reference change value, the target set is determined as an abnormal set;

[0155] Step S208, determining whether a preset number of abnormal sets appear continuously, if so, executing step S209, otherwise returning to step S201;

[0156] Among them, the above preset multiples and preset data can be set based on needs

[0157] Step S209, determining that the target hard disk has an abnormality, and adjusting the service volume of the target hard disk based on a preset adjustment strategy;

[0158] In a specific implementation, when it is determined that the target hard disk has an abnormality, the abnormal alarm mechanism is triggered to report the message that the hard disk wear value increases too fast to the upper layer, so that the upper layer can adjust the business volume of the target hard disk based on the preset adjustment strategy;

[0159] It should be noted that the adjustment strategy in the present application is not limited to the above-mentioned one (ie, business volume adjustment), and can be specifically set based on demand.

[0160] Step S210: If it is determined that a specified number of sets after adjustment are not abnormal sets, it is determined that the target hard disk is restored.

[0161] In a specific implementation, when a specified number of consecutive sets are no longer abnormal sets, it can be determined that the abnormality of the target hard disk's wear increasing too fast has been restored. At this time, a notification message can be sent to the upper layer, and the upper layer can restore the limit on the disk's business volume.

[0162] The following combination Figure 3 The hard disk life prediction process is described in detail with a specific example. The process specifically includes:

[0163] Step S301, collecting status information of the target hard disk at each sampling period, the status information including wear degree and power-on time;

[0164] The power-on time may be the number of power-on hours POH;

[0165] Step S302, when it is determined that the number of acquisitions is a multiple of N, a target set is formed based on the currently acquired state information and the state information acquired in the previous N-1 historical sampling periods;

[0166] The above N is a positive integer greater than 1, and its value can be set based on demand.

[0167] Step S303, taking the average of the currently collected wear degree and the wear degree collected in the previous N-1 sampling periods as the reference wear degree of the current target set; and taking the average of the currently collected power-on duration and the power-on duration collected in the previous N-1 sampling periods as the reference power-on duration of the current target set;

[0168] Step S304, sorting the history sets and the target set according to the formation time, and counting the change value of the reference wear degree and the change value of the reference power-on time between the target set and the second set;

[0169] The second historical set is: a historical set that is separated from the target set by a third preset number of historical sets; the third preset number can be set based on demand;

[0170] Step S305, dividing the change value between the reference wear degrees by the change value between the reference power-on durations to obtain a wear degree change rate;

[0171] Step S306, based on the difference between the upper limit of the wear degree of the target hard disk and the currently collected wear degree, the remaining life of the target hard disk is predicted according to the wear degree change rate;

[0172] In a specific implementation, the difference between the upper limit of the wear degree of the target hard disk and the currently collected wear degree is the remaining wear degree. The remaining life of the target hard disk can be obtained by dividing the wear degree by the wear degree change rate.

[0173] Step S307, based on the remaining life query interface, visually display the remaining life on the display interface;

[0174] Step S308, when the remaining life is less than a preset threshold, trigger a pre-processing operation.

[0175] In a specific implementation, the embodiment of the present application sets two (or more) threshold values, and when the remaining life is lower than different threshold values, different levels of preprocessing operations are triggered; it should be noted that the different levels of preprocessing operations can be set based on demand, for example, it can be set to notify the storage system level in the form of an alarm or other form, and the upper layer takes intervention actions such as reducing the business volume and starting pre-copy to prevent possible data loss due to sudden failure of the target hard disk.

[0176] Based on the same inventive concept, the present application also provides a hard disk operation status monitoring device, see Figure 4 , the device comprises:

[0177] The acquisition module 401 is used to acquire the status information of the target hard disk at each sampling period, and the status information includes the wear degree of the target hard disk at the current acquisition time;

[0178] The acquisition module 402 is used to acquire the state information acquired in multiple historical sampling periods when it is determined that the number of acquisitions meets the preset condition, and form a target set based on the acquired state information and the state information acquired in the current sampling period; the multiple historical sampling periods are: the first preset number of sampling periods before the current sampling period;

[0179] The first determination module 403 is used to determine the reference state information corresponding to the target set based on each state information included in the target set; and determine whether the target set is an abnormal set based on the change value of the reference state information between the target set and the first historical set; the first historical set is: after sorting each historical set and the target set based on the formation time, the historical set adjacent to the target set;

[0180] The second determination module 404 is used to determine whether there is an abnormality in the operation status of the target hard disk based on the number of currently existing abnormality sets.

[0181] In a possible implementation manner, before the first determining module 403 determines whether the target set is an abnormal set, it is further configured to:

[0182] Obtaining reference state information corresponding to the first history set;

[0183] It is determined that a value of the reference state information corresponding to the target set is not less than a value of the reference state information corresponding to the first history set.

[0184] In a possible implementation manner, the reference state information includes a reference wear degree, and the first determination module 403 is specifically configured to:

[0185] If the change value of the reference wear degree is greater than a preset multiple of the reference change value, the target set is determined to be an abnormal set;

[0186] The above reference change value is determined based on the following method:

[0187] After sorting each history set based on the formation time, for each history set, obtaining a reference wear change value between the history set and an adjacent previous history set;

[0188] Candidate change values ​​that are not zero are selected from each change value, and the candidate change value with the smallest value is used as a reference change value; wherein each change value includes: a reference wear change value between the target set and the first history set.

[0189] In a possible implementation manner, the second determining module 404 is specifically configured to:

[0190] Sort each anomaly set according to the formation time of the anomaly set;

[0191] Screening the sorted abnormality sets, and determining whether the operation status of the target hard disk is abnormal based on the number of the screened abnormality sets;

[0192] Among the screened abnormal sets, the number of historical sets between two adjacent abnormal sets is less than a second preset number.

[0193] In a possible implementation manner, if it is determined that the operating state of the target hard disk is abnormal, the second determination module 404 is further used to:

[0194] Adjust the current business volume of the target hard disk based on the preset adjustment strategy;

[0195] Based on the wear degree of the target hard disk within the adjusted preset time period, determining whether the target hard disk has an abnormality;

[0196] If it is determined that there is no abnormality in the target hard disk, the business volume of the target hard disk is restored.

[0197] In a possible implementation, the state information further includes: the power-on time of the target hard disk at the current acquisition time; the reference state information includes: reference wear and reference power-on time; the device further includes a life prediction module, which is specifically used to:

[0198] Acquire a reference state corresponding to a second history set; the second history set is: a history set that is separated from the target set by a third preset number of history sets after sorting the history sets and the target set based on the formation time;

[0199] Determine a wear degree change rate based on a change value between the target set and the second history set, a change value between reference wear degrees, and a change value between reference power-on durations;

[0200] Based on the upper limit of the wear degree of the target hard disk and the wear degree change rate, the remaining life of the target hard disk is predicted.

[0201] In a possible implementation manner, after predicting the remaining life of the target hard disk, the life prediction module is further used to:

[0202] When the remaining life is less than a preset threshold, a pre-processing operation is triggered;

[0203] The pre-processing operation includes at least one of the following: reducing the current business volume of the target hard disk and backing up the data of the target hard disk.

[0204] Based on the same inventive concept, an electronic device is also provided in the embodiment of the present application, and the electronic device can realize the function of the aforementioned hard disk operation status monitoring device, referring to Figure 5 , the electronic device comprises:

[0205] At least one processor 501, and a memory 502 connected to the at least one processor 501. The specific connection medium between the processor 501 and the memory 502 is not limited in the embodiment of the present application. Figure 5 In the example, the processor 501 and the memory 502 are connected via a bus 500. The bus 500 is Figure 5 The connections between other components are shown in bold lines, and are not intended to be limiting. The bus 500 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 501 can also be called a controller, and there is no limitation on the name.

[0206] In the embodiment of the present application, the memory 502 stores instructions that can be executed by at least one processor 501. The at least one processor 501 can execute the hard disk operation status monitoring method discussed above by executing the instructions stored in the memory 502. The processor 501 can implement Figure 4 The functions of each module in the device shown.

[0207] Among them, the processor 501 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 502 and calling data stored in the memory 502, the various functions of the device and processing data, the device can be monitored as a whole.

[0208] In one possible design, the processor 501 may include one or more processing units, and the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 501. In some embodiments, the processor 501 and the memory 502 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.

[0209] The processor 501 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the hard disk operation status monitoring method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0210] The memory 502 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 502 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 502 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 502 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0211] By designing and programming the processor 501, the code corresponding to the application anomaly detection method described in the above embodiment can be fixed into the chip, so that the chip can execute the code when running. Figure 1 The steps of the hard disk operation status monitoring method of the embodiment shown are as follows: How to design and program the processor 501 is a technology well known to those skilled in the art and will not be described in detail here.

[0212] An embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions required to execute the above-mentioned processor, which includes a program required to execute the above-mentioned processor.

[0213] In some possible implementations, various aspects of the hard disk operation status monitoring method provided in the present application can also be implemented in the form of a program product, which includes a program code. When the above-mentioned program product is run on an electronic device, the above-mentioned program code is used to enable the above-mentioned electronic device to execute the steps of the hard disk operation status monitoring method according to various exemplary embodiments of the present application described above in this specification.

[0214] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0215] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (apparatus), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0216] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0217] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0218] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0219] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for monitoring the operation status of a hard disk, characterized in that: The method comprises: At each sampling period, the state information of the target hard disk is collected, and the state information includes the wear degree of the target hard disk at the current collection time; When it is determined that the number of acquisitions meets the preset conditions, the state information acquired in multiple historical sampling periods is acquired, and a target set is formed based on the acquired state information and the state information acquired in the current sampling period; the multiple historical sampling periods are: the first preset number of sampling periods before the current sampling period; Based on each state information included in the target set, determine the reference state information corresponding to the target set; and based on the change value of the reference state information between the target set and a first historical set, determine whether the target set is an abnormal set; the first historical set is: after sorting each historical set and the target set based on the formation time, the historical set adjacent to the target set; Based on the number of currently existing abnormality sets, it is determined whether the operating state of the target hard disk is abnormal.

2. The method according to claim 1, characterized in that Before determining whether the target set is an abnormal set, the method further includes: Obtaining reference state information corresponding to the first history set; Determine that a value of the reference state information corresponding to the target set is not less than a value of the reference state information corresponding to the first history set.

3. The method according to claim 1, characterized in that The reference state information includes a reference wear degree, and determining whether the target set is an abnormal set based on a change value of the reference state information between the target set and the first historical set includes: If the change value of the reference wear degree is greater than a preset multiple of the reference change value, determining that the target set is an abnormal set; Wherein, the reference change value is determined based on the following method: After sorting each history set based on the formation time, for each history set, obtaining a reference wear change value between the history set and an adjacent previous history set; Candidate change values ​​that are not zero are screened from each change value, and the candidate change value with the smallest value is used as the reference change value; wherein each change value includes: a reference wear change value between the target set and the first historical set.

4. The method according to claim 1, characterized in that: The determining whether the operation state of the target hard disk is abnormal based on the number of currently existing abnormal sets includes: Sorting each anomaly set according to the formation time of the anomaly set; Screening the sorted abnormality sets, and determining whether the operation status of the target hard disk is abnormal based on the number of the screened abnormality sets; Among the screened abnormal sets, the number of historical sets between two adjacent abnormal sets is less than a second preset number.

5. The method according to claim 1, characterized in that If it is determined that the operating state of the target hard disk is abnormal, the method further includes: Adjusting the current business volume of the target hard disk based on a preset adjustment strategy; Determining whether the target hard disk has an abnormality based on the wear degree of the target hard disk within the adjusted preset time period; If it is determined that there is no abnormality in the target hard disk, the service volume of the target hard disk is restored.

6. The method according to any one of claims 1 to 5, characterized in that: The state information also includes: the power-on time of the target hard disk at the current acquisition time; the reference state information includes: reference wear and reference power-on time; the method also includes: Acquire a reference state corresponding to a second history set; the second history set is: a history set that is separated from the target set by a third preset number of history sets after sorting the history sets and the target set based on the formation time; Determine a wear degree change rate based on a change value between reference wear degrees and a change value between reference power-on durations between the target set and the second history set; Based on the upper limit of the wear degree of the target hard disk and the wear degree change rate, the remaining life of the target hard disk is predicted.

7. The method according to claim 6, characterized in that After predicting the remaining life of the target hard disk, the method further includes: When the remaining life is less than a preset threshold, triggering a preprocessing operation; The pre-processing operation includes at least one of the following: reducing the current business volume of the target hard disk and backing up the data of the target hard disk.

8. A hard disk operation status monitoring device, characterized in that: The device comprises: A collection module, used for collecting status information of a target hard disk at each sampling period, wherein the status information includes the wear degree of the target hard disk at the current collection time; An acquisition module, used to acquire state information acquired during multiple historical sampling periods when it is determined that the number of acquisitions meets a preset condition, and to form a target set based on each acquired state information and the state information acquired during the current sampling period; the multiple historical sampling periods are: a first preset number of sampling periods before the current sampling period; A first determination module is configured to determine reference state information corresponding to the target set based on each state information included in the target set; and determine whether the target set is an abnormal set based on a change value of the reference state information between the target set and a first historical set; the first historical set is a historical set adjacent to the target set after sorting each historical set and the target set based on formation time; The second determination module is used to determine whether there is an abnormality in the operation status of the target hard disk based on the number of currently existing abnormality sets.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to implement the method according to any one of claims 1 to 7 when executing a computer program stored in the memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Log collection method and electronic equipment

    CN120780575A