Hard disk state monitoring method and device, equipment, storage medium and product

By periodically acquiring SMART fault index data from out-of-band hard drives using BMC and generating health scores through a weighted comprehensive calculation method, the problem of difficulty in timely detection of sub-health states of out-of-band connected hard drives is solved. This enables real-time monitoring and accurate judgment of hard drives, reduces the risk of data loss, and improves the reliability of the server system.

CN120973638APending Publication Date: 2025-11-18INSPUR (SHANDONG) COMPUTER TECH CO LTD

Patent Information

Application Number
CN202511516240.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-23
Publication Date
2025-11-18

AI Technical Summary

Technical Problem

In out-of-band connectivity scenarios, existing technologies cannot proactively report the self-monitoring, analysis, and reporting technology information of hard drives, making it difficult to detect potentially risky hard drives in a timely manner, increasing the risk of data loss, and potentially causing stability issues for storage clusters, especially in high-density deployment scenarios such as data centers.

Method used

The Baseboard Management Controller (BMC) periodically sends SMART query commands, a self-monitoring and analysis technology for hard drives, to the Independent Disk Redundant Array of Independent Disks (RAID) card. This process obtains fault indicator data for out-of-band connected hard drives, generates a health score using a weighted comprehensive calculation method, determines the health status of the hard drives, and triggers alarms and sets them to read-only access mode when they are in a sub-healthy state.

Benefits of technology

It enables real-time monitoring and accurate assessment of the sub-health status of hard drives, reducing the risk of data loss and improving the reliability of server systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120973638A_ABST
    Figure CN120973638A_ABST
Patent Text Reader

Abstract

The invention provides a hard disk state monitoring method and device, equipment, a storage medium and a product, and relates to the technical field of computers.The method comprises the steps that a BMC regularly sends a SMART query instruction to an RAID, and fault index data of a hard disk with out-of-band connection is obtained; based on the fault index data, adopting a weighted comprehensive calculation method to generate a health score value of the hard disk; judging the health state of the hard disk according to the health score value; if the score value is greater than a preset threshold value, marking as a sub-health state; and triggering an alarm for the hard disk in the sub-health state and setting the hard disk in a read-only access mode. The SMART fault index data of the out-of-band hard disk is regularly acquired through the BMC, and the health score is generated based on the weighted comprehensive calculation method, so that the real-time monitoring and accurate judgment of the sub-health state of the hard disk are realized, the problem that the sub-health state of the out-of-band hard disk is difficult to find in time in the prior art is effectively solved, the data loss risk is reduced, and the safety of the out-of-band hard disk is improved. And the reliability of the server system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer, and particularly relates to a hard disk state monitoring method, device, equipment, storage medium and product. BACKGROUND

[0002] As the core storage component of a server, a hard disk has two control modes, i.e. in-band connection and out-of-band connection. The in-band connection is directly connected to a storage controller through an internal data bus such as a serial ATA interface and a serial connection SCSI interface, and is managed by a disk array card or an operating system. The out-of-band connection is monitored through a special management interface such as an intelligent platform management interface and a baseboard management controller, and supports remote power-on, hardware state query and other operations, thereby improving the convenience and reliability of management. The baseboard management controller is a separate microcontroller of the server, and is responsible for monitoring the hardware states such as temperature and fan speed. The disk array card improves the storage performance and data redundancy through technologies such as striping and mirroring, but both of them have limitations. The disk array card cannot actively report technical information of self-monitoring, analysis and reporting of the hard disk, while the technical information is a fault early warning mechanism built-in the hard disk, which can detect sub-healthy states (potential failure risk but not completely failed) such as bad tracks and high latency.

[0003] In the prior art, the in-band connection scenario can directly obtain the technical data of self-monitoring, analysis and reporting through the disk array card or the operating system, thereby realizing sub-healthy monitoring. However, in the out-of-band connection scenario, the scheme based on the disk array card or the operating system is completely invalid, and the whole machine cannot directly obtain the technical fault indicators of self-monitoring, analysis and reporting of the hard disk, thereby making it difficult to discover the potential risk hard disk in time, and significantly increasing the risk of data loss. Especially in high-density deployment scenarios such as data centers, this problem may cause stability problems of the storage cluster. SUMMARY

[0004] The present disclosure provides a hard disk state monitoring method, device, equipment, storage medium and product to at least solve the above technical problems in the prior art.

[0005] According to a first aspect of the present disclosure, a hard disk state monitoring method is provided, and the method comprises: A baseboard management controller (BMC) periodically sends a self-monitoring analysis and reporting technology (SMART) query instruction to a redundant array of independent disks (RAID) card to obtain fault indicator data of a hard disk in an out-of-band connection scenario; Based on the fault indicator data, a weighted comprehensive calculation method is used to generate a health score value of the hard disk; According to the health score value, the health state of the hard disk is determined. If the score value is greater than a preset threshold, the hard disk is marked as a sub-healthy state; An alarm is triggered for the hard disk in the sub-healthy state, and the hard disk is set to a read-only access mode.

[0006] In an embodiment, the baseboard management controller (BMC) periodically sends a self-monitoring analysis and reporting technology (SMART) query instruction to a redundant array of independent disks (RAID) card to obtain failure indicator data of an out-of-band connected hard disk, including: The BMC sends the SMART query instruction to the RAID through an integrated circuit bus (I2C) at a fixed time interval, and the SMART query instruction includes a read attribute threshold command or a SMART read data command. The RAID sends the SMART query instruction to the hard disk and forwards the obtained failure indicator data to the BMC.

[0007] In an embodiment, based on the failure indicator data, a health score value of the hard disk is generated using a weighted comprehensive calculation method, including: According to the failure indicator in the failure indicator data and the weight corresponding to the failure indicator, the health score value is calculated using a weighted comprehensive calculation method; the failure indicator at least includes a reallocation sector count, a current pending sector count, an offline uncorrectable sector count, a temperature, and a read error rate.

[0008] In an embodiment, when the current value of a failure indicator exceeds a corresponding abnormal threshold, the value of the failure indicator is a first preset value; otherwise, the value of the failure indicator is determined according to the current value and the abnormal threshold. When the failure indicator data fails to be obtained, the value of the failure indicator is a first preset value.

[0009] In an embodiment, the hard disk in a sub-healthy state triggers an alarm, including: The BMC sends alarm information to a management terminal through an internet protocol address management protocol, and records the alarm information in a log system.

[0010] In an embodiment, the hard disk in a sub-healthy state is set to a read-only access mode, including: The BMC obtains an identifier of the hard disk in a sub-healthy state, and the identifier includes hard disk identification information and physical slot information. According to the identifier, the BMC sends a write protection instruction to the RAID to block a write operation channel of the hard disk in a sub-healthy state.

[0011] According to a second aspect of the present disclosure, a hard disk state monitoring device is provided, and the device includes: The fault index data acquisition module is configured to periodically send a SMART query instruction to a redundant array of independent disks (RAID) card by a baseboard management controller (BMC) to acquire fault index data of a hard disk connected out-of-band. The sub-health hard disk definition module is configured to generate a health score value of the hard disk by using a weighted comprehensive calculation method based on the fault index data. The sub-health hard disk grading evaluation module is configured to determine a health state of the hard disk according to the health score value, and mark the hard disk as a sub-health state if the score value is greater than a preset threshold. The sub-health state alarm module is configured to trigger an alarm for the hard disk in the sub-health state and set the hard disk to a read-only access mode.

[0012] In an implementation, the fault index data acquisition module is specifically configured to: The BMC sends the SMART query instruction to the RAID card through an integrated circuit bus (I2C) at a fixed time interval, and the SMART query instruction includes a read attribute threshold command or a SMART read data command. The RAID card sends the SMART query instruction to the hard disk and forwards the acquired fault index data to the BMC.

[0013] In an implementation, the sub-health hard disk definition module is specifically configured to: The health score value is calculated by using a weighted comprehensive calculation method according to a fault index in the fault index data and a weight corresponding to the fault index, and the fault index at least includes a reallocation sector count, a current to-be-mapped sector count, an offline uncorrectable sector count, a temperature, and a read error rate.

[0014] In an implementation, the sub-health hard disk definition module is specifically further configured to: When a current value of the fault index exceeds a corresponding abnormal threshold, the fault index value is a first preset value; otherwise, the fault index value is determined according to the current value and the abnormal threshold. When the fault index data acquisition fails, the fault index value is the first preset value.

[0015] In an implementation, the sub-health state alarm module is specifically configured to: The BMC sends alarm information to a management terminal through an internet protocol address management protocol, and records the alarm information in a log system.

[0016] In an implementation, the sub-health state alarm module is specifically further configured to: The BMC acquires an identifier of the hard disk in the sub-health state, and the identifier includes hard disk identification information and physical slot information. According to the identifier, the BMC sends a write protection instruction to the RAID to block a write operation channel of the hard disk in the sub-health state.

[0017] According to a third aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of the present disclosure.

[0018] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, the computer instructions being used to cause the computer to perform the method of the present disclosure.

[0019] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising computer programs or instructions, for causing a processor to perform the method provided by the embodiments of the present disclosure when executed.

[0020] The hard disk state monitoring method, device, equipment, storage medium and product of the present disclosure, the method comprises: a baseboard management controller (BMC) periodically sends a self-monitoring analysis and reporting technology (SMART) query instruction to a redundant array of independent disks (RAID) card to acquire fault index data of an out-of-band hard disk; based on the fault index data, a weighted comprehensive calculation method is used to generate a health score value of the hard disk; the health state of the hard disk is determined according to the health score value: if the score value is greater than a preset threshold, it is marked as a sub-health state; the hard disk in the sub-health state is triggered to alarm and set to a read-only access mode. The present disclosure periodically acquires the SMART fault index data of the out-of-band hard disk through the BMC, and generates a health score based on the weighted comprehensive calculation method, thereby realizing real-time monitoring and accurate determination of the sub-health state of the hard disk, effectively solving the problem that the sub-health state of the out-of-band connected hard disk is difficult to be found in the prior art, reducing the risk of data loss, and improving the reliability of the server system.

[0021] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0022] The above and other objects, features and advantages of the present disclosure exemplary embodiments will be more apparent from the following detailed description read in conjunction with the accompanying drawings, in which: In the drawings, identical or corresponding reference signs indicate identical or corresponding parts.

[0023] Figure 1 An implementation flowchart of a hard disk state monitoring method according to an embodiment of the present disclosure is shown Figure 1 ; Figure 2 An implementation flowchart of a hard disk state monitoring method according to an embodiment of the present disclosure is shown Figure 2 ; Figure 3 An implementation flowchart of a hard disk state monitoring method according to an embodiment of the present disclosure is shown Figure 3 ; Figure 4 A structural diagram of a hard disk state monitoring device according to an embodiment of the present disclosure is shown Figure 5 A structural diagram of an electronic device according to an embodiment of the present disclosure is shown DETAILED DESCRIPTION

[0024] In order to make the objectives, features and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present disclosure.

[0025] Before the embodiments of the present disclosure are further described in detail, the terms and phrases involved in the embodiments of the present disclosure are explained, which are applicable to the following explanations.

[0026] RAID (Redundant Array of Independent Disks, independent disk redundant array) is a technology that combines multiple independent hard disks in different ways to form a hard disk group, thereby providing higher storage performance and data redundancy than a single hard disk.

[0027] BMC (Baseboard Management Controller, baseboard management controller) is a special microcontroller in a server, used to monitor and manage the hardware state of the server. It is independent of the operating system of the server, and can provide hardware-level monitoring, management and fault diagnosis functions.

[0028] SATA (Serial ATA) hard disk is a kind of hard disk storage device based on serial interface, using serial data transmission technology, with higher data transmission rate, more flexible connection mode and better scalability, widely used in personal computers, servers and storage systems.

[0029] SMART (Self-Monitoring, Analysis and Reporting Technology) is a diagnostic technology built into the hard disk, used to monitor the health status of the hard disk and warn of potential failure risks in advance.

[0030] The present disclosure provides a hard disk state monitoring method, as shown in Figure 1 The method comprises: Step 101: The baseboard management controller (BMC) periodically sends a hard disk self-monitoring analysis and reporting technology (SMART) query instruction to the redundant array of independent disks card (RAID) to obtain the failure indicator data of the out-of-band connected hard disk.

[0031] In this example, the baseboard management controller (BMC) actively sends a hard disk self-monitoring analysis and reporting technology (SMART) query instruction to the redundant array of independent disks card (RAID) at a preset time interval. As the core component of server hardware state monitoring, BMC uses its independent operating system characteristics to send a standard SMART query instruction to the RAID card through the server's internal management bus. After receiving the instruction, the RAID card transmits the instruction to the out-of-band hard disk connected to it and collects the SMART failure indicator data returned by the hard disk, and then returns these data to the BMC. This process enables the BMC to periodically obtain the health status information of the hard disk without affecting the normal operation of the server, even when the server operating system fails.

[0032] Step 102: Based on the failure indicator data, a weighted comprehensive calculation method is used to generate a health score value of the hard disk.

[0033] In this example, after obtaining the SMART failure indicator data of the hard disk, the BMC uses a weighted comprehensive calculation method to process these data and generates a score value that can reflect the overall health status of the hard disk. The weighted comprehensive calculation method considers multiple SMART failure indicators, and each indicator is assigned a corresponding weight according to its impact on the health status of the hard disk. In this way, multiple dimensions of failure indicators are integrated into an intuitive health score value, which helps to simplify the subsequent health status determination process and improves the accuracy and reliability of the determination.

[0034] Step 103: determining the health status of the hard disk according to the health score value: if the score value is greater than a preset threshold, it is marked as a sub-healthy state.

[0035] In this example, based on the calculated health score value, the BMC determines the health status of the hard disk. When the health score value exceeds the pre-set threshold, the hard disk is marked as being in a sub-healthy state. This threshold is obtained based on a large amount of experimental data and empirical statistics, which can timely discover the potential failure risk of the hard disk while ensuring a low false positive rate. Through this threshold determination method, the health status of the hard disk can be automatically and real-time monitored, and possible failures can be warned in advance.

[0036] Step 104: triggering an alarm for the hard disk in a sub-healthy state and setting it to a read-only access mode.

[0037] In this example, once the hard disk is determined to be in a sub-healthy state, the BMC will immediately trigger an alarm mechanism and set the hard disk to a read-only access mode. Triggering an alarm means that the BMC sends alarm information to the management terminal through a specific communication protocol, notifying the administrator of the current sub-healthy state of the hard disk, so that the administrator can take appropriate measures in a timely manner. At the same time, in order to prevent further data loss in the case of hard disk failure, the BMC will set the sub-healthy hard disk to a read-only mode to prohibit write operations on the hard disk. These measures are achieved through the out-of-band management function of the BMC and do not depend on the operating system of the server, thereby ensuring that the data in the hard disk can be timely and effectively protected in any case, avoiding data damage or loss due to hard disk failure.

[0038] The present disclosure provides a hard disk state monitoring method, which comprises: a baseboard management controller (BMC) periodically sending a self-monitoring analysis and reporting technology (SMART) query instruction to a redundant array of independent disks (RAID) card to obtain fault indicator data of an out-of-band hard disk; generating a health score value of the hard disk based on the fault indicator data using a weighted comprehensive calculation method; determining the health status of the hard disk according to the health score value: if the score value is greater than a preset threshold, it is marked as a sub-healthy state; triggering an alarm for the hard disk in a sub-healthy state and setting it to a read-only access mode. The present disclosure periodically obtains the SMART fault indicator data of the out-of-band hard disk through the BMC, and generates a health score based on the weighted comprehensive calculation method, thereby realizing real-time monitoring and accurate determination of the sub-healthy state of the hard disk, effectively solving the problem of difficulty in timely discovering the sub-healthy state of the out-of-band hard disk in the prior art, reducing the risk of data loss, and improving the reliability of the server system.

[0039] In one example, the baseboard management controller (BMC) periodically sends a self-monitoring analysis and reporting technology (SMART) query instruction to a redundant array of independent disks (RAID) card to obtain fault indicator data of an out-of-band hard disk, such asFigure 2 As shown, comprising: Step 201: The BMC sends the SMART query instruction to the RAID through the integrated circuit bus I2C at a fixed time interval, and the SMART query instruction includes a read attribute threshold command or a SMART read data command.

[0040] In this example, the BMC sends the SMART query instruction to the RAID through the integrated circuit bus (I2C) at a fixed time interval, and the instruction can be a read attribute threshold command or a SMART read data command. The BMC sends the SMART query instruction to the RAID card through the I2C bus according to a preset time interval (for example, once every 30 minutes). The I2C bus is a serial bus for connecting low-speed devices, which has a two-wire, multi-master-slave architecture, and can enable bidirectional communication between the BMC and the RAID card. The issued SMART query instruction covers the read attribute threshold command, which aims to obtain the threshold information preset by the hard disk manufacturer for judging the health status of the hard disk, and the SMART read data command, which is used to collect various types of monitoring data generated by the hard disk in real time.

[0041] Step 202: The RAID sends the SMART query instruction to the hard disk and forwards the obtained failure indicator data to the BMC.

[0042] In this example, after receiving the SMART query instruction sent by the BMC, the RAID sends the instruction to the hard disk connected thereto and forwards the failure indicator data obtained from the hard disk to the BMC. The RAID card acts as a bridge for data forwarding, and after receiving the instruction from the BMC, it accurately and correctly delivers the instruction to the target hard disk through its internal control logic and communication interface. The hard disk extracts the corresponding failure indicator data, such as the reallocated sector count, the current pending sector count, and other key indicators, from the SMART information stored in its internal storage according to the received instruction, and returns these data to the BMC through the RAID card. This process realizes the collection of out-of-band hard disk SMART data by the BMC and provides a data basis for subsequent evaluation of the health status of the hard disk.

[0043] In one example, the health score value of the hard disk is generated based on the failure indicator data using a weighted comprehensive calculation method, comprising: According to the failure indicators in the failure indicator data and the weights corresponding to the failure indicators, the health score value is calculated using the following weighted comprehensive calculation method:

[0044] The failure indicators at least include the reallocated sector count, the current pending sector count, the offline uncorrectable sector count, the temperature, and the read error rate.

[0045] In this example, the weighted synthesis calculation method is a method that considers multiple failure indicators and assigns different weights based on the importance and influence of each indicator. In this process, each failure indicator has a preset weight value, which reflects the degree of influence of different failure indicators on the overall health of the hard disk. For example, the weight of the reallocation sector count may be higher because it is directly related to the reliability and integrity of the hard disk storage data.

[0046] The failure indicators include at least: reallocation sector count, current pending sector count, offline uncorrectable sector count, temperature, and read error rate. These failure indicators are key factors in evaluating the health status of the hard disk: Reallocation sector count: represents the number of sectors that have been reallocated by the hard disk due to errors. When the hard disk detects an error in a sector, it will reallocate the data of that sector to a spare sector and increase this count. A higher count may indicate that the hard disk has more physical damage.

[0047] Current pending sector count: represents the number of sectors in the hard disk that have not yet been mapped. These sectors may contain errors and are waiting for further processing. More pending sectors may indicate that the hard disk is about to have more reallocation sectors.

[0048] Offline uncorrectable sector count: represents the number of sectors that cannot be corrected in the offline state of the hard disk. The data of these sectors cannot be correctly read or written, and is an important indicator of impending hard disk failure.

[0049] Temperature: the temperature of the hard disk has an important influence on the performance and lifespan of the hard disk. Excessive temperature may accelerate the aging of the hard disk components and reduce the reliability of the hard disk.

[0050] Read error rate: represents the error rate when the hard disk reads data. A higher read error rate may indicate that the hard disk's reading mechanism is malfunctioning, such as a damaged head or contaminated disk.

[0051] By combining these failure indicators with corresponding weights, the weighted synthesis calculation method can generate a comprehensive health score value. This score value can more comprehensively reflect the overall health status of the hard disk, helping administrators to discover potential failure risks in a timely manner and take appropriate measures to prevent data loss or system failure. For example, if the health score value is below a certain preset threshold, the administrator may receive an alert prompting them to check the hard disk or consider replacing the hard disk to ensure the stable operation of the system.

[0052] In one example, when the current value of the fault indicator exceeds the corresponding abnormal threshold, the fault indicator value takes a first preset value; when it does not exceed, the fault indicator value is determined according to the current value and the abnormal threshold; when the fault indicator data acquisition fails, the fault indicator value takes a first preset value.

[0053] In this example, when the current value of the fault indicator exceeds the corresponding abnormal threshold, it indicates that the fault indicator may have entered a more serious state, and at this time the value of the fault indicator is set to a first preset value. This first preset value can be a fixed value representing a fault, which is used to reflect the abnormal situation of the fault indicator in subsequent health score calculation.

[0054] When the current value of the fault indicator does not exceed the corresponding abnormal threshold, the specific value of the fault indicator is determined according to the current value and the abnormal threshold. This determination method can be to directly use the current value, or to perform some form of normalization or standardization processing on the current value, so as to compare it with the abnormal threshold and use it for subsequent health score calculation.

[0055] If the fault indicator data acquisition fails during data acquisition, for example, due to communication errors, hard disk failures, etc., resulting in failure to obtain accurate fault indicator data, the value of the fault indicator is also set to a first preset value. This is because in the case where accurate data cannot be obtained, using the first preset value can ensure that the subsequent health score calculation can continue, and reflect that there may be potential problems with the fault indicator.

[0056] Through the above processing method, it can be ensured that in various cases, the fault indicator has a determined value for subsequent weighted comprehensive calculation, thereby ensuring the stability and reliability of the hard disk health score calculation process.

[0057] In one example, the hard disk triggers an alarm for the sub-healthy state, comprising: the BMC sends alarm information to the management terminal through the Internet Protocol Address Management Protocol, and records the alarm information in the log system.

[0058] In this example, when the baseboard management controller (BMC) determines that the hard disk is in a sub-healthy state, it will immediately take measures to notify the administrator and record the relevant events. The BMC uses the Internet Protocol Address Management Protocol (such as the IPMI protocol) to construct alarm information, which contains the unique identifier of the hard disk, the current health score value, the trigger time of the sub-healthy state, and other key information. These information is transmitted to the management terminal through the network, so that the administrator can know the state change of the hard disk in time, and take corresponding maintenance measures.

[0059] Meanwhile, the BMC also has a logging function, and all alarm information related to the status of the hard disk is recorded in detail in the log system. The log record not only includes the timestamp of the alarm occurrence, but also includes the specific failure indicator data of the hard disk and the change of the health score value. These log data have important value for subsequent fault analysis, system maintenance and performance optimization. The administrator can trace the history of the change of the hard disk status by reviewing the log, so as to more accurately judge the failure cause of the hard disk and make a reasonable maintenance plan to ensure the stable operation of the server system and the safety of the data.

[0060] In one example, the hard disk in the sub-health state is set to a read-only access mode, as shown in Figure 3 The method comprises the steps of: Step 301: The BMC acquires the identifier of the hard disk in the sub-health state, and the identifier comprises hard disk identification information and physical slot information.

[0061] In the present example, when the hard disk is determined to be in the sub-health state, the BMC needs to accurately acquire the unique identifier of the hard disk. This identifier not only contains the unique identification information of the hard disk itself, such as the serial number or device ID, but also contains the physical slot information of the hard disk in the server. The physical slot information can help the BMC accurately locate the specific position of the hard disk in the server case, ensuring the accuracy of subsequent operations.

[0062] Step 302: According to the identifier, the BMC sends a write protection instruction to the RAID to block the write operation channel of the hard disk in the sub-health state.

[0063] In the present example, after acquiring the identifier of the hard disk, the BMC sends a specific write protection instruction to the RAID card using the information. After receiving the instruction, the RAID card finds the corresponding hard disk in the hard disk array it manages according to the hard disk identifier and physical slot information in the instruction, and implements write protection on the hard disk. This operation actually blocks the write operation channel of the target hard disk at the RAID card level, so that subsequent write operations cannot be performed, thereby preventing data from being continuously written to the sub-health hard disk and avoiding possible data loss or damage.

[0064] In one example, the method is further applicable to the sub-health monitoring of a non-volatile memory host controller interface specification (NVMe) hard disk by adapting the monitored failure indicator type, and the specific adjustment is as follows: For an NVMe hard disk, the monitored failure indicators are replaced by indicators more suitable for the characteristics of the NVMe hard disk, including but not limited to media error count, end-to-end error detection count, critical composite temperature threshold, etc. These indicators can more accurately reflect the health status of the NVMe hard disk.

[0065] Different hard disk types and protocols have different failure characteristics and data specifications. In order to make the monitoring method suitable for NVMe hard disks, the abnormal threshold and weight coefficient of each failure indicator need to be adjusted according to the NVMe protocol specification. For example, the abnormal threshold of the media error count is set according to the storage medium characteristics and manufacturer recommendations of the NVMe hard disk, and the weight coefficient is re-evaluated and allocated according to the influence of the indicator on the health status of the hard disk.

[0066] In one example, the implementation of the out-of-band connection of the server to the SATA hard disk sub-health monitoring embodiment is described in detail: Step 1: BMC acquires SMART failure indicator data.

[0067] The baseboard management controller sends a SMART command to the RAID card through the I2C bus according to a monitoring period of once per hour. For example, the “READ ATTRIBUTE THRESHOLDS” or “SMART READ DATA” command can be used to query the SMART information, or the smartctl -a command can be used on the operating system to query. The command is designed to obtain the SMART data of the SATA hard disk in slot 3. After receiving the command, the RAID card forwards the command to the target hard disk through the SAS Expander channel, and transmits the original data returned by the hard disk to the BMC. The BMC then parses these data and extracts the following key failure indicators: Reallocated Sector Count is 120; Current Pending Sector Count is 30; Offline Uncorrectable is 10; Temperature is 55°C; Read Error Rate is 800.

[0068] Step 2: Calculate the indicator value (SMART_value) and process each failure indicator: Reallocated Sector Count value: Since 120 exceeds the threshold of 100, the value is 1: Current Pending Sector Count value: 30 does not exceed the threshold of 50, so the value is 30 / 50=0.6; Offline Uncorrectable value: 10 does not exceed the threshold of 50, so the value is 10 / 50=0.2; Temperature value: 55°C is below the threshold of 60°C, so the value is 0; Read error rate value: 800 is below the threshold of 1000, so the value is 800 / 1000 = 0.8.

[0069] Step 3: Calculate the health score value. According to the pre-set weight distribution, calculate the health score value: Reallocation sector count weight is 0.3; Current pending sector count weight is 0.3; Offline uncorrectable sector count weight is 0.2; Temperature weight is 0.1; Read error rate weight is 0.1.

[0070] The health score is calculated as follows: Health score = (1 x 0.3) + (0.6 x 0.3) + (0.2 x 0.2) + (0 x 0.1) + (0.8 x 0.1) = 0.3 + 0.18 + 0.04 + 0 + 0.08 = 0.60 That is, the health score is 60 points.

[0071] Step 4: Health status determination.

[0072] The pre-set health score threshold is 60 points. Since the calculated health score is 60 points, which is equal to the pre-set threshold, it is determined that the hard disk is in a healthy state. BMC records relevant logs, but does not trigger any alarms, and the hard disk remains in normal read-write state.

[0073] Although the reallocation sector count has exceeded its threshold (120 > 100), other indicators are good, especially the temperature is low and there are no other serious sector problems. Therefore, the comprehensive score is 60 points, just reaching the critical value of the healthy state. BMC only records logs and does not perform any further operations, and the hard disk can continue to be used normally.

[0074] In one example, based on the previous example, the sub-healthy state triggering scenario (simulating indicator deterioration) is described in detail: Step 1: In the subsequent monitoring period of the same hard disk, BMC obtains new SMART data showing indicator deterioration: Reallocation sector count increases to 150; Current pending sector count increases to 60; Offline uncorrectable sector count remains at 15; Temperature rises to 65°C; Read error rate increases to 1500.

[0075] Step 2: Recalculate the values of each indicator: Redistribution sector count value: 150 exceeds threshold 100, value 1; Current sector count value to be mapped: 60 exceeds threshold 50, value 1; Offline uncorrectable sector count value: 15 does not exceed threshold 50, value 15 / 50 = 0.3; Temperature value: 65℃ exceeds threshold 60℃, value 1; Read error rate value: 1500 exceeds threshold 1000, value 1.

[0076] Step 3: Recalculate health score: Health score = (1 x 0.3) + (1 x 0.3) + (0.3 x 0.2) + (1 x 0.1) + (1 x 0.1) = 0.3 + 0.3 + 0.06 + 0.1 + 0.1 = 0.86.

[0077] That is, the health score is 86 points.

[0078] Since 86 points exceeds the preset threshold of 60 points, the hard disk is determined to be in a sub-healthy state. The BMC performs the following actions: Step 4: Trigger alarm: Send alarm information to the administrator terminal through the IPMI protocol, including the serial number of the hard disk, the slot it is in, the current health score, and the fault indicators that exceed the threshold.

[0079] Record the alarm event in the log system of the BMC, and record the abnormal state of the hard disk in detail.

[0080] Step 5: Data protection: Send a write protection instruction to the RAID card to set the hard disk to read-only mode to prevent further data write operations, thereby protecting data from being damaged.

[0081] This series of operations shows how the BMC can discover potential failures of the hard disk in a timely manner by monitoring SMART data, and take measures to protect data security and avoid data loss or damage.

[0082] The present disclosure also provides a hard disk state monitoring device, as shown in Figure 4 The device comprises: A fault indicator data acquisition module 401 for periodically sending a hard disk self-monitoring analysis and reporting technology (SMART) query instruction from a baseboard management controller (BMC) to a redundant array of independent disks (RAID) card to acquire fault indicator data of an out-of-band connected hard disk.

[0083] In the example, a baseboard management controller (BMC) actively sends a self-monitoring analysis and reporting technology (SMART) query instruction to a redundant array of independent disks (RAID) card at a preset time interval. As a core component of server hardware state monitoring, the BMC uses its independent operating system feature to send a standard SMART query instruction to the RAID card through the management bus inside the server. After receiving the instruction, the RAID card transmits the instruction to the out-of-band hard disk connected thereto, collects the SMART failure indicator data returned by the hard disk, and returns the data to the BMC. This process enables the BMC to periodically obtain the health status information of the hard disk without affecting the normal operation of the server, and the data collection can continue even when the server operating system fails.

[0084] The sub-health hard disk definition module 402 is configured to generate a health score value of the hard disk by using a weighted comprehensive calculation method based on the failure indicator data.

[0085] In the example, after obtaining the SMART failure indicator data of the hard disk, the BMC processes the data by using a weighted comprehensive calculation method to generate a score value that can reflect the overall health status of the hard disk. The weighted comprehensive calculation method comprehensively considers multiple SMART failure indicators, and each indicator is assigned a corresponding weight according to its influence on the health status of the hard disk. In this way, multiple dimensions of failure indicators are integrated into an intuitive health score value, which helps to simplify the subsequent health status determination process and improve the accuracy and reliability of the determination.

[0086] The sub-health hard disk grading evaluation module 403 is configured to determine the health status of the hard disk according to the health score value: if the score value is greater than a preset threshold, the hard disk is marked as being in a sub-health state.

[0087] In the example, based on the calculated health score value, the BMC determines the health status of the hard disk. When the health score value exceeds a pre-set threshold, the hard disk is marked as being in a sub-health state. This threshold is obtained based on a large amount of experimental data and empirical statistics, and it can timely discover potential failure risks of the hard disk while ensuring a low false positive rate. Through this threshold determination method, the health status of the hard disk can be monitored automatically and in real time, and possible failures can be warned in advance.

[0088] The sub-health state alarm module 404 is configured to trigger an alarm for the hard disk in a sub-health state and set the hard disk to a read-only access mode.

[0089] In this example, once the hard disk is determined to be in a sub-healthy state, the BMC will immediately trigger the alarm mechanism and set the hard disk to read-only access mode. Triggering the alarm means that the BMC sends alarm information to the management terminal through a specific communication protocol, notifying the administrator of the current sub-healthy state of the hard disk, so that the administrator can take appropriate measures in a timely manner. At the same time, in order to prevent further loss of data in the case of hard disk failure, the BMC will set the sub-healthy hard disk to read-only mode and prohibit write operations on the hard disk. These measures are achieved through the out-of-band management function of the BMC and do not depend on the operating system of the server, thereby ensuring that the data in the hard disk can be protected in a timely and effective manner in any case, and data damage or loss caused by hard disk failure is avoided.

[0090] In one example, the failure indicator data acquisition module 401 is specifically configured to: The BMC sends the SMART query instruction to the RAID through the integrated circuit bus I2C at a fixed time interval, and the SMART query instruction includes a read attribute threshold command or a SMART read data command.

[0091] In this example, the BMC sends a SMART query instruction to the RAID through the integrated circuit bus (I2C) at a fixed time interval. The instruction can be a read attribute threshold command or a SMART read data command. The BMC sends a SMART query instruction to the RAID card through the I2C bus according to a predetermined time interval (for example, once every 30 minutes). The I2C bus is a serial bus used to connect low-speed devices, which has a two-wire system and a multi-master-slave architecture, and can enable bidirectional communication between the BMC and the RAID card. The SMART query instruction issued covers the read attribute threshold command, which aims to obtain the threshold information preset by the hard disk manufacturer for judging the health status of the hard disk, and the SMART read data command, which is used to collect various types of monitoring data generated by the hard disk in real time.

[0092] The RAID sends the SMART query instruction to the hard disk and forwards the acquired failure indicator data to the BMC.

[0093] In this example, after receiving the SMART query instruction sent by the BMC, the RAID sends the instruction to the hard disk connected to it, and forwards the fault indicator data obtained from the hard disk to the BMC. The RAID card acts as a bridge for data forwarding. After receiving the instruction from the BMC, it accurately delivers the instruction to the target hard disk through its internal control logic and communication interface. The hard disk extracts the corresponding fault indicator data, such as the reallocation sector count, the current pending sector count, and other key indicators, from its internal SMART information according to the received instruction, and returns these data to the BMC through the RAID card. This process realizes the collection of out-of-band hard disk SMART data by the BMC, and provides data basis for subsequent evaluation of the health status of the hard disk.

[0094] In one example, the sub-health hard disk definition module 402 is specifically configured to: According to the fault indicators in the fault indicator data and the weights corresponding to the fault indicators, the health score value is calculated using a weighted comprehensive calculation method; the fault indicators at least include: reallocation sector count, current pending sector count, offline uncorrectable sector count, temperature, and read error rate.

[0095] According to the fault indicators in the fault indicator data and the weights corresponding to the fault indicators, the health score value is calculated using a weighted comprehensive calculation method; the fault indicators at least include: reallocation sector count, current pending sector count, offline uncorrectable sector count, temperature, and read error rate.

[0096] The fault indicators at least include: reallocation sector count, current pending sector count, offline uncorrectable sector count, temperature, and read error rate.

[0097] In this example, the weighted comprehensive calculation method is a calculation method that considers multiple fault indicators and gives different weights according to the importance and influence of each indicator. In this process, each fault indicator has a preset weight value, which reflects the degree of influence of different fault indicators on the overall health status of the hard disk. For example, the weight of the reallocation sector count may be higher because it is directly related to the reliability and integrity of the data stored by the hard disk.

[0098] The fault indicators at least include: reallocation sector count, current pending sector count, offline uncorrectable sector count, temperature, and read error rate. These fault indicators are key factors for evaluating the health status of the hard disk: Reallocation sector count: indicates the number of sectors that have been reallocated due to errors. When the hard disk detects an error in a sector, it will reallocate the data in that sector to a spare sector and increase this count. A higher count may indicate that the hard disk has more physical damage.

[0099] Current unmapped sector count: represents the number of sectors in the hard drive that have not been mapped yet. These sectors may contain errors and are waiting for further processing. A larger number of unmapped sectors may indicate that the hard drive is about to have more reallocated sectors.

[0100] Offline uncorrectable sector count: represents the number of sectors in the hard drive that cannot be corrected in an offline state. The data of these sectors cannot be read or written correctly, which is an important indicator of the impending failure of the hard drive.

[0101] Temperature: the temperature of the hard drive has a significant impact on its performance and lifespan. Excessive temperature can accelerate the aging of the hard drive components and reduce the reliability of the hard drive.

[0102] Read error rate: represents the error rate when the hard drive reads data. A higher read error rate may indicate that the reading mechanism of the hard drive is malfunctioning, such as a damaged head or contaminated disk.

[0103] By combining these failure indicators with corresponding weights, the weighted comprehensive calculation method can generate a comprehensive health score value. This score value can more comprehensively reflect the overall health status of the hard drive, help administrators discover potential failure risks in a timely manner, and take appropriate measures to prevent data loss or system failure. For example, if the health score value is lower than a certain preset threshold, the administrator may receive an alert prompting them to check the hard drive or consider replacing the hard drive to ensure the stable operation of the system.

[0104] In an example, the sub-healthy hard drive definition module 402 is further configured to: When the current value of the failure indicator exceeds the corresponding abnormal threshold, the failure indicator value is set to a first preset value; otherwise, the failure indicator value is determined according to the current value and the abnormal threshold; When the failure indicator data acquisition fails, the failure indicator value is set to a first preset value.

[0105] In this example, when the current value of the failure indicator exceeds the corresponding abnormal threshold, it indicates that the failure indicator may have entered a more serious state, and the value of the failure indicator is set to a first preset value at this time. This first preset value can be a fixed value representing a failure, which is used in subsequent health score calculations to reflect the abnormal situation of the failure indicator.

[0106] When the current value of the failure indicator does not exceed the corresponding abnormal threshold, the specific value of the failure indicator is determined according to the current value and the abnormal threshold. This determination method can directly use the current value, or perform some form of normalization or standardization processing on the current value to compare it with the abnormal threshold and use it in subsequent health score calculations.

[0107] If the fault indicator data fails to be acquired during the data acquisition process, for example, due to communication errors, hard disk failures, or other reasons, accurate fault indicator data cannot be acquired, and the value of the fault indicator is also set to the first preset value. This is because in the case where accurate data cannot be acquired, using the first preset value can ensure that the subsequent health score calculation can continue, and can reflect that the fault indicator may have potential problems.

[0108] Through the above processing mode, it can be ensured that in various cases, the fault indicator has a certain value for subsequent weighted comprehensive calculation, thereby ensuring the stability and reliability of the calculation process of the hard disk health score.

[0109] In one example, the sub-health state alarm module 404 is specifically configured to: The BMC sends alarm information to the management terminal through the Internet Protocol Address Management Protocol, and records the alarm information in the log system.

[0110] In this example, when the baseboard management controller (BMC) determines that the hard disk is in a sub-health state, it will immediately take measures to notify the administrator and record related events. The BMC uses the Internet Protocol Address Management Protocol (such as the IPMI protocol) to construct alarm information, which contains the unique identifier of the hard disk, the current health score value, the triggering time of the sub-health state, and other key information. These information is transmitted to the management terminal through the network, so that the administrator can know the state change of the hard disk in time, and take corresponding maintenance measures.

[0111] At the same time, the BMC also has a log recording function, and all alarm information related to the state of the hard disk will be recorded in detail in the log system. The log record not only includes the timestamp of the alarm occurrence, but also includes the specific fault indicator data of the hard disk and the change of the health score value. These log data have important value for subsequent fault analysis, system maintenance and performance optimization. The administrator can trace the history record of the state change of the hard disk by reviewing the log, so as to more accurately judge the fault reason of the hard disk, and make reasonable maintenance plan, so as to ensure the stable operation of the server system and the safety of the data.

[0112] In one example, the sub-health state alarm module 404 is specifically further configured to: The BMC acquires the identifier of the hard disk in the sub-health state, and the identifier includes hard disk identification information and physical slot information.

[0113] In the present example, when the hard disk is determined to be in a sub-healthy state, the BMC needs to accurately obtain the unique identifier of the hard disk. This identifier not only contains the unique identification information of the hard disk itself, such as the serial number or device ID, but also contains the physical slot information of the hard disk in the server. The physical slot information can help the BMC accurately locate the specific position of the hard disk in the server chassis, ensuring the accuracy of subsequent operations.

[0114] According to the identifier, the BMC sends a write protection instruction to the RAID, blocking the write operation channel of the hard disk in the sub-healthy state.

[0115] In the present example, after obtaining the identifier of the hard disk, the BMC uses this information to send a specific write protection instruction to the RAID card. After receiving the instruction, the RAID card will find the corresponding hard disk in the hard disk array it manages according to the hard disk identifier and physical slot information in the instruction, and implement write protection on the hard disk. This operation actually blocks the write operation channel of the target hard disk at the RAID card level, so that subsequent write operations cannot be performed, thereby preventing data from being continuously written on the sub-healthy hard disk and avoiding possible data loss or damage.

[0116] According to embodiments of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0117] Figure 5 A schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present disclosure described and / or claimed in this document.

[0118] As shown in Figure 5 The device 800 includes a computing unit 801 that can perform various appropriate actions and processes in accordance with a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0119] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a magnetic disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices over a computer network, such as the Internet, and / or various telecommunication networks.

[0120] The computing unit 801 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 801 performs various methods and processes described above, such as the hard disk status monitoring method. For example, in some embodiments, the hard disk status monitoring method can be implemented as a computer software program, which is tangibly embodied in a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded onto the RAM 803 and executed by the computing unit 801, one or more steps of the hard disk status monitoring method described above can be performed. Alternatively, in other embodiments, the computing unit 801 can be configured to perform the hard disk status monitoring method by any other appropriate means, such as by means of firmware.

[0121] Various implementations of the systems and techniques described above herein can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0122] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces the functions / operations specified in the flowcharts and / or block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a standalone software package, or entirely on a remote machine or server.

[0123] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0124] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0125] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0126] The computer system can include clients and servers. The clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server can arise by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The servers can be cloud servers, servers of a distributed system, or servers combined with a blockchain.

[0127] It should be understood that the steps shown in the various forms above can be reordered, added to, or deleted from. For example, the steps described in the present disclosure can be executed in parallel, in sequence, or in a different order, as long as the desired results of the technical solutions of the present disclosure can be achieved, and the present disclosure is not limited herein.

[0128] In addition, the terms "first", "second" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "a plurality of" is two or more, unless otherwise specifically limited.

[0129] The above description is merely a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present disclosure, which should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims

1. A hard disk status monitoring method, characterized in that, The method includes: The Baseboard Management Controller (BMC) periodically sends SMART query commands to the Independent Disk Redundancy Array of Independent Disks (RAID) card to obtain fault indicator data of the externally connected hard drives. Based on the aforementioned fault indicator data, a weighted comprehensive calculation method is used to generate the health score of the hard drive; The health status of the hard drive is determined based on the health score value: if the score value is greater than a preset threshold, it is marked as a sub-healthy state. Trigger an alarm for hard drives in a sub-healthy state and set them to read-only access mode.

2. The method according to claim 1, characterized in that, The Baseboard Management Controller (BMC) periodically sends SMART (Smart Detection, Analysis and Reporting) query commands to the RAID (Redundant Array of Independent Disks) card to obtain fault indicator data of the externally connected hard drives, including: The BMC sends the SMART query command to the RAID via the integrated circuit bus I2C at fixed time intervals. The SMART query command includes a read attribute threshold command or a SMART read data command. The RAID sends the SMART query command to the hard drive and forwards the obtained fault indicator data to the BMC.

3. The method according to claim 1, characterized in that, The process of generating a health score for the hard drive based on the fault indicator data using a weighted comprehensive calculation method includes: The health score is calculated using a weighted comprehensive calculation method based on the fault indicators and their corresponding weights in the fault indicator data. The fault indicators include at least: the number of reassigned sectors, the number of currently unmapped sectors, the number of offline uncorrectable sectors, temperature, and read error rate.

4. The method according to claim 3, characterized in that, When the current value of the fault indicator exceeds the corresponding abnormal threshold, the fault indicator value is taken as the first preset value; when it does not exceed the threshold, the fault indicator value is determined based on the current value and the abnormal threshold. When the fault indicator data fails to be acquired, the fault indicator value is set to a first preset value.

5. The method according to claim 1, characterized in that, The alarm triggering for hard drives in a sub-healthy state includes: The BMC sends alarm information to the management terminal via the Internet Protocol Address Management Protocol and records the alarm information in the log system.

6. The method according to claim 1, characterized in that, Setting the hard drive in the sub-healthy state to read-only access mode includes: The BMC acquires the identifier of the hard drive in a sub-healthy state, and the identifier includes hard drive identification information and physical slot information; Based on the identifier, the BMC sends a write protection command to the RAID to block the write operation channel to the sub-healthy hard drive.

7. A hard disk status monitoring device, characterized in that, The device includes: The fault indicator data acquisition module is used by the Baseboard Management Controller (BMC) to periodically send SMART query commands (Smart Array of Independent Disks) to the RAID card to obtain fault indicator data of the externally connected hard drives. The sub-health hard drive definition module is used to generate a health score value for the hard drive based on the fault indicator data using a weighted comprehensive calculation method. The sub-health hard drive grading and evaluation module is used to determine the health status of the hard drive based on the health score value: if the score value is greater than a preset threshold, it is marked as sub-healthy. The sub-health status alarm module is used to trigger alarms for hard drives in a sub-healthy state and set them to read-only access mode.

8. The apparatus according to claim 7, characterized in that, The fault indicator data acquisition module is specifically used for: The BMC sends the SMART query command to the RAID via the integrated circuit bus I2C at fixed time intervals. The SMART query command includes a read attribute threshold command or a SMART read data command. The RAID sends the SMART query command to the hard drive and forwards the obtained fault indicator data to the BMC.

9. The apparatus according to claim 7, characterized in that, The sub-health hard drive definition module is specifically used for: The health score is calculated using a weighted comprehensive calculation method based on the fault indicators and their corresponding weights in the fault indicator data. The fault indicators include at least: the number of reassigned sectors, the number of currently unmapped sectors, the number of offline uncorrectable sectors, temperature, and read error rate.

10. The apparatus according to claim 9, characterized in that, The sub-health hard drive definition module is also specifically used for: When the current value of the fault indicator exceeds the corresponding abnormal threshold, the fault indicator value is taken as the first preset value; when it does not exceed the threshold, the fault indicator value is determined based on the current value and the abnormal threshold. When the fault indicator data fails to be acquired, the fault indicator value is set to a first preset value.

11. The apparatus according to claim 7, characterized in that, The sub-health state alarm module is specifically used for: The BMC sends alarm information to the management terminal via the Internet Protocol Address Management Protocol and records the alarm information in the log system.

12. The apparatus according to claim 7, characterized in that, The sub-health state alarm module is also specifically used for: The BMC acquires the identifier of the hard drive in a sub-healthy state, and the identifier includes hard drive identification information and physical slot information; Based on the identifier, the BMC sends a write protection command to the RAID to block the write operation channel to the sub-healthy hard drive.

13. An electronic device, characterized in that, include: At least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.

14. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-6.

15. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by the processor, the method described in any one of claims 1-6 is performed.

Citation Information

Patent Citations

  • Method and device for predicting hard disk sub-health index based on SMART (self-monitoring analysis and reporting technology)

    CN105893231A

  • Hard disk failure handling method, apparatus, server, and computer-readable medium

    CN109284207A

  • Disk fault prediction method and device and storage medium

    CN109739739A

  • Server hard disk backboard health state monitoring device, method and system

    CN109857602A

  • Fault prediction method, device and equipment and machine readable medium

    CN111881000A

Cited By

  • Data storage method and system for embedded device

    CN121879693A