EP-4738125-A1 - HARD DISK MONITORING SYSTEM, METHOD AND DEVICE, STORAGE MEDIUM, AND BASEBOARD MANAGEMENT CONTROLLER
Abstract
The present application relates to the technical field of hard disk monitoring, and discloses a system, a method, and device for monitoring a hard disk, a non-volatile readable storage medium, and a baseboard management controller. The system for monitoring a hard disk, through the connection between a pin of the baseboard management controller and a hard disk status pin of the hard disk, achieves out-of-band monitoring of the hard disk by directly outputting hard disk log data from the hard disk status pin of the hard disk to the baseboard management controller. This approach reduces the difficulty of out-of-band monitoring of the hard disk without affecting the original functionality of the hard disk. As a result, the range of hard disks that can be monitored in a device is increased, facilitating out-of-band monitoring of all hard disks in the device, enabling operation and maintenance personnel to access full hard disk status data, and further ensuring the security of device services.
Inventors
- LI, JINFENG
- HUANG, JIAMING
- LIANG, Wenjun
- WANG, YUN
- ZHU, Baobin
- LIN, JINYUN
- Wu, An
Assignees
- Suzhou Metabrain Intelligent Technology Co., Ltd.
Dates
- Publication Date
- 20260506
- Application Date
- 20240524
Claims (20)
- A system for monitoring a hard disk, comprising a baseboard management controller and a hard disk, wherein a pin of the baseboard management controller is connected to a hard disk status pin of the hard disk; the hard disk is configured to modulate hard disk log data and a hard disk status signal that corresponds to the hard disk status pin to obtain a first signal, and is configured to output the first signal via the hard disk status pin; and the baseboard management controller is configured to demodulate the first signal to obtain the hard disk log data and monitor the hard disk according to the hard disk log data.
- The system for monitoring a hard disk according to claim 1, wherein the first signal simultaneously carries the modulated hard disk log data and the modulated hard disk status signal.
- The system for monitoring a hard disk according to claim 2, wherein each level width of one or more level widths of the first signal correspond to a data bit of one or more data bits of the hard disk log data.
- The system for monitoring a hard disk according to claim 2 or 3, wherein high-low level transition in the first signal correspond to the hard disk status signal.
- The system for monitoring a hard disk according to claim 4, wherein the hard disk status signal is a square wave signal, and the first signal is a signal obtained by the hard disk converting the hard disk log data into a signal with a level width corresponding to the hard disk log data, and then replacing replacing the square wave signal with the signal with the level width corresponding to the hard disk log data; and wherein the level width corresponding to the hard disk log data differs from a level width of the square wave signal.
- The system for monitoring a hard disk according to claim 4, wherein the hard disk status signal is a square wave signal, and the first signal is a signal obtained by the hard disk converting the hard disk log data into a signal with a level width corresponding to the hard disk log data, and then adjusting, according to the level width corresponding to the hard disk log data, a level width of each signal cycle corresponding to the hard disk log data in the square wave signal; and wherein the level width corresponding to the hard disk log data differs from a level width of the square wave signal.
- The system for monitoring a hard disk according to claim 2 or 3, wherein a level signal having a large proportion in the first signal corresponds to the hard disk status signal.
- The system for monitoring a hard disk according to claim 7, wherein the hard disk status signal is a constant-level signal, and the first signal is a signal obtained by, the hard disk converting the hard disk log data into a signal with a level width corresponding to the hard disk log data, and then replacing the constant-level signal of corresponding durations with the signal with the level width corresponding to the hard disk log data; and wherein, in each signal cycle of the first signal, a proportion of an inverted-level signal of the constant-level signal is less than 50%.
- The system for monitoring a hard disk according to claim 7, wherein the hard disk status signal is a constant-level signal, and the first signal is a signal obtained by the hard disk converting the hard disk log data into a signal with a level width corresponding to the hard disk log data and generating, according to the signal with a level width corresponding to the hard disk log data, an inverted-level signal corresponding to the constant-level signal, and then inserting the inverted-level signal into the constant-level signal; and wherein, in each signal cycle of the first signal, a proportion of an inverted-level signal of the constant-level signal is less than 50%.
- The system for monitoring a hard disk according to claim 2, wherein the hard disk status signal comprises a single constant-level signal, or the hard disk status signal comprises a constant high-level signal and a constant low-level signal; the first signal is obtained by the hard disk by modulating a signal with a level width corresponding to the hard disk log data and the hard disk status signal, after the hard disk has converted the hard disk log data into a signal with a level width corresponding to the hard disk log data; when the hard disk status signal is a constant high-level signal, a duty cycle of each cycle of the signal with a level width corresponding to the hard disk log data is greater than 50%; and when the hard disk status signal is a constant low-level signal, the duty cycle of each cycle of the signal with a level width corresponding to the hard disk log data is less than 50%.
- The system for monitoring a hard disk according to claim 2, wherein the hard disk status signal comprises a square wave signal and a constant-level signal; the first signal is obtained by the hard disk, by modulating a signal with a level width corresponding to the hard disk log data and the hard disk status signal, after the hard disk has converted the hard disk log data into a signal with a level width corresponding to the hard disk log data; when the hard disk status signal is a square wave signal, a maximum duty cycle within a signal cycle of the hard disk log data is less than a first duty cycle, and/or a minimum duty cycle within a signal cycle of the hard disk log data is greater than a second duty cycle; when the constant-level signal is a constant high-level signal, the first duty cycle is a minimum duty cycle of the first signal corresponding to the constant-level signal; and when the constant-level signal is a constant low-level signal, the second duty cycle is a maximum duty cycle of the first signal corresponding to the constant-level signal.
- The system for monitoring a hard disk according to claim 1, wherein the first signal carries, in a time-division manner, the modulated hard disk log data and the modulated hard disk status signal.
- The system for monitoring a hard disk according to claim 1, wherein demodulating, by the baseboard management controller, the first signal to obtain the hard disk log data comprises: measuring, by the baseboard management controller, a level width of the first signal to obtain digital data corresponding to the first signal, and parsing the digital data into the hard disk log data.
- The system for monitoring a hard disk according to claim 1, wherein the baseboard management controller is further configured to demodulate, according to a signal type of the hard disk status data corresponding to the hard disk status signal, the first signal to obtain the hard disk status data.
- The system for monitoring a hard disk according to claim 14, wherein demodulating, by the baseboard management controller, the first signal to obtain the hard disk log data comprises: measuring, by the baseboard management controller, a level width of the first signal to obtain digital data corresponding to the hard disk log data, and parsing the digital data into the hard disk log data; and demodulating, by the baseboard management controller according to a signal type of the hard disk status data corresponding to the hard disk status signal, the first signal to obtain the hard disk status data comprises: when the signal type of the hard disk status data comprise a constant-level signal, demodulating, by the baseboard management controller according to a signal having a large proportion in the first signal, the hard disk status data.
- The system for monitoring a hard disk according to claim 14 or 15, wherein demodulating, by the baseboard management controller according to a signal type of the hard disk status data corresponding to the hard disk status signal, the first signal to obtain the hard disk status data comprises: when the signal types of the hard disk status data comprise a square wave signal, demodulating, by the baseboard management controller according to high-low level transition in the first signal, the hard disk status data.
- The system for monitoring a hard disk according to claim 14, the system for monitoring a hard disk further comprises a status control circuit corresponding to the hard disk status pin, wherein a controlled terminal of the status control circuit is connected to the baseboard management controller, and an output terminal of the status control circuit is connected to a drive terminal of a controlled element corresponding to the hard disk status pin; and the baseboard management controller is further configured to control, according to the hard disk status data, the status control circuit to drive the controlled element.
- The system for monitoring a hard disk according to claim 17, wherein the hard disk status pin is a hard disk status indicator light control pin, and the status control circuit is an amplifier drive circuit; and controlling, by the baseboard management controller according to the hard disk status data, the status control circuit to drive the controlled element comprises: when the baseboard management controller demodulates the first signal to obtain the hard disk status data corresponding to a turn-on command, controlling the amplifier drive circuit to generate a square wave signal to illuminate a hard disk status indicator light corresponding to the hard disk status pin; and when the baseboard management controller demodulates the first signal to obtain the hard disk status data corresponding to a turn-off command, stopping controlling the amplifier drive circuit to generate the square wave signal, thereby extinguishing the hard disk status indicator light.
- The system for monitoring a hard disk according to claim 1, wherein the baseboard management controller comprises a baseboard management controller chip and a complex programmable logic device; the baseboard management controller chip is connected to the complex programmable logic device via an inter-integrated circuit bus and an interrupt signal line, and a data input/output pin of the complex programmable logic device is connected to the hard disk status pin; the complex programmable logic device is configured to demodulate the first signal to obtain the hard disk log data and to send an interrupt signal to the baseboard management controller chip via the interrupt signal line; and the baseboard management controller chip is configured to read, upon receiving the interrupt signal, the hard disk log data from the complex programmable logic device via the inter-integrated circuit bus and monitor the hard disk according to the hard disk log data.
- The system for monitoring a hard disk according to claim 1, wherein the baseboard management controller comprises a baseboard management controller chip and a complex programmable logic device; the baseboard management controller chip is connected to the complex programmable logic device via an inter-integrated circuit bus, and a data input/output pin of the complex programmable logic device is connected to the hard disk status pin; the complex programmable logic device is configured to demodulate the first signal to obtain the hard disk log data; and the baseboard management controller chip is configured to poll the inter-integrated circuit bus, and upon polling the complex programmable logic device, read the hard disk log data, and monitor the hard disk according to the hard disk log data.
Description
Cross-Reference to Related Application The present application claims priority to Chinese Patent Application No. 202410382672.7, titled "HARD DISK MONITORING SYSTEM, METHOD, AND DEVICE, STORAGE MEDIUM, AND BASEBOARD MANAGEMENT CONTROLLER", filed with the China National Intellectual Property Administration on March 29, 2024, the entire contents of which are incorporated herein by reference. Technical Field The present application relates to the technical field of hard disk monitoring, and in particular, to a system, a method, and a device for monitoring a hard disk, a non-volatile readable storage medium, and a baseboard management controller. Background A hard disk is one of the primary storage devices of a computer. Accordingly, the healthy operation of the hard disk is one of the key factors in ensuring the reliability of a device server. To ensure precise control of the operational status of the hard disk, a device needs to perform monitoring during the operation of the hard disk to acquire status information of the hard disk. At present, the main hard-disk monitoring solutions are categorized into in-band monitoring and out-of-band monitoring of a hard disk. In-band monitoring of a hard disk refers to acquiring the status information of the hard disk through data communication between monitoring software running on the central processing unit (CPU) and the hard disk. This monitoring solution often makes it difficult to present the monitoring data to operation and maintenance personnel. Out-of-band monitoring of a hard disk refers to monitoring the hard disk's status by acquiring the status information of the hard disk through a baseboard management controller (BMC). The monitoring results can be presented to operation and maintenance personnel, making this the currently preferred monitoring method. However, since the out-of-band management system does not have permission to access the hard disk's service data, out-of-band monitoring cannot be carried out for many hard disks. Increasing the range of hard disks that can be monitored via out-of-band monitoring in a device is a technical problem that needs to be solved by a person skilled in the art. Summary An object of the present application is to provide a system, a method, and a device for monitoring a hard disk, a non-volatile readable storage medium, and a baseboard management controller, for expanding the range of hard disks that can be monitored via out-of-band monitoring in a device. To solve the technical problem above, the present application provides a system for monitoring a hard disk, including a baseboard management controller and a hard disk, wherein a pin of the baseboard management controller is connected to a hard disk status pin of the hard disk;the hard disk is configured to modulate hard disk log data and a hard disk status signal that corresponds to the hard disk status pin to obtain a first signal, and is configured to output the first signal via the hard disk status pin; andthe baseboard management controller is configured to demodulate the first signal to obtain the hard disk log data and monitor the hard disk according to the hard disk log data. Optionally, the first signal simultaneously carries the modulated hard disk log data and the modulated hard disk status signal. Optionally, each level width of one or more level widths of the first signal correspond to a data bits of one or more data bits of the hard disk log data. Optionally, high-low level transition in the first signal correspond to the hard disk status signal. Optionally, the hard disk status signal is a square wave signal, and the first signal is a signal obtained by the hard disk converting the hard disk log data into a signal with a level widthcorresponding to the hard disk log data, and then replacing the square wave signal with the signal with the level width corresponding to the hard disk log data; and the level width corresponding to the hard disk log data differs from a level width of the square wave signal. Optionally, the hard disk status signal is a square wave signal, and the first signal is a signal obtained by the hard disk converting the hard disk log data into a signal with a level width a level width corresponding to the hard disk log data, and then adjusting, according to the level width corresponding to the hard disk log data, a level width of each signal cycle corresponding to the hard disk log data in the square wave signal; and the level width corresponding to the hard disk log data differs from a level width of the square wave signal. Optionally, a level signal with a large proportion in the first signal corresponds to the hard disk status signal. Optionally, the hard disk status signal is a constant-level signal, and the first signal is a signa obtained by the hard disk converting the hard disk log data into a signal with a level width corresponding to the hard disk log data, and then replacing the constant-level signal of corresponding duratio