A method for detecting a health status of a hard disk and a related component

CN116302733BActive Publication Date: 2026-09-22JINAN INSPUR DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310018020.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-06
Publication Date
2026-09-22
Estimated Expiration
2043-01-06

AI Technical Summary

Technical Problem

在现有技术中,通常是通过获取硬盘的smart(Self-Monitoring Analysis and Reporting Technology,自我监测、分析及报告技术)信息,人工观察smart信息中的各项参数来确定硬盘的健康状态,但是,由于smart信息包含的参数条目较多,随着存储集群规模的增大,存储集群中硬盘的数量变多,人工对所有硬盘的smart信息进行观察和判断的方式需要耗费较多的时间,且效率较低

Benefits of technology

[0036]本申请提供了一种硬盘健康状态的检测方法及其相关组件,涉及硬盘检测领域,应用于服务器中的处理器,服务器还包括硬盘,当处理器接收到检测指令时,获取硬盘中的指定参数,根据指定参数确定硬盘的健康状态,当硬盘的健康状态为良好状态时,仅将硬盘的健康状态发送给用户终端,当硬盘的健康状态为恶劣状态时,将硬盘的健康状态和指定参数发送给用户终端。通过服务器自身确定硬盘的健康状态,只有在硬盘存在问题时才会发送硬盘的部分具体参数给用户终端,不需要工作人员对每块硬盘中的所有参数均进行观察和判断,提高了健康状态的检测效率和缩短了工作时间。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116302733B_ABST
    Figure CN116302733B_ABST
Patent Text Reader

Abstract

The application discloses a hard disk health state detection method and related components thereof, relates to the hard disk detection field, and is applied to a processor in a server, wherein the server further comprises a hard disk; when the processor receives a detection instruction, specified parameters in the hard disk are acquired, the health state of the hard disk is determined according to the specified parameters; when the health state of the hard disk is a good state, only the health state of the hard disk is sent to a user terminal; and when the health state of the hard disk is a poor state, the health state of the hard disk and the specified parameters are sent to the user terminal. The health state of the hard disk is determined by the server itself, and only when the hard disk has a problem, the specific parameters of the hard disk are sent to the user terminal, so that the staff need not observe and judge all the parameters in each hard disk, the health state detection efficiency is improved, and the working time is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of hard disk testing, and in particular to a method for detecting the health status of a hard disk and related components. Background Technology

[0002] To store ever-increasing amounts of data, dedicated storage servers are typically used as nodes, forming a large storage cluster. This cluster contains numerous hard drives for data storage. To prevent data loss, the health status of each hard drive in the cluster needs to be monitored, allowing for timely replacement when a drive's health deteriorates. Current technology typically relies on obtaining SMART (Self-Monitoring Analysis and Reporting Technology) information from the hard drives and manually observing the parameters within this information to determine their health. However, because SMART information contains numerous parameters, and as the size of the storage cluster increases with the number of hard drives, manually observing and assessing the SMART information of all hard drives becomes time-consuming and inefficient. Summary of the Invention

[0003] The purpose of this invention is to provide a method for detecting the health status of hard drives and its related components, which eliminates the need for staff to observe and judge all parameters of each hard drive, thereby improving the efficiency of health status detection and shortening working time.

[0004] To address the aforementioned technical problems, this invention provides a method for detecting the health status of a hard disk, applied to a processor in a server, wherein the server further includes a hard disk, and the method for detecting the health status of the hard disk includes:

[0005] When a detection command is received, the specified parameters in the hard drive are obtained;

[0006] The health status of the hard drive is determined based on the specified parameters, and the health status includes a good status and a bad status.

[0007] When the hard drive is in good health, the health status of the hard drive is sent to the user terminal.

[0008] When the health status of the hard drive is poor, the health status of the hard drive and the specified parameters are sent to the user terminal.

[0009] Preferably, determining the health status of the hard disk based on the specified parameters includes:

[0010] Determine whether the specified parameter exists within the preset parameter range;

[0011] If the condition is within the preset parameter range, the health status of the hard drive is determined to be good.

[0012] If the condition is not within the preset parameter range, the health status of the hard drive is determined to be poor.

[0013] Preferably, when there are multiple specified parameters, sending the health status of the hard drive and the specified parameters to the user terminal includes:

[0014] The health status of the hard drive and all specified parameters that do not exist within the preset parameter range are sent to the user terminal.

[0015] Preferably, determining the health status of the hard disk based on the specified parameters includes:

[0016] The specified parameter is obtained N times according to a preset time interval, where N is an integer not less than 2;

[0017] For any specified parameter other than the first one obtained, determine the difference between the specified parameter and the previous specified parameter;

[0018] The health status of the hard drive is determined based on each of the aforementioned differences.

[0019] Preferably, before obtaining the specified parameters from the hard disk, the method further includes:

[0020] Determine the location information of the hard drive, the location information including one or more of the hard drive letter, hard drive manufacturer identifier, and backplane location information;

[0021] Determine whether the location information is consistent with the preset location information of the hard disk;

[0022] If they match, proceed to the step of obtaining the specified parameters from the hard drive;

[0023] If there is a discrepancy, the health status of the hard drive is determined to be poor, and the health status of the hard drive and the location information are sent to the user terminal.

[0024] Preferably, after determining that the health status of the hard drive is poor, the method further includes:

[0025] A prompt signal is generated and sent to the prompt module corresponding to the hard drive, so that the prompt module can issue a prompt.

[0026] Preferably, before obtaining the specified parameters from the hard disk, the method further includes:

[0027] Determine the interface type of the hard drive;

[0028] Obtaining specified parameters from the hard disk includes:

[0029] Obtain the specified parameters corresponding to the interface type from the hard disk.

[0030] This application also provides a device for detecting the health status of a hard disk, comprising:

[0031] Memory, used to store computer programs;

[0032] A processor, used to execute the computer program to implement the steps of the hard disk health status detection method as described above.

[0033] This application also provides a server, including a server body and a hard disk health status detection device as described above;

[0034] The server body and the hard drive health status detection device are connected.

[0035] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the hard disk health status detection method described above.

[0036] This application provides a method for detecting the health status of a hard drive and related components, relating to the field of hard drive testing. It is applied to a processor in a server, which also includes a hard drive. When the processor receives a detection command, it acquires specified parameters from the hard drive and determines the hard drive's health status based on these parameters. When the hard drive's health status is good, only the hard drive's health status is sent to the user terminal; when the hard drive's health status is poor, both the hard drive's health status and the specified parameters are sent to the user terminal. By determining the hard drive's health status itself, the server only sends specific parameters to the user terminal when a problem exists. This eliminates the need for personnel to observe and judge all parameters on every hard drive, improving the efficiency of health status detection and reducing working time. Attached Figure Description

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

[0038] Figure 1 A flowchart illustrating a method for detecting the health status of a hard drive provided in this application;

[0039] Figure 2 This application provides a schematic diagram of the detection results of hard disk location information.

[0040] Figure 3 A schematic diagram illustrating the detection results of the health status of a hard drive provided in this application;

[0041] Figure 4 A schematic diagram of the structure of a hard disk health status detection device provided in this application;

[0042] Figure 5 This is a schematic diagram of the structure of a server provided in this application. Detailed Implementation

[0043] The core of this invention is to provide a method for detecting the health status of hard drives and its related components, which eliminates the need for staff to observe and judge all parameters of each hard drive, thereby improving the efficiency of health status detection and shortening working time.

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

[0045] SMART technology is a hard drive health monitoring technology. It monitors and records the operation and health status of various parts of the hard drive, such as the read / write heads, motor, and platters, through internal hardware monitoring commands. This recorded information, including the operational status and health status of each part, is called SMART information. By observing this information, staff can gain a comprehensive understanding of the overall health of the hard drive and the health and operation of each internal component. However, as storage clusters grow in size and the number of hard drives increases, the amount of information that staff need to monitor also increases. Furthermore, since each hard drive's SMART information contains many items (i.e., the health status and operation of each component), staff need to observe a large number of items, thus increasing the overall observation time and reducing work efficiency.

[0046] To solve the above technical problems, please refer to Figure 1 , Figure 1 The flowchart provided in this application illustrates a method for detecting the health status of a hard disk, applied to a processor in a server. The server also includes a hard disk, and the method for detecting the health status of the hard disk includes:

[0047] S1: When a detection command is received, the specified parameters are retrieved from the hard drive;

[0048] When staff need to check the health status of a hard drive, they send a check command to the server via the user terminal. Upon receiving the command, the server automatically executes the steps to check the hard drive's health status. Specified parameters refer to parameters on the hard drive that have a significant impact on its health status. These can be parameters from the SMART information or parameters outside of it, such as the wear and tear on the read / write heads, the number of physical impacts the hard drive has experienced, and the hard drive temperature from the SMART information. By using specified parameters from the hard drive, rather than all SMART parameters, the number of parameters involved in the calculation is initially reduced while ensuring a relatively accurate calculated hard drive health status, thus reducing the number of parameters that staff need to observe.

[0049] S2: Determine the health status of the hard drive based on specified parameters. The health status includes good status and bad status.

[0050] Understandably, different methods exist for determining the health status of a hard drive using different specified parameters. Taking the number of physical impacts the hard drive experiences as an example, the platters are a relatively fragile structure, yet they are the core structure enabling the hard drive's storage function. When a hard drive is subjected to physical impacts, the read / write head may scratch the platters, or the platters may deviate from their horizontal plane. Therefore, a pre-set number of impacts can be set based on the hard drive's impact resistance. If the cumulative number of physical impacts after the hard drive has been put into use exceeds the preset number, it indicates that the hard drive's health is poor. Furthermore, staged impact counts can be set to represent different health states. Similarly, regarding hard drive temperature, hard drives are electronic devices. If electronic devices operate in high-temperature environments for extended periods, their lifespan will rapidly decrease. Therefore, a pre-set overheating count and overheating time can be set based on the hard drive's heat tolerance. When the hard drive is put into use, the operating time in the high-temperature environment is recorded. If the continuous operating time in the high-temperature environment exceeds the overheating time, an overheating count is recorded. When the cumulative overheating count exceeds the preset overheating count, it indicates that the hard drive's health is poor. Likewise, staged preset overheating counts can be set to represent different hard drive health states. Therefore, this application does not limit the specific method for determining the health status of the hard drive.

[0051] S3: When the hard drive is in good health, send the hard drive's health status to the user terminal;

[0052] S4: When the hard drive is in a poor health state, send the hard drive's health status and specified parameters to the user terminal.

[0053] To reduce the number of parameters that staff need to observe, this application, when the hard drive's health is detected as good, indicates that the specific health status of each component within the hard drive is at least above an acceptable level, with no component failure or damage. Therefore, when sending the hard drive's health status to the user terminal, no specific hard drive parameters or component health status information (i.e., specified parameters) are sent to the user terminal; only the overall health status of the hard drive is sent. Only when the hard drive's health is detected as poor will specific hard drive parameters be sent to the user terminal. Based on this, it can be seen that when the hard drive is generally healthy, since there are no problems, staff only need to know that it is problem-free and do not need to know specific parameters. When the hard drive is unhealthy, specific parameters need to be sent to the user terminal so that staff can identify which specified parameter is problematic and repair it accordingly. Please refer to... Figure 3 , Figure 3 This is a schematic diagram illustrating the detection results of the health status of a hard drive provided in this application. Figure 3 In the diagram, hard drives identified as V9HMGNML and V9HMJSJL are all in acceptable health conditions. Therefore, their specific parameters are not displayed; instead, "OK" is indicated in parentheses to signify their health. When staff observe a hard drive, they can confirm its good health simply by seeing "OK".

[0054] In summary, when the processor receives a detection command, it retrieves the specified parameters from the hard drive and determines the hard drive's health status based on these parameters. If the hard drive's health status is good, only the health status itself is sent to the user terminal; if the hard drive's health status is poor, both the health status and the specified parameters are sent to the user terminal. By determining the hard drive's health status directly through the server, specific parameters are only sent to the user terminal when a problem exists. This eliminates the need for staff to observe and judge all parameters on every hard drive, improving the efficiency of health status detection and reducing processing time.

[0055] Based on the above embodiments:

[0056] As a preferred embodiment, determining the health status of the hard disk based on specified parameters includes:

[0057] Determine if a specified parameter exists within a preset parameter range;

[0058] If the condition is within the preset parameter range, the hard drive is considered to be in good health.

[0059] If the condition is not within the preset parameter range, the hard drive's health status is determined to be poor.

[0060] To easily determine the health status of a hard drive, this application allows for the pre-setting of corresponding preset parameter ranges for various specified parameters based on the hard drive's model and the material parameters of its components. These preset parameter ranges indicate the normal range for each specified parameter when the hard drive is healthy. For example, a preset temperature range can be set for the hard drive's temperature; if the actual temperature of the hard drive falls within this preset range, the hard drive's temperature is considered normal. Based on this, by determining whether a specified parameter exists within the preset parameter range, a problem can be identified if the specified parameter is outside the preset range, thus indicating a poor health status of the hard drive. Therefore, by setting preset parameter ranges, the health status of a hard drive can be easily determined.

[0061] In a preferred embodiment, when there are multiple specified parameters, the health status of the hard drive and the specified parameters are sent to the user terminal, including:

[0062] Send the hard drive's health status and all specified parameters that are not within the preset parameter range to the user terminal.

[0063] To further reduce the number of parameters that staff need to observe, this application, while indicating a problem with a specific parameter when a poor hard drive health status is detected, typically only one or a few specified parameters are problematic in real-world applications. It's unlikely that all specified parameters will be faulty. Therefore, when a hard drive's health is poor, the health weight of normal parameters is lower than that of abnormal parameters, making it impossible for staff to repair the hard drive based on normal parameters. Thus, when a poor hard drive health status is detected, only the hard drive's health status and the abnormal specified parameters need to be sent to the user terminal, allowing staff to directly identify which parameters are problematic. This further reduces the number of parameters staff need to observe, thereby improving work efficiency and shortening working time.

[0064] As a preferred embodiment, determining the health status of the hard disk based on specified parameters includes:

[0065] The specified parameters are obtained N times according to a preset time interval, where N is an integer not less than 2;

[0066] For any specified parameter other than the first one obtained, determine the difference between the specified parameter and the previous specified parameter;

[0067] The health status of the hard drive is determined based on the differences between the values.

[0068] To accurately determine the health status of a hard drive, this application considers that certain specified parameters on the hard drive are continuous variables. It is necessary to observe the changes in these specified parameters over a certain period to determine whether they are normal. Therefore, a period can be set to periodically acquire the specified parameter N times. The change in the specified parameter each time compared to the previous acquisition is then calculated. Based on these changes, the change curve and fluctuation range of the specified parameter over a certain period are determined. Thus, the normality of the specified parameter can be determined based on the change curve and fluctuation range. Based on this, the health status of the hard drive can be accurately determined.

[0069] As a preferred embodiment, before obtaining the specified parameters from the hard disk, the method further includes:

[0070] Determine the location information of the hard drive, which includes one or more of the following: hard drive letter, hard drive manufacturer identifier, and location information on the back panel.

[0071] Determine whether the location information matches the hard drive's preset location information;

[0072] If they match, proceed to the step of retrieving the specified parameters from the hard drive;

[0073] If there is a discrepancy, the hard drive's health status is determined to be poor, and the hard drive's health status and location information are sent to the user terminal.

[0074] To improve the efficiency of determining the health status of hard drives, this application considers that obtaining specified parameters of the hard drive takes time. If some hard drives exhibit obvious problems—that is, problems that can be identified as abnormal even without specifying parameters—then, to improve efficiency, it can first determine whether the hard drive has certain obvious problems. Based on this, the identification information of the hard drive is determined: such as the hard drive letter, which is a unique identifier assigned to the hard drive by the operator after the first power-on; the hard drive's serial number, which is a unique identifier assigned to the hard drive by the manufacturer at the time of manufacture; and the backplane location information, which refers to the information of which interface on which backplane the operator plugs the hard drive into on the server. This information usually does not change; its accuracy is only affected when the hard drive fails. Therefore, before obtaining the specified parameters of the hard drive, the location information is used to determine whether the hard drive has any obvious faults. If the location information is found to be incorrect, it is not necessary to obtain the specified parameters of the hard drive; instead, its health status is directly determined to be poor, thus saving time in obtaining the specified parameters. Please refer to [reference needed]. Figure 2 , Figure 2This diagram illustrates the detection results of hard drive location information provided in this application. Before detecting the health status, it first checks whether the valid location information of the hard drive can be successfully located. Figure 2 If the location information of each hard drive matches the preset location information for each hard drive, then "successful" is displayed to indicate that these hard drives have no obvious problems. If they do not match, "false" is displayed, allowing staff to observe them. This improves the efficiency of determining the health status of hard drives.

[0075] In a health status detection script, the location information of the hard drive can be determined using the following code:

[0076]

[0077]

[0078]

[0079] Furthermore, you can first determine if there is a problem with the backplane where the hard drive is located, which can be achieved using the following code:

[0080]

[0081] As a preferred embodiment, after determining that the hard drive's health condition is poor, the method further includes:

[0082] A prompt signal is generated and sent to the corresponding prompt module on the hard drive so that the prompt module can issue a prompt.

[0083] To easily alert staff, this application includes a notification module that emits an audible or visual alert upon detecting a poor health condition in the hard drive. Specifically, the notification module can be a light bulb or a digital display, with one notification module for each hard drive, or multiple hard drives sharing one module. When a hard drive's health condition is detected as poor, the corresponding notification module emits an alert, allowing staff to easily and directly locate the hard drive after receiving the notification.

[0084] As a preferred embodiment, before obtaining the specified parameters from the hard disk, the method further includes:

[0085] Determine the hard drive interface type;

[0086] Retrieve specified parameters from the hard drive, including:

[0087] Retrieves the specified parameters corresponding to the interface type from the hard drive.

[0088] To accurately determine the health status of a hard drive, this application considers that hard drives with different interface types have different physical structures, and the degree to which the same parameter affects the hard drive's status varies depending on the physical structure. Therefore, it is necessary to obtain the most suitable specified parameter for the hard drive based on its specific type, that is, to obtain the parameter that most significantly affects the hard drive's health status. For example, when the hard drive's interface type is determined to be SATA, parameters such as the number of remapped sectors, the number of uncorrectable errors, the remapped event count, the current unmapped sector count, the offline uncorrectable sector count, and the UltraATA CRC Error Rate are obtained as specified parameters. When the hard drive's interface type is SAS, parameters such as the number of g-lists and the number of uncorrectable errors are obtained as specified parameters. Based on this, obtaining different specified parameters for hard drives with different interface types can accurately determine the hard drive's health status.

[0089] In a health status detection script, when retrieving specified parameters from a hard drive with an interface type of SAS, the following code can be used:

[0090]

[0091]

[0092] For specifying parameters in a hard drive with a SATA interface, the following code can be used:

[0093]

[0094]

[0095]

[0096] Please refer to Figure 4 , Figure 4 A schematic diagram of a hard disk health status detection device provided in this application includes:

[0097] Memory 21 is used to store computer programs;

[0098] The processor 22 is used to implement the steps of the hard disk health status detection method described above when executing a computer program.

[0099] For a detailed description of the hard disk health status detection device provided in this application, please refer to the embodiments of the hard disk health status detection method described above, which will not be repeated here.

[0100] By retrieving specified parameters from the hard drive, the server determines the hard drive's health status. When the hard drive is in good health, only its health status is sent to the user terminal; when its health status is poor, both the health status and the specified parameters are sent to the user terminal. The server determines the hard drive's health status itself, only sending specific parameters when a problem exists. This eliminates the need for staff to observe and judge all parameters on every hard drive, improving the efficiency of health status detection and reducing processing time.

[0101] Please refer to Figure 5 , Figure 5 The present application provides a schematic diagram of the structure of a server, including a server body 31 and a hard disk health status detection device 32 as described above;

[0102] The server body 31 is connected to the hard disk health status detection device 32.

[0103] For a detailed description of the server provided in this application, please refer to the embodiment of the above-described method for detecting the health status of the hard disk; this application will not repeat the details here.

[0104] To better manage the storage cluster, this application connects all servers in the cluster to user terminals via switches. The IP addresses of each server are pre-determined, and a hostIP file is created on the user terminal, listing all server IP addresses. Server names and hard drive parameters, such as drive letters, are also specified for later use as default parameters. Clients can log in to the servers via SSH without a password to send health checks. During health checks, the user terminal sends a check command to each server, effectively uploading a health check script to each server in batches.

[0105] The specific execution statement is: for i in`cat / root / ip_pool / hostIP`; do scpSmartStatusTest.sh[$i]: / root / zeq / ; done. The health status detection script is named SmartStatusTest.sh.

[0106] After receiving the health status detection script, the server executes the script to implement the above-mentioned hard disk health status detection method. The execution statement is: for i in `cat / root / ip_pool / hostIP`; do ssh $i"cd / root / zeq / ; echo 'sh SmartStatusTest.sh -c diag -t long -d as 13000>>hddcheck.log&'|bash"; done.

[0107] This application also provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, it implements the steps of the above-described method for detecting the health status of a hard disk.

[0108] For a detailed description of the computer-readable storage medium provided in this application, please refer to the embodiments of the above-described method for detecting the health status of a hard disk; further details will not be repeated here.

[0109] By retrieving specified parameters from the hard drive, the server determines the hard drive's health status. When the hard drive is in good health, only its health status is sent to the user terminal; when its health status is poor, both the health status and the specified parameters are sent to the user terminal. The server determines the hard drive's health status itself, only sending specific parameters when a problem exists. This eliminates the need for staff to observe and judge all parameters on every hard drive, improving the efficiency of health status detection and reducing processing time.

[0110] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0111] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0112] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

Claims

1. A method for detecting the health status of a hard drive, characterized in that, A processor used in a server, the server also including a hard disk, wherein the method for detecting the health status of the hard disk includes: Determine the location information of the hard drive, the location information including one or more of the hard drive letter, hard drive manufacturer identifier, and backplane location information; Determine whether the location information is consistent with the preset location information of the hard disk; If there is a discrepancy, the health status of the hard drive is determined to be poor, and the health status of the hard drive and the location information are sent to the user terminal. If they match, then upon receiving a detection command, the specified parameters in the hard drive are obtained; The health status of the hard drive is determined based on the specified parameters, and the health status includes a good status and a bad status. When the hard drive is in good health, the health status of the hard drive is sent to the user terminal; When the health status of the hard drive is poor, the health status of the hard drive and the specified parameters are sent to the user terminal so that the staff corresponding to the user terminal can repair the specified parameters. The step of determining the health status of the hard drive based on the specified parameters includes: The specified parameter is obtained N times according to a preset time interval, where N is an integer not less than 2; For any specified parameter other than the first one obtained, determine the difference between the specified parameter and the previous specified parameter; The variation curve and fluctuation range of the specified parameter within a certain time period are determined based on the differences mentioned above. The health status of the hard drive is determined based on the change curve and the fluctuation range.

2. The method for detecting the health status of a hard drive as described in claim 1, characterized in that, Determining the health status of the hard drive based on the specified parameters includes: Determine whether the specified parameter exists within the preset parameter range; If the condition is within the preset parameter range, the health status of the hard drive is determined to be good. If the condition is not within the preset parameter range, the health status of the hard drive is determined to be poor.

3. The method for detecting the health status of a hard drive as described in claim 2, characterized in that, When there are multiple specified parameters, the health status of the hard drive and the specified parameters are sent to the user terminal, including: The health status of the hard drive and all specified parameters that do not exist within the preset parameter range are sent to the user terminal.

4. The method for detecting the health status of a hard drive as described in claim 1, characterized in that, After determining that the health status of the hard drive is poor, the process also includes: A prompt signal is generated and sent to the prompt module corresponding to the hard drive, so that the prompt module can issue a prompt.

5. The method for detecting the health status of a hard disk as described in any one of claims 1 to 4, characterized in that, Before obtaining the specified parameters from the hard disk, the process also includes: Determine the interface type of the hard drive; Obtaining specified parameters from the hard disk includes: Obtain the specified parameters corresponding to the interface type from the hard disk.

6. A device for detecting the health status of a hard drive, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the hard disk health status detection method as described in any one of claims 1 to 5 when executing the computer program.

7. A server, characterized in that, It includes the server body and the hard disk health status detection device as described in claim 6; The server body and the hard drive health status detection device are connected.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the hard disk health status detection method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Hard disk state detection method and system, terminal and storage medium

    CN109918246A

  • Method and device for automatically judging health state of hard disk, equipment and medium

    CN111274103A