Hard disk monitoring method and apparatus, system, device, and storage medium

By dividing the hard disk log storage area in the baseboard management controller and configuring the read and write order, demodulating the hard disk status signal, and realizing hard disk out-of-band monitoring, the problem of the baseboard management controller being unable to access hard disk data is solved, and the range and reliability of hard disk monitoring are improved.

WO2025200602A1PCT designated stage Publication Date: 2025-10-02INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/139313
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-03-29
Filing Date
2024-12-13
Publication Date
2025-10-02

AI Technical Summary

Technical Problem

In the prior art, the baseboard management controller cannot directly access hard disk data, resulting in a limited monitoring range of the hard disk out-of-band monitoring, an inability to obtain the hard disk's operating status in a timely and accurate manner, and affecting the reliability of the hard disk storage.

Method used

By dividing the hard disk log storage area in the local storage space of the baseboard management controller and dividing it into multiple storage partitions, configuring the forward arrangement order as the read data order and the reverse arrangement order as the write data order, demodulating the signal output by the hard disk status pin, realizing the reading and writing of the hard disk log data, and using the original status signal of the hard disk to modulate and output it to the baseboard management controller for out-of-band monitoring of the hard disk.

Benefits of technology

The monitoring range of hard disk out-of-band monitoring has been improved, making it easier for operation and maintenance personnel to grasp the status data of all hard disks and ensure the security and reliability of equipment services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024139313_02102025_PF_FP_ABST
    Figure CN2024139313_02102025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of hard disk monitoring, and specifically discloses a hard disk monitoring method and apparatus, a system, a device, and a storage medium. The present application enables out-of-band monitoring of a hard disk by means of connecting a baseboard management controller to a hard disk status pin of the hard disk, and directly outputting hard disk log data to the baseboard management controller by means of the hard disk status pin of the hard disk, thereby reducing the difficulty of out-of-band monitoring of the hard disk without affecting the original functions of the hard disk, and accordingly facilitating out-of-band monitoring of all hard disks in a device. With respect to the problem of higher transmission volume of hard disk log data for a hard disk introduced by this method, the present application deploys a hard disk log storage region executing reading and writing along different sequences in the baseboard management controller, such that only one address pointer is required for both reading and writing, and the space of the baseboard management controller is fully utilized to store the hard disk log data, thereby ensuring the stability of monitoring more hard disks, allowing the operation and maintenance personnel to conveniently grasp status data of all hard disks, and protecting the service security of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Hard disk monitoring method, device, system, equipment and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on March 29, 2024, with application number 202410382492.9, and entitled “A Hard Disk Monitoring Method, Device, System, Equipment and Storage Medium,” the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present application relates to the field of hard disk monitoring technology, and in particular to a hard disk monitoring method, device, system, equipment and storage medium. Background Art

[0004] The hard disk is one of the most important storage devices in the computer. Therefore, the healthy operation of the hard disk is one of the key factors to ensure the reliability of the device server.

[0005] In order to ensure accurate control of the operating status of the hard disk, the device needs to monitor the hard disk during operation to obtain the hard disk status information. The current main hard disk monitoring solutions are divided into hard disk in-band monitoring and hard disk out-of-band monitoring. Hard disk in-band monitoring is to obtain the hard disk status information after the monitoring software running on the central processing unit (CPU) communicates data with the hard disk. This monitoring solution often has difficulty presenting the monitoring data to the operation and maintenance personnel. Hard disk out-of-band monitoring is to monitor the hard disk status after obtaining the hard disk status information through the baseboard management controller (Baseboard Management Controller, BMC). The monitoring results can be presented to the operation and maintenance personnel. It is the main monitoring method currently used. However, because the out-of-band management system does not have the authority to access the hard disk's business data, out-of-band monitoring of many hard disks cannot be achieved.

[0006] How to increase the range of hard disks that can be monitored by out-of-band monitoring of hard disks in a device is a technical problem that those skilled in the art need to solve. Summary of the Invention

[0007] The purpose of this application is to provide a hard disk monitoring method, apparatus, system, device and storage medium for increasing the range of hard disks that can be monitored in out-of-band monitoring of hard disks in a device.

[0008] To solve the above technical problems, the present application provides a hard disk monitoring method applied to a baseboard management controller, comprising:

[0009] Divide the hard disk log storage area in the local storage space, and divide the hard disk log storage area into multiple storage partitions;

[0010] Determine the order of each storage partition, and configure the forward order of the storage partitions as the read data order, and the reverse order of the storage partitions as the write data order;

[0011] receiving a first signal output by a hard disk status pin of the hard disk, obtained by modulating the hard disk log data and a hard disk status signal corresponding to the hard disk status pin;

[0012] Demodulating the first signal to obtain hard disk log data;

[0013] The hard disk log data is written into the hard disk log storage area in a data writing order, so that the hard disk is monitored according to the hard disk log data after the hard disk log data is read from the hard disk log storage area in a data reading order.

[0014] On the one hand, a complex programmable logic device is used in a baseboard management controller, and the complex programmable logic device is connected to a baseboard management controller component in the baseboard management controller through an integrated circuit bus.

[0015] On the other hand, the hard disk log storage area is divided in the local storage space, and the hard disk log storage area is divided into multiple storage partitions, including:

[0016] configuring registers of a complex programmable logic device as a hard disk log storage area, and dividing the hard disk log storage area into a plurality of storage partitions;

[0017] Determine the order of each storage partition and configure the forward order of the storage partitions as the read data order and the reverse order of the storage partitions as the write data order, including:

[0018] After determining the arrangement order of each storage partition, configure address information for the register according to the arrangement order of the storage partition, and determine that the forward arrangement order of the storage partition is the read data order, and the reverse arrangement order of the storage partition is the write data order;

[0019] The read / write control state machine is configured according to the register configuration information, the read data sequence, and the write data sequence.

[0020] On the other hand, the hard disk log storage area is divided in the local storage space, and the hard disk log storage area is divided into multiple storage partitions, including:

[0021] Dividing a hard disk log storage area in an on-chip random access memory of a complex programmable logic device, and dividing the hard disk log storage area into a plurality of storage partitions, and determining address information of each storage partition according to address information of the on-chip random access memory;

[0022] Determine the order of each storage partition and configure the forward order of the storage partitions as the read data order and the reverse order of the storage partitions as the write data order, including:

[0023] After determining the arrangement order of each storage partition, determine that the forward arrangement order of the storage partition is the data reading order, and the reverse arrangement order of the storage partition is the data writing order;

[0024] The read / write control state machine is configured according to the address information, read data sequence, and write data sequence of the storage partition.

[0025] On the other hand, after the hard disk log data is read from the hard disk log storage area according to the read data sequence, the hard disk is monitored according to the hard disk log data, including:

[0026] An interrupt signal is sent to the baseboard management controller component so that the baseboard management controller component accesses the hard disk log storage area through the integrated circuit bus after receiving the interrupt signal and reads the hard disk log data according to the read data sequence, and performs monitoring of the hard disk according to the hard disk log data.

[0027] On the other hand, sending an interrupt signal to the baseboard management controller component includes:

[0028] When the capacity of the hard disk log storage area meets the interrupt triggering condition, an interrupt signal is sent to the baseboard management controller component.

[0029] On the other hand, interrupt trigger conditions include:

[0030] The amount of data written to the hard disk log storage area is greater than or equal to a preset ratio of the total capacity of the hard disk log storage area.

[0031] On the other hand, interrupt trigger conditions include:

[0032] The capacity of the free space in the hard disk log storage area is less than or equal to the preset storage capacity.

[0033] On the other hand, after the hard disk log data is read from the hard disk log storage area according to the read data sequence, the hard disk is monitored according to the hard disk log data, including:

[0034] Accepting polling from the baseboard management controller component, so that when the baseboard management controller component polls the complex programmable logic device, the hard disk log data is read according to the read data sequence, and the hard disk is monitored according to the hard disk log data.

[0035] On the other hand, the forward order of the configuration storage partition is the read data order, and the reverse order of the configuration storage partition is the write data order, including:

[0036] Select the starting address of a storage partition from the hard disk log storage area as the free starting address, and write data in the reverse order of the storage partitions from the free starting address;

[0037] Select the starting address of a storage partition from the hard disk log storage area as the data starting address, and use the forward arrangement order of the storage partitions from the data starting address as the reading order;

[0038] Write the hard disk log data to the hard disk log storage area in the order in which the data is written, including:

[0039] The hard disk log data is written in the order of writing data starting from the idle starting address, and then the idle starting address is updated to the address where the hard disk log data is last written.

[0040] On the other hand, a starting address of a storage partition is selected from the hard disk log storage area as the data starting address, including:

[0041] The initial idle starting address is used as the data starting address.

[0042] On the other hand, the order of storage partitions is the order of address size of storage partitions;

[0043] Hard disk monitoring methods also include:

[0044] If the current idle starting address and the current data starting address satisfy (n+1)%N=m, it is determined that the hard disk log storage area is full;

[0045] Where n is the current idle starting address, N is the total number of storage partitions, m is the current data starting address, and % is the modulo operator.

[0046] In another aspect, a baseboard management controller component is applied to a baseboard management controller;

[0047] Write hard disk log data to the hard disk log storage area, including:

[0048] Call the first thread to write the hard disk log data into the hard disk log storage area;

[0049] After reading the hard disk log data from the hard disk log storage area according to the data reading order, the hard disk is monitored according to the hard disk log data, including:

[0050] The second thread is called to read the hard disk log data from the hard disk log storage area to perform monitoring of the hard disk according to the hard disk log data.

[0051] On the other hand, the hard disk log data is written to the hard disk log storage area, including:

[0052] When writing the hard disk log data into the hard disk log storage area in the order of the time when the hard disk log data is received, determining the hard disk identifier corresponding to the hard disk log data according to the hard disk status pin corresponding to the hard disk log data;

[0053] The hard disk identification and hard disk log data are written to the storage partition of the hard disk log storage area.

[0054] To solve the above technical problems, the present application also provides a baseboard management controller for hard disk monitoring;

[0055] The baseboard management controller is used to divide the hard disk log storage area in the local storage space and divide the hard disk log storage area into multiple storage partitions; determine the arrangement order of each storage partition, and configure the forward arrangement order of the storage partitions as the read data order and the reverse arrangement order of the storage partitions as the write data order; demodulate the first signal output by the hard disk status pin of the hard disk to obtain hard disk log data, and write the hard disk log data into the hard disk log storage area in the write data order, so as to perform monitoring of the hard disk according to the hard disk log data after reading the hard disk log data from the hard disk log storage area according to the read data order;

[0056] The first signal is a signal modulated according to the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.

[0057] To solve the above technical problems, the present application also provides a hard disk monitoring system, comprising: a baseboard management controller and a hard disk;

[0058] The pins of the baseboard management controller are connected to the hard disk status pins of the hard disk;

[0059] The baseboard management controller is used to divide the hard disk log storage area in the local storage space and divide the hard disk log storage area into multiple storage partitions; determine the arrangement order of each storage partition, and configure the forward arrangement order of the storage partitions as the read data order and the reverse arrangement order of the storage partitions as the write data order; demodulate the first signal output by the hard disk status pin to obtain hard disk log data, and write the hard disk log data into the hard disk log storage area in the write data order, so as to perform monitoring of the hard disk according to the hard disk log data after reading the hard disk log data from the hard disk log storage area according to the read data order;

[0060] The first signal is a signal modulated according to the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.

[0061] To solve the above technical problems, the present application further provides a hard disk monitoring device, which is applied to a baseboard management controller, comprising:

[0062] A configuration unit is used to divide the hard disk log storage area in the local storage space and divide the hard disk log storage area into multiple storage partitions; determine the arrangement order of each storage partition, and configure the forward arrangement order of the storage partitions to be the reading order and the reverse arrangement order of the storage partitions to be the writing order;

[0063] a receiving unit, configured to receive a first signal output by a hard disk status pin of the hard disk, obtained by modulating the hard disk log data and a hard disk status signal corresponding to the hard disk status pin;

[0064] A demodulation unit, configured to demodulate the first signal to obtain hard disk log data;

[0065] The writing unit is used to write the hard disk log data into the hard disk log storage area in the writing data order, so as to perform monitoring of the hard disk according to the hard disk log data after reading the hard disk log data from the hard disk log storage area according to the reading data order.

[0066] To solve the above technical problems, the present application also provides a hard disk monitoring device, comprising:

[0067] memory for storing computer programs;

[0068] The processor is used to execute a computer program, and when the computer program is executed by the processor, the steps of any one of the above hard disk monitoring methods are implemented.

[0069] In order to solve the above technical problems, the present application also provides a non-volatile readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above hard disk monitoring methods are implemented.

[0070] The hard disk monitoring method provided by the present application has the beneficial effect of realizing out-of-band monitoring of the hard disk by connecting the baseboard management controller with the hard disk status pin of the hard disk and directly outputting the hard disk log data to the baseboard management controller through the hard disk status pin of the hard disk, thereby solving the problem in the traditional hard disk out-of-band monitoring solution that the out-of-band management system has no authority to access the hard disk data, making it difficult to realize out-of-band monitoring of the hard disk, thereby realizing out-of-band monitoring of more hard disks; in order to solve the data transmission problem brought about by realizing out-of-band monitoring of more hard disks, the hard disk log storage area divided out of the local storage space of the baseboard management controller is divided into multiple storage partitions, and the different orders of the storage partitions are configured as the reading and writing order of the hard disk log data, so that the writing of the hard disk log data only needs to be based on one address pointer. Reading only requires one address pointer row, making full use of the storage space of the baseboard management controller to store the hard disk log data, providing a basis for receiving more hard disk log data; and the hard disk modulates the hard disk status signal corresponding to the original function of the hard disk log pin and adds the hard disk log data to obtain a first signal and outputs the first signal through the hard disk log pin. The baseboard management controller demodulates the first signal to obtain the hard disk log data, so as to utilize the original control pin of the hard disk to output the hard disk log data to the baseboard management controller at the same time, reducing the difficulty of out-of-band monitoring of the hard disk without affecting the original function of the hard disk, thereby increasing the range of monitorable hard disks in the device, helping to realize out-of-band monitoring of all hard disks in the device, and making it convenient for operation and maintenance personnel to grasp the status data of all hard disks, further ensuring the security of equipment services.

[0071] The present application also provides a hard disk monitoring device, system, equipment, storage medium and baseboard management controller, which have the above-mentioned beneficial effects and are not described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0073] FIG1 is a schematic diagram of the structure of a hard disk in-band monitoring system;

[0074] FIG2 is a schematic diagram of the structure of a hard disk out-of-band monitoring system;

[0075] FIG3 is a schematic structural diagram of a first hard disk monitoring system provided in an embodiment of the present application;

[0076] FIG4 is a schematic structural diagram of a second hard disk monitoring system provided in an embodiment of the present application;

[0077] FIG5 is a schematic structural diagram of a third hard disk monitoring system provided in an embodiment of the present application;

[0078] FIG6 is a schematic structural diagram of a fourth hard disk monitoring system provided in an embodiment of the present application;

[0079] FIG7 is a flow chart of a first hard disk monitoring method provided in an embodiment of the present application;

[0080] FIG8 is a flow chart of a second hard disk monitoring method provided in an embodiment of the present application;

[0081] FIG9 is a schematic structural diagram of a hard disk monitoring device provided in an embodiment of the present application;

[0082] FIG10 is a schematic structural diagram of a hard disk monitoring device provided in an embodiment of the present application;

[0083] Among them, 101 is a baseboard management controller component, and 102 is a complex programmable logic device. DETAILED DESCRIPTION

[0084] The core of this application is to provide a hard disk monitoring method, apparatus, system, device and storage medium for increasing the range of hard disks that can be monitored in out-of-band monitoring of hard disks in a device.

[0085] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0086] FIG1 is a schematic diagram of the structure of a hard disk in-band monitoring system; FIG2 is a schematic diagram of the structure of a hard disk out-of-band monitoring system.

[0087] To facilitate understanding, the nouns and hardware framework involved in the embodiments of the present application are first introduced.

[0088] According to the network management method, the current equipment operation monitoring solutions are mainly divided into in-band management solutions and out-of-band management solutions.

[0089] In-band management allows network management data and service data to be transmitted over the same link. By logging into the device's operating system and accessing the device's user data, in-band management data can be obtained from the monitored device. As shown in Figure 1, in-band management is the process of obtaining monitoring data from monitored components through the central processing unit (CPU) running the operating system. For example, in an in-band monitoring solution for a hard drive, the CPU communicates with the hard drive, allowing it to access not only the user data stored there but also the hard drive log data recorded during operation. Users can then view this log data by logging into the operating system.

[0090] Out-of-band management involves managing the network through a dedicated network management channel, separating network management data from business data. This separate channel transmits only management data, improving network management efficiency and reliability while also enhancing the security of network management data.

[0091] Because in-band monitoring cannot meet maintenance requirements, after server deployment, out-of-band management and monitoring capabilities are provided through a baseboard management controller (BMC). A BMC is a dedicated service processor that uses sensors to monitor the status of a computer, network server, or other hardware device and communicates with the device's system administrator via independent connections. In practice, the BMC is typically installed on the motherboard or main circuit board of the monitored device. The BMC uses sensors to measure internal physical variables such as temperature, humidity, power supply voltage, fan speed, communication parameters, and operating system (OS) functions. If any of these variables exceeds specified limits, the BMC notifies the system administrator. The BMC also provides web services, including network communication capabilities and a webpage displaying the monitoring interface. Maintenance personnel can access BMC monitoring data by connecting to the BMC of the monitored device via a network cable at the facility site or by connecting to the BMCs of multiple monitored devices via a network in a data center.

[0092] Because the BMC component 101 in a BMC has limited performance and pin count, as the number of components and items requiring monitoring increases, a complex programmable logic device (CPLD) 102 (CPLD) is often included in the BMC to offload performance pressure from the BMC component 101 and provide more pins for connecting sensors or monitored components. The CPLD 102 primarily consists of three components: logic blocks, programmable interconnect channels, and input / output (I / O) blocks. A logic block in a CPLD 102 typically includes 4 to 20 macrocells, each of which typically consists of a product term array, a product term allocation, and programmable registers. Each macrocell can be configured in a variety of ways, and macrocells can be cascaded, enabling the implementation of complex combinational and sequential logic functions. CPLDs with higher integration levels often also include embedded array blocks with on-chip random access memory (RAM) / read-only memory (ROM). Programmable interconnect channels primarily provide the interconnect network between logic blocks, macrocells, and input / output pins. Input / output blocks (I / O blocks) provide the interface between internal logic and the device's I / O pins.

[0093] As an important component of the server, the hard disk is an important target for out-of-band monitoring and management. According to the type of communication interface, it is mainly divided into Serial Attached SCSI (SAS) / Serial Advanced Technology Attachment (SATA) interface hard disks and Non-Volatile Memory Host Controller Interface Specification (NVMHCIS or NVM Express, NVMe) interface hard disks. Among them, the SAS interface is compatible with the SATA interface. According to the type of storage medium, hard disks are mainly divided into mechanical hard disks (HDD) and solid-state drives (SSD). Among them, mechanical hard disks mainly have SAS or SATA interfaces. Solid-state drives include SAS, SATA, and NVMe interface hard disks.

[0094] As shown in Figures 1 and 2, the server uses the hard drive by connecting it to the hard drive slot on the hard drive backplane. The hard drive interface typically uses a gold finger structure, where the pins mate with the slots on the hard drive, allowing connections to server-side components (e.g., data pins connect to the CPU) via the circuitry on the hard drive backplane.

[0095] In actual connections, some hard drives are plugged directly into the drive slots on the hard drive backplane, while others are connected to the backplane via a hard drive expander card. Types of hard drive expanders include RAID (Redundant Arrays of Independent Disks) cards, SAS (Serial Small Computer System Interface) expander cards, and SATA (Serial Advanced Technology Attachment) expander cards. Hard drives that plug directly into the drive slots, for example, connect to the CPU via an Advanced Host Controller Interface (AHCI) controller.

[0096] As shown in Figure 1, the CPU accesses the hard drive via a high-speed Peripheral Component Interconnect Express (PCI-Express, PCIe) bus. Because hard drives with SAS or SATA interfaces cannot be directly connected to the PCIe bus, a hard drive expansion card is required to convert the signal protocol. The CPU can also obtain or control hard drive status information by connecting to the hard drive backplane via a serial general-purpose input / output (sGPIO) cable. This means that the CPU can obtain hard drive log data by connecting to the hard drive expansion card via the PCIe bus or by accessing hard drive log data through the advanced host controller interface, enabling in-band monitoring of the hard drive.

[0097] As shown in Figure 2, if the baseboard management controller component 101 wants to obtain hard disk log data, for the hard disk connected to the hard disk expansion card, the hard disk expansion card can be accessed through the integrated circuit bus (Inter-Integrated Circuit, IIC or I2C), the baseboard management controller component 101 runs the monitoring software to send a transparent transmission command to the hard disk expansion card, the hard disk expansion card can forward the transparent transmission command to the hard disk, and the hard disk responds to the transparent transmission command and sends the corresponding hard disk log data to the hard disk expansion card, which is forwarded to the baseboard management controller by the hard disk expansion card. In addition, the NVMe interface hard disk can be directly connected to the central processing unit through a high-speed serial computer expansion bus, and the high-speed serial computer expansion bus between the hard disk and the central processing unit can provide an integrated circuit bus to the baseboard management controller to realize the function of forwarding commands and hard disk log data for the baseboard management controller as the hard disk expansion card, so that out-of-band monitoring of the hard disk can be realized.

[0098] It can be seen that in the current server monitoring architecture, the business data of the equipment cannot be displayed to the outside world for confidentiality reasons. That is, the operation and maintenance personnel do not have the authority to access the in-band data to obtain the hard disk log data that can be read by the central processing unit. The baseboard management controller used to implement out-of-band monitoring is also unable to directly access the hard disk data, resulting in the limitation of the out-of-band monitoring function of the hard disk. It makes it impossible for the out-of-band monitoring party to obtain the operating status of the hard disk in a timely and accurate manner, thereby threatening the reliability of the hard disk storage.

[0099] Since there is no data path between the baseboard management controller and the hard disk without the integrated circuit bus interface, out-of-band monitoring of the hard disk can only be achieved with the help of a hard disk expansion card that supports receiving transparent commands through the integrated circuit bus interface or a high-speed serial computer expansion bus that provides an integrated circuit bus interface. For hard disks that do not meet this condition, such as hard disks under the advanced host controller interface controller, out-of-band monitoring cannot be achieved.

[0100] Figure 3 is a structural diagram of the first hard disk monitoring system provided in an embodiment of the present application; Figure 4 is a structural diagram of the second hard disk monitoring system provided in an embodiment of the present application; Figure 5 is a structural diagram of the third hard disk monitoring system provided in an embodiment of the present application.

[0101] Therefore, it is necessary to find a hard disk out-of-band monitoring solution that can adapt to more hard disk connection methods. The embodiment of the present application provides a hard disk monitoring system, including a baseboard management controller and a hard disk;

[0102] The pins of the baseboard management controller are connected to the hard disk status pins of the hard disk;

[0103] The baseboard management controller is used to divide the hard disk log storage area in the local storage space and divide the hard disk log storage area into multiple storage partitions; determine the arrangement order of each storage partition, and configure the forward arrangement order of the storage partitions as the read data order and the reverse arrangement order of the storage partitions as the write data order; demodulate the first signal output by the hard disk status pin to obtain hard disk log data, and write the hard disk log data into the hard disk log storage area in the write data order, so as to perform monitoring of the hard disk according to the hard disk log data after reading the hard disk log data from the hard disk log storage area according to the read data order;

[0104] The first signal is a signal modulated according to the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.

[0105] It should be noted that in the embodiment of the present application, the baseboard management controller can be a baseboard management controller component 101, or it can be a system including a baseboard management controller and a complex programmable logic device 102. The complex programmable logic device 102 can refer to a complex programmable logic device 102 provided on the hard disk backplane or a complex programmable logic device 102 provided on the mainboard.

[0106] In some optional implementations of the embodiments of the present application, the complex programmable logic device 102 in the baseboard management controller is connected to the hard disk status pin of the hard disk, and the input / output (I / O) pin of the complex programmable logic device 102 can be connected to the hard disk status pin of the hard disk, and the complex programmable logic device 102 is also connected to the baseboard management controller component 101 through an integrated circuit bus.

[0107] In some other optional implementations of the embodiments of the present application, the baseboard management controller component 101 in the baseboard management controller is connected to the hard disk status pin of the hard disk, and the general-purpose input / output (GPIO) pin of the baseboard management controller component 101 can be connected to the hard disk status pin of the hard disk. The baseboard management controller component 101 can also be connected to other components through an integrated circuit bus.

[0108] Hard drive pins are primarily categorized into three types: data pins, power pins, and hard drive status pins. The hard drive's data pins connect to the in-band system, while the hard drive's power pins are used to connect power and ground signals. Therefore, the baseboard management controller can only directly access the hard drive's status pins.

[0109] The hard disk status pins of the hard disk mainly include the hard disk status indication pin, the hard disk production debugging pin and the hard disk idle pin.

[0110] Among them, hard disk status indication pins include hard disk in-place status indication pins and hard disk read / write status indication pins. Hard disk status indication pins are pins used by the hard disk to output hard disk status indication signals. For example, the hard disk in-place status indication pin is used to output the hard disk in-place status signal, and the hard disk read / write status indication pin is used to output the hard disk read / write status signal. When the hard disk is connected to the hard disk backplane, the hard disk status indication pins can be connected in two main ways: one is connected to the baseboard management controller to inform the baseboard management controller of the corresponding hard disk status data, and the other is connected to the control circuit on the hard disk backplane to control the status of the corresponding controlled components to inform the user of the corresponding hard disk status. For example, the hard disk backplane is equipped with a hard disk status indicator to indicate the operating status of the hard disk. For example, when the hard disk is in the read / write state, the hard disk read / write status indication pin can be controlled to output a square wave signal to the amplifying drive circuit of the hard disk read / write status indicator to control the hard disk read / write status indicator to light up. When the hard disk is not in the read / write state (idle state), the hard disk read / write status indication pin is controlled to output a constant level signal (such as a constant high level signal) to turn off the hard disk read / write status indicator to indicate that it is in the idle state. The user can then determine whether the hard disk is in the read / write state by observing the on and off of the hard disk read / write status indicator. The same principle applies to the hard drive status display based on the hard drive status indicator pins. Alternatively, the hard drive can also output two different constant-level signals (one high and one low) through these hard drive status indicator pins to indicate different states. These signals can be input to the baseboard management controller to trigger corresponding recording, processing, or control.

[0111] The production debug pins of hard drives are mainly the pins (debug pins) next to the SAS or SATA interface of hard drives. These pins are usually used during the production debug phase of the hard drive. In actual use of the hard drive, the production debug pins can be used to output boot information during the hard drive initialization phase.

[0112] NVMe hard drives, in addition to the aforementioned drive status indicator pins, also include a hard drive idle pin. Currently, NVMe hard drives primarily use three connector types: M.2, U.2, and CEM. The M.2 NVMe interface uses different key types for connecting different devices, with Key B and Key M being used for connecting solid-state drives. When an M.2 NVMe interface is connected to a SATA solid-state drive, the definition of its P10 pin is the same as that of P11 on SAS or SATA interfaces, both serving as the drive's read / write status indicator. When an M.2 NVMe interface is connected to an NVMe hard drive, its P10 pin is defined as an indicator light control pin. The U.2 NVMe interface is fully compatible with SAS and SATA interfaces, and its P11 pin also serves as the drive's read / write status indicator. Pin P32 on the A side of the CEM NVMe interface is a reserved pin and serves as a drive status pin in addition to the drive's data pins. Multiple reserved pins exist on x8 (eight-lane) interfaces and above.

[0113] The above-mentioned hard disk status pins are not the pins used by the hard disk to output data, and there is no risk of leaking user data stored in the hard disk. Currently, after the hard disk is inserted into the hard disk backplane, these hard disk status pins are directly connected to the baseboard management controller or have the permission to connect to the baseboard management controller.

[0114] In the hard disk monitoring system provided in the embodiment of the present application, the hard disk status pin of the hard disk used may include at least one of a hard disk status indication pin, a hard disk production debugging pin, and a hard disk idle pin.

[0115] In an embodiment of the present application, if hard disk status indication pins such as a hard disk in-place status indication pin and a hard disk read / write status indication pin are used, since these hard disk status pins are usually already connected to the general-purpose input / output (GPIO) pins of the baseboard management controller component 101 in the baseboard management controller or the input / output (I / O) pins of the complex programmable logic device 102, this hardware architecture can be directly adopted without making changes to the hardware architecture of the server, which is simple and convenient to implement.

[0116] Currently, the hard drive production debug pins on devices are usually left floating, and typically include four pins. If the embodiments of the present application use the hard drive production debug pins as the hard drive status pins for outputting hard drive log data, a connector with a corresponding number of pins can be used to connect the hard drive production debug pins to the GPIO pins of the baseboard management controller assembly 101 or the I / O pins of the complex programmable logic device 102.

[0117] Since the hard disk idle pin is usually only available in the interface of NVMe interface hard disks, high-speed signals cannot be left floating. Currently, the hard disk idle pin in the NVMe interface is grounded through the resistor and capacitor circuit on the hard disk backplane after the hard disk is connected to the hard disk backplane. If the embodiment of the present application uses the hard disk idle pin as the hard disk status pin for the hard disk to output hard disk log data, the connection relationship between the hard disk idle pin and the hard disk backplane is changed to connect to the GPIO pin of the baseboard management controller component 101 or the I / O pin of the complex programmable logic device 102.

[0118] In some optional implementations of the present application embodiment, for serial connection small computer system interface or serial advanced technology attachment interface hard disk (hard disk of SAS or SATA interface), as shown in Figure 4, the hard disk of SAS or SATA interface can be connected to the hard disk expansion card, or can be directly connected to the hard disk backplane. In the in-band system, the central processing unit realizes data interaction with the hard disk by the mode of the data pin of the hard disk of high-speed serial computer expansion bus access hard disk expansion card or direct access SAS or SATA interface. In the out-of-band system, if the hard disk expansion card has the integrated circuit bus connected to baseboard management controller component 101, then baseboard management controller component 101 can access the hard disk expansion card through the integrated circuit bus, forward command or hard disk log data to the hard disk through the hard disk expansion card. In addition, baseboard management controller component 101 can also be connected to the hard disk status pin of hard disk by complex programmable logic device 102 after being connected by integrated circuit bus. Or, baseboard management controller component 101 can also be directly connected with the hard disk status pin of hard disk.

[0119] Furthermore, the baseboard management controller assembly 101 can also be connected to an electrically erasable programmable read-only memory (EEPROM) and sensors via an integrated circuit bus. The EEPROM is used to store server component firmware or register values, while the sensors are located on the server backplane or mainboard to collect physical status data such as temperature and wind speed of server components.

[0120] When baseboard management controller assembly 101 connects multiple components via an integrated circuit bus, baseboard management controller assembly 101 can access corresponding components by using component addresses. For the same component, baseboard management controller assembly 101 can also access the addresses of different registers of the component. For example, baseboard management controller assembly 101 can control the complex programmable logic device 102 to update its firmware by accessing its firmware update address.

[0121] In some optional implementations of the present application embodiments, for non-volatile memory host controller interface hard disk (NVMe interface hard disk, Non-Volatile Memory Express interface hard disk), as shown in Figure 5, NVMe interface hard disk can also be connected to a hard disk expansion card or directly connected to a hard disk backplane. In an in-band system, the central processing unit uses a high-speed serial computer expansion bus protocol to interact with the NVMe interface hard disk through a switch (Switch) to transmit data (transmit instructions, obtain hard disk data, etc.). The central processing unit can also use the virtual pin port (Virtual Pin Port, VPP) of NVMe to connect multiple hard disk backplanes through a multi-way bidirectional conversion switch (PCA9546 can be used), and the hard disk backplane uses a general-purpose input / output port (General-purpose Input / Output, GPIO) to obtain or control hard disk status information with the NVMe interface hard disk, such as controlling the hard disk locator light and the fault light. The connection method of the baseboard management controller and the NVMe interface hard disk is the same as that of the hard disk with SAS or SATA interface. Unlike hard drives with SAS or SATA interfaces, the baseboard management controller component 101 can be connected to the integrated circuit bus interface of the NVMe interface hard drive through an integrated circuit bus. When one integrated circuit bus of the baseboard management controller component 101 is connected to multiple NVMe interface hard drives, a multi-way bidirectional conversion switch can be set to select the NVMe interface hard drive connected to the baseboard management controller component 101, thereby realizing the interaction between the baseboard management controller component 101 and the NVMe interface hard drive through the integrated circuit bus.

[0122] Based on any one of the implementations shown in Figures 3, 4, and 5, in some optional implementations of the embodiments of the present application, seven signals are designed between the baseboard management controller and the hard disk, including: hard disk reset signal, hard disk in-place signal, hard disk type signal, hard disk read and write status signal, hard disk fault indicator light control signal, hard disk read and write status indicator light control signal, and hard disk in-place status indicator light control signal.

[0123] The hard disk reset signal (RST_N) is a signal sent by the baseboard management controller to the hard disk for resetting the hard disk register. When a hard disk failure is detected, the baseboard management controller can reset the hard disk by sending the hard disk reset signal to the hard disk.

[0124] The hard disk presence signal (PRSNT_N) is a signal indicating whether a hard disk is connected to the hard disk slot. It can be designed as a low-level active signal. When the signal is low, it indicates that the hard disk slot is not connected to a hard disk. When the signal is high, it indicates that the hard disk slot is connected to a hard disk.

[0125] The hard disk type signal (IFDET_N) indicates the type of hard disk connected to the hard disk slot. It can be designed to be valid at a low level. When the signal is low, it indicates that an NVMe interface hard disk is connected. When the signal is high, it indicates that a SAS or SATA interface hard disk is connected.

[0126] The hard disk read / write status signal (REY_N) is a signal sent by the hard disk to the baseboard management controller to convey whether the hard disk outputs the read / write status (active status) or the non-read / write status (idle status).

[0127] The hard disk fault indicator light control signal (LED_ERR) is a signal used to light up the hard disk fault indicator light when a hard disk fails. The baseboard management controller can use this signal to control the hard disk fault indicator light up after detecting a hard disk failure.

[0128] The hard disk read / write status indicator light control signal (LED_ACT) is a signal used to control the hard disk read / write status indicator light. The hard disk status pin of the hard disk can output a square wave signal as the hard disk read / write status indicator light control signal to control the hard disk read / write status indicator light to light up, and the hard disk status pin of the hard disk can output a constant level signal to control the hard disk read / write status indicator light to go out; or the hard disk status pin of the hard disk can output different hard disk status signals to inform the baseboard management controller of the hard disk read / write status signal, and then the baseboard management controller outputs the hard disk read / write status indicator light control signal to control the hard disk read / write status indicator light up or go out.

[0129] The hard disk in-place status indicator light control signal (LED_LOC) is a signal used to control the hard disk in-place status indicator light. The hard disk status pin of the hard disk can output a square wave signal as the hard disk read / write status indicator light control signal to control the hard disk in-place status indicator light to light up, and the hard disk status pin of the hard disk can output a constant level signal to control the hard disk in-place status indicator light to go out; or the hard disk status pin of the hard disk can output different hard disk status signals to inform the baseboard management controller of the hard disk in-place status signal, and then the baseboard management controller outputs the hard disk in-place status indicator light control signal to control the hard disk in-place status indicator light up or off.

[0130] In order to realize the transmission of hard disk log data, the hard disk log data needs to be converted into the form of hard disk data packets.

[0131] In some optional implementations of the embodiments of the present application, the hard disk modulates the hard disk log data and the hard disk status signal corresponding to the hard disk status pin to obtain the first signal, which may include:

[0132] The hard disk generates a hard disk data packet from the hard disk log data. The hard disk data packet includes data bits and check bits.

[0133] The hard disk converts the hard disk data packet from a digital signal into an analog signal to obtain modulated hard disk log data, and modulates the modulated hard disk log data with the hard disk status signal to obtain a first signal.

[0134] Accordingly, the baseboard management controller demodulates the first signal to obtain hard disk log data, including:

[0135] The baseboard management controller identifies the modulated hard disk log data from the first signal, and converts the modulated hard disk log data from an analog signal to a digital signal to obtain a hard disk data packet;

[0136] After the baseboard management controller verifies the hard disk data packet according to the check bit in the hard disk data packet, it reads the data bit of the hard disk data packet and calls the hard disk log parsing configuration information corresponding to the hard disk to parse the data bit to obtain the hard disk log data.

[0137] The baseboard management controller checks the hard disk data packet according to the check bit in the hard disk data packet, which may include:

[0138] The baseboard management controller reads the data bits of the hard disk data packet and calculates and obtains the first verification information;

[0139] The baseboard management controller reads the check bit of the hard disk data packet to obtain second check information;

[0140] If the first verification information and the second verification information are consistent, the baseboard management controller determines that the hard disk data packet passes the verification;

[0141] If the first verification information and the second verification information are inconsistent, the baseboard management controller determines that the hard disk data packet fails the verification.

[0142] When the baseboard management controller determines that the hard disk data packet fails the verification, the hard disk data packet may be discarded, and information on the discard of the hard disk data packet may be further recorded in a local log.

[0143] To avoid information loss, it's often necessary to split drive log data into multiple packets. This means generating multiple drive data packets from one drive. To distinguish between different data packets sent from the same drive, you can set a sequence number for each data packet within the drive log data, or specify the type of drive monitoring data that each data packet carries.

[0144] In some optional implementations of the embodiments of the present application, a hard disk data packet can include nine bits of data, with the first bit being a start flag, the second bit being a data packet identifier, the third to sixth bits being data bits, and the seventh to ninth bits being check bits. The data packet identifier can be the type of hard disk monitoring data carried by the hard disk data packet or the sequence number of the hard disk data packet within a set of hard disk log data. Both the data bits and the check bits can be hexadecimal digits.

[0145] The way in which the baseboard management controller parses the hard disk data packet to obtain the hard disk log data corresponds to the way in which the hard disk generates the hard disk data packet from the hard disk log data.

[0146] For example, when the data carried by the hard disk data packet is a portion of data obtained by evenly splitting the hard disk log data, the baseboard management controller calls the hard disk log parsing configuration information corresponding to the hard disk to parse the data bits to obtain the hard disk log data, which may include: the baseboard management controller calls the data bit-text conversion protocol, parses the data bits into hard disk log text, and obtains the hard disk log data.

[0147] When the data carried by the hard disk data packet is the set hard disk monitoring data type, the baseboard management controller calls the hard disk log parsing configuration information corresponding to the hard disk to parse the data bits to obtain the hard disk log data, which may include: after the baseboard management controller identifies the hard disk monitoring data type, it calls the data conversion table corresponding to the hard disk monitoring data type to obtain the value of the hard disk monitoring data of the hard disk monitoring data type.

[0148] After converting the hard drive log data into a hard drive data packet, the hard drive modulates the data packet and the hard drive status signal into a first signal. To ensure that the original hard drive status signal expressed by the hard drive status pin is not affected, the hard drive log data is modulated according to the characteristics of the hard drive status signal. The hard drive modulates the hard drive log data and outputs it through the hard drive status pin. The demodulation module on the baseboard management controller demodulates the first signal carrying the hard drive log data to obtain the hard drive log data, enabling direct transmission of the hard drive log data from the hard drive to the baseboard management controller.

[0149] If the digital system is hexadecimal, 16 different level widths can be set, corresponding to the sixteen hexadecimal digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. For example, if a hard drive status pin outputs a square wave pulse with a width of 50 milliseconds to illuminate the hard drive status indicator, the level width can be set to 42 milliseconds to 49 milliseconds and 51 milliseconds to 58 milliseconds, with each millisecond corresponding to a hexadecimal digit. For a total of 16 level widths, corresponding to the sixteen hexadecimal digits, to distinguish the actual hard drive status signal, the level width corresponding to the hard drive log data can be set to NULL when the level width is 50 milliseconds. A level less than or equal to 41 milliseconds or greater than or equal to 59 milliseconds is considered an error signal and the hard drive data packet is discarded. The pulse width recognition error can be set to 0.25 milliseconds; for example, a measured value of 42.25 milliseconds would be counted as 42 milliseconds.

[0150] The same is true for pulse amplitude modulation of hard disk log data.

[0151] In some optional implementations of the embodiments of the present application, the first signal may be a signal obtained by converting hard disk log data into a signal having a corresponding level width and then modulating the signal corresponding to the hard disk log data and the hard disk status signal. The baseboard management controller demodulating the first signal to obtain the hard disk log data may include: the baseboard management controller measuring the level width of the first signal to obtain corresponding digital data, and parsing the digital data into the hard disk log data.

[0152] In some other optional implementations of the embodiments of the present application, the first signal may be a signal obtained by converting the hard disk log data into a signal corresponding to a pulse amplitude, and then modulating the signal corresponding to the hard disk log data and the hard disk status signal. The baseboard management controller demodulating the first signal to obtain the hard disk log data may include: the baseboard management controller measuring the pulse amplitude of the first signal to obtain corresponding digital data, and parsing the digital data into the hard disk log data.

[0153] The following describes the method of using pulse width modulation on hard disk log data.

[0154] In some optional implementations of the embodiments of the present application, the first signal may be a signal modulated by a signal having a corresponding level width of the hard disk log data and a hard disk status signal after the hard disk outputs the hard disk log data. The signal having a corresponding level width of the hard disk log data may be a signal having a corresponding high level width and / or a signal having a corresponding low level width, and the level width corresponding to the hard disk log data is different from the level width of the hard disk status signal.

[0155] The baseboard management controller demodulating the first signal to obtain the hard disk log data may include: the baseboard management controller measuring the level width of the first signal to obtain corresponding digital data, and parsing the digital data into the hard disk log data.

[0156] In some optional implementations of the embodiments of the present application, the first signal can be configured to simultaneously carry modulated hard disk log data and a hard disk status signal. That is, the hard disk modulates the hard disk log data and the hard disk status signal corresponding to the hard disk status pin to obtain the first signal. This can include: after the hard disk converts the hard disk log data into a signal of a corresponding level width, the hard disk modulates the signal corresponding to the hard disk log data with the hard disk status signal to obtain the first signal. In the embodiments of the present application, for ease of explanation, this method of obtaining the first signal by hard disk modulation is referred to as a simultaneous carrying method.

[0157] Outputting the first signal through the hard disk status pin adopts a simultaneous carrying manner to output the hard disk log data and the hard disk status data, which can not only reduce the impact on the function of the hard disk status signal that is originally output continuously, but also increase the output rate of the hard disk log data.

[0158] In other optional implementations of the present application, the first signal can also be configured to carry the modulated hard disk log data and hard disk status signal in a time-sharing manner. Specifically, the hard disk modulates the hard disk log data and the hard disk status signal corresponding to the hard disk status pin to obtain the first signal. This can also include: after the hard disk converts the hard disk log data into a signal of a corresponding level width, the first signal is inserted into the signal corresponding to the hard disk log data during an inactive signal period when the hard disk status pin does not output the hard disk status signal. For ease of explanation, this method of obtaining the first signal by hard disk modulation is referred to as a time-sharing method.

[0159] Outputting the first signal through the hard disk status pin adopts a time-sharing method to output the hard disk log data and hard disk status data, which can be applicable to the hard disk status pin that does not originally output the hard disk status signal continuously, or the hard disk status pin that does not need to output the hard disk status signal at all times. For example, if the hard disk in-place status indication pin is used as the hard disk status pin for outputting the hard disk log data, the hard disk can be set to periodically output the hard disk status signal indicating that the hard disk is in place from the hard disk status pin, and the baseboard management controller can determine whether the hard disk is in place based on the hard disk status signal most recently received. During the time period when the hard disk does not need to output the hard disk status signal through the hard disk status pin, the hard disk log data can be directly modulated to obtain the first signal without mixing it with the hard disk status signal. In this case, the baseboard management controller demodulates the first signal to obtain the hard disk log data, including:

[0160] After demodulating the first signal according to the signal type of the hard disk status signal to obtain the hard disk status data, the baseboard management controller demodulates the signal period of the first signal that does not match the signal type of the hard disk status signal to obtain the hard disk log data;

[0161] Alternatively, the baseboard management controller obtains corresponding digital data by measuring the level width of the first signal, parses the digital data into hard disk log data, and demodulates the signal period where the level width does not correspond to the digital data to obtain hard disk status data.

[0162] It is understood that, regardless of whether the simultaneous or time-sharing method is used, the hard disk controlling the hard disk status pin to output hard disk log data should not affect the original function of the hard disk status pin. Based on this principle, the embodiments of this application further illustrate the modulation and demodulation method of hard disk log data.

[0163] In the embodiment of the present application, the baseboard management controller can also be used to demodulate the first signal according to the signal type of the hard disk status data corresponding to the hard disk status signal to obtain the hard disk status data. In other words, the baseboard management controller can simultaneously identify the hard disk log data and obtain the hard disk status data, thereby assisting in realizing the original function of the hard disk status pin.

[0164] As described in the above embodiments of this application, if the hard disk status pin is used as a hard disk status indicator light control pin, and some hard disk status indicator light control pins control the lighting of the corresponding hard disk status indicator light by outputting a square wave signal, then in some optional implementations of the embodiments of this application, the level width of the first signal corresponds to the data bits in the hard disk log data, and the high and low level changes in the first signal correspond to the hard disk status signal.

[0165] In order to modulate a signal incorporating hard disk log data onto the hard disk status signal, which is originally a square wave signal, in some optional implementations of the present application, if the hard disk status signal is a square wave signal, the first signal can be a signal obtained by converting the hard disk log data into a signal of corresponding level width and then replacing the square wave signal with the signal corresponding to the hard disk log data; wherein the level width corresponding to the hard disk log data is different from the level width of the square wave signal. In other words, by replacing the hard disk status signal, which is originally a square wave signal, with a signal of corresponding level width obtained by converting the hard disk log data, the first signal is a signal with varying high and low levels, but its high level width and / or low level width corresponds to the hard disk log data, thereby achieving mixing of the hard disk log data with the hard disk status signal.

[0166] In some other optional implementations of the embodiments of the present application, if the hard disk status signal is a square wave signal, the first signal can also be a signal obtained by adjusting the level width of the corresponding period in the square wave signal according to the level width corresponding to the hard disk log data after the hard disk converts the hard disk log data into a signal of corresponding level width; wherein the level width corresponding to the hard disk log data is different from the level width of the square wave signal. The square wave signal is a rectangular wave signal with a duty cycle of 50%. In order to distinguish the square wave signal, the level width corresponding to the hard disk log data is set to not be the level width of the square wave signal according to the level width of the square wave signal (such as 50 milliseconds), thereby achieving mixing of the hard disk log data and the hard disk status signal.

[0167] In the case where the signal type of the hard disk status signal includes a square wave signal, the baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, which may include: the baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal.

[0168] In order to demodulate the hard disk control data corresponding to the original square wave signal from the first signal, the baseboard management controller demodulates the hard disk status data based on the high and low level changes in the first signal. This can include: after the baseboard management controller demodulates and obtains the hard disk log data, it replaces the first signal with a square wave signal to obtain the hard disk status signal; and demodulates the hard disk status data based on the hard disk status signal. In other words, the first signal can be directly replaced with a square wave signal by a replacement method, and the corresponding hard disk status data obtained by demodulation is the hard disk status data corresponding to the hard disk status signal being a square wave signal. For example, the hard disk read / write status indicator pin outputs a square wave signal to indicate the hard disk control data for lighting the hard disk read / write status indicator.

[0169] In other optional implementations of the embodiments of the present application, the baseboard management controller demodulates the hard disk status data based on the high and low level changes in the first signal, and can also include: after demodulating the hard disk log data, the baseboard management controller adjusts the pulse width of each cycle of the first signal according to the pulse width of the corresponding square wave signal to obtain the hard disk status signal; and demodulates the hard disk status data according to the hard disk status signal. In other words, the pulse width adjustment method can be used to obtain the pulse width corresponding to 50% of the cycle length of the square wave signal output by the pre-stored hard disk status pin, so that after identifying the hard disk log data, the pulse width of each signal cycle of the first signal is adjusted back to the pulse width corresponding to the original square wave signal, thereby restoring the hard disk status signal, and demodulating the corresponding hard disk status data to obtain the hard disk status data corresponding to the hard disk status signal when the hard disk status signal is a square wave signal, for example, the hard disk read / write status indicator pin outputs a square wave signal to indicate hard disk control data for lighting the hard disk status indicator.

[0170] For a hard disk status signal that is a constant level signal, for example, some hard disk status indicator light control pins control the hard disk status indicator light to turn off when outputting a constant level signal. In other optional implementations of the embodiments of the present application, the level width of the first signal corresponds to the data bits in the hard disk log data, and the constant level signal with a larger proportion in the first signal corresponds to the hard disk status signal.

[0171] In order to modulate a signal incorporating hard disk log data onto a hard disk status signal that is originally a constant-level signal, in some optional embodiments of the present application, the hard disk status signal is a constant-level signal, and the first signal is a signal obtained by replacing the constant-level signal of a corresponding duration with the signal corresponding to the hard disk log data after the hard disk converts the hard disk log data into a signal of a corresponding level width; wherein the proportion of the inverted-level signal of the constant-level signal in each signal cycle of the first signal is less than 50%. Because modulating the hard disk status signal, which is originally a constant-level signal, into the first signal significantly affects the expression of the original constant-level signal, it is necessary to set modulation constraints for the case where the hard disk status signal is a constant-level signal. Without considering using a constant-level signal to control the hard disk status indicator and without considering including other types of hard disk status signals, it is necessary to set a signal obtained by replacing the constant-level signal with the signal corresponding to the hard disk log data, such that the proportion of the inverted-level signal of the hard disk status signal in each signal cycle of the first signal is less than 50%.

[0172] In some other optional implementations of the embodiments of the present application, 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 of corresponding level width and generating an inverted signal of the constant level signal according to the signal corresponding to the hard disk log data, and then inserting the inverted signal into the constant level signal; wherein, the proportion of the inverted level signal of the constant level signal in each signal cycle of the first signal is less than 50%. Similarly, if a solution is adopted in which the hard disk log data is modulated into the constant level signal of the hard disk status signal, it is necessary to set the proportion of the inverted level inserted when modulating the hard disk log data into the constant level signal of the hard disk status signal in each signal cycle of the first signal to be less than 50%.

[0173] To demodulate the hard disk control data corresponding to the original constant-level signal from the first signal, the baseboard management controller may demodulate the hard disk status data from the signal period of the demodulated hard disk log data based on the signal type of the hard disk status signal. This may include: the baseboard management controller demodulating the hard disk status data based on the constant-level signal that accounts for a relatively large proportion of the signal period of the first signal. In other words, by setting modulation constraints when modulating the hard disk log data into the hard disk status signal in the form of a constant-level signal, the baseboard management controller can identify the constant-level signal based on the proportion of high and low levels in the first signal.

[0174] In some optional implementations of the embodiments of the present application, the baseboard management controller demodulates the hard disk status data based on the constant-level signal that accounts for a relatively large proportion in the signal cycle of the first signal, which may include: after the baseboard management controller demodulates and obtains the hard disk log data, it replaces the first signal with the constant-level signal that accounts for a relatively large proportion in the signal cycle of the first signal to obtain the hard disk status signal; and demodulates and obtains the hard disk status data based on the hard disk status signal. That is, the entire signal cycle can be replaced to replace each signal cycle of the first signal with a constant-level signal corresponding to a relatively large level, and the corresponding hard disk status data obtained by demodulation is the hard disk status data corresponding to the hard disk status signal when the hard disk status signal is the constant-level signal. For example, the hard disk in-position status indicator pin outputs a constant high-level signal to indicate that the hard disk is in position, and the hard disk in-position status indicator pin receives a constant low-level signal when the hard disk in-position status indicator pin does not output a constant high-level signal to indicate that the hard disk is not in position.

[0175] Alternatively, the baseboard management controller demodulates the hard disk status data based on the constant-level signal that accounts for a relatively large proportion in the signal cycle of the first signal, which may include: after the baseboard management controller demodulates and obtains the hard disk log data, replacing the inverted signal corresponding to the constant-level signal that accounts for a relatively large proportion in the signal cycle of the first signal with the constant-level signal that accounts for a relatively large proportion in the signal cycle of the first signal, to obtain the hard disk status signal; and demodulating the hard disk status data based on the hard disk status signal. In other words, it is also possible to adopt a method of replacing only the inverted-level signal, filling the inverted level modulated and added in each signal cycle of the first signal with the hard disk status signal in the original constant-level signal form, and demodulating to obtain the corresponding hard disk status data is the hard disk status data corresponding to the hard disk status signal when the hard disk status signal is the constant-level signal.

[0176] In some implementations of the present application, if the hard disk status signal only includes a constant level signal, different modulation constraints need to be set to distinguish between constant high-level signals and constant low-level signals. If the hard disk status signal only includes one constant level signal, or if the hard disk status signal includes both a constant high-level signal and a constant low-level signal, then the first signal is the signal obtained by modulating the hard disk log data into a signal corresponding to the level width, based on the signal corresponding to the hard disk log data and the hard disk status signal. If the hard disk status signal is a constant high-level signal, then the duty cycle of each cycle of the signal corresponding to the hard disk log data is greater than 50%; if the hard disk status signal is a constant low-level signal, then the duty cycle of each cycle of the signal corresponding to the hard disk log data is less than 50%. In other words, if the duty cycle is used as a modulation constraint, it is distinguished whether the hard disk status signal is a constant high-level signal or a constant low-level signal to modulate the hard disk log data.

[0177] If the baseboard management controller is also used to identify and obtain hard disk status data from the first signal, then when the signal type of the hard disk status signal only includes a constant level signal, or the signal type of the hard disk status data includes a constant high level signal and a constant low level signal, the baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, which may include: the first signal is a signal obtained by modulating the hard disk according to the signal corresponding to the hard disk log data and the hard disk status signal after the hard disk converts the hard disk log data into a signal of corresponding level width; when the hard disk status signal is a square wave signal, the maximum duty cycle in the signal period of the hard disk log data is less than the first duty cycle and / or the minimum duty cycle in the signal period of the hard disk log data is greater than the second duty cycle; if the constant level signal is a constant high level signal, the first duty cycle is the minimum duty cycle in the first signal corresponding to the constant level signal; if the constant level signal is a constant low level signal, the second duty cycle is the maximum duty cycle in the first signal corresponding to the constant level signal.

[0178] In some other implementations of the embodiments of the present application, if the hard disk status signal includes a square wave signal and a constant level signal, the first signal is a signal obtained by modulating the hard disk log data into a signal of corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal; to distinguish between square wave signals and constant level signals, when the hard disk status signal is a square wave signal, the maximum duty cycle of the first signal is less than the first duty cycle and / or the minimum duty cycle of the first signal is greater than the second duty cycle; if the constant level signal is a constant high level signal, the first duty cycle is the minimum duty cycle in the first signal corresponding to the constant level signal; if the constant level signal is a constant low level signal, the second duty cycle is the maximum duty cycle in the first signal corresponding to the constant level signal. That is to say, in order to distinguish between square wave signals and constant level signals to identify different types of hard disk status signals and demodulate to obtain different hard disk status data, by setting the duty cycle interval, after the hard disk log data is modulated into the hard disk status signal in the form of a square wave signal, the duty cycle is in a completely different interval from that of the hard disk status signal when the hard disk log data is modulated into the form of a constant level signal, so that the baseboard management controller can identify the hard disk status signal in the form of a square wave signal and the hard disk status signal in the form of a constant level signal while identifying the hard disk log data.

[0179] If the baseboard management controller is further configured to identify and obtain hard disk status data from the first signal, then if the signal type of the hard disk status signal includes a square wave signal and a constant level signal, the baseboard management controller demodulates the hard disk status data from a signal period of the hard disk log data demodulated according to the signal type of the hard disk status signal, including:

[0180] If the constant-level signal is a constant high-level signal, the baseboard management controller, after demodulating and obtaining the hard disk log data, restores a signal period in the first signal having a duty cycle less than the first duty cycle into a square wave signal, and restores a signal period in the first signal having a duty cycle greater than the first duty cycle into a constant high-level signal, thereby obtaining a hard disk status signal;

[0181] If the constant-level signal is a constant low-level signal, the baseboard management controller, after demodulating and obtaining the hard disk log data, restores the signal period of the first signal having a duty cycle greater than the second duty cycle into a square wave signal, and restores the signal period of the first signal having a duty cycle less than the second duty cycle into a constant low-level signal, thereby obtaining the hard disk status signal;

[0182] If the constant-level signal includes a constant high-level signal and a constant low-level signal, then after demodulating and obtaining the hard disk log data, the baseboard management controller restores a signal period in the first signal whose duty cycle is less than the first duty cycle and greater than the second duty cycle into a square wave signal, restores a signal period in the first signal whose duty cycle is greater than the first duty cycle into a constant high-level signal, and restores a signal period in the first signal whose duty cycle is less than the second duty cycle into a constant low-level signal, thereby obtaining a hard disk status signal;

[0183] The hard disk status data is obtained by demodulating the hard disk status signal.

[0184] That is to say, if the baseboard management controller pre-configures the hard disk status pin of the connected hard disk to output two different hard disk status signals, a square wave signal and a constant level signal, the baseboard management controller can identify whether the hard disk status signal is a square wave signal or a constant level signal based on the duty cycle range in the first signal.

[0185] If the hard disk status pin used to output the hard disk status signal is used to control the state of the controlled component, then in some optional implementations of the embodiments of the present application, the hard disk status pin can be directly connected to control the controlled component. The hard disk modulates the hard disk log data and the hard disk status signal to obtain a first signal, including: the hard disk determines the deviation range of the first signal compared to the hard disk status signal according to the control signal range corresponding to the working status signal of the controlled component corresponding to the hard disk status pin, and modulates the hard disk log data and the hard disk status signal according to the deviation range to obtain the first signal. For example, the hard disk status indicator light control pin is connected to the hard disk status indicator light through an amplifying drive circuit, and the deviation range of the first signal compared to the hard disk status signal is set according to the duty cycle range of controlling the hard disk status indicator light to light up and flash so that it is not recognized by the human eye.

[0186] In some other optional implementations of the embodiments of the present application, in order to overcome the problem of being limited by the implementation of the original function of the hard disk status pin when modulating the first signal, the hard disk status pin and its corresponding controlled element may not be directly connected, that is, the hard disk status pin is only directly connected to the baseboard management controller, and the hard disk monitoring system provided by the embodiments of the present application may also include a status control circuit corresponding to the hard disk status pin, the controlled end of the status control circuit is connected to the baseboard management controller, and the output end of the status control circuit is connected to the driving end of the controlled element corresponding to the hard disk status pin; the baseboard management controller is also used to control the status control circuit to drive the controlled element according to the hard disk status data.

[0187] If the hard disk status pin is a hard disk status indicator light control pin, the status control circuit is an amplifying drive circuit;

[0188] The baseboard management controller controls the status control circuit to drive the controlled components according to the hard disk status data, including:

[0189] When the baseboard management controller demodulates the first signal and obtains the hard disk status data as a light-on command, it controls the amplifying driving circuit to generate a square wave signal to light up the hard disk status indicator light corresponding to the hard disk status pin; when the baseboard management controller demodulates the first signal and obtains the hard disk status data as a light-off command, it stops controlling the amplifying driving circuit to generate a square wave signal to turn off the hard disk status indicator light.

[0190] That is to say, after the baseboard management controller demodulates the first signal to obtain the hard disk status data, it regenerates the control signal for the hard disk status indicator light corresponding to the hard disk status pin, reducing the limitation of the first signal modulation. When modulating the first signal, it is only necessary to consider enabling the baseboard management controller to recognize the hard disk status data, without considering that the control effect will be deteriorated when the controlled component is directly controlled by the first signal.

[0191] Using the hard disk monitoring system provided in the embodiment of the present application, the hard disk log data can include a complete hard disk log, that is, a log formed by the hard disk controller of the hard disk recording its own operating status data (temperature, number of bad sectors, cumulative number of errors, etc.) on time; the hard disk log data can also be partial hard disk monitoring data, that is, the hard disk controller of the hard disk can output part of the pre-agreed or baseboard management controller specified type of hard disk monitoring data through the hard disk status pin.

[0192] It can be understood that the rate at which the hard disk outputs hard disk log data through the hard disk status pin is different depending on the type of hard disk status pin selected, the way in which the hard disk status pin outputs the hard disk status signal, and the modulation method when the hard disk status pin is used to output hard disk log data. To ensure the real-time nature of the hard disk log data, the type, data volume, and output frequency of the output hard disk log data can be determined based on the rate at which the hard disk affected by the implementation scheme outputs hard disk log data through the hard disk status pin. For example, the hard disk can be set to output complete hard disk log data once every fixed period, and when a certain hard disk monitoring data is abnormal, the abnormal monitoring data will be sent outside the fixed sending period.

[0193] FIG6 is a schematic structural diagram of a fourth hard disk monitoring system provided in an embodiment of the present application.

[0194] Since out-of-band monitoring of more hard disks is achieved, in order to solve the problem of data transmission of a large amount of hard disk log data, in the hard disk monitoring system provided in the embodiment of the present application, a hard disk log storage area is pre-deployed and divided into multiple storage partitions, and the different orders of the storage partitions are configured as the reading and writing order of the hard disk log data, thereby realizing an asynchronous reading and writing hard disk log data transmission architecture.

[0195] As shown in FIG6 , in the hard disk monitoring system provided by the embodiment of the present application, space can be divided in the local storage space of the baseboard management controller as a hard disk log storage area, and the hard disk log storage area can be divided into multiple storage partitions, and there is a sequential relationship between these storage partitions. The forward arrangement order of the storage area is configured as the read data order, and the reverse arrangement order of the storage partition is configured as the write data order, so that the readers and writers of the hard disk log data can perform the reading and writing of the hard disk log data in different orders, so that the writing of the hard disk log data only needs to be based on one address pointer, and the reading also only needs to be based on one address pointer row, thereby making full use of the storage space of the baseboard management controller to store the hard disk log data, so that more hard disk log data can be received.

[0196] In an embodiment of the present application, a baseboard management controller can be connected to multiple hard disks (hard disk 1...hard disk n) to directly obtain the hard disk log data of these hard disks. Corresponding demodulation modules (demodulation module 1...demodulation module n) can be set in the baseboard management controller to demodulate the first signal output by the corresponding hard disk. It should be noted that the demodulation module may not have a one-to-one correspondence with the hard disk. For example, when a pin of the baseboard management controller is connected to multiple hard disks and the hard disk log data of each hard disk is read in a time-sharing multiplexing manner, the demodulation module only needs to have a one-to-one correspondence with the pin of the baseboard management controller.

[0197] In an embodiment of the present application, if the baseboard management controller includes a baseboard management controller component 101, the GPIO pin of the baseboard management controller component 101 is connected to the hard disk status pin of the hard disk, a demodulation module is deployed in the baseboard management controller component 101, a hard disk log storage area is deployed in the local storage space of the baseboard management controller component 101, and the analysis module for analyzing hard disk log data of the baseboard management controller component 101 is configured to read the hard disk log data from the hard disk log storage area.

[0198] If the baseboard management controller includes a system of a baseboard management controller component 101 and a complex programmable logic device 102, the complex programmable logic device 102 may refer to a complex programmable logic device 102 provided on the hard disk backplane or a complex programmable logic device 102 provided on the mainboard, and the I / O pin of the complex programmable logic device 102 is connected to the hard disk status pin of the hard disk, then a demodulation module may be deployed in the complex programmable logic device 102, and a hard disk log storage area may be deployed in the local storage space of the complex programmable logic device 102, and the analysis module for analyzing the hard disk log data of the baseboard management controller component 101 may be configured to read the hard disk log data from the complex programmable logic device 102, and the complex programmable logic device 102 may be used to provide the hard disk log data to the baseboard management controller component 101 in the order in which the data is read.

[0199] In out-of-band monitoring, the baseboard management controller provides network services for operation and maintenance equipment to access the baseboard management controller of the monitored device to obtain hard disk log data, and provides a web page to display the monitoring page. In the embodiment provided by the present application, after obtaining the hard disk log data provided by the hard disk, the baseboard management controller can read the monitoring data items from the hard disk log data according to the pre-deployed monitoring list, and monitor the specific monitoring data items according to the value of each monitoring data item and its corresponding allowable range in the monitoring list. The monitoring data items may include temperature, number of bad sectors, cumulative number of errors, etc. When there are monitoring data items that exceed the allowable range, the operation and maintenance commands recorded in the monitoring list are executed, such as generating a fault log, sending an alarm message to the system administrator, controlling the fan to cool the hard disk, etc.

[0200] The baseboard management controller can also integrate sensors on the hard drive backplane to collect external hard drive status information, thereby enabling comprehensive analysis of the hard drive's operating status in conjunction with the hard drive's log data. For example, if the baseboard management controller detects an abnormal hard drive temperature using an external temperature sensor, it can verify the normal operation of the hard drive's temperature self-test function by combining temperature monitoring items in the hard drive log data at that time. It can also diagnose the cause of the abnormal hard drive temperature by combining other monitoring data items in the hard drive log data at that time.

[0201] After the baseboard management controller completes the analysis of the hard disk log data, it can also be used to display the obtained hard disk monitoring results in the form of charts on the baseboard management controller web page. Operation and maintenance personnel can intuitively view the hard disk monitoring results by logging into the baseboard management controller web page.

[0202] Based on the above embodiment, the embodiment of the present application further provides a baseboard management controller for hard disk monitoring;

[0203] The baseboard management controller is used to divide the hard disk log storage area in the local storage space, and divide the hard disk log storage area into multiple storage partitions; determine the arrangement order of each storage partition, and configure the forward arrangement order of the storage partitions as the read data order, and the reverse arrangement order of the storage partitions as the write data order; demodulate the first signal output by the hard disk status pin of the hard disk to obtain hard disk log data, and write the hard disk log data into the hard disk log storage area in the write data order, so as to perform monitoring of the hard disk according to the hard disk log data after reading the hard disk log data from the hard disk log storage area according to the read data order;

[0204] The first signal is a signal modulated according to the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.

[0205] The implementation of the baseboard management controller provided in the embodiment of the present application can refer to the introduction in the above-mentioned hard disk monitoring system embodiment, and the same or similar implementation can be adopted, with the same or similar effects, which will not be repeated here.

[0206] Please refer to the architecture provided in any of the above embodiments and describe the hard disk monitoring method provided in the embodiment of this application in conjunction with the accompanying drawings. It should be noted that the hard disk monitoring method provided in the embodiment of this application can also be combined with any of the above hard disk monitoring systems or baseboard management controller embodiments.

[0207] FIG7 is a flowchart of a first hard disk monitoring method provided in an embodiment of the present application.

[0208] As shown in FIG7 , the hard disk monitoring method provided by the embodiment of the present application, applied to a baseboard management controller, includes:

[0209] S701: Divide a hard disk log storage area in a local storage space, and divide the hard disk log storage area into multiple storage partitions.

[0210] S702: Determine the arrangement order of each storage partition, and configure the forward arrangement order of the storage partitions as the data reading order, and the reverse arrangement order of the storage partitions as the data writing order.

[0211] S703: Receive a first signal output by a hard disk status pin of the hard disk, which is modulated according to the hard disk log data and a hard disk status signal corresponding to the hard disk status pin.

[0212] S704: Demodulate the first signal to obtain hard disk log data.

[0213] S705: Writing the hard disk log data into the hard disk log storage area in a data writing order, so as to monitor the hard disk according to the hard disk log data after reading the hard disk log data from the hard disk log storage area in a data reading order.

[0214] In a specific implementation, for S701, considering the resources required for other functions of the baseboard management controller, a hard disk log storage area is divided in the available space of the local storage space, and the hard disk log storage area is divided into multiple storage partitions, each storage partition corresponding to a continuous address.

[0215] As described in the above embodiments of the present application, the hard disk converts the hard disk log data into a hard disk data packet and modulates the output, so the size of the storage partition can be the size of the hard disk data packet.

[0216] In order to distinguish hard disk data packets from different hard disks, the storage partition is also used to store the hard disk identification of the hard disk corresponding to the hard disk data packet. In some optional implementations of the embodiments of the present application, the baseboard management controller writes the hard disk log data to the hard disk log storage area, which may include determining the hard disk identification corresponding to the hard disk log data based on the hard disk status pin corresponding to the hard disk log data when writing the hard disk log data to the hard disk log storage area in the order of the time the hard disk log data is received; and writing the hard disk identification and the hard disk log data to the storage partition of the hard disk log storage area. The size of the storage partition is then set to the size of the hard disk data packet plus the size of the hard disk identification.

[0217] In some optional implementations of the embodiments of the present application, the hard disk may also write the hard disk identifier into each hard disk data packet. In this case, the size of the storage partition may be the size of the hard disk data packet.

[0218] For S702, to achieve asynchronous reading and writing of the hard disk log storage area, the storage partitions are arranged in a certain order, and the reading and writing are set to be performed in the reverse order. To facilitate address calculation, the storage partitions can be arranged in the order of address size. The forward arrangement order of the storage partitions and the reverse arrangement order of the storage partitions are only used to distinguish two different orders, that is, as shown in Figure 6, when any one arrangement order is a specific arrangement order of the storage partitions (such as the order of addresses from small to large), the other arrangement order can be the opposite of it.

[0219] For S703 and S704, the pin of the baseboard management controller receives the first signal output by the hard disk status pin of the hard disk. The first signal is a signal obtained by the hard disk modulating the hard disk log data and the hard disk status signal corresponding to the hard disk status pin. The modulation method and demodulation method of the first signal can refer to the introduction of the above embodiments of this application.

[0220] For S705, in the case of receiving hard disk log data sent by multiple hard disks, the demodulated hard disk data packets are placed in a queue in the order of reception time, and written into the hard disk log storage area in the order of the queue. When writing into the hard disk log storage area, it is written in the configured write data order.

[0221] The hard disk log data can be read from the hard disk log storage area by the baseboard management controller component 101 of the baseboard management controller to read the locally stored hard disk log data, or when the baseboard management controller component 101 polls the complex programmable logic device 102, the complex programmable logic device 102 reads the local hard disk log data and feeds it back to the baseboard management controller component 101.

[0222] In some implementations of the embodiments of the present application, the above hard disk monitoring method can be applied to the complex programmable logic device 102 in the baseboard management controller, and the complex programmable logic device 102 is connected to the baseboard management controller component 101 in the baseboard management controller through an integrated circuit bus.

[0223] Then, in S705, after reading the hard disk log data from the hard disk log storage area according to the data reading order, monitoring the hard disk according to the hard disk log data may include:

[0224] An interrupt signal is sent to the baseboard management controller component 101, so that the baseboard management controller component 101 accesses the hard disk log storage area through the integrated circuit bus after receiving the interrupt signal and reads the hard disk log data according to the read data sequence, and performs monitoring of the hard disk according to the hard disk log data.

[0225] In actual applications, a baseboard management controller architecture comprising a baseboard management controller component 101 and a complex programmable logic device 102 is used. When the baseboard management controller component 101 reads hard disk log data from the complex programmable logic device 102, it does not need to know the specific read address of the hard disk log data. Instead, the complex programmable logic device 102 calculates the current data starting point address and then retrieves the hard disk log data in the order in which the data is read and provides it to the baseboard management controller component 101. This method of synchronous interaction between the baseboard management controller component 101 and the complex programmable logic device 102, i.e., the complex programmable logic device 102 triggers an interrupt to notify the baseboard management controller component 101 to read the hard disk log data, reduces the number of polling times required by the baseboard management controller component 101 compared to the method in which the baseboard management controller component 101 polls the integrated circuit bus to read the hard disk log data, thereby conserving the resources of the baseboard management controller component 101.

[0226] The CPLD 102 may send an interrupt signal to the BMC 101, which may include sending an interrupt signal to the BMC 101 when the capacity of the hard disk log storage area meets the interrupt trigger condition. By setting the interrupt signal trigger condition, the frequency at which the BMC 101 reads hard disk log data can be adjusted to ensure the rational use of BMC 101 resources.

[0227] The interrupt trigger condition can be that the amount of data written to the hard disk log storage area is greater than or equal to a preset ratio of the total capacity of the hard disk log storage area. For example, when the complex programmable logic device 102 detects that the amount of data written to the local hard disk log storage area has reached 90% of the total capacity of the hard disk log storage area, it can generate an interrupt signal to notify the baseboard management controller component 101 to read the hard disk log data.

[0228] Alternatively, the interrupt trigger condition may also be that the capacity of the free space in the hard disk log storage area is less than or equal to the preset storage capacity. For example, when the complex programmable logic device 102 detects that the free space in the local hard disk log storage area is less than the preset storage capacity, the preset storage capacity may be 10% of the total capacity of the hard disk log storage area, then the complex programmable logic device 102 generates an interrupt signal to notify the baseboard management controller component 101 to read the hard disk log data.

[0229] In other implementations of the embodiments of the present application, to conserve interrupt resources, after reading the hard disk log data from the hard disk log storage area according to the read data order, monitoring the hard disk according to the hard disk log data in S705 may also include: accepting polling from the baseboard management controller component 101, so that when the baseboard management controller component 101 polls the complex programmable logic device 102, it reads the hard disk log data according to the read data order, and monitors the hard disk according to the hard disk log data. In other words, by using the baseboard management controller component 101 to poll the integrated circuit bus to obtain the hard disk log data of the complex programmable logic device 102 connected to the integrated circuit bus, it is possible to avoid occupying interrupt resources between the baseboard management controller component 101 and the complex programmable logic device 102.

[0230] Based on the above embodiment, in the embodiment of the present application, if the hard disk monitoring method is applied to a complex programmable logic device 102, it is necessary to configure storage space and a read-write control state machine in the complex programmable logic device 102 to implement the hard disk log storage area. Specifically, the configuration of the storage space and the read-write control state machine can be implemented as follows:

[0231] Determine the buffer size: On the premise of completing other functions of the complex programmable logic device 102, fully utilize the remaining resources to create registers and form storage space;

[0232] Read and write pointers: Depending on the size of the buffer, use registers to implement two counters of sufficient bit count as pointers, one for write operations (write pointer) and the other for read operations (read pointer). These pointers point to the current read and write positions in the buffer;

[0233] State machine design: Design a read / write control state machine to control data read and write operations. The read / write control state machine needs to handle at least the following states: writing data, reading data, checking for buffer empty, checking for buffer full, etc.

[0234] Loop logic: Implement the pointer's loop logic. When the write pointer or read pointer reaches the end of the buffer, it needs to wrap back to the start address of the hard disk log storage area.

[0235] The read-write control state machine can also be used to detect whether the hard disk log storage area is empty or full. Logic can be used to detect whether the hard disk log storage area is empty or full. For example, the condition that the hard disk log storage area is full can be configured to be that the write pointer leads the read pointer by one circle, and the condition that the hard disk log storage area is empty is that the read and write pointers are equal.

[0236] In S701, the hard disk log storage area is divided in the local storage space, and the hard disk log storage area is divided into multiple storage partitions, which may include:

[0237] The registers of the complex programmable logic device 102 are configured as a hard disk log storage area, and the hard disk log storage area is divided into multiple storage partitions.

[0238] Determining the arrangement order of each storage partition in S702 and configuring the forward arrangement order of the storage partitions as the read data order and the reverse arrangement order of the storage partitions as the write data order may include:

[0239] After determining the arrangement order of each storage partition, configure address information for the register according to the arrangement order of the storage partition, and determine that the forward arrangement order of the storage partition is the read data order, and the reverse arrangement order of the storage partition is the write data order;

[0240] The read / write control state machine is configured according to the register configuration information, the read data sequence, and the write data sequence.

[0241] The logic blocks in the complex programmable logic device 102 include programmable registers. After power-on, the complex programmable logic device 102 reads the firmware to implement register configuration. That is, the configuration information of the hard disk log storage area required by the embodiment of the present application can be written into the firmware of the complex programmable logic device 102, so that the complex programmable logic device 102 completes the configuration of the hard disk log storage area after power-on.

[0242] In addition to registers, some models of complex programmable logic devices 102 also have on-chip random access memory, which can also be used to configure the hard disk log storage area. In S701, the hard disk log storage area is divided in the local storage space and divided into multiple storage partitions, which can also include:

[0243] Divide a hard disk log storage area in the on-chip random access memory of the complex programmable logic device 102, and divide the hard disk log storage area into multiple storage partitions, and determine address information of each storage partition according to address information of the on-chip random access memory;

[0244] S702 determines the arrangement order of each storage partition, and configures the forward arrangement order of the storage partitions as the read data order and the reverse arrangement order of the storage partitions as the write data order, and may further include:

[0245] After determining the arrangement order of each storage partition, determine that the forward arrangement order of the storage partition is the data reading order, and the reverse arrangement order of the storage partition is the data writing order;

[0246] The read / write control state machine is configured according to the address information, read data sequence, and write data sequence of the storage partition.

[0247] It should be noted that if the complex programmable logic device 102 has an on-chip random access memory, the storage resources of the register and the on-chip random access memory can be used simultaneously when configuring the hard disk log storage area.

[0248] In some optional implementations of the embodiments of the present application, configuring the forward arrangement order of the storage partitions as a read data order and the reverse arrangement order of the storage partitions as a write data order in S702 may include:

[0249] Select the starting address of a storage partition from the hard disk log storage area as the free starting address, and write data in the reverse order of the storage partitions from the free starting address;

[0250] A starting address of a storage partition is selected from the hard disk log storage area as the data starting address, and the forward arrangement order of the storage partitions from the data starting address is used as the data reading order.

[0251] Writing the hard disk log data into the hard disk log storage area in the order of writing data in S705 may include:

[0252] The hard disk log data is written in the order of writing data starting from the idle starting address, and then the idle starting address is updated to the address where the hard disk log data is last written.

[0253] Based on the hard disk log storage area in the complex programmable logic device 102 configured above, writing the hard disk log data into the hard disk log storage area can include: obtaining the current idle starting address, and writing the hard disk log data from the idle starting address; after writing the hard disk log data, updating the idle starting address according to the order of writing data.

[0254] Monitoring the hard disk according to the hard disk log data may include: obtaining the current data starting address and reading the hard disk log data from the data starting address; after the hard disk log data is read, updating the data starting address according to the data reading order.

[0255] When the hard disk log storage area is initialized, the starting address of a storage partition can be randomly configured as the current free starting address, and the starting address of a storage partition can be randomly configured as the current data starting address. An optional implementation method is to select the starting address of a storage partition from the hard disk log storage area as the data starting address, including: using the initial free starting address as the data starting address.

[0256] Based on this, if the order of storage partitions is the order of address size of storage partitions;

[0257] The hard disk monitoring method provided in the embodiment of the present application may further include:

[0258] If the current idle starting address and the current data starting address satisfy (n+1)%N=m, it is determined that the hard disk log storage area is full;

[0259] Where n is the current idle starting address, N is the total number of storage partitions, m is the current data starting address, and % is the modulo operator.

[0260] Based on the above embodiment, if the hard disk monitoring method provided in the embodiment of the present application is applied to the baseboard management controller component 101 of the baseboard management controller, the demodulation module and the hard disk log storage area are deployed in the baseboard management controller component 101. Writing the hard disk log data into the hard disk log storage area in S705 may include:

[0261] Call the first thread to write the hard disk log data into the hard disk log storage area.

[0262] In S705, after the hard disk log data is read from the hard disk log storage area according to the data reading order, monitoring the hard disk according to the hard disk log data may include:

[0263] The second thread is called to read the hard disk log data from the hard disk log storage area to perform monitoring of the hard disk according to the hard disk log data.

[0264] When applied to the baseboard management controller component 101 , that is, when the pins of the baseboard management controller component 101 are directly connected to the hard disk status pins of the hard disk, two threads on the baseboard management controller component 101 can be used to execute reading and writing of hard disk log data.

[0265] Since the baseboard management controller component 101 has more resources than the complex programmable logic device 102, in the embodiment of the present application, the baseboard management controller, especially the baseboard management controller component 101, can be used to deploy an extended buffer. The hard disk monitoring method provided in the embodiment of the present application can also include:

[0266] Divide the expansion buffer in the local storage space;

[0267] Writing the hard disk log data into the hard disk log storage area in S705 may include:

[0268] If the hard disk log storage area is not full, the hard disk log data is written to the hard disk log storage area according to the data writing order;

[0269] If the hard disk log storage area is full, the hard disk log data will be written to the extended buffer.

[0270] In practical applications, the extended buffer can be configured in the same manner as the hard disk log storage area. The size of the extended buffer can be determined based on at least one of the number of hard disks connected to the baseboard management controller, the amount of hard disk log data, and the workload of the baseboard management controller.

[0271] FIG8 is a flowchart of a second hard disk monitoring method provided in an embodiment of the present application.

[0272] Based on the above embodiments, the present invention also provides a hard disk monitoring method. As shown in FIG8 , the baseboard management controller is divided into a demodulation module, a storage module, and an analysis module according to its functions. The hard disk monitoring method provided by the present invention may include:

[0273] S801: Storage module initialization: The storage module completes the deployment of the local hard disk log storage area according to the configuration information of the hard disk log storage area. The configuration method of the hard disk log storage area can refer to the description of the above embodiment of this application.

[0274] S802: When the demodulation module receives the first signal sent by the hard disk status pin of the hard disk, it demodulates and extracts the hard disk log data therein.

[0275] S803: The demodulation module sends the hard disk log data to the storage module.

[0276] S804: The storage module checks the hard disk log storage area, obtains the current free starting address, writes the hard disk log data into the hard disk log storage area starting from the free starting address in the order of writing data, and then moves the free starting address backward along the order of writing data.

[0277] S805: When the storage module receives the read request sent by the analysis module, it proceeds to S806.

[0278] S806: The storage module obtains the current data starting point address, reads the hard disk log data in the data reading sequence and sends it to the analysis module, and then moves the data starting point address backward along the data reading sequence.

[0279] The specific implementation of the embodiments of the present application can refer to the description of the above embodiments and will not be repeated here.

[0280] Based on the above embodiment, the embodiment of the present application further provides a hard disk monitoring method, which is applied to a hard disk, including:

[0281] Modulating the hard disk log data with the hard disk status signal corresponding to the hard disk status pin to obtain a first signal;

[0282] Sending the first signal to the baseboard management controller through the hard disk status pin, so that the baseboard management controller demodulates the first signal to obtain hard disk log data and writes the hard disk log data into the hard disk log storage area in the local storage space, thereby realizing monitoring of the hard disk according to the hard disk log data;

[0283] Among them, the hard disk log storage area is a circular buffer.

[0284] The specific implementation of the embodiments of the present application can refer to the description of the above embodiments and will not be repeated here.

[0285] It should be noted that in the embodiments of the hard disk monitoring method of this application, some of the steps or features may be ignored or not executed. The hardware or software functional modules divided for the convenience of description are not the only implementation form of the hard disk monitoring method provided in the embodiments of this application.

[0286] The above details various embodiments of the hard disk monitoring method, baseboard management controller, and hard disk monitoring method. On this basis, the present application also discloses a hard disk monitoring device, equipment, and storage medium corresponding to the above method.

[0287] FIG9 is a schematic structural diagram of a hard disk monitoring device provided in an embodiment of the present application.

[0288] As shown in FIG9 , the hard disk monitoring device provided by the embodiment of the present application, applied to a baseboard management controller, includes:

[0289] Configuration unit 901 is used to divide the hard disk log storage area in the local storage space and divide the hard disk log storage area into multiple storage partitions; determine the arrangement order of each storage partition, and configure the forward arrangement order of the storage partitions to be the reading order and the reverse arrangement order of the storage partitions to be the writing order;

[0290] A receiving unit 902 is configured to receive a first signal outputted by a hard disk status pin of a hard disk, which is modulated based on hard disk log data and a hard disk status signal corresponding to the hard disk status pin;

[0291] A demodulation unit 903, configured to demodulate the first signal to obtain hard disk log data;

[0292] The writing unit 904 is used to write the hard disk log data into the hard disk log storage area in the writing data order, so as to monitor the hard disk according to the hard disk log data after reading the hard disk log data from the hard disk log storage area according to the reading data order.

[0293] In some optional implementations of the embodiments of the present application, the write unit 904 can also be used to determine that the hard disk log storage area is full if the current free starting address and the current data starting address satisfy (n+1)%N=m; where n is the current free starting address, N is the total number of storage partitions, m is the current data starting address, and % is the modulo operator.

[0294] In some optional implementations of the embodiments of the present application, the configuration unit 901 can also be used to divide the extended buffer in the local storage space; the write unit 904 is specifically used to write the hard disk log data to the hard disk log storage area according to the write data order if the hard disk log storage area is not full; if the hard disk log storage area is full, the hard disk log data is written to the extended buffer.

[0295] Based on the above embodiments, the present invention also provides a hard disk monitoring device. Applied to a hard disk, the hard disk monitoring device provided in the present invention includes:

[0296] a modulation unit, configured to modulate the hard disk log data and the hard disk status signal corresponding to the hard disk status pin to obtain a first signal;

[0297] an output unit, configured to transmit the first signal to the baseboard management controller via the hard disk status pin, so that the baseboard management controller demodulates the first signal to obtain hard disk log data and writes the hard disk log data into a hard disk log storage area in the local storage space, thereby enabling monitoring of the hard disk based on the hard disk log data;

[0298] Among them, the hard disk log storage area is a circular buffer.

[0299] It should be noted that in each embodiment of the hard disk monitoring device provided in the embodiment of the present application, the division of units is only a logical functional division, and other division methods can be adopted. The connection method between different units can adopt electrical, mechanical or other connection methods. The separated units can be located in the same physical location or distributed on multiple network nodes. Each unit can be implemented in the form of hardware or in the form of a software functional unit. That is, according to actual needs, some or all of the units provided in the embodiment of the present application can be selected and the corresponding connection method or integration method can be adopted to achieve the purpose of the embodiment of the present application.

[0300] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, and will not be repeated here.

[0301] FIG10 is a schematic structural diagram of a hard disk monitoring device provided in an embodiment of the present application.

[0302] As shown in FIG10 , the hard disk monitoring device provided in the embodiment of the present application includes:

[0303] Memory 1010, for storing computer programs 1011;

[0304] The processor 1020 is configured to execute the computer program 1011 . When the computer program 1011 is executed by the processor 1020 , the steps of the hard disk monitoring method provided in any one of the above embodiments are implemented.

[0305] Among them, the processor 1020 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 1020 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1020 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1020 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1020 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0306] The memory 1010 may include one or more storage media, which may be non-transitory. The memory 1010 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 1010 is at least used to store the following computer program 1011, wherein, after the computer program 1011 is loaded and executed by the processor 1020, it can implement the relevant steps in the hard disk monitoring method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 1010 may also include an operating system 1012 and data 1013, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 1012 may be Windows, Lunu hard disk monitoring or other types of operating systems. Data 1013 may include but is not limited to the data involved in the above method.

[0307] In some embodiments, the hard disk monitoring device may further include a display screen 1030 , a power supply 1040 , a communication interface 1050 , an input / output interface 1060 , a sensor 1070 , and a communication bus 1080 .

[0308] Those skilled in the art will appreciate that the structure shown in FIG. 10 does not limit the hard disk monitoring device and may include more or fewer components than shown in the figure.

[0309] The hard disk monitoring device provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the steps of the hard disk monitoring method provided in the above embodiment, and the effect is the same as above.

[0310] An embodiment of the present application provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the hard disk monitoring method provided in any of the above embodiments can be implemented.

[0311] The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., which can store program codes.

[0312] For the introduction of the storage medium provided in the embodiment of the present application, please refer to the above method embodiment, and the effect thereof is the same as the hard disk monitoring method provided in the embodiment of the present application, and this application will not elaborate on it here.

[0313] The above is a detailed introduction to the hard disk monitoring method, device, equipment and storage medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the devices, equipment and storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of this application.

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

Claims

1. A hard disk monitoring method, characterized in that: Applicable to baseboard management controllers, including: Dividing a hard disk log storage area in the local storage space, and dividing the hard disk log storage area into multiple storage partitions; Determine an arrangement order of each of the storage partitions, and configure the forward arrangement order of the storage partitions to be a data reading order, and the reverse arrangement order of the storage partitions to be a data writing order; receiving a first signal output by a hard disk status pin of a hard disk, obtained by modulating the hard disk log data and a hard disk status signal corresponding to the hard disk status pin; Demodulating the first signal to obtain the hard disk log data; The hard disk log data is written into the hard disk log storage area in the data writing order, so that the hard disk is monitored according to the hard disk log data after the hard disk log data is read from the hard disk log storage area according to the data reading order.

2. The hard disk monitoring method according to claim 1, characterized in that: A complex programmable logic device is applied to the baseboard management controller, wherein the complex programmable logic device is connected to a baseboard management controller component in the baseboard management controller via an integrated circuit bus.

3. The hard disk monitoring method according to claim 2, characterized in that: Divide the hard disk log storage area in the local storage space, and divide the hard disk log storage area into multiple storage partitions, including: Configuring the register of the complex programmable logic device as the hard disk log storage area, and dividing the hard disk log storage area into a plurality of storage partitions; Determining the arrangement order of each of the storage partitions, and configuring the forward arrangement order of the storage partitions as a read data order and the reverse arrangement order of the storage partitions as a write data order, including: After determining the arrangement order of each of the storage partitions, configuring address information for the register according to the arrangement order of the storage partitions, and determining that the forward arrangement order of the storage partitions is the read data order, and the reverse arrangement order of the storage partitions is the write data order; A read / write control state machine is configured according to the configuration information of the register, the read data sequence, and the write data sequence.

4. The hard disk monitoring method according to claim 2, wherein: Divide the hard disk log storage area in the local storage space, and divide the hard disk log storage area into multiple storage partitions, including: Dividing the hard disk log storage area in the on-chip random access memory of the complex programmable logic device, and dividing the hard disk log storage area into a plurality of storage partitions, and determining address information of each storage partition according to address information of the on-chip random access memory; Determining the arrangement order of each of the storage partitions, and configuring the forward arrangement order of the storage partitions as a read data order and the reverse arrangement order of the storage partitions as a write data order, including: After determining the arrangement order of each of the storage partitions, determining that the forward arrangement order of the storage partitions is the data reading order, and the reverse arrangement order of the storage partitions is the data writing order; A read / write control state machine is configured according to the address information of the storage partition, the read data sequence, and the write data sequence.

5. The hard disk monitoring method according to claim 2, wherein: After reading the hard disk log data from the hard disk log storage area according to the data reading sequence, monitoring the hard disk according to the hard disk log data includes: An interrupt signal is sent to the baseboard management controller component so that the baseboard management controller component accesses the hard disk log storage area through the integrated circuit bus after receiving the interrupt signal and reads the hard disk log data according to the read data sequence, and performs monitoring of the hard disk according to the hard disk log data.

6. The hard disk monitoring method according to claim 5, characterized in that: Sending an interrupt signal to the baseboard management controller component includes: When the capacity of the hard disk log storage area meets the interrupt triggering condition, the interrupt signal is sent to the baseboard management controller component.

7. The hard disk monitoring method according to claim 6, characterized in that: The interrupt triggering condition includes: The amount of data written to the hard disk log storage area is greater than or equal to a preset ratio of the total capacity of the hard disk log storage area.

8. The hard disk monitoring method according to claim 6, characterized in that: The interrupt triggering condition includes: The capacity of the free space in the hard disk log storage area is less than or equal to the preset storage capacity.

9. The hard disk monitoring method according to claim 2, characterized in that: After reading the hard disk log data from the hard disk log storage area according to the data reading sequence, monitoring the hard disk according to the hard disk log data includes: Accept the polling of the baseboard management controller component so that when the baseboard management controller component polls the complex programmable logic device, the hard disk log data is read according to the read data sequence, and the hard disk is monitored according to the hard disk log data.

10. The hard disk monitoring method according to claim 1, characterized in that: Configuring the forward arrangement order of the storage partitions to be a data read order and the reverse arrangement order of the storage partitions to be a data write order includes: Selecting a starting address of one storage partition from the hard disk log storage area as a free starting address, and taking the reverse arrangement order of the storage partitions from the free starting address as the data writing order; Selecting a starting address of one storage partition from the hard disk log storage area as the data starting address, and taking the forward arrangement order of the storage partitions from the data starting address as the data reading order; Writing the hard disk log data into the hard disk log storage area according to the data writing order includes: The hard disk log data is written in the data writing order starting from the idle starting address, and then the idle starting address is updated to the address to which the hard disk log data is last written.

11. The hard disk monitoring method according to claim 1, wherein: The demodulating the first signal to obtain the hard disk log data includes: Identifying the modulated hard disk log data from the first signal, and converting the modulated hard disk log data from an analog signal to a digital signal to obtain a hard disk data packet, wherein the hard disk data packet includes a data bit and a check bit; After the hard disk data packet is verified according to the check bits in the hard disk data packet, the data bits of the hard disk data packet are read and the hard disk log is obtained by parsing the data bits.

12. The hard disk monitoring method according to claim 10, characterized in that: Selecting a starting address of a storage partition from the hard disk log storage area as a data starting address includes: The initial idle starting address is used as the data starting address.

13. The hard disk monitoring method according to claim 12, characterized in that: The arrangement order of the storage partitions is the order of address sizes of the storage partitions; Hard disk monitoring methods also include: If the current idle starting address and the current data starting address satisfy (n+1)%N=m, it is determined that the hard disk log storage area is full; Wherein, n is the current idle starting address, N is the total number of the storage partitions, m is the current data starting address, and % is the modulo operator.

14. The hard disk monitoring method according to claim 1, wherein: A baseboard management controller component applied to the baseboard management controller; Writing the hard disk log data into the hard disk log storage area includes: Calling the first thread to write the hard disk log data into the hard disk log storage area; After reading the hard disk log data from the hard disk log storage area according to the data reading sequence, monitoring the hard disk according to the hard disk log data includes: The second thread is called to read the hard disk log data from the hard disk log storage area, so as to monitor the hard disk according to the hard disk log data.

15. The hard disk monitoring method according to claim 1, wherein: Writing the hard disk log data into the hard disk log storage area includes: When writing the hard disk log data into the hard disk log storage area in the order of the time when the hard disk log data is received, determining the hard disk identifier corresponding to the hard disk log data according to the hard disk status pin corresponding to the hard disk log data; The hard disk identifier and the hard disk log data are written into the storage partition of the hard disk log storage area.

16. A baseboard management controller, characterized in that: Configured for hard drive monitoring; The baseboard management controller is configured to divide a hard disk log storage area in a local storage space, and divide the hard disk log storage area into a plurality of storage partitions; determine an arrangement order of each of the storage partitions, and configure the forward arrangement order of the storage partitions to be a read data order, and the reverse arrangement order of the storage partitions to be a write data order; demodulate a first signal output by a hard disk status pin of the hard disk to obtain hard disk log data, and write the hard disk log data into the hard disk log storage area in the write data order, so as to perform monitoring of the hard disk according to the hard disk log data after reading the hard disk log data from the hard disk log storage area according to the read data order; The first signal is a signal modulated according to the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.

17. A hard disk monitoring system, characterized in that: include: Baseboard management controller and hard disk; A pin of the baseboard management controller is connected to a hard disk status pin of the hard disk; The baseboard management controller is configured to divide a hard disk log storage area in a local storage space, and divide the hard disk log storage area into a plurality of storage partitions; determine an arrangement order of each of the storage partitions, and configure the forward arrangement order of the storage partitions to be a read data order, and the reverse arrangement order of the storage partitions to be a write data order; demodulate the first signal output by the hard disk status pin to obtain hard disk log data, and write the hard disk log data into the hard disk log storage area in the write data order, so as to perform monitoring of the hard disk according to the hard disk log data after reading the hard disk log data from the hard disk log storage area according to the read data order; The first signal is a signal modulated according to the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.

18. A hard disk monitoring device, characterized in that: Applicable to baseboard management controllers, including: a configuration unit configured to divide a hard disk log storage area in a local storage space, and divide the hard disk log storage area into a plurality of storage partitions; determine an arrangement order of each of the storage partitions, and configure the forward arrangement order of the storage partitions to be a read data order, and the reverse arrangement order of the storage partitions to be a write data order; a receiving unit configured to receive a first signal output by a hard disk status pin of the hard disk, obtained by modulating the hard disk log data and a hard disk status signal corresponding to the hard disk status pin; a demodulation unit, configured to demodulate the first signal to obtain the hard disk log data; A writing unit is configured to write the hard disk log data into the hard disk log storage area in the write data order, so as to perform monitoring of the hard disk according to the hard disk log data after reading the hard disk log data from the hard disk log storage area according to the read data order.

19. A hard disk monitoring device, characterized in that: include: a memory configured to store a computer program; The processor is configured to execute the computer program, and when the computer program is executed by the processor, the steps of the hard disk monitoring method according to any one of claims 1 to 15 are implemented.

20. A non-volatile readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the hard disk monitoring method according to any one of claims 1 to 15 are implemented.

Citation Information

Patent Citations

  • Remote out-of-band SSD log information query method and device and BMC

    CN111176967A

  • Hard disk state monitoring system and hard disk state monitoring method

    CN111752790A

  • Hard disk log recording, analyzing and monitoring method, system, equipment and medium

    CN116881101A

  • Hard disk monitoring method, device, system and equipment and storage medium

    CN117971610A