[go: up one dir, main page]

CN117992311B - Server and hard disk monitoring method, device, equipment and medium thereof - Google Patents

Server and hard disk monitoring method, device, equipment and medium thereof Download PDF

Info

Publication number
CN117992311B
CN117992311B CN202410382028.XA CN202410382028A CN117992311B CN 117992311 B CN117992311 B CN 117992311B CN 202410382028 A CN202410382028 A CN 202410382028A CN 117992311 B CN117992311 B CN 117992311B
Authority
CN
China
Prior art keywords
hard disk
controller
target
band monitoring
band
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410382028.XA
Other languages
Chinese (zh)
Other versions
CN117992311A (en
Inventor
王云
李金锋
王兴隆
林金芸
朱保彬
刘宝阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202410382028.XA priority Critical patent/CN117992311B/en
Publication of CN117992311A publication Critical patent/CN117992311A/en
Application granted granted Critical
Publication of CN117992311B publication Critical patent/CN117992311B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a server and a hard disk monitoring method, a device, equipment and a medium thereof, which relate to the technical field of hard disk monitoring and are applied to a hard disk out-of-band monitoring controller and comprise the following steps: determining a target hard disk which is detected by a system starting controller in an initialization stage and has an out-of-band monitoring function and is connected with a hard disk out-of-band monitoring controller; the method comprises the steps of sending pin configuration information to a target hard disk, and obtaining a target signal output by the target hard disk after corresponding configuration according to the pin configuration information; the pin configuration information comprises an identifier for indicating a hard disk state pin of an output target signal in a target hard disk, and configuration parameters for configuring a signal modulation process of the target hard disk based on hard disk log data and the hard disk state signal corresponding to the hard disk state pin; and demodulating the target signal to obtain hard disk log data and executing a monitoring task on the target hard disk. The application supports configuration of the pins of the hard disk with the out-of-band monitoring function, and improves the range of the hard disk which can be monitored.

Description

Server and hard disk monitoring method, device, equipment and medium thereof
Technical Field
The present invention relates to the field of hard disk monitoring technologies, and in particular, to a server, and a method, an apparatus, a device, and a medium for monitoring a hard disk thereof.
Background
Healthy operation of a hard disk is one of the key factors for guaranteeing the reliability of a device server. In order to ensure accurate control of the running state of the hard disk, equipment is required to monitor in the running process of the hard disk so as to acquire the state information of the hard disk. The main hard disk monitoring schemes at present are divided into hard disk in-band monitoring and hard disk out-of-band monitoring. The out-of-band monitoring of the hard disk is achieved by an out-of-band monitoring controller of the device, such as a baseboard management controller, through communication of a hard disk expansion card connected with the hard disk, however, if the hard disk is not connected with the hard disk expansion card, the out-of-band monitoring of the hard disk cannot be achieved.
In the hard disk out-of-band monitoring scheme, the out-of-band monitoring controller can only monitor the hard disk out-of-band under the condition that the out-of-band monitoring controller and the hard disk support the out-of-band monitoring function; and the current hard disk can only output hard disk state information through a specified data pin, so that configuration is difficult and other pins of the hard disk are utilized.
In summary, how to support the configuration of other pins of the hard disk under the condition of ensuring that the hard disk supports the out-of-band monitoring function, and improve the range of the monitorable hard disk in the out-of-band monitoring scheme of the hard disk.
Disclosure of Invention
In view of the above, the present invention aims to provide a server, and a method, an apparatus, a device and a medium for monitoring a hard disk thereof, which can support configuration of other pins of the hard disk and increase the range of the monitorable hard disk in the hard disk out-of-band monitoring scheme under the condition of ensuring that the hard disk supports the out-of-band monitoring function. The specific scheme is as follows:
In a first aspect, the application discloses a hard disk monitoring method, which is applied to a hard disk out-of-band monitoring controller, and comprises the following steps:
determining a target hard disk; the target hard disk is a hard disk which is detected by the system starting controller in an initialization stage and has an out-of-band monitoring function and is connected with the hard disk out-of-band monitoring controller through a first signal line;
The method comprises the steps that pin configuration information is sent to a target hard disk, and a target signal which is output after the target hard disk is correspondingly configured according to the pin configuration information is obtained through a first signal line; the pin configuration information comprises an identifier for indicating a hard disk state pin in the target hard disk, which outputs the target signal, and a configuration parameter for configuring a signal modulation process of the target hard disk based on hard disk log data and the hard disk state signal corresponding to the hard disk state pin;
demodulating the target signal to obtain the hard disk log data, and executing a monitoring task on the target hard disk based on the hard disk log data.
Optionally, the hard disk out-of-band monitoring controller performs a first interaction operation with the target hard disk based on a two-wire bi-directional communication mechanism; and the first interaction operation is that the out-of-band monitoring controller of the hard disk sends pin configuration information to the target hard disk, and obtains a target signal which is output after the target hard disk is correspondingly configured according to the pin configuration information.
Optionally, when the hard disk state signal in the target signal is identified as a non-indicating state signal or an invalid signal and the current moment is a negotiation time period agreed with the target hard disk, the hard disk out-of-band monitoring controller performs a second interaction operation with the target hard disk based on a single-wire bidirectional communication mechanism; and the second interaction operation is that the out-of-band hard disk monitoring controller sends a reverse transmission request to the target hard disk, and outputs the pin configuration information to the target hard disk when an allowable signal of the target hard disk for the reverse transmission request is obtained.
Optionally, the initialization stage of the system start controller includes:
When a server is powered on and started, detecting version numbers of the hard disk out-of-band monitoring controller and the hard disk to be monitored by using the system starting controller, and determining whether the hard disk out-of-band monitoring controller and the hard disk to be monitored both support an out-of-band monitoring function or not based on the version numbers;
If the system starting controller determines that the hard disk out-of-band monitoring controller and the hard disk to be monitored both support the out-of-band monitoring function, taking the hard disk to be monitored as the target hard disk, starting the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk, and sending the information of the target hard disk to the hard disk out-of-band monitoring controller, so that the hard disk out-of-band monitoring controller obtains hard disk log data of the target hard disk;
And if the hard disk out-of-band monitoring controller or the hard disk to be monitored does not support the out-of-band monitoring function, prohibiting starting the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the hard disk to be monitored.
Optionally, the system start-up controller is constructed based on a unified extensible firmware interface or a basic input-output system, and the hard disk out-of-band monitoring controller comprises a baseboard management controller and/or a complex programmable logic device.
Optionally, when the system start-up controller is built based on a unified extensible firmware interface, the process of detecting the version number of the hard disk out-of-band monitor controller by using the system start-up controller includes:
In a drive execution environment stage of the system start controller, sending a target request for acquiring a version number of the baseboard management controller and/or the complex programmable logic device to the baseboard management controller through an intelligent platform management interface by using the system start controller;
Acquiring a version number returned by the baseboard management controller after responding to the target request through the system starting controller; wherein the process of the baseboard management controller responding to the target request includes: the baseboard management controller reads a first version number corresponding to the baseboard management controller and/or reads a second version number corresponding to the complex programmable logic device from a first register for storing version numbers according to the target request, and sends the read first version number and/or second version number to the system start controller.
Optionally, determining whether the hard disk out-of-band monitoring controller supports a data monitoring function based on the version number includes:
Determining a first preset version number corresponding to the baseboard management controller, and if the first version number is not lower than the first preset version number, determining that the baseboard management controller supports a data monitoring function; the first preset version number is the lowest version number of the baseboard management controller supporting the data monitoring function;
And/or determining a second preset version number corresponding to the complex programmable logic device, and if the second version number is not lower than the second preset version number, determining that the complex programmable logic device supports a data monitoring function; the second preset version number is the lowest version number of the complex programmable logic device supporting the data monitoring function.
Optionally, the hard disk monitoring method further includes:
If the baseboard management controller does not read the first version number from the first register or the system starting controller does not acquire the first version number sent by the baseboard management controller, detecting whether a hard disk data display component exists in a webpage interface of the baseboard management controller through the system starting controller, and if the hard disk data display component exists, determining that the baseboard management controller supports an out-of-band monitoring function.
Optionally, the hard disk monitoring method further includes:
And if the baseboard management controller does not read the second version number from the first register or the system starting controller does not acquire the second version number sent by the baseboard management controller, reading the code occupied memory size of the complex programmable logic device from the second register in the complex programmable logic device through the system starting controller, and if the code occupied memory size is the same as the code development size of the complex programmable logic device, determining that the complex programmable logic device supports an out-of-band monitoring function.
Optionally, when the system start-up controller is built based on a unified extensible firmware interface, the process of detecting the version number of the hard disk to be monitored by using the system start-up controller includes:
in a drive execution environment stage of the system starting controller, using the system starting controller to poll all hard disks to be monitored so as to obtain a third version number, a supplier identifier and an organization unique identifier corresponding to each hard disk to be monitored;
correspondingly, determining whether the hard disk to be monitored supports a data monitoring function based on the version number comprises the following steps:
And determining whether the hard disk to be monitored supports a data monitoring function or not based on the third version number, the supplier identification and the organization unique identifier.
Optionally, the determining whether the hard disk to be monitored supports a data monitoring function based on the third version number, the vendor identification and the organization unique identifier includes:
determining a third preset version number corresponding to the hard disk to be monitored based on the vendor identification and the organization unique identifier; the third preset version number is the lowest version number of the to-be-monitored hard disk supporting data monitoring function;
and if the third version number is not lower than the third preset version number and the format of the hard disk management log of the hard disk to be monitored is correct, determining that the hard disk to be monitored supports a data monitoring function.
Optionally, the hard disk monitoring method further includes:
When the system starting controller is built based on a unified extensible firmware interface, if a function configuration modification instruction about the hard disk out-of-band monitoring controller and/or the target hard disk, which is sent by a user through a first user interface, is obtained in a starting device selection stage of the system starting controller, or if a function configuration modification instruction about the hard disk out-of-band monitoring controller and/or the target hard disk, which is sent by the user through a second user interface, is obtained in an operating system loading early stage of the system starting controller, modifying configuration is carried out on the hard disk out-of-band monitoring controller and/or the target hard disk through the obtained function configuration modification instruction;
after the first user interface or the second user interface is detected to be closed, detecting whether the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are consistent or not through the system starting controller; the function configuration state comprises an on state and an off state;
If the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are inconsistent, judging that the acquired function configuration modification instruction is an invalid instruction, and clearing the modification configuration of the out-of-band monitoring controller and/or the target hard disk.
Optionally, the first user interface and the second user interface are configured to display whether the current hard disk out-of-band monitoring controller and the current target hard disk support an out-of-band monitoring function, and whether the current hard disk out-of-band monitoring controller and the current target hard disk have started an out-of-band monitoring function.
Optionally, the hard disk monitoring method further includes:
Installing a driver when an operating system is started by the system starting controller, and if the operating system obtains a function configuration modification instruction about the hard disk out-of-band monitoring controller and/or the target hard disk, which is sent by a user through a terminal, modifying and configuring the hard disk out-of-band monitoring controller and/or the target hard disk based on the obtained function configuration modification instruction;
after the terminal is detected to be closed, detecting whether the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are consistent or not through the driver; the function configuration state comprises an on state and an off state;
if the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and/or the target hard disk are inconsistent, judging that the acquired function configuration modification instruction is an invalid instruction, and clearing the modification configuration of the out-of-band monitoring controller and/or the target hard disk.
Optionally, the hard disk out-of-band monitoring controller is a baseboard management controller;
correspondingly, the executing the monitoring task on the target hard disk based on the hard disk log data comprises the following steps:
Displaying the hard disk log data on a target interface;
And determining a corresponding preset threshold condition based on the type of the hard disk log data, judging whether the hard disk log data meets the preset threshold condition, and if not, sending out an early warning prompt.
Optionally, the hard disk out-of-band monitoring controller comprises a baseboard management controller and a complex programmable logic device;
correspondingly, the executing the monitoring task on the target hard disk based on the hard disk log data comprises the following steps:
After obtaining the hard disk log data output by the target hard disk through the hard disk state pin, sending an interrupt signal to the baseboard management controller through the complex programmable logic device by utilizing a first target bus;
Responding to the interrupt signal through the baseboard management controller, and sending a data reading request to the complex programmable logic device through a second target bus so that the complex programmable logic device sends the hard disk log data to the baseboard management controller;
displaying the hard disk log data on a target interface through the baseboard management controller, and sending out an early warning prompt when the hard disk log data does not meet a preset threshold condition; the preset threshold condition is a threshold condition corresponding to the type of the hard disk log data.
In a second aspect, the application discloses a server, which comprises a hard disk out-of-band monitoring controller and a system starting controller;
The hard disk out-of-band monitoring controller is used for determining a target hard disk from the hard disks and sending pin configuration information to the target hard disk; the target hard disk is a hard disk with an out-of-band monitoring function detected by the system starting controller in an initialization stage, and the pin configuration information comprises an identifier for indicating a hard disk state pin of an output target signal in the target hard disk and configuration parameters for configuring a signal modulation process of the target hard disk based on hard disk log data and the hard disk state signal corresponding to the hard disk state pin;
And the target hard disk is used for outputting the target signal to the hard disk out-of-band monitoring controller after corresponding configuration is carried out according to the pin configuration information so that the hard disk out-of-band monitoring controller demodulates the target signal to obtain the hard disk log data, and executing the monitoring task on the target hard disk based on the hard disk log data.
In a third aspect, the present application discloses a hard disk monitoring device, applied to a hard disk out-of-band monitoring controller, comprising:
The hard disk determining module is used for determining a target hard disk; the target hard disk is a hard disk which is detected by the system starting controller in an initialization stage and has an out-of-band monitoring function and is connected with the hard disk out-of-band monitoring controller;
The configuration module is used for sending pin configuration information to the target hard disk and acquiring a target signal which is output after the target hard disk is correspondingly configured according to the pin configuration information; the pin configuration information comprises an identifier for indicating a hard disk state pin in the target hard disk, which outputs the target signal, and a configuration parameter for configuring a signal modulation process of the target hard disk based on hard disk log data and the hard disk state signal corresponding to the hard disk state pin;
And the monitoring module is used for demodulating the target signal to obtain the hard disk log data and executing a monitoring task on the target hard disk based on the hard disk log data.
In a fourth aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
And a processor for executing the computer program to implement the steps of the hard disk monitoring method disclosed above.
In a fifth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the hard disk monitoring method disclosed above.
Therefore, the application determines the target hard disk through the hard disk out-of-band monitoring controller; the target hard disk is a hard disk which is detected by the system starting controller in an initialization stage and has an out-of-band monitoring function and is connected with the hard disk out-of-band monitoring controller; the method comprises the steps of sending pin configuration information to a target hard disk, and obtaining a target signal which is output by the target hard disk after corresponding configuration according to the pin configuration information; the pin configuration information comprises an identifier for indicating a hard disk state pin in the target hard disk, which outputs the target signal, and a configuration parameter for configuring a signal modulation process of the target hard disk based on hard disk log data and the hard disk state signal corresponding to the hard disk state pin; demodulating the target signal to obtain the hard disk log data, and executing a monitoring task on the target hard disk based on the hard disk log data.
The application has the beneficial effects that: in the application, the hard disk out-of-band monitoring controller firstly needs to determine the target hard disk with the out-of-band monitoring function in the server, and particularly, the system starting controller in the server detects each hard disk in the initialization stage so as to detect the hard disk with the out-of-band monitoring function. The out-of-band monitoring controller of the hard disk is directly connected with the target hard disk, so that out-of-band monitoring of the target hard disk is realized, an additional hard disk expansion card is not required to be connected, namely, out-of-band monitoring of the hard disk can be realized no matter whether the hard disk is connected to the hard disk expansion card or not, and the out-of-band monitoring difficulty is reduced. Further, the hard disk out-of-band monitoring controller can also send pin configuration information to the target hard disk, wherein the pin configuration information comprises an identifier for indicating a hard disk state pin for outputting a target signal in the target hard disk, so that the target hard disk can output the target signal according to the hard disk state pin selected by the hard disk out-of-band monitoring controller; in addition, the pin configuration information also comprises configuration parameters, and the configuration parameters are used for configuring a target hard disk according to the hard disk log data and the signal modulation process of the hard disk state signal corresponding to the hard disk state pin, so that the target signal is obtained through modulation. The method has the advantages that the target hard disk is modulated by using the hard disk log data and the hard disk state signals corresponding to the original functions of the hard disk state pins to obtain the target signals and output the target signals, so that the hard disk log data can be output by the hard disk state pins, and the limitation that the hard disk log data can be output only by connecting the hard disk expansion card through the specified data pins is solved. That is, the target hard disk can output the target signal according to the hard disk log data and the hard disk state signal corresponding to the hard disk state pin selected by the hard disk out-of-band monitoring controller, so that the hard disk out-of-band monitoring controller can acquire the hard disk log data by directly connecting the target hard disk.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an in-band monitoring system of a conventional hard disk according to the present application;
FIG. 2 is a schematic diagram of a conventional hard disk out-of-band monitoring system according to the present application;
FIG. 3 is a flow chart of a method for monitoring a hard disk according to the present application;
FIG. 4 is a flowchart of a method for detecting an initialization phase of a system start controller according to the present application;
FIG. 5 is a flow chart of a version number detection and modification configuration of the present disclosure;
FIG. 6 is a flow chart of out-of-band monitoring of a hard disk in accordance with the present application;
FIG. 7 is a schematic diagram of a hard disk monitoring system according to the present application;
FIG. 8 is a schematic diagram of a hard disk monitoring device according to the present application;
Fig. 9 is a block diagram of an electronic device according to the present disclosure.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The out-of-band monitoring is a monitoring scheme more needed for operation and maintenance of the hard disk, and is that an out-of-band monitoring controller of the device, such as a baseboard management controller, obtains the state information of the hard disk through the communication of a hard disk expansion card connected with the hard disk, however, if the hard disk is not connected with the hard disk expansion card, the out-of-band monitoring of the hard disk cannot be realized. In addition, in the hard disk out-of-band monitoring scheme, out-of-band monitoring can be performed only under the condition that the out-of-band monitoring controller and the hard disk support the out-of-band monitoring function; and the current hard disk can only output hard disk state information through a specified data pin, and other pins of the hard disk are difficult to configure and utilize.
Therefore, the embodiment of the application discloses a server, a hard disk monitoring method, a device, equipment and a medium thereof, which can support the configuration of other pins of a hard disk and improve the range of a monitorable hard disk in a hard disk out-of-band monitoring scheme under the condition of ensuring that the hard disk supports the out-of-band monitoring function.
For ease of understanding, first, the hard disk in-band monitoring scheme and the hard disk out-of-band monitoring scheme will be described.
According to the network management mode, the current equipment operation monitoring scheme is mainly divided into an in-band management scheme and an out-band management scheme.
The in-band management enables network management data and service data in the network to be transmitted in the same link, and user data of the equipment is accessed through an operating system of login equipment, so that in-band management data of the monitored equipment can be obtained. As shown in fig. 1, the mode of acquiring the monitoring data of the monitored component based on the central processing unit (Central Processing Unit, CPU) running the operating system is an in-band management mode, for example, an in-band monitoring scheme for a hard disk, the central processing unit can access the user data stored in the hard disk and also acquire the hard disk log data recorded in the hard disk running through communicating with the hard disk, and then the user can check the hard disk log data through logging in the operating system.
Out-of-band management means that network management is realized through a special network management channel, network management data and service data are separated, and an independent channel is established for the network management data. In the channel, only the management data is transmitted, and the network management data is separated from the service data, so that the efficiency and the reliability of the network management can be improved, and the safety of the network management data can be improved.
Because in-band monitoring cannot meet the operation and maintenance requirements, after the server is deployed, an out-of-band management and monitoring function is provided through a baseboard management controller (baseboard management controller, BMC). The baseboard management controller is a specialized service processor that uses sensors to monitor the status of a computer, web server, or other hardware driven device and communicates with the system administrator of the device via separate connection lines. In actual use, the baseboard management controller is typically mounted on a motherboard or on a main circuit board of the monitored device. The baseboard management controller is used to measure internal physical variables by sensors, such as: temperature, humidity, power supply voltage, fan speed, communication parameters, operating System (OS) functions, and the like. If any of these variables is outside the limits established, the baseboard management controller will notify the system administrator. The baseboard management controller may provide a network (web) service, which has a network communication function and provides a web page to display a monitoring interface, and an operator may obtain monitoring data of the baseboard management controller by connecting the baseboard management controller of the monitored device through a network cable on a site of the device, or connecting the baseboard management controllers of a plurality of monitored devices through a network in a data center.
Due to the limited performance and pin count of the baseboard management controller chips in baseboard management controller systems, complex programmable logic devices (Complex Programmable logic device, CPLD) are often built into baseboard management controller systems to share performance pressure of baseboard management controller chips and to provide more pins to connect sensors or monitored components as the number of components and items to be monitored increases. The complex programmable logic device is mainly composed of three parts, namely a logic block, a programmable interconnection channel and an input/output block (I/O block). A logic block of a complex programmable logic device typically includes 4-20 macro-cells, each macro-cell typically consisting of an array of product terms, product term assignments, and programmable registers. Each macro unit has a plurality of configuration modes, and each macro unit can be used in cascade connection, so that more complex combinational logic and sequential logic functions can be realized. For complex programmable logic devices with higher integration levels, embedded array blocks with on-chip random access Memory (Random Access Memory, RAM)/Read-Only Memory (ROM) are also typically provided. The programmable interconnect channels mainly provide an interconnect network between logic blocks, macro cells, and input/output pins. An input/output block (I/O block) provides an interface between internal logic to the device I/O pins.
The hard disk is an important component of the server and is an important object of out-of-band monitoring management. According to the type of communication interface, the serial connection small computer system interface (SERIAL ATTACHED SCSI, hereinafter abbreviated as SAS)/serial advanced technology attachment (SERIAL ADVANCED Technology Attachment, hereinafter abbreviated as SATA) interface hard disk and the nonvolatile memory host controller interface (Non Volatile Memory Host Controller Interface Specification, NVMHCIS or NVM Express, hereinafter abbreviated as NVMe) interface hard disk are mainly classified. Wherein the SAS interface is compatible with the SATA interface. According to the type of storage medium, the hard disk is mainly divided into a mechanical hard disk (HARD DISK DRIVE, HDD) and a Solid state disk (Solid STATE DISK or Solid STATE DRIVE, SSD). The mechanical hard disk is mainly an SAS interface or an SATA interface. The solid state disk comprises a SAS interface, a SATA interface and an NVMe interface hard disk.
As shown in fig. 1 and 2, the use of the hard disk on the server side is achieved by connecting the hard disk to the hard disk slot of the hard disk back plate. The interface of the hard disk is usually a golden finger structure, and after the pins are plugged into the positions on the hard disk slot, the pins can be connected to components on the server side (such as a data pin connected to a central processor) through circuits on the hard disk backboard.
In practical connection, part of the hard disk is directly inserted into the hard disk slot of the hard disk backboard, and part of the hard disk is connected to the hard disk backboard through the hard disk expansion card. Types of hard disk expansion cards (Expender) include disk array (Redundant Arrays of INDEPENDENT DISKS, RAID) cards, serial attached small computer system interface expansion cards (SAS expansion cards), serial advanced technology attachment expansion cards (SATA expansion cards), and the like. And a hard disk directly plugged into the hard disk slot, such as a hard disk connected to the central processor through an advanced host controller interface (Advanced Host Controller Interface, AHCI) controller.
As shown in fig. 1, the central processor accesses the hard disk through the high-speed serial computer expansion bus (PERIPHERAL COMPONENT INTERCONNECT EXPRESS, PCI-Express, PCIe), and the hard disk expansion card is required to perform protocol conversion of signals because the hard disk of the SAS or SATA interface cannot be directly connected to the high-speed serial computer expansion bus. The cpu may also obtain or control the hard disk state information by connecting the hard disk backplane with a serial universal Input/Output (SERIAL GENERAL Purpose Input/Output, sGPIO) line. That is, the central processing unit can be connected with the hard disk expansion card through the high-speed serial computer expansion bus to obtain hard disk log data, or can be connected with the advanced host controller interface to obtain the hard disk log data, so that the in-band monitoring of the hard disk is realized.
As shown in fig. 2, if the baseboard management controller chip wants to obtain the hard disk log data, the hard disk expansion card can be accessed through an integrated circuit bus (Inter-INTEGRATED CIRCUIT, IIC or I2C) for the hard disk connected to the hard disk expansion card, the baseboard management controller chip runs monitoring software to send a pass-through command to the hard disk expansion card, the hard disk expansion card can forward the pass-through command to the hard disk, the hard disk sends corresponding hard disk log data to the hard disk expansion card after responding to the pass-through command, and the hard disk expansion card forwards the hard disk log data to the baseboard management controller. In addition, the NVMe interface hard disk can be directly connected with the central processor through the high-speed serial computer expansion bus, and one path of integrated circuit bus can be provided to the baseboard management controller through the high-speed serial computer expansion bus between the hard disk and the central processor, so that the functions of forwarding commands and hard disk log data for the baseboard management controller, such as a hard disk expansion card, can be realized, and the out-of-band monitoring of the hard disk can be realized.
It can be seen that in the current server monitoring architecture, service data of the device cannot be displayed to the outside due to confidentiality, that is, an operation and maintenance person has no authority to access in-band data to obtain hard disk log data which can be read by a central processor, and a baseboard management controller for implementing out-of-band monitoring cannot directly access the hard disk data, so that the out-of-band monitoring function of the hard disk is limited, so that the out-of-band monitoring party cannot timely and accurately obtain the running state of the hard disk, and further the storage reliability of the hard disk faces a threat.
Because there is no data path between the baseboard management controller and the hard disk without passing through the integrated circuit bus interface, the out-of-band monitoring of the hard disk can only be realized by means of a hard disk expansion card supporting the receipt of the pass-through command through the integrated circuit bus interface or by providing a high-speed serial computer expansion bus of the integrated circuit bus interface, and the out-of-band monitoring of the hard disk without the condition, such as the hard disk under the advanced host controller interface controller, can not be realized.
Referring to fig. 3, an embodiment of the application discloses a hard disk monitoring method, which is applied to a hard disk out-of-band monitoring controller, and comprises the following steps:
Step S11: determining a target hard disk; the target hard disk is a hard disk which is detected by the system starting controller in the initialization stage and is connected with the hard disk out-of-band monitoring controller and has the out-of-band monitoring function.
In this embodiment, the hard disk out-of-band monitoring controller first needs to determine a target hard disk with an out-of-band monitoring function in the server, and specifically, the system start controller in the server detects each hard disk in an initialization stage to detect the hard disk with the out-of-band monitoring function therein. The application adopts the mode that the hard disk out-of-band monitoring controller is directly connected with the target hard disk so as to realize out-of-band monitoring of the target hard disk. In other words, when the hard disk is monitored out of band, the hard disk does not need to be additionally connected with the hard disk expansion card, that is, the out-of-band monitoring controller of the hard disk can realize out-of-band monitoring of the hard disk no matter whether the hard disk is connected with the hard disk expansion card or not, so that the out-of-band monitoring difficulty is reduced.
Step S12: the method comprises the steps of sending pin configuration information to a target hard disk, and obtaining a target signal which is output by the target hard disk after corresponding configuration according to the pin configuration information; the pin configuration information comprises an identification for indicating a hard disk state pin in the target hard disk, which outputs the target signal, and a configuration parameter for configuring a signal modulation process of the target hard disk based on hard disk log data and the hard disk state signal corresponding to the hard disk state pin.
In this embodiment, the hard disk out-of-band monitoring controller may further send pin configuration information to the target hard disk, where the pin configuration information includes an identifier for indicating a hard disk status pin in the target hard disk that outputs the target signal, so that the target hard disk may output the target signal according to the hard disk status pin selected by the hard disk out-of-band monitoring controller; in addition, the pin configuration information also comprises configuration parameters, and the configuration parameters are used for configuring a target hard disk according to the hard disk log data and the signal modulation process of the hard disk state signal corresponding to the hard disk state pin, so that the target signal is obtained through modulation. The method has the advantages that the target hard disk is modulated by using the hard disk log data and the hard disk state signals corresponding to the original functions of the hard disk state pins to obtain the target signals and output the target signals, so that the hard disk log data can be output by the hard disk state pins, and the limitation that the hard disk log data can be output only by connecting the hard disk expansion card through the specified data pins is solved.
That is, the embodiment of the present application may also output hard disk log data using a hard disk status pin of the hard disk, so that for the hard disk, it may provide a plurality of pins to output hard disk log data, including specifically the data pin and the hard disk status pin originally specified for outputting hard disk log data; the data pins can output the hard disk log data only by connecting with the hard disk expansion card, and the hard disk state pins are directly connected with the hard disk out-of-band monitoring controller without connecting with the hard disk expansion card, and output the hard disk log data by modulating.
It should be noted that the hard disk status pins specifically refer to hard disk status pins of the hard disk lead except for the data pin, the power pin and the ground pin in the hard disk, and mainly include a hard disk status indication pin, a hard disk production debugging pin and a hard disk idle pin.
The hard disk state indication pins include a hard disk bit state indication pin (p 10 pin), a hard disk read-write state indication pin, and the like (p 11 pin). The hard disk state indication pin is a pin for outputting a hard disk state indication signal, for example, the hard disk in-place state indication pin is used for outputting a hard disk in-place state signal, and the hard disk read-write state indication pin is used for outputting a hard disk read-write state signal. When the hard disk is connected to the hard disk backboard, the hard disk status indication pin mainly has two connection modes, one is connected to the baseboard management controller to inform the baseboard management controller of corresponding hard disk status data, and the other is connected to a control circuit on the hard disk backboard to control the status of corresponding controlled elements so that a user can learn the status of the corresponding hard disk. For example, a hard disk status indicator is provided on the hard disk backboard to indicate the hard disk operation status. If the hard disk is in the read-write state, the hard disk read-write state indicating pin can be controlled to output square wave signals to the amplifying driving circuit of the hard disk read-write state indicating lamp so as to control the hard disk read-write state indicating lamp to be on, and if the hard disk is not in the read-write state (idle state), the hard disk read-write state indicating pin is controlled to output a constant level signal (such as a constant high level signal) so as to enable the hard disk read-write state indicating lamp to be off to indicate that the hard disk read-write state indicating lamp is in the idle state, so that a user can know whether the hard disk is in the read-write state or not by watching the on-off of the hard disk read-write state indicating lamp. The hard disk shows the same based on the state of the hard disk bit state indication pin. Or the hard disk can also output two different constant level signals (one high and one low) through the hard disk state indicating pins to indicate different states, and the signals can be input to the baseboard management controller so as to trigger corresponding recording, processing or control.
The hard disk production debugging pins are mainly pins (debug pins) of the hard disk of the SAS or SATA interface beside the SAS or SATA interface, and are usually used in the production debugging stage of the hard disk, and in the actual use of the hard disk, the production debugging pins can be used for outputting guide information in the hard disk initialization stage.
And the NVMe interface hard disk comprises a hard disk idle pin besides the hard disk state indication pin. At present, three connectors, namely an M.2 connector, a U.2 connector and a CEM connector, are mainly adopted for the NVMe interface hard disk. The NVMe interface of the M.2 connector is used for connecting different types of devices, wherein Key B and Key M can be used for connecting a solid state disk. When the NVMe interface of M.2 specification is connected with the solid state disk of the SATA interface, the definition of the P10 pin is the same as that of the P11 pin of the SAS or SATA interface, and the P10 pin is a disk read-write state indication pin. When the NVMe interface of the m.2 specification is connected to the NVMe interface hard disk, the P10 pin is defined as an indicator light control pin. The NVMe interface of U.2 connector is completely compatible with SAS and SATA interfaces, and the P11 pin is also a hard disk read-write status indication pin. The P32 pin of the a-side of the NVMe interface of the CEM connector is an idle pin (Reserved pin), which is also a hard disk status pin other than a hard disk data pin, and there are also a plurality of idle pins at x8 (eight wire interface) and above.
The hard disk status pins are not pins for outputting data of the hard disk, do not have the risk of revealing user data stored in the hard disk, and are directly connected with the baseboard management controller or have the authority of being connected with the baseboard management controller after the hard disk is inserted into the hard disk backboard.
In the hard disk monitoring system provided by the embodiment of the invention, the hard disk status pins of the adopted hard disk may include at least one of a hard disk status indication pin, a hard disk production debugging pin and a hard disk idle pin.
In this embodiment, 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 pins are usually already connected to General-purpose input/output (GPIO) pins of a baseboard management controller or input/output (I/O) pins of a complex programmable logic device, the hardware architecture can be directly used without changing the hardware architecture of a server, which is simple and convenient to implement.
The hard disk production debug pins (debug pins) on current devices are typically floating, typically comprising 4 pins. If the embodiment of the invention adopts the hard disk production debugging pin as the hard disk pin for outputting hard disk log data, the connector with corresponding number of pins can be adopted to connect the hard disk production debugging pin to the GPIO pin of the baseboard management controller chip or the I/O pin of the complex programmable logic device.
Since the idle pins of the hard disk are usually only in the interface of the hard disk of the NVMe (Non Volatile Memory Host Controller Interface Specification, NVMHCIS or NVM Express, nonvolatile memory host controller interface) interface, the high-speed signal cannot be suspended, and the idle pins of the hard disk in the NVMe interface are grounded through a resistor-capacitor circuit on the hard disk backboard after the hard disk is connected to the hard disk backboard. If the embodiment of the invention adopts the idle pin of the hard disk as the hard disk pin for outputting the hard disk log data, the connection relation between the idle pin of the hard disk and the hard disk backboard is changed into the connection relation between the idle pin of the hard disk and the GPIO pin of the baseboard management controller chip or the I/O pin of the complex programmable logic device.
For the target hard disk, it is first required to determine which hard disk state pin is used to output hard disk log data according to the identification in the configuration information, and then the signal modulation process is further configured according to the configuration parameters in the pin configuration information, that is, how the target hard disk modulates according to the hard disk log data and the hard disk state signal corresponding to the hard disk state pin to obtain the target signal and outputs the target signal, so that the hard disk out-of-band monitoring controller demodulates the target signal to obtain the hard disk log data.
The modulation method determined by the target hard disk according to the configuration parameters mainly comprises the following two steps: the first is that after the target hard disk converts the hard disk log data into a level signal, the level signal is directly inserted into the hard disk state signal corresponding to the hard disk state pin to obtain a target signal; and the second is that after the target hard disk converts the hard disk log data into a level signal, the level signal is inserted in a time period when the hard disk state signal corresponding to the hard disk state pin is an invalid signal, so as to obtain the target signal. The modulation mode of the application does not affect the original function of the hard disk state pin, can output hard disk log data, reduces the out-of-band monitoring difficulty, effectively improves the range of the monitored hard disk for out-of-band monitoring of the hard disk, and enables the hard disk to be directly connected with the out-of-band monitor of the hard disk through the hard disk state pin under the condition of not connecting with the hard disk expansion card.
It should be noted that, the process of sending the pin configuration information to the target hard disk by the hard disk out-of-band monitoring controller may occur at any stage, for example, when the target hard disk is monitored out-of-band for the first time, the pin configuration information is sent to the target hard disk, so that the target hard disk is output after being correspondingly configured according to the pin configuration information, and may also occur in the running process of the system, at this time, the pin configuration information is sent to the target hard disk to replace the pin currently used by the target hard disk.
In a specific embodiment, the hard disk out-of-band monitoring controller performs a first interaction with the target hard disk based on a two-wire bi-directional communication mechanism; and the first interaction operation is that the out-of-band monitoring controller of the hard disk sends pin configuration information to the target hard disk, and obtains a target signal which is output after the target hard disk is correspondingly configured according to the pin configuration information. In other words, in this embodiment, two signal lines may be used to implement bidirectional communication between the out-of-band hard disk monitoring controller and the target hard disk, where the out-of-band hard disk monitoring controller obtains, through the first signal line, a target signal that is output after the target hard disk is configured according to the pin configuration information, and sends, through the second signal line, the pin configuration information to the target hard disk. By using the two signal lines to realize the bidirectional communication between the hard disk out-of-band monitoring controller and the target hard disk, the data transmission in the two signal lines can be ensured not to interfere with each other.
In another specific embodiment, when the hard disk state signal in the target signal is identified as a non-indicating state signal or an invalid signal and the current moment is a negotiation time period agreed with the target hard disk, the out-of-band monitoring controller of the hard disk executes a second interaction operation with the target hard disk based on a single-wire bidirectional communication mechanism; and the second interaction operation is that the out-of-band hard disk monitoring controller sends a reverse transmission request to the target hard disk, and outputs the pin configuration information to the target hard disk when an allowable signal of the target hard disk for the reverse transmission request is obtained. That is, in order to save computer resources, the embodiment of the present application may also use a single signal line to implement bidirectional communication between the hard disk out-of-band monitoring controller and the target hard disk. Because a single signal wire can only realize unidirectional transmission of data at the same time, namely, the hard disk out-of-band monitoring controller sends pin configuration information to the target hard disk or the target hard disk outputs a target signal to the hard disk out-of-band monitoring controller. Therefore, in order to determine who is currently sending data, arbitration logic needs to be designed at two ends of a single wire, for example, for the embodiment of the present application, the main task of a signal wire is to receive a target signal output by a target hard disk, so that the target signal is demodulated to obtain hard disk log data to realize out-of-band monitoring, and then it needs to be specified under what condition a hard disk out-of-band monitoring controller can send pin configuration information to the target hard disk. Specifically, this embodiment provides that only when the hard disk out-of-band monitoring controller recognizes that the hard disk status signal in the target signal is a non-indicating status signal or an invalid signal, and the current time is a negotiation time period agreed with the target hard disk, the reverse transmission request can be sent to the target hard disk through the signal line, and the pin configuration information can be output to the target hard disk through the signal line only when the permission signal of the target hard disk for the reverse transmission request is obtained. The non-indication state signal indicates that the hard disk state pin is in an idle state currently, the invalid signal indicates that the signal output by the hard disk state signal does not carry any information, and the negotiation time period is used for specifying that the hard disk out-of-band monitoring controller can only reversely transmit data in the time period. That is, the present embodiment provides a method of using single-wire bidirectional communication to achieve data transmission between the hard disk out-of-band monitoring controller and the target hard disk.
Step S13: demodulating the target signal to obtain the hard disk log data, and executing a monitoring task on the target hard disk based on the hard disk log data.
In this embodiment, the hard disk out-of-band monitoring controller demodulates the target signal to obtain hard disk log data, and executes a monitoring task on the target hard disk based on the hard disk log data.
In a specific embodiment, the hard disk out-of-band monitoring controller is a baseboard management controller; correspondingly, the executing the monitoring task on the target hard disk based on the hard disk log data comprises the following steps: displaying the hard disk log data on a target interface; and determining a corresponding preset threshold condition based on the type of the hard disk log data, judging whether the hard disk log data meets the preset threshold condition, and if not, sending out an early warning prompt. That is, when the hard disk out-of-band monitoring controller is a Baseboard Management Controller (BMC), that is, the BMC is directly connected to a target hard disk to monitor the hard disk out-of-band, then after the BMC demodulates the hard disk log data, the BMC directly displays the hard disk log data on a target interface thereof, and determines a corresponding preset threshold condition based on the type of the hard disk log data, and it should be pointed out that the state information of the hard disk to be monitored includes temperature, number of bad tracks, cumulative number of errors, and the like, and the threshold conditions corresponding to different state information are inconsistent.
In another embodiment, the hard disk out-of-band monitoring controller comprises a baseboard management controller and a complex programmable logic device; correspondingly, the executing the monitoring task on the target hard disk based on the hard disk log data comprises the following steps: after obtaining the hard disk log data output by the target hard disk through the hard disk state pin, sending an interrupt signal to the baseboard management controller through the complex programmable logic device by utilizing a first target bus; responding to the interrupt signal through the baseboard management controller, and sending a data reading request to the complex programmable logic device through a second target bus so that the complex programmable logic device sends the hard disk log data to the baseboard management controller; displaying the hard disk log data on a target interface through the baseboard management controller, and sending out an early warning prompt when the hard disk log data does not meet a preset threshold condition; the preset threshold condition is a threshold condition corresponding to the type of the hard disk log data.
That is, the out-of-band monitoring controller of the hard disk may include a Baseboard Management Controller (BMC) and a complex programmable logic device (Complex Programmable Logic Device, CPLD), that is, in the embodiment of the present application, the BMC is connected to the target hard disk through the CPLD, so as to realize out-of-band monitoring of the target hard disk, and the BMC is connected to each CPLD through a first target bus and a second target bus; the CPLD may be a CPLD on a backplane for connecting with a solid state/mechanical hard disk of a SAS (SERIAL ATTACHED SCSI, serial attached SCSI interface, wherein SCSI is Small Computer SYSTEM INTERFACE, small Computer system interface) interface or SATA (SERIAL ADVANCED Technology Attachment ) interface, or a CPLD on a motherboard for connecting with a solid state hard disk of an NVMe (Non Volatile Memory Host Controller Interface Specification, nonvolatile memory host controller interface) interface. After the CPLD obtains a target hard disk output signal through a first signal wire and demodulates the target hard disk output signal to obtain hard disk log data, the CPLD utilizes the first target bus to send an interrupt signal to the BMC, the BMC responds to the interrupt signal and then sends a data reading request to the CPLD through a second target bus so as to read the hard disk log data in the CPLD, the BMC reads the hard disk log data, then displays the hard disk log data on a local target interface, and sends an early warning prompt when the hard disk log data does not meet a preset threshold condition, wherein the preset threshold condition is a threshold condition corresponding to the type of the hard disk log data. In addition, the scheme can avoid frequent polling and reading of the hard disk log data in the CPLD by the BMC in an interrupt mode, and reduces the pressure of the BMC.
The beneficial effects are that: in the application, the hard disk out-of-band monitoring controller firstly needs to determine the target hard disk with the out-of-band monitoring function in the server, and particularly, the system starting controller in the server detects each hard disk in the initialization stage so as to detect the hard disk with the out-of-band monitoring function. The out-of-band monitoring controller of the hard disk is directly connected with the target hard disk through the first signal line, so that out-of-band monitoring of the target hard disk is realized, an additional hard disk expansion card is not needed, namely, out-of-band monitoring of the hard disk can be realized no matter whether the hard disk is connected to the hard disk expansion card or not, and the out-of-band monitoring difficulty is reduced. Further, the hard disk out-of-band monitoring controller can also send pin configuration information to the target hard disk, wherein the pin configuration information comprises an identifier for indicating a hard disk state pin for outputting a target signal in the target hard disk, so that the target hard disk can output the target signal according to the hard disk state pin selected by the hard disk out-of-band monitoring controller; in addition, the pin configuration information also comprises configuration parameters, and the configuration parameters are used for configuring a target hard disk according to the hard disk log data and the signal modulation process of the hard disk state signal corresponding to the hard disk state pin, so that the target signal is obtained through modulation. The method has the advantages that the target hard disk is modulated by using the hard disk log data and the hard disk state signals corresponding to the original functions of the hard disk state pins to obtain the target signals and output the target signals, so that the hard disk log data can be output by the hard disk state pins, and the limitation that the hard disk log data can be output only by connecting the hard disk expansion card through the specified data pins is solved. That is, the target hard disk can output the target signal according to the hard disk log data and the hard disk state signal corresponding to the hard disk state pin selected by the hard disk out-of-band monitoring controller, so that the hard disk out-of-band monitoring controller can acquire the hard disk log data by directly connecting the target hard disk through the first signal wire.
It should be noted that, in addition to detecting whether each hard disk has an out-of-band monitoring function or not, the system start controller also needs to detect whether the hard disk out-of-band monitoring controller supports the out-of-band monitoring function or not in the initialization stage, and determine whether to enable the out-of-band monitoring function according to the detection result, specifically referring to fig. 4 and 5, the application discloses an execution flow of the system start controller in the initialization stage, which specifically includes:
Step S21: and when the server is powered on and started, detecting version numbers of the hard disk out-of-band monitoring controller and the hard disk to be monitored by using the system starting controller, and determining whether the hard disk out-of-band monitoring controller and the hard disk to be monitored both support an out-of-band monitoring function or not based on the version numbers.
In this embodiment, after the server is powered on and started, the system start controller is used to detect version numbers of the hard disk out-of-band monitoring controller and the hard disk to be monitored, and determine whether the hard disk out-of-band monitoring controller and the hard disk to be monitored both support the out-of-band monitoring function or not based on the version numbers.
It can be understood that the embodiment of the application performs debugging configuration on the hard disk and the out-of-band monitoring controller of the hard disk in advance, so that the out-of-band monitoring system formed by the hard disk and the out-of-band monitoring controller of the hard disk can have the required out-of-band monitoring function, and the whole out-of-band monitoring system can normally operate. And after the debugging configuration is finished, the respective version numbers are modified, so that the hard disk and the out-of-band monitoring controller of the hard disk are considered to support the out-of-band monitoring function after the corresponding version numbers are checked later. Compared with the original hard disk, the hard disk only uses the hard disk state pins to output corresponding hard disk state signals, the hard disk needs to support the modulation of the hard disk log data and the hard disk state signals corresponding to the hard disk state pins and then output corresponding target signals; for the hard disk out-of-band monitoring controller, the controller needs to support the demodulation of the target signal according to the corresponding signal demodulation rule so as to acquire hard disk log data, and then the out-of-band monitoring is carried out on the target hard disk based on the hard disk log data.
It should be noted that, in the existing out-of-band monitoring scheme, the default hard disk transmits the log data of the hard disk through the specified data pin, and the hard disk status pin only needs to complete the corresponding status indication function, for example, when the hard disk is in the read-write status, the hard disk read-write status indication pin P11 can be controlled to output a square wave signal to control the read-write status indication lamp of the hard disk to be on, and when the hard disk is not in the read-write status (idle status), the hard disk read-write status indication pin P11 is controlled to output a constant level signal (such as a constant high level signal) to indicate that the hard disk is in the idle status, so that a user can learn whether the hard disk is in the read-write status by watching the on-off status indication lamp of the hard disk.
Therefore, for the hard disk, the application additionally adds the function of outputting the hard disk log data by utilizing the hard disk state pin, and for the out-of-band monitoring controller, the application additionally adds the function of demodulating the hard disk output signal to obtain the hard disk log data and analyzing the data, so that the version numbers of the hard disk and the out-of-band monitoring controller need to be detected by utilizing the system starting controller.
In addition, the embodiment of the application needs to ensure that the out-of-band monitoring controller of the hard disk and the hard disk to be monitored both support the out-of-band monitoring function, because the interaction between the out-of-band monitoring controller of the hard disk and the hard disk to be monitored is complementary, if only one side supports the out-of-band monitoring function, the whole out-of-band monitoring system cannot normally operate.
It should be noted that the system boot controller may be specifically built based on a unified extensible firmware interface (Unified Extensible FIRMWARE INTERFACE, UEFI) or a basic input-output system (Basic Input Output System, BIOS), and the hard disk out-of-band monitor controller includes a Baseboard Management Controller (BMC) and/or a Complex Programmable Logic Device (CPLD). That is, in this embodiment, the BIOS or UEFI may specifically detect, in an initialization stage, whether both the hard disk out-of-band monitoring controller and the hard disk to be monitored support the out-of-band monitoring function.
In a specific embodiment, when the system start-up controller is built based on a unified extensible firmware interface, the process of detecting the version number of the hard disk out-of-band monitoring controller by using the system start-up controller includes: in a drive execution environment stage of the system start controller, sending a target request for acquiring a version number of the baseboard management controller and/or the complex programmable logic device to the baseboard management controller through an intelligent platform management interface by using the system start controller; acquiring a version number returned by the baseboard management controller after responding to the target request through the system starting controller; wherein the process of the baseboard management controller responding to the target request includes: the baseboard management controller reads a first version number corresponding to the baseboard management controller and/or reads a second version number corresponding to the complex programmable logic device from a first register for storing version numbers according to the target request, and sends the read first version number and/or second version number to the system start controller.
It should be noted that the UEFI system may be divided into seven phases from power up to power down, which are: SEC (Security), PEI (Pre Extensible FIRMWARE INTERFACE Initialization), DXE (Driver Execution Environment ), BDS (Boot DEV SELECT, boot device select), TSL (TRANSIENT SYSTEM Load, operating system loading prophase), RT (Run Time, system Run phase), AL (AFTER LIFE, system disaster recovery phase or shutdown). In the DXE phase of UEFI, the UEFI requests the baseboard management controller to obtain the version number of the baseboard management controller and/or the complex programmable logic device by using the intelligent platform management interface (INTELLIGENT PLATFORM MANAGEMENT INTERFACE, i.e., IPMI); and the baseboard management controller reads a first version number corresponding to the baseboard management controller and/or a second version number corresponding to the complex programmable logic device from a first register for storing the version numbers according to the target request, and sends the read first version number and/or second version number to the UEFI.
Further, the application can implement a security verification mechanism in a system boot controller built based on UEFI to ensure that the version number received from the BMC is trusted. In particular, it is necessary to create a key pair that contains a set of keys for signing and verification. A set of predefined public keys is embedded in UEFI for verifying the signature of the external provider. Accordingly, the BMC needs to sign the version number information to be transmitted to the system start controller by using the private key corresponding to the version number information, and the security and the integrity of the information are ensured by the signatures. During the UEFI boot process, the signature of the BMC firmware is verified by the UEFI firmware to determine whether the version number is authentic according to the signature. In addition, the application uses encryption protocol to pre-create a secure channel between the BMC and the system start controller based on UEFI, so as to realize the secure communication between the system start controller and the BMC based on the secure channel.
Correspondingly, the system starting controller determines whether the hard disk out-of-band monitoring controller supports a data monitoring function based on the version number, and comprises the following steps: determining a first preset version number corresponding to the baseboard management controller, and if the first version number is not lower than the first preset version number, determining that the baseboard management controller supports a data monitoring function; the first preset version number is the lowest version number of the baseboard management controller supporting the data monitoring function; and/or determining a second preset version number corresponding to the complex programmable logic device, and if the second version number is not lower than the second preset version number, determining that the complex programmable logic device supports a data monitoring function; the second preset version number is the lowest version number of the complex programmable logic device supporting the data monitoring function. It should be noted that the out-of-band monitoring function mainly refers to a data monitoring function, that is, the system start controller determines whether the baseboard management controller and the complex programmable logic device support the out-of-band monitoring function, and mainly determines whether they support a function of monitoring log data of the hard disk (that is, a data monitoring function). It can be understood that the out-of-band monitoring of the hard disk is mainly monitoring of the hard disk log data, and the application additionally adds the function of outputting the hard disk log data by utilizing the hard disk state pin of the hard disk; for the out-of-band hard disk monitoring controller, if the out-of-band hard disk monitoring controller comprises a baseboard management controller and a complex programmable logic device, the function of signal demodulation and hard disk log data storage is required to be supported for the complex programmable logic device, and the function of hard disk log data reading and analysis in the complex programmable logic device is required to be supported for the baseboard management controller. The present application thus checks version numbers to see if the current version of baseboard management controller and/or complex programmable logic device supports the above-described function of monitoring hard disk log data.
In addition, whether the baseboard management controller and the complex programmable logic device support the data monitoring function is judged, the current version number of the baseboard management controller and the complex programmable logic device support the data monitoring function is compared with the lowest version number supporting the out-of-band monitoring function, and if the current version number is not lower than the lowest version number, the baseboard management controller and the complex programmable logic device support the data monitoring function is described.
It should be noted that, if the baseboard management controller does not read the first version number from the first register, or the system start controller does not obtain the first version number sent by the baseboard management controller, the system start controller detects whether a web interface of the baseboard management controller has a hard disk data display component, and if the web interface has the hard disk data display component, it is determined that the baseboard management controller supports an out-of-band monitoring function. It should be noted that, in the case that some baseboard management controllers cannot find the version number from the first register, or the system start controller cannot obtain the version number of the baseboard management controller, another method is provided in the embodiment of the present application to determine whether the baseboard management controller supports the out-of-band monitoring function. The web page interface of the baseboard management controller is provided with a hard disk data display component, and the obtained hard disk log data can be displayed on a screen in real time. When the system starting controller cannot acquire the version number of the baseboard management controller, whether a hard disk data display component exists at a position corresponding to the BMC webpage interface or not is detected, and if so, the baseboard management controller is considered to support the system function.
It should be noted that, if the baseboard management controller does not read the second version number from the first register, or the system start controller does not obtain the second version number sent by the baseboard management controller, the system start controller reads the code occupied memory size of the complex programmable logic device from the second register in the complex programmable logic device, and if the code occupied memory size is the same as the code development size of the complex programmable logic device, it is determined that the complex programmable logic device supports an out-of-band monitoring function. It should be noted that, for the case that some complex programmable logic devices cannot find the version number from the first register, or the system start controller cannot obtain the version number of the complex programmable logic device, the embodiment of the present application further provides another method for determining whether the complex programmable logic device supports the out-of-band monitoring function. The system starting controller reads the code occupation memory size of the complex programmable logic device from the second register when the version number of the complex programmable logic device cannot be acquired, and if the code occupation memory size is the same as the code development size of the complex programmable logic device, the system starting controller determines that the complex programmable logic device supports the out-of-band monitoring function.
In a specific embodiment, when the system start controller is built based on a unified extensible firmware interface, the process of detecting the version number of the hard disk to be monitored by using the system start controller includes: in a drive execution environment stage of the system starting controller, using the system starting controller to poll all hard disks to be monitored so as to obtain a third version number, a supplier identifier and an organization unique identifier corresponding to each hard disk to be monitored; correspondingly, determining whether the hard disk to be monitored supports a data monitoring function based on the version number comprises the following steps: and determining whether the hard disk to be monitored supports a data monitoring function or not based on the third version number, the supplier identification and the organization unique identifier. Similar to the process of detecting the hard disk out-of-band monitoring controller, the system start controller judges whether the hard disk supports the out-of-band monitoring function, mainly judges whether the hard disk supports the data monitoring function, namely, whether the hard disk state pin can be used for outputting hard disk log data. In the DXE stage of the UEFI, the UEFI can poll all the hard disks to be monitored Through a PCIE bus and determine whether the hard disks support a data monitoring function Through an ATA Pass Through command. Specifically, the UEFI polls all the hard disks to be monitored to obtain a third version number, a vendor identifier and an organization unique identifier (Organizationally unique identifier, OUI) corresponding to each hard disk to be monitored, and determines whether the hard disk to be monitored supports the data monitoring function based on the third version number, the vendor identifier and the organization unique identifier.
Specifically, the determining whether the hard disk to be monitored supports the data monitoring function based on the third version number, the vendor identifier and the organization unique identifier includes: determining a third preset version number corresponding to the hard disk to be monitored based on the vendor identification and the organization unique identifier; the third preset version number is the lowest version number of the to-be-monitored hard disk supporting data monitoring function; and if the third version number is not lower than the third preset version number and the format of the hard disk management log of the hard disk to be monitored is correct, determining that the hard disk to be monitored supports a data monitoring function. It can be understood that when the system start controller determines whether the hard disk to be monitored supports the data monitoring function, the version number of each hard disk to be monitored is also compared with the lowest version number supporting the out-of-band monitoring function, and if the current version number is not lower than the lowest version number and the format of the hard disk management log of the hard disk to be monitored is correct, the hard disk to be monitored is determined to support the data monitoring function.
Step S22: and if the system starting controller determines that the hard disk out-of-band monitoring controller and the hard disk to be monitored both support the out-of-band monitoring function, taking the hard disk to be monitored as the target hard disk, starting the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk, and sending the information of the target hard disk to the hard disk out-of-band monitoring controller, so that the hard disk out-of-band monitoring controller obtains the hard disk log data of the target hard disk.
In this embodiment, if the system start controller determines that the hard disk out-of-band monitoring controller and the hard disk to be monitored both support the out-of-band monitoring function, the hard disk to be monitored is used as the target hard disk, and the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are started. That is, only if the out-of-band monitoring controller of the hard disk and the hard disk to be monitored simultaneously support the out-of-band monitoring function, the out-of-band monitoring functions of the out-of-band monitoring controller of the hard disk and the target hard disk are started. The system starting controller further sends the information of the target hard disk to the hard disk out-of-band monitoring controller so that the hard disk out-of-band monitoring controller can acquire the hard disk log data of the target hard disk.
Step S23: and if the hard disk out-of-band monitoring controller or the hard disk to be monitored does not support the out-of-band monitoring function, prohibiting starting the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the hard disk to be monitored.
In this embodiment, if the out-of-band monitoring controller of the hard disk or the hard disk to be monitored does not support the out-of-band monitoring function, the out-of-band monitoring functions of the out-of-band monitoring controller of the hard disk and the hard disk to be monitored are prohibited from being started. It should be noted that, the out-of-band monitoring function of the hard disk out-of-band monitoring controller and the hard disk to be monitored are both closed by default, that is, if one of the hard disk out-of-band monitoring controller and the hard disk to be monitored does not support the out-of-band monitoring function, the out-of-band monitoring function of both cannot be started.
It should be noted that the embodiments of the present application support user modification of the configuration out-of-band monitoring functionality at the user interface. In a specific embodiment, when the system start-up controller is built based on a unified extensible firmware interface, if a function configuration modification instruction about the hard disk out-of-band monitoring controller and/or the target hard disk, which is sent by a user through a first user interface, is obtained in a start-up device selection stage of the system start-up controller, or if a function configuration modification instruction about the hard disk out-of-band monitoring controller and/or the target hard disk, which is sent by a user through a second user interface, is obtained in an operating system loading early stage of the system start-up controller, modifying configuration is performed on the hard disk out-of-band monitoring controller and/or the target hard disk through the obtained function configuration modification instruction; after the first user interface or the second user interface is detected to be closed, detecting whether the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are consistent or not through the system starting controller; the function configuration state comprises an on state and an off state; if the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are inconsistent, judging that the acquired function configuration modification instruction is an invalid instruction, and clearing the modification configuration of the out-of-band monitoring controller and/or the target hard disk. The first user interface and the second user interface are used for displaying whether the current hard disk out-of-band monitoring controller and the current target hard disk support the out-of-band monitoring function or not and whether the current hard disk out-of-band monitoring controller and the current target hard disk start the out-of-band monitoring function or not.
It should be noted that, the first user interface is specifically a setup interface, the second user interface is specifically a shell interface, that is, a user can manually check whether the out-of-band monitoring controller of the hard disk and the target hard disk support and start the out-of-band monitoring function in the setup interface of the BDS stage and the shell interface of the TSL stage of the UEFI, and can configure the out-of-band monitoring function of the out-of-band monitoring controller of the hard disk and the target hard disk, if the user modifies the functional configuration states of the out-of-band monitoring controller of the hard disk and the target hard disk with respect to the out-of-band monitoring function in the setup interface and the shell interface, after detecting that the setup interface or the shell interface is closed, the UEFI needs to reconfirm whether the functional configuration states of the out-of-band monitoring controller of the hard disk and the target hard disk with respect to the out-of-band monitoring function are consistent, that is simultaneously started/stopped, if one side is not started/stopped, the user is cleaned about the modified configuration of the out-of-band monitoring controller of the hard disk and/or the target hard disk.
The specific flow is as follows: UEFI enters a Setup interface, and after entering, the UEFI can check whether the hard disk out-of-band monitoring controller and the target hard disk support the out-of-band monitoring function or not and whether the function is started or not; if the out-of-band monitoring controller of the hard disk and the target hard disk both support the system function, the out-of-band monitoring function of the out-of-band monitoring controller of the hard disk and the target hard disk can be started or closed through changing options, and in addition, the output interval of the output target signal of the hard disk can be changed by inputting numerical values; if the user starts/closes the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk, the UEFI confirms whether the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are simultaneously started/closed or not when the user leaves the Setup interface, otherwise, the configuration change of the user is invalid. In addition, after UEFI enters Shell, the same flow can be executed through the corresponding command.
In addition, the embodiment of the application also supports the user to modify and configure the out-of-band monitoring function at the terminal of the operating system. Specifically, a driver is installed when an operating system is started through the system starting controller, and if the operating system obtains a function configuration modification instruction about the hard disk out-of-band monitoring controller and/or the target hard disk, which is sent by a user through a terminal, the function configuration modification instruction is based on the obtained function configuration modification instruction to modify and configure the hard disk out-of-band monitoring controller and/or the target hard disk; after the terminal is detected to be closed, detecting whether the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are consistent or not through the driver; the function configuration state comprises an on state and an off state; if the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and/or the target hard disk are inconsistent, judging that the acquired function configuration modification instruction is an invalid instruction, and clearing the modification configuration of the out-of-band monitoring controller and/or the target hard disk.
It can be understood that the system start controller installs a driver when the operating system is started, confirms whether the out-of-band monitoring function of the hard disk out-of-band monitoring controller is started, and if so, performs the following flow; when detecting that the hard disk is hot-plugged, the operating system needs to acquire a supplier identifier, an organization unique identifier and a version number of the hard disk, confirms whether the hard disk supports an out-of-band monitoring function according to the supplier identifier, the organization unique identifier and the version number, determines a management log address of the hard disk, acquires a hard disk management log according to the hard disk management log address, and confirms whether the format of the hard disk management log is normal; and if the hard disk supports the out-of-band monitoring function and the management log format is normal, starting the out-of-band monitoring function of the hard disk relative to the system. The user can check and modify the state and configuration of the complex programmable logic device, the baseboard management controller and the hard disk relative to the system function by inputting instructions at the terminal. If the user starts/closes the system function of the hard disk out-of-band monitoring controller and/or the target hard disk, when the terminal is closed, the driver confirms whether the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are simultaneously opened/closed, otherwise, the configuration change of the user is invalid.
It can be seen that, in the embodiment of the present application, the system start controller detects whether each hard disk and the hard disk out-of-band monitor controller support the out-of-band monitor function in the initialization stage, and determines whether to enable the out-of-band monitor function according to the detection result, and only when the hard disk and the hard disk out-of-band monitor controller support the out-of-band monitor function, the out-of-band monitor function is enabled. In addition, the application also supports the manual checking and modifying of the configuration out-of-band monitoring function of the setup interface of the BDS stage and the shell interface of the TSL stage of the UEFI by a user, and also supports the manual checking and modifying of the configuration out-of-band monitoring function of the operating system terminal, and after the setup interface and the shell interface are detected to be closed or the terminal is closed, the UEFI/driver needs to reconfirm whether the function configuration states of the hard disk out-of-band monitoring controller and the target hard disk about the out-of-band monitoring function are consistent, namely, whether the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are simultaneously started/closed or not, otherwise, the configuration change of the user at the time is invalid. That is, no matter in any stage of system operation, the out-of-band monitoring controller of the hard disk and the functional configuration state of the target hard disk about the out-of-band monitoring function are required to be kept consistent, namely, the out-of-band monitoring controller and the target hard disk are simultaneously turned on or turned off, if only one of the functional configuration states is modified by a user, so that the modified functional configuration states are inconsistent, the modified configuration of the user is considered to be invalid, and the normal operation of the system is ensured.
Referring specifically to fig. 6, the present application discloses a flow chart for monitoring a hard disk using a baseboard management controller and a complex programmable logic device.
Firstly, a system starting controller detects whether the hard disk, the baseboard management controller and the complex programmable logic device all support the out-of-band monitoring function, and receives the supporting results of the hard disk, the baseboard management controller and the complex programmable logic device on the out-of-band monitoring function. The embodiment of the present application is not limited to this, and the system start controller may detect the hard disk first or detect the baseboard management controller and the complex programmable logic device simultaneously or according to a specified sequence, and fig. 6 is only a specific example given for convenience of describing the flow of the present scheme.
Further, if the hard disk, the baseboard management controller and the complex programmable logic device all support the out-of-band monitoring function, the out-of-band monitoring function of the hard disk, the baseboard management controller and the complex programmable logic device is started, and a function starting result is returned. Similarly, for whether the system start-up controller starts the out-of-band monitoring function of the hard disk first or starts the out-of-band monitoring function of the baseboard management controller and the complex programmable logic device first, the embodiment of the application is not limited to this, and the two can be performed simultaneously or can be started according to a specified sequence, and fig. 6 is only a specific example given for convenience in describing the flow of the scheme.
After the out-of-band monitoring functions of the hard disk, the baseboard management controller and the complex programmable logic device are all started, the hard disk can execute the step of transmitting the hard disk log data outwards, so that the baseboard management controller and the complex programmable logic device can monitor the hard disk out-of-band.
Specifically, the hard disk modulates based on the hard disk log data and the hard disk state signal corresponding to the hard disk state pin to output a target signal to the complex programmable logic device, the complex programmable logic device demodulates the target signal to obtain the hard disk log data and then stores the hard disk log data in a local place, and sends an interrupt signal to the baseboard management controller to remind the baseboard management controller to read the data, the baseboard management controller responds to the interrupt signal and reads the hard disk log data from the complex programmable logic device, then the hard disk log data is displayed on a target interface of the complex programmable logic device, and an early warning prompt is sent out when the hard disk log data does not meet a preset threshold condition.
The embodiment of the application also discloses a server, which comprises a hard disk out-of-band monitoring controller, a hard disk, a system starting controller and a first signal wire;
The hard disk out-of-band monitoring controller is used for determining a target hard disk from the hard disks and sending pin configuration information to the target hard disk; the target hard disk is a hard disk with an out-of-band monitoring function detected by the system starting controller in an initialization stage, and the pin configuration information comprises an identifier for indicating a hard disk state pin of an output target signal in the target hard disk and configuration parameters for configuring a signal modulation process of the target hard disk based on hard disk log data and the hard disk state signal corresponding to the hard disk state pin;
And the target hard disk is used for outputting the target signal to the hard disk out-of-band monitoring controller through the first signal line after corresponding configuration is carried out according to the pin configuration information, so that the hard disk out-of-band monitoring controller demodulates the target signal to obtain the hard disk log data, and executing the monitoring task on the target hard disk based on the hard disk log data.
In other words, the hard disk out-of-band monitoring controller in the application firstly determines the target hard disk with the out-of-band monitoring function from all the hard disks in the server, and particularly, the system starting controller in the server detects all the hard disks in the initialization stage so as to detect the hard disk with the out-of-band monitoring function. Further, the hard disk out-of-band monitoring controller can also send pin configuration information to the target hard disk, wherein the pin configuration information comprises an identifier for indicating a hard disk state pin for outputting a target signal in the target hard disk, so that the target hard disk can output the target signal according to the hard disk state pin selected by the hard disk out-of-band monitoring controller; in addition, the pin configuration information also comprises configuration parameters, and the configuration parameters are used for configuring a target hard disk according to the hard disk log data and the signal modulation process of the hard disk state signal corresponding to the hard disk state pin, so that the target signal is obtained through modulation. The method has the advantages that the target hard disk is modulated by using the hard disk log data and the hard disk state signals corresponding to the original functions of the hard disk state pins to obtain the target signals and output the target signals, so that the hard disk log data can be output by the hard disk state pins, and the limitation that the hard disk log data can be output only by connecting the hard disk expansion card through the specified data pins is solved. After the target hard disk is correspondingly configured according to the pin configuration information, outputting a target signal to the hard disk out-of-band monitoring controller through a first signal line so that the hard disk out-of-band monitoring controller demodulates the target signal to obtain hard disk log data, and executing a monitoring task on the target hard disk based on the hard disk log data. That is, the target hard disk can output the target signal according to the hard disk log data and the hard disk state signal corresponding to the hard disk state pin selected by the hard disk out-of-band monitoring controller in a modulating manner, so that the hard disk out-of-band monitoring controller can directly connect with the target hard disk through the first signal line to obtain the hard disk log data. Therefore, the out-of-band monitoring controller of the hard disk is directly connected with the target hard disk through the first signal line, so that out-of-band monitoring of the target hard disk is realized, an additional hard disk expansion card is not needed, that is, whether the hard disk is connected to the hard disk expansion card or not, out-of-band monitoring of the hard disk can be realized, the original function of the target hard disk is not affected, the out-of-band monitoring difficulty is reduced, and the range of the monitored hard disk for out-of-band monitoring of the hard disk is effectively improved.
Referring to fig. 7, the present application takes the out-of-band monitor controller of the hard disk as the baseboard management controller and the complex programmable logic device as an example, and the technical scheme of the present application will be described in detail.
The hard disk monitoring system architecture in fig. 7 is first composed of a baseboard management controller, a first target bus, a second target bus, a complex programmable logic device, a target hard disk and a system start controller. Wherein:
the substrate management controller is connected with the complex programmable logic devices on each hard disk backboard/mainboard in the server system through the first target bus and the second target bus, and is responsible for acquiring hard disk log data stored in each complex programmable logic device through the second target bus in a polling mode, or receiving an interrupt signal sent by the complex programmable logic device through the first target bus, and acquiring the hard disk log data stored in the corresponding complex programmable logic device through the second target bus.
The first target bus is a signal bus for out-of-band management in the server system, and meets the requirement that the complex programmable logic device sends an interrupt signal to the baseboard management controller; the first target bus is an optional component when the second target bus supports the interrupt function.
The second target bus is an out-of-band managed data bus in the server system and works in a mode of one master and multiple slaves, wherein the baseboard management controller is a master device, each complex programmable logic device is a slave device, and the second target bus is an optional component.
The complex programmable logic device consists of a hard disk monitoring data service module and a pulse width demodulation module:
The hard disk monitoring data service module is responsible for receiving and temporarily storing the hard disk log data demodulated by the pulse width demodulation module, sending an interrupt to the substrate management controller through the first target bus when the data exist, responding to a data reading request sent by the substrate management controller through the second target bus and returning the hard disk log data.
The pulse width demodulation module is connected to a pin of a target hard disk through a pin, and accurately identifies the level duration of the current output signal of the pin of the hard disk, so as to demodulate the current output signal based on the level duration and obtain the log data of the hard disk.
And modulating the output signals of the hard disk pins by using the current hard disk log data to obtain current output signals, and outputting the current output signals to the complex programmable logic device through the hard disk pins.
The system starting controller can automatically detect the hard disk, the complex programmable logic device and the baseboard management controller when the server is started, and confirm the versions of the hard disk, the complex programmable logic device and the baseboard management controller; it can be understood that the embodiment of the application performs debugging configuration on the hard disk, the complex programmable logic device and the baseboard management controller in advance, and modifies the respective version information, so that the out-of-band monitoring system formed by the hard disk, the complex programmable logic device and the baseboard management controller can have the respective required out-of-band monitoring function, thereby enabling the whole out-of-band monitoring system to normally operate. Therefore, whether the hard disk, the complex programmable logic device and the baseboard management controller support the out-of-band monitoring function or not can be determined by detecting the version numbers of the hard disk, the complex programmable logic device and the baseboard management controller, if so, the out-of-band monitoring function of the three modules is started, and if the hard disk, the complex programmable logic device and the baseboard management controller can not support the out-of-band monitoring function at the same time, the out-of-band monitoring function of the three modules is confirmed to be closed. The hard disk, the complex programmable logic device and the baseboard management controller all close the out-of-band monitoring function by default.
Referring to fig. 8, an embodiment of the application discloses a hard disk monitoring device, which is applied to a hard disk out-of-band monitoring controller, and comprises:
a hard disk determining module 11 for determining a target hard disk; the target hard disk is a hard disk which is detected by the system starting controller in an initialization stage and has an out-of-band monitoring function and is connected with the hard disk out-of-band monitoring controller through a first signal line;
the configuration module 12 is configured to send pin configuration information to the target hard disk, and acquire a target signal output by the target hard disk after corresponding configuration according to the pin configuration information through the first signal line; the pin configuration information comprises an identifier for indicating a hard disk state pin in the target hard disk, which outputs the target signal, and a configuration parameter for configuring a signal modulation process of the target hard disk based on hard disk log data and the hard disk state signal corresponding to the hard disk state pin;
And the monitoring module 13 is used for demodulating the target signal to obtain the hard disk log data and executing a monitoring task on the target hard disk based on the hard disk log data.
The beneficial effects are that: in the application, the hard disk out-of-band monitoring controller firstly needs to determine the target hard disk with the out-of-band monitoring function in the server, and particularly, the system starting controller in the server detects each hard disk in the initialization stage so as to detect the hard disk with the out-of-band monitoring function. The out-of-band monitoring controller of the hard disk is directly connected with the target hard disk through the first signal line, so that out-of-band monitoring of the target hard disk is realized, an additional hard disk expansion card is not needed, namely, out-of-band monitoring of the hard disk can be realized no matter whether the hard disk is connected to the hard disk expansion card or not, and the out-of-band monitoring difficulty is reduced. Further, the hard disk out-of-band monitoring controller can also send pin configuration information to the target hard disk, wherein the pin configuration information comprises an identifier for indicating a hard disk state pin for outputting a target signal in the target hard disk, so that the target hard disk can output the target signal according to the hard disk state pin selected by the hard disk out-of-band monitoring controller; in addition, the pin configuration information also comprises configuration parameters, and the configuration parameters are used for configuring a target hard disk according to the hard disk log data and the signal modulation process of the hard disk state signal corresponding to the hard disk state pin, so that the target signal is obtained through modulation. The method has the advantages that the target hard disk is modulated by using the hard disk log data and the hard disk state signals corresponding to the original functions of the hard disk state pins to obtain the target signals and output the target signals, so that the hard disk log data can be output by the hard disk state pins, and the limitation that the hard disk log data can be output only by connecting the hard disk expansion card through the specified data pins is solved. That is, the target hard disk can output the target signal according to the hard disk log data and the hard disk state signal corresponding to the hard disk state pin selected by the hard disk out-of-band monitoring controller, so that the hard disk out-of-band monitoring controller can acquire the hard disk log data by directly connecting the target hard disk through the first signal wire.
In some embodiments, the hard disk out-of-band monitoring controller performs a first interaction with the target hard disk based on a two-wire bi-directional communication mechanism; and the first interaction operation is that the out-of-band monitoring controller of the hard disk sends pin configuration information to the target hard disk, and obtains a target signal which is output after the target hard disk is correspondingly configured according to the pin configuration information.
In some specific embodiments, the device is configured to, when the hard disk status signal in the target signal is identified as a non-indicating status signal or an invalid signal and the current time is a negotiation period agreed with the target hard disk, perform a second interaction operation with the target hard disk based on a single-wire bidirectional communication mechanism by using the hard disk out-of-band monitoring controller; and the second interaction operation is that the out-of-band hard disk monitoring controller sends a reverse transmission request to the target hard disk, and outputs the pin configuration information to the target hard disk when an allowable signal of the target hard disk for the reverse transmission request is obtained.
In some embodiments, during an initialization phase of the system boot controller, the apparatus further comprises:
the version detection module is used for detecting version numbers of the hard disk out-of-band monitoring controller and the hard disk to be monitored by using the system starting controller when the server is electrified and started, and determining whether the hard disk out-of-band monitoring controller and the hard disk to be monitored both support an out-of-band monitoring function or not based on the version numbers;
The function starting module is used for taking the hard disk to be monitored as the target hard disk if the system starting controller determines that the hard disk out-of-band monitoring controller and the hard disk to be monitored both support the out-of-band monitoring function, starting the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk and sending the information of the target hard disk to the hard disk out-of-band monitoring controller so that the hard disk out-of-band monitoring controller can acquire the hard disk log data of the target hard disk;
And the function disabling module is used for disabling the out-of-band monitoring function of the hard disk out-of-band monitoring controller and the hard disk to be monitored if the out-of-band monitoring controller of the hard disk or the hard disk to be monitored does not support the out-of-band monitoring function.
In some embodiments, the system boot controller is built based on a unified extensible firmware interface or basic input-output system, and the hard disk out-of-band monitor controller comprises a baseboard management controller and/or a complex programmable logic device.
In some embodiments, when the system start-up controller is built based on a unified extensible firmware interface, the version detection module is specifically configured to send, at a driving execution environment stage of the system start-up controller, a target request for obtaining a version number of the baseboard management controller and/or the complex programmable logic device to the baseboard management controller through an intelligent platform management interface by using the system start-up controller; acquiring a version number returned by the baseboard management controller after responding to the target request through the system starting controller; wherein the process of the baseboard management controller responding to the target request includes: the baseboard management controller reads a first version number corresponding to the baseboard management controller and/or reads a second version number corresponding to the complex programmable logic device from a first register for storing version numbers according to the target request, and sends the read first version number and/or second version number to the system start controller.
In some embodiments, the version detection module is specifically configured to determine a first preset version number corresponding to the baseboard management controller, and if the first version number is not lower than the first preset version number, determine that the baseboard management controller supports a data monitoring function; the first preset version number is the lowest version number of the baseboard management controller supporting the data monitoring function; and/or determining a second preset version number corresponding to the complex programmable logic device, and if the second version number is not lower than the second preset version number, determining that the complex programmable logic device supports a data monitoring function; the second preset version number is the lowest version number of the complex programmable logic device supporting the data monitoring function.
In some embodiments, the apparatus further comprises:
The component detection unit is configured to detect, by the system start controller, whether a hard disk data display component exists on a web interface of the baseboard management controller if the baseboard management controller does not read the first version number from the first register or the system start controller does not acquire the first version number sent by the baseboard management controller, and determine that the baseboard management controller supports an out-of-band monitoring function if the hard disk data display component exists.
In some embodiments, the apparatus further comprises:
and the memory comparison unit is used for reading the code occupation memory size of the complex programmable logic device from the second register in the complex programmable logic device through the system starting controller if the second version number is not read from the first register by the baseboard management controller or the second version number sent by the baseboard management controller is not acquired by the system starting controller, and determining that the complex programmable logic device supports an out-of-band monitoring function if the code occupation memory size is the same as the code development size of the complex programmable logic device.
In some embodiments, when the system start-up controller is configured based on a unified extensible firmware interface, the version detection module is specifically configured to, in a driving execution environment stage of the system start-up controller, poll all hard disks to be monitored with the system start-up controller, so as to obtain a third version number, a vendor identifier, and an organization unique identifier corresponding to each hard disk to be monitored; and determining whether the hard disk to be monitored supports a data monitoring function or not based on the third version number, the supplier identification and the organization unique identifier.
In some specific embodiments, the version detection module is specifically configured to determine a third preset version number corresponding to the hard disk to be monitored based on the vendor identifier and the organization unique identifier; the third preset version number is the lowest version number of the to-be-monitored hard disk supporting data monitoring function; and if the third version number is not lower than the third preset version number and the format of the hard disk management log of the hard disk to be monitored is correct, determining that the hard disk to be monitored supports a data monitoring function.
In some embodiments, the apparatus further comprises:
The first configuration unit is used for, when the system starting controller is built based on a unified extensible firmware interface, if a function configuration modification instruction about the hard disk out-of-band monitoring controller and/or the target hard disk, which is sent by a user through a first user interface, is obtained in a starting equipment selection stage of the system starting controller, or if a function configuration modification instruction about the hard disk out-of-band monitoring controller and/or the target hard disk, which is sent by the user through a second user interface, is obtained in an operating system loading early stage of the system starting controller, modifying configuration is carried out on the hard disk out-of-band monitoring controller and/or the target hard disk through the obtained function configuration modification instruction;
The first state detection unit is used for detecting whether the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are consistent through the system starting controller after detecting that the first user interface or the second user interface is closed; the function configuration state comprises an on state and an off state;
And the first configuration clearing unit is used for judging that the acquired function configuration modification instruction is an invalid instruction if the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are inconsistent, and clearing the modification configuration of the hard disk out-of-band monitoring controller and/or the target hard disk.
In some embodiments, the first user interface and the second user interface are configured to display whether the current hard disk out-of-band monitoring controller and the current target hard disk support out-of-band monitoring functions, and whether the current hard disk out-of-band monitoring controller and the current target hard disk have turned on out-of-band monitoring functions.
In some embodiments, the apparatus further comprises:
The second configuration unit is used for installing a driver when the operating system is started through the system starting controller, and if the operating system obtains a function configuration modification instruction about the hard disk out-of-band monitoring controller and/or the target hard disk, which is sent by a user through a terminal, the function configuration modification instruction is used for modifying and configuring the hard disk out-of-band monitoring controller and/or the target hard disk;
The second state detection unit is used for detecting whether the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are consistent through the driver after the terminal is detected to be closed; the function configuration state comprises an on state and an off state;
And the second configuration clearing unit is used for judging that the acquired function configuration modification instruction is an invalid instruction if the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and/or the target hard disk are inconsistent, and clearing the modification configuration of the out-of-band monitoring controller and/or the target hard disk.
In some embodiments, the hard disk out-of-band monitor controller is a baseboard management controller;
Correspondingly, the monitoring module comprises:
The display unit is used for displaying the hard disk log data on a target interface;
The first early warning unit is used for determining a corresponding preset threshold condition based on the type of the hard disk log data, judging whether the hard disk log data meets the preset threshold condition or not, and sending out early warning prompt if the hard disk log data does not meet the preset threshold condition.
In some embodiments, the hard disk out-of-band monitor controller comprises a baseboard management controller and a complex programmable logic device;
Correspondingly, the monitoring module comprises:
the interrupt signal sending unit is used for sending an interrupt signal to the baseboard management controller through the complex programmable logic device and by utilizing a first target bus after obtaining the hard disk log data output by the target hard disk through the hard disk state pin;
the data reading unit is used for responding to the interrupt signal through the baseboard management controller and sending a data reading request to the complex programmable logic device through a second target bus so that the complex programmable logic device can send the hard disk log data to the baseboard management controller;
the second early warning unit is used for displaying the hard disk log data on a target interface through the baseboard management controller and sending out early warning prompt when the hard disk log data does not meet the preset threshold condition; the preset threshold condition is a threshold condition corresponding to the type of the hard disk log data.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Specifically, the method comprises the following steps: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is configured to store a computer program that is loaded and executed by the processor 21 to implement relevant steps in the hard disk monitoring method performed by the electronic device as disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device; the communication interface 24 can create a data transmission channel between the electronic device and the external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not limited herein in detail; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in at least one hardware form of DSP (DIGITAL SIGNAL Processing), FPGA (Field-Programmable gate array), PLA (Programmable Logic Array ). The processor 21 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 21 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for processing computing operations related to machine learning.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon include an operating system 221, a computer program 222, and data 223, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device and the computer program 222, so as to implement the operation and processing of the processor 21 on the mass data 223 in the memory 22, which may be Windows, unix, linux. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the hard disk monitoring method performed by the electronic device as disclosed in any of the previous embodiments. The data 223 may include, in addition to data received by the electronic device and transmitted by the external device, data collected by the input/output interface 25 itself, and so on.
Further, the embodiment of the application also discloses a computer readable storage medium, wherein the storage medium stores a computer program, and when the computer program is loaded and executed by a processor, the steps of the hard disk monitoring method disclosed in any embodiment are realized.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation is not intended to be limiting.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in random access Memory (Random Access Memory, i.e., RAM), memory, read-Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a compact disc Read-Only Memory (Compact Disc Read-Only Memory, i.e., CD-ROM), or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description of the method, the device, the equipment and the storage medium for monitoring the hard disk provided by the invention applies specific examples to illustrate the principle and the implementation of the invention, and the above examples are only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (20)

1. The hard disk monitoring method is characterized by being applied to a hard disk out-of-band monitoring controller and comprising the following steps of:
Determining a target hard disk; the target hard disk is a hard disk which is detected by the system starting controller in an initialization stage and has an out-of-band monitoring function and is connected with the hard disk out-of-band monitoring controller;
the method comprises the steps of sending pin configuration information to a target hard disk, and obtaining a target signal which is output by the target hard disk after corresponding configuration according to the pin configuration information; the pin configuration information comprises an identifier for indicating a hard disk state pin in the target hard disk, which outputs the target signal, and a configuration parameter for configuring a signal modulation process of the target hard disk based on hard disk log data and the hard disk state signal corresponding to the hard disk state pin;
demodulating the target signal to obtain the hard disk log data, and executing a monitoring task on the target hard disk based on the hard disk log data;
The initialization stage of the system start controller comprises the following steps:
When a server is powered on and started, detecting version numbers of the hard disk out-of-band monitoring controller and the hard disk to be monitored by using the system starting controller, and determining whether the hard disk out-of-band monitoring controller and the hard disk to be monitored both support an out-of-band monitoring function or not based on the version numbers;
And if the system starting controller determines that the hard disk out-of-band monitoring controller and the hard disk to be monitored both support the out-of-band monitoring function, taking the hard disk to be monitored as the target hard disk, starting the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk, and sending the information of the target hard disk to the hard disk out-of-band monitoring controller, so that the hard disk out-of-band monitoring controller obtains the hard disk log data of the target hard disk.
2. The hard disk monitoring method of claim 1, wherein the hard disk out-of-band monitoring controller performs a first interaction with the target hard disk based on a two-wire bi-directional communication mechanism; and the first interaction operation is that the out-of-band monitoring controller of the hard disk sends pin configuration information to the target hard disk, and obtains a target signal which is output after the target hard disk is correspondingly configured according to the pin configuration information.
3. The hard disk monitoring method according to claim 1, wherein when the hard disk status signal in the target signal is identified as a non-indicating status signal or an invalid signal and the current time is a negotiation period agreed with the target hard disk, the hard disk out-of-band monitoring controller performs a second interaction operation with the target hard disk based on a single-wire bi-directional communication mechanism; and the second interaction operation is that the out-of-band hard disk monitoring controller sends a reverse transmission request to the target hard disk, and outputs the pin configuration information to the target hard disk when an allowable signal of the target hard disk for the reverse transmission request is obtained.
4. The method for monitoring a hard disk according to claim 1, further comprising, after determining whether the out-of-band monitoring controller of the hard disk and the hard disk to be monitored both support an out-of-band monitoring function based on the version number:
And if the hard disk out-of-band monitoring controller or the hard disk to be monitored does not support the out-of-band monitoring function, prohibiting starting the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the hard disk to be monitored.
5. The method according to claim 1, wherein the system start-up controller is built based on a unified extensible firmware interface or a basic input-output system, and the hard disk out-of-band monitor controller comprises a baseboard management controller and/or a complex programmable logic device.
6. The method of claim 5, wherein when the system start-up controller is built based on a unified extensible firmware interface, the process of detecting the version number of the hard disk out-of-band monitor controller using the system start-up controller comprises:
In a drive execution environment stage of the system start controller, sending a target request for acquiring a version number of the baseboard management controller and/or the complex programmable logic device to the baseboard management controller through an intelligent platform management interface by using the system start controller;
Acquiring a version number returned by the baseboard management controller after responding to the target request through the system starting controller; wherein the process of the baseboard management controller responding to the target request includes: the baseboard management controller reads a first version number corresponding to the baseboard management controller and/or reads a second version number corresponding to the complex programmable logic device from a first register for storing version numbers according to the target request, and sends the read first version number and/or second version number to the system start controller.
7. The hard disk monitoring method of claim 6, wherein determining whether the hard disk out-of-band monitoring controller supports a data monitoring function based on the version number comprises:
Determining a first preset version number corresponding to the baseboard management controller, and if the first version number is not lower than the first preset version number, determining that the baseboard management controller supports a data monitoring function; the first preset version number is the lowest version number of the baseboard management controller supporting the data monitoring function;
And/or determining a second preset version number corresponding to the complex programmable logic device, and if the second version number is not lower than the second preset version number, determining that the complex programmable logic device supports a data monitoring function; the second preset version number is the lowest version number of the complex programmable logic device supporting the data monitoring function.
8. The method for monitoring a hard disk according to claim 6, further comprising:
If the baseboard management controller does not read the first version number from the first register or the system starting controller does not acquire the first version number sent by the baseboard management controller, detecting whether a hard disk data display component exists in a webpage interface of the baseboard management controller through the system starting controller, and if the hard disk data display component exists, determining that the baseboard management controller supports an out-of-band monitoring function.
9. The method for monitoring a hard disk according to claim 6, further comprising:
And if the baseboard management controller does not read the second version number from the first register or the system starting controller does not acquire the second version number sent by the baseboard management controller, reading the code occupied memory size of the complex programmable logic device from the second register in the complex programmable logic device through the system starting controller, and if the code occupied memory size is the same as the code development size of the complex programmable logic device, determining that the complex programmable logic device supports an out-of-band monitoring function.
10. The method according to claim 5, wherein when the system start-up controller is built based on a unified extensible firmware interface, the process of detecting the version number of the hard disk to be monitored using the system start-up controller comprises:
in a drive execution environment stage of the system starting controller, using the system starting controller to poll all hard disks to be monitored so as to obtain a third version number, a supplier identifier and an organization unique identifier corresponding to each hard disk to be monitored;
correspondingly, determining whether the hard disk to be monitored supports a data monitoring function based on the version number comprises the following steps:
And determining whether the hard disk to be monitored supports a data monitoring function or not based on the third version number, the supplier identification and the organization unique identifier.
11. The method of claim 10, wherein the determining whether the hard disk to be monitored supports a data monitoring function based on the third version number, the vendor identification, and the organization unique identifier comprises:
determining a third preset version number corresponding to the hard disk to be monitored based on the vendor identification and the organization unique identifier; the third preset version number is the lowest version number of the to-be-monitored hard disk supporting data monitoring function;
and if the third version number is not lower than the third preset version number and the format of the hard disk management log of the hard disk to be monitored is correct, determining that the hard disk to be monitored supports a data monitoring function.
12. The method for monitoring a hard disk according to claim 5, further comprising:
When the system starting controller is built based on a unified extensible firmware interface, if a function configuration modification instruction about the hard disk out-of-band monitoring controller and/or the target hard disk, which is sent by a user through a first user interface, is obtained in a starting device selection stage of the system starting controller, or if a function configuration modification instruction about the hard disk out-of-band monitoring controller and/or the target hard disk, which is sent by the user through a second user interface, is obtained in an operating system loading early stage of the system starting controller, modifying configuration is carried out on the hard disk out-of-band monitoring controller and/or the target hard disk through the obtained function configuration modification instruction;
after the first user interface or the second user interface is detected to be closed, detecting whether the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are consistent or not through the system starting controller; the function configuration state comprises an on state and an off state;
If the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are inconsistent, judging that the acquired function configuration modification instruction is an invalid instruction, and clearing the modification configuration of the out-of-band monitoring controller and/or the target hard disk.
13. The method of claim 12, wherein the first user interface and the second user interface are configured to display whether the current hard disk out-of-band monitor controller and the current target hard disk support out-of-band monitor functions, and whether the current hard disk out-of-band monitor controller and the current target hard disk have turned on out-of-band monitor functions.
14. The method for monitoring a hard disk according to claim 4, further comprising:
Installing a driver when an operating system is started by the system starting controller, and if the operating system obtains a function configuration modification instruction about the hard disk out-of-band monitoring controller and/or the target hard disk, which is sent by a user through a terminal, modifying and configuring the hard disk out-of-band monitoring controller and/or the target hard disk based on the obtained function configuration modification instruction;
after the terminal is detected to be closed, detecting whether the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk are consistent or not through the driver; the function configuration state comprises an on state and an off state;
if the function configuration states of the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and/or the target hard disk are inconsistent, judging that the acquired function configuration modification instruction is an invalid instruction, and clearing the modification configuration of the out-of-band monitoring controller and/or the target hard disk.
15. The hard disk monitoring method according to any one of claims 1 to 14, wherein the hard disk out-of-band monitoring controller is a baseboard management controller;
correspondingly, the executing the monitoring task on the target hard disk based on the hard disk log data comprises the following steps:
Displaying the hard disk log data on a target interface;
And determining a corresponding preset threshold condition based on the type of the hard disk log data, judging whether the hard disk log data meets the preset threshold condition, and if not, sending out an early warning prompt.
16. The hard disk monitoring method of any one of claims 1 to 14 wherein the hard disk out-of-band monitoring controller comprises a baseboard management controller and a complex programmable logic device;
correspondingly, the executing the monitoring task on the target hard disk based on the hard disk log data comprises the following steps:
After obtaining the hard disk log data output by the target hard disk through the hard disk state pin, sending an interrupt signal to the baseboard management controller through the complex programmable logic device by utilizing a first target bus;
Responding to the interrupt signal through the baseboard management controller, and sending a data reading request to the complex programmable logic device through a second target bus so that the complex programmable logic device sends the hard disk log data to the baseboard management controller;
displaying the hard disk log data on a target interface through the baseboard management controller, and sending out an early warning prompt when the hard disk log data does not meet a preset threshold condition; the preset threshold condition is a threshold condition corresponding to the type of the hard disk log data.
17. The server is characterized by comprising a hard disk out-of-band monitoring controller and a system starting controller;
The hard disk out-of-band monitoring controller is used for determining a target hard disk from the hard disks and sending pin configuration information to the target hard disk; the target hard disk is a hard disk with an out-of-band monitoring function detected by the system starting controller in an initialization stage, and the pin configuration information comprises an identifier for indicating a hard disk state pin of an output target signal in the target hard disk and configuration parameters for configuring a signal modulation process of the target hard disk based on hard disk log data and the hard disk state signal corresponding to the hard disk state pin;
The target hard disk is used for outputting the target signal to the hard disk out-of-band monitoring controller after corresponding configuration is carried out according to the pin configuration information so that the hard disk out-of-band monitoring controller demodulates the target signal to obtain the hard disk log data, and executing a monitoring task on the target hard disk based on the hard disk log data;
The initialization stage of the system start controller comprises the following steps:
When a server is powered on and started, detecting version numbers of the hard disk out-of-band monitoring controller and the hard disk to be monitored by using the system starting controller, and determining whether the hard disk out-of-band monitoring controller and the hard disk to be monitored both support an out-of-band monitoring function or not based on the version numbers;
And if the system starting controller determines that the hard disk out-of-band monitoring controller and the hard disk to be monitored both support the out-of-band monitoring function, taking the hard disk to be monitored as the target hard disk, starting the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk, and sending the information of the target hard disk to the hard disk out-of-band monitoring controller, so that the hard disk out-of-band monitoring controller obtains the hard disk log data of the target hard disk.
18. The utility model provides a hard disk monitoring device which characterized in that is applied to hard disk out-of-band control ware, includes:
The hard disk determining module is used for determining a target hard disk; the target hard disk is a hard disk which is detected by the system starting controller in an initialization stage and has an out-of-band monitoring function and is connected with the hard disk out-of-band monitoring controller;
The configuration module is used for sending pin configuration information to the target hard disk and acquiring a target signal which is output after the target hard disk is correspondingly configured according to the pin configuration information; the pin configuration information comprises an identifier for indicating a hard disk state pin in the target hard disk, which outputs the target signal, and a configuration parameter for configuring a signal modulation process of the target hard disk based on hard disk log data and the hard disk state signal corresponding to the hard disk state pin;
The monitoring module is used for demodulating the target signal to obtain the hard disk log data and executing a monitoring task on the target hard disk based on the hard disk log data;
wherein, during the initialization phase of the system start controller, the hard disk monitoring device is further configured to: when a server is powered on and started, detecting version numbers of the hard disk out-of-band monitoring controller and the hard disk to be monitored by using the system starting controller, and determining whether the hard disk out-of-band monitoring controller and the hard disk to be monitored both support an out-of-band monitoring function or not based on the version numbers; and if the system starting controller determines that the hard disk out-of-band monitoring controller and the hard disk to be monitored both support the out-of-band monitoring function, taking the hard disk to be monitored as the target hard disk, starting the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk, and sending the information of the target hard disk to the hard disk out-of-band monitoring controller, so that the hard disk out-of-band monitoring controller obtains the hard disk log data of the target hard disk.
19. An electronic device, comprising:
a memory for storing a computer program;
A processor for executing the computer program to implement the steps of the hard disk monitoring method as claimed in any one of claims 1 to 16.
20. A computer-readable storage medium storing a computer program; wherein the computer program when executed by a processor implements the steps of the hard disk monitoring method according to any one of claims 1 to 16.
CN202410382028.XA 2024-03-29 2024-03-29 Server and hard disk monitoring method, device, equipment and medium thereof Active CN117992311B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410382028.XA CN117992311B (en) 2024-03-29 2024-03-29 Server and hard disk monitoring method, device, equipment and medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410382028.XA CN117992311B (en) 2024-03-29 2024-03-29 Server and hard disk monitoring method, device, equipment and medium thereof

Publications (2)

Publication Number Publication Date
CN117992311A CN117992311A (en) 2024-05-07
CN117992311B true CN117992311B (en) 2024-06-14

Family

ID=90894447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410382028.XA Active CN117992311B (en) 2024-03-29 2024-03-29 Server and hard disk monitoring method, device, equipment and medium thereof

Country Status (1)

Country Link
CN (1) CN117992311B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118503053B (en) * 2024-07-17 2024-09-27 苏州元脑智能科技有限公司 Hardware information transmission method, product, equipment and medium
CN119336682B (en) * 2024-12-19 2025-06-20 苏州元脑智能科技有限公司 Method for performing hot removal operation, hot plug system, device, medium and product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116932311A (en) * 2022-03-29 2023-10-24 富联精密电子(天津)有限公司 Solid state disk state monitoring method, system, server and storage medium
CN117076227A (en) * 2023-08-31 2023-11-17 苏州浪潮智能科技有限公司 Simulation test system, method, device and medium for hard disk backplane monitoring function

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948157B (en) * 2021-01-29 2022-12-23 苏州浪潮智能科技有限公司 Server fault location method, device, system and computer-readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116932311A (en) * 2022-03-29 2023-10-24 富联精密电子(天津)有限公司 Solid state disk state monitoring method, system, server and storage medium
CN117076227A (en) * 2023-08-31 2023-11-17 苏州浪潮智能科技有限公司 Simulation test system, method, device and medium for hard disk backplane monitoring function

Also Published As

Publication number Publication date
CN117992311A (en) 2024-05-07

Similar Documents

Publication Publication Date Title
CN117992311B (en) Server and hard disk monitoring method, device, equipment and medium thereof
US7487372B2 (en) Remote power sensing for hard disk bridge controller
CN103080904B (en) Multistage lock-step integrity report mechanism is provided
US5852743A (en) Method and apparatus for connecting a plug-and-play peripheral device to a computer
CN108304299A (en) Server power-up state monitors system and method, computer storage and equipment
CN105938450A (en) Method and system for automatic debugging information collection
US8751635B2 (en) Monitoring sensors for systems management
CN103793307A (en) Electronic device, management method thereof and cabinet servo system
CN112463689A (en) OCP card hot plug device, method and computer readable storage medium
CN109032901A (en) A kind of monitoring method, device and the controlled terminal of the outer SSD of remote band
CN108363477A (en) Server power-up state monitors system and method, computer storage and equipment
CN117707884A (en) Method, system, equipment and medium for monitoring power management chip
CN118708519B (en) Server expansion module, server, configuration method, device and medium
CN112579366B (en) Hard disk in-place detection system
CN117971607B (en) Hard disk monitoring method, device, equipment and medium
CN108304290A (en) Server power-up state monitors system and method, computer storage and equipment
CN112596983A (en) A monitoring method for a connector in a server
US20240070092A1 (en) Input/output expansion emulation with a programmable device
CN115934616A (en) Serial port information storage method and device, server, electronic equipment and storage medium
CN117056154A (en) Method, system, device and medium for detecting network port function of intelligent network card
CN116954972A (en) Fault positioning method, positioning device, terminal equipment and storage medium
US11740790B2 (en) Electronic device and method for monitoring hard disks
CN116302687A (en) Communication recovery method, device, system and readable storage medium
CN117971613B (en) Hard disk monitoring system, method, equipment, storage medium and baseboard management controller
CN211787062U (en) MCTP equipment testing arrangement

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant