WO2025200599A1 - 一种服务器及其硬盘监控方法、装置、设备和介质 - Google Patents

一种服务器及其硬盘监控方法、装置、设备和介质

Info

Publication number
WO2025200599A1
WO2025200599A1 PCT/CN2024/139297 CN2024139297W WO2025200599A1 WO 2025200599 A1 WO2025200599 A1 WO 2025200599A1 CN 2024139297 W CN2024139297 W CN 2024139297W WO 2025200599 A1 WO2025200599 A1 WO 2025200599A1
Authority
WO
WIPO (PCT)
Prior art keywords
hard disk
target
controller
band monitoring
monitoring
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.)
Pending
Application number
PCT/CN2024/139297
Other languages
English (en)
French (fr)
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
Publication of WO2025200599A1 publication Critical patent/WO2025200599A1/zh
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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

Definitions

  • Healthy hard drive operation is a key factor in ensuring device server reliability.
  • the device To ensure accurate control of the hard drive's operating status, the device must monitor the drive during operation to obtain status information.
  • the main hard drive monitoring solutions are divided into in-band and out-of-band hard drive monitoring.
  • Out-of-band hard drive monitoring involves the device's out-of-band monitoring controller, such as the baseboard management controller, obtaining hard drive status information through communication with the hard drive expansion card connected to the hard drive.
  • the hard drive is not connected to a hard drive expansion card, out-of-band monitoring is not possible.
  • the out-of-band monitoring controller can only monitor the hard drive out-of-band if both the out-of-band monitoring controller and the hard drive support the out-of-band monitoring function.
  • hard drives can only output hard drive status information through specified data pins, making it difficult to configure and utilize other pins of the hard drive.
  • the purpose of this application is to provide a server and hard drive monitoring method, apparatus, device, and medium thereof, which can not only ensure that the hard drive supports out-of-band monitoring functions, but also support the configuration of other hard drive pins, thereby increasing the range of hard drives that can be monitored in the hard drive out-of-band monitoring solution.
  • the specific solution is as follows:
  • the present application discloses a hard disk monitoring method, which is applied to a hard disk out-of-band monitoring controller, comprising:
  • the target hard disk is a hard disk having an out-of-band monitoring function and connected to the hard disk out-of-band monitoring controller via a first signal line detected by the system startup controller during the initialization phase;
  • the pin configuration information includes an identifier for indicating a hard disk status pin in the target hard disk that outputs the target signal, and configuration parameters for configuring a signal modulation process of the hard disk status signal corresponding to the hard disk status pin and the hard disk log data of the target hard disk;
  • the target signal is demodulated to obtain hard disk log data, and a monitoring task for the target hard disk is performed based on the hard disk log data.
  • the hard disk out-of-band monitoring controller when the hard disk status signal in the target signal is identified as a non-indication status signal or an invalid signal, and the current moment is the negotiation time period agreed upon with the target hard disk, the hard disk out-of-band monitoring controller performs a second interactive operation with the target hard disk based on a single-line bidirectional communication mechanism; the second interactive operation is that the hard disk out-of-band monitoring controller sends a reverse transmission request to the target hard disk, and when obtaining the target hard disk's permission signal for the reverse transmission request, outputs pin configuration information to the target hard disk.
  • the system startup controller determines that both the hard disk out-of-band monitoring controller and the hard disk to be monitored 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 enabled, and the information of the target hard disk is sent to the hard disk out-of-band monitoring controller, so that the hard disk out-of-band monitoring controller can obtain the hard disk log data of the target hard disk;
  • the out-of-band monitoring function of the hard disk out-of-band monitoring controller and the hard disk to be monitored is disabled.
  • the system startup controller obtains the version number returned by the baseboard management controller after responding to the target request; wherein, the process of the baseboard management controller responding to the target request includes: the baseboard management controller reads the first version number corresponding to the baseboard management controller and/or reads the second version number corresponding to the complex programmable logic device from the first register used to store the version number according to the target request, and sends the read first version number and/or second version number to the system startup controller.
  • the second preset version number determines a second preset version number corresponding to the complex programmable logic device; if the second version number is not lower than the second preset version number, determine that the complex programmable logic device supports the data monitoring function; wherein the second preset version number is the lowest version number of the complex programmable logic device that supports the data monitoring function.
  • the hard disk monitoring method further includes:
  • the system startup controller detects whether there is a hard disk data display component on the web page interface of the baseboard management controller. If there is a hard disk data display component, it is determined that the baseboard management controller supports the out-of-band monitoring function.
  • the hard disk monitoring method further includes:
  • the system startup controller reads the memory size occupied by the code of the complex programmable logic device from the second register in the complex programmable logic device. If the memory size occupied by the code is the same as the code development size of the complex programmable logic device, it is determined that the complex programmable logic device supports the out-of-band monitoring function.
  • the function configuration state includes an on state and a off state
  • the corresponding preset threshold condition is determined based on the type of hard disk log data, and it is judged whether the hard disk log data meets the preset threshold condition. If not, an early warning prompt is issued.
  • the hard disk out-of-band monitoring controller includes a baseboard management controller and a complex programmable logic device
  • the monitoring task of the target hard disk is performed based on the hard disk log data, including:
  • a hard drive out-of-band monitoring controller configured to identify a target hard drive from the hard drives and send pin configuration information to the target hard drive;
  • the target hard drive is a hard drive with out-of-band monitoring functionality detected by the system boot controller during the initialization phase, the pin configuration information including an identifier of a hard drive status pin indicating an output target signal on the target hard drive, and configuration parameters for configuring a signal modulation process for the target hard drive based on hard drive log data and a hard drive status signal corresponding to the hard drive status pin;
  • the target hard disk is configured according to the pin configuration information and then outputs a target signal to the hard disk out-of-band monitoring controller, so that the hard disk out-of-band monitoring controller demodulates the target signal to obtain hard disk log data and performs monitoring tasks on the target hard disk based on the hard disk log data.
  • the present application discloses a hard disk monitoring device, which is applied to a hard disk out-of-band monitoring controller, comprising:
  • the hard disk determination module is used to determine the target hard disk;
  • the target hard disk is a hard disk with an out-of-band monitoring function and connected to the hard disk out-of-band monitoring controller detected by the system startup controller during the initialization phase;
  • a configuration module configured to send pin configuration information to a target hard drive and obtain a target signal output by the target hard drive after the target hard drive is configured accordingly according to the pin configuration information;
  • the pin configuration information includes an identifier of a hard drive status pin in the target hard drive that outputs the target signal, and configuration parameters for configuring a signal modulation process for the target hard drive based on hard drive log data and the hard drive status signal corresponding to the hard drive status pin;
  • the process of the hard disk out-of-band monitoring controller sending pin configuration information to the target hard disk can 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 it so that it can output the target signal after making corresponding configuration according to the pin configuration information. It can also occur during the system operation, at this time, the pin configuration information is sent to the target hard disk to replace the pins currently used by the target hard disk.
  • the hard disk out-of-band monitoring controller is a baseboard management controller; accordingly, the monitoring task of the target hard disk is performed based on the hard disk log data, including: displaying the hard disk log data on the target interface; determining the corresponding preset threshold conditions based on the type of the hard disk log data, and judging whether the hard disk log data meets the preset threshold conditions, and issuing an early warning prompt if it does not meet the conditions.
  • the hard disk out-of-band monitoring controller includes a baseboard management controller and a complex programmable logic device; accordingly, the monitoring task of the target hard disk is performed based on the hard disk log data, including: after obtaining the hard disk log data output by the target hard disk through the hard disk status pin, an interrupt signal is sent to the baseboard management controller through the complex programmable logic device and using the first target bus; the baseboard management controller responds to the interrupt signal and sends a data read request to the complex programmable logic device through the second target bus, so that the complex programmable logic device sends the hard disk log data to the baseboard management controller; the baseboard management controller displays the hard disk log data on the target interface, and issues a warning prompt when the hard disk log data does not meet the preset threshold condition; the preset threshold condition is the threshold condition corresponding to the type of the hard disk log data.
  • the hard disk out-of-band monitoring controller may include a baseboard management controller (BMC) and a 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 to realize out-of-band monitoring of the target hard disk, and the BMC is connected to each CPLD through the first target bus and the second target bus; wherein the CPLD can be a CPLD on the backplane, used to connect to a solid-state/mechanical hard disk with a SAS (Serial Attached SCSI, serial attached SCSI interface, where SCSI is Small Computer System Interface) interface or a SATA (Serial Advanced Technology Attachment) interface, or it can be a CPLD on the motherboard, used to connect to a solid-state hard disk with an NVMe (Non Volatile Memory Host Controller Interface Specification) interface.
  • BMC baseboard management controller
  • CPLD complex programmable logic device
  • the CPLD After the CPLD acquires the target hard drive output signal via the first signal line and demodulates it to obtain the hard drive log data, it then sends an interrupt signal to the BMC via the first target bus. In response to the interrupt signal, the BMC sends a data read request to the CPLD via the second target bus to read the hard drive log data from the CPLD. After reading the hard drive log data, the BMC displays the hard drive log data on the local target interface and issues a warning if the hard drive log data does not meet a preset threshold condition, which corresponds to the type of hard drive log data. Furthermore, the above-mentioned solution, through interrupts, can avoid the BMC from frequently polling the CPLD to read the hard drive log data, reducing pressure on the BMC.
  • the hard drive status pin can also output the hard drive log data, thus overcoming the current limitation that hard drive log data can only be output through the specified data pin connected to the hard drive expansion card.
  • the target hard drive can output the target signal by modulating the hard drive log data and the hard drive status signal corresponding to the hard drive status pin selected by the hard drive out-of-band monitoring controller. This allows the hard drive out-of-band monitoring controller to obtain the hard drive log data by directly connecting to the target hard drive via the first signal line. This solution does not affect the original function of the target hard drive, reduces the difficulty of out-of-band monitoring, and effectively expands the range of hard drives that can be monitored by hard drive out-of-band monitoring.
  • Step S21 When the server is powered on, the system startup controller is used to detect the version numbers of the hard disk out-of-band monitoring controller and the hard disk to be monitored, and based on the version numbers, it is determined whether the hard disk out-of-band monitoring controller and the hard disk to be monitored both support the out-of-band monitoring function.
  • the system startup controller is used to detect the version numbers of the hard disk out-of-band monitoring controller and the hard disk to be monitored, and based on the version numbers, it is determined whether the hard disk out-of-band monitoring controller and the hard disk to be monitored both support the out-of-band monitoring function.
  • the embodiment of the present application pre-debugs and configures the hard disk and the hard disk out-of-band monitoring controller so that the out-of-band monitoring system composed of the hard disk and the hard disk out-of-band monitoring controller can have the out-of-band monitoring functions they need, thereby enabling the entire out-of-band monitoring system to operate normally.
  • their respective version numbers are modified so that after checking the corresponding version numbers later, it is considered that the hard disk and the hard disk out-of-band monitoring controller support the out-of-band monitoring function.
  • the hard disk compared to the original hard disk that only uses the hard disk status pin to output the corresponding hard disk status signal, it needs to support the modulation of the hard disk log data and the hard disk status signal corresponding to the hard disk status pin and then output the corresponding target signal; for the hard disk out-of-band monitoring controller, it needs to support the demodulation of the target signal according to the corresponding signal demodulation rules to obtain the hard disk log data, and then perform out-of-band monitoring on the target hard disk based on the hard disk log data.
  • this application since this application additionally adds the function of using its hard disk status pin to output the hard disk log data, and for the hard disk out-of-band monitoring controller, it additionally adds the function of demodulating the hard disk output signal to obtain the hard disk log data and parse the data, it is necessary to use the system startup controller to detect the version number of the hard disk and the hard disk out-of-band monitoring controller.
  • the embodiment of the present application needs to ensure that both the hard disk out-of-band monitoring controller and the hard disk to be monitored support the out-of-band monitoring function, because the interaction between the hard disk out-of-band monitoring controller and the hard disk to be monitored is complementary. If only one of them supports the out-of-band monitoring function, the entire out-of-band monitoring system cannot operate normally.
  • the system boot controller can be specifically constructed based on the Unified Extensible Firmware Interface (UEFI) or the Basic Input Output System (BIOS), and the hard disk out-of-band monitoring controller includes a baseboard management controller (BMC) and/or a complex programmable logic device (CPLD). That is, in this embodiment, the BIOS or UEFI can specifically detect during the initialization phase whether the hard disk out-of-band monitoring controller and the hard disk to be monitored both support the out-of-band monitoring function.
  • UEFI Unified Extensible Firmware Interface
  • BIOS or UEFI can specifically detect during the initialization phase whether the hard disk out-of-band monitoring controller and the hard disk to be monitored both support the out-of-band monitoring function.
  • the process of using the system startup controller to detect the version number of the hard disk out-of-band monitoring controller includes: in the driver execution environment stage of the system startup controller, using the system startup controller to send a target request for obtaining the version number of the baseboard management controller and/or the complex programmable logic device to the baseboard management controller through the intelligent platform management interface; obtaining, through the system startup controller, the version number returned by the baseboard management controller after responding to the target request; wherein, the process of the baseboard management controller responding to the target request includes: the baseboard management controller reads the first version number corresponding to the baseboard management controller and/or reads the second version number corresponding to the complex programmable logic device from the first register for storing the version number according to the target request, and sends the read first version number and/or second version number to the system startup controller.
  • the UEFI system can be divided into seven stages from power-on to shutdown. These stages are: SEC (Security), PEI (Pre Extensible Firmware Interface Initialization), DXE (Driver Execution Environment), BDS (Boot Dev Select), TSL (Transient System Load), RT (Run Time), and AL (After Life).
  • SEC Security
  • PEI Pre Extensible Firmware Interface Initialization
  • DXE Driver Execution Environment
  • BDS Boot Dev Select
  • TSL Transient System Load
  • RT Real Time
  • AL After Life
  • IPMI Intelligent Platform Management Interface
  • the baseboard management controller reads the first version number corresponding to the baseboard management controller and/or the second version number corresponding to the complex programmable logic device from the first register used to store the version number according to the target request, and sends the read first version number and/or second version number to UEFI.
  • the present application can implement a security verification mechanism in a system boot controller built on UEFI to ensure that the version number received from the BMC is credible. Specifically, it is necessary to create a set of key pairs for signing and verification. A set of predefined public keys are embedded in UEFI to verify the signatures of external providers. Correspondingly, the BMC needs to use the corresponding private key to sign the version number information that needs to be sent to the system boot controller, and ensure the security and integrity of the information through these signatures. During the UEFI startup process, the signature of the BMC firmware is verified by the UEFI firmware to determine whether the version number is credible based on the signature. In addition, the present application uses an encryption protocol to pre-create a secure channel between the BMC and the system boot controller built on UEFI, so as to achieve secure communication between the system boot controller and the BMC based on the secure channel.
  • the system startup controller determines whether the hard disk out-of-band monitoring controller supports the data monitoring function based on the version number, including: 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 the data monitoring function; wherein the first preset version number is the minimum version number supported by the baseboard management controller for 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 the data monitoring function; wherein the second preset version number is the minimum version number supported by the complex programmable logic device for the data monitoring function.
  • the out-of-band monitoring function mainly refers to the data monitoring function, that is, when the system startup controller determines whether the baseboard management controller and the complex programmable logic device support the out-of-band monitoring function, it mainly determines whether they support the function of monitoring hard disk log data (i.e., the data monitoring function). It is understandable that hard drive out-of-band monitoring primarily monitors hard drive log data, while this application adds the ability to output hard drive log data using its hard drive status pin.
  • the hard drive out-of-band monitoring controller includes a baseboard management controller and a complex programmable logic device (CPLD)
  • the CPLD needs to support signal demodulation and storage of hard drive log data
  • the baseboard management controller needs to support reading and parsing hard drive log data from the CPLD. Therefore, this application detects version numbers to determine whether the current version of the baseboard management controller and/or CPLD supports the aforementioned hard drive log data monitoring function.
  • the baseboard management controller and complex programmable logic device determine whether the baseboard management controller and complex programmable logic device support the data monitoring function. Their current version number is compared with the minimum version number that supports the out-of-band monitoring function. If the current version number is not lower than the minimum version number, it means that the baseboard management controller and complex programmable logic device support the data monitoring function.
  • the first target bus is a signal bus for out-of-band management in the server system, which meets the requirements of complex programmable logic devices to send interrupt signals to the baseboard management controller; when the second target bus supports the interrupt function, the first target bus is an optional component.
  • an embodiment of the present application discloses a hard disk monitoring device, which is applied to a hard disk out-of-band monitoring controller.
  • the device includes:
  • the pin configuration information includes an identifier for indicating a hard drive status pin in the target hard drive that outputs the target signal, and configuration parameters for configuring a signal modulation process for the target hard drive based on hard drive log data and the hard drive status signal corresponding to the hard drive status pin;
  • the monitoring module 13 is configured to demodulate the target signal to obtain hard disk log data, and perform a monitoring task on the target hard disk based on the hard disk log data.
  • the hard disk out-of-band monitoring controller can also send pin configuration information to the target hard disk, and the pin configuration information includes an identifier of the hard disk status pin for indicating the output target signal in the target hard disk, so that the target hard disk can 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 includes configuration parameters for configuring the target hard disk according to the signal modulation process of the hard disk status signal corresponding to the hard disk log data and the hard disk status pin, thereby modulating to obtain the target signal.
  • the hard disk out-of-band monitoring controller performs a first interactive operation with the target hard disk based on a two-line bidirectional communication mechanism; the first interactive operation is that the hard disk out-of-band monitoring controller sends pin configuration information to the target hard disk, and obtains the target signal output by the target hard disk after the target hard disk is configured accordingly according to the pin configuration information.
  • the device is used to identify that the hard disk status signal in the target signal is a non-indication status signal or an invalid signal, and the current moment is the negotiation time period agreed with the target hard disk, and the hard disk out-of-band monitoring controller performs a second interactive operation with the target hard disk based on a single-line bidirectional communication mechanism; the second interactive operation is that the hard disk out-of-band monitoring controller sends a reverse transmission request to the target hard disk, and when obtaining the target hard disk's permission signal for the reverse transmission request, outputs pin configuration information to the target hard disk.
  • the apparatus further comprises:
  • a version detection module is used to detect the version numbers of the hard disk out-of-band monitoring controller and the hard disk to be monitored using the system startup controller when the server is powered on, and to 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 based on the version numbers;
  • a function enabling module is used to, if the system startup controller determines that both the hard disk out-of-band monitoring controller and the hard disk to be monitored support the out-of-band monitoring function, use the hard disk to be monitored as the target hard disk, enable the out-of-band monitoring functions of the hard disk out-of-band monitoring controller and the target hard disk, and send information about the target hard disk to the hard disk out-of-band monitoring controller so that the hard disk out-of-band monitoring controller can obtain hard disk log data of the target hard disk;
  • the function disabling module is used to disable the out-of-band monitoring function of the hard disk out-of-band monitoring controller and the hard disk to be monitored 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.
  • the system boot controller is constructed based on a unified extensible firmware interface or a basic output input system
  • the hard disk out-of-band monitoring controller includes a baseboard management controller and/or a complex programmable logic device.
  • the version detection module is specifically used to use the system startup controller to send a target request for obtaining the version number of the baseboard management controller and/or the complex programmable logic device to the baseboard management controller through the intelligent platform management interface during the driver execution environment stage of the system startup controller; obtain the version number returned by the baseboard management controller after responding to the target request through the system startup controller; wherein, the process of the baseboard management controller responding to the target request includes: the baseboard management controller reads the first version number corresponding to the baseboard management controller and/or reads the second version number corresponding to the complex programmable logic device from the first register for storing the version number according to the target request, and sends the read first version number and/or second version number to the system startup controller.
  • the version detection module is specifically used to determine a first preset version number corresponding to the baseboard management controller. If the first version number is not lower than the first preset version number, it is determined that the baseboard management controller supports the data monitoring function; wherein the first preset version number is the minimum version number of the baseboard management controller supporting the data monitoring function; and/or, determine a second preset version number corresponding to the complex programmable logic device. If the second version number is not lower than the second preset version number, it is determined that the complex programmable logic device supports the data monitoring function; wherein the second preset version number is the minimum version number of the complex programmable logic device supporting the data monitoring function.
  • the apparatus further comprises:
  • the component detection unit is used to detect whether there is a hard disk data display component on the web page interface of the baseboard management controller through the system startup controller if the baseboard management controller fails to read the first version number from the first register, or the system startup controller fails to obtain the first version number sent by the baseboard management controller. If the hard disk data display component exists, it is determined that the baseboard management controller supports the out-of-band monitoring function.
  • the apparatus further comprises:
  • a memory comparison unit is used to read the code occupied memory size of the complex programmable logic device from the second register in the complex programmable logic device through the system startup controller if the baseboard management controller fails to read the second version number from the first register, or the system startup controller fails to obtain the second version number sent by the baseboard management controller; 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 the out-of-band monitoring function.
  • the version detection module is specifically used to use the system startup controller to poll all hard disks to be monitored during the driver execution environment stage of the system startup controller to obtain the third version number, vendor identifier and organization unique identifier corresponding to each hard disk to be monitored; based on the third version number, vendor identifier and organization unique identifier, determine whether the hard disk to be monitored supports the data monitoring function.
  • the first configuration clearing unit is used to determine that the obtained function configuration modification instruction is an invalid instruction if the function configuration status of the hard disk out-of-band monitoring controller and the target hard disk out-of-band monitoring function are inconsistent, and clear the modified configuration of the hard disk out-of-band monitoring controller and/or the target hard disk.
  • the second configuration clearing unit is used to determine that the obtained function configuration modification instruction is an invalid instruction if the function configuration status of the hard disk out-of-band monitoring controller and/or the target hard disk out-of-band monitoring function is inconsistent, and clear the modified configuration of the hard disk out-of-band monitoring controller and/or the target hard disk.
  • the hard disk out-of-band monitoring controller is a baseboard management controller
  • the monitoring module includes:
  • a display unit used for displaying hard disk log data on a target interface
  • a data reading unit configured to respond to the interrupt signal through the baseboard management controller and send a data reading request to the complex programmable logic device through the second target bus, so that the complex programmable logic device sends the hard disk log data to the baseboard management controller;
  • the second warning unit is used to display the hard disk log data on the target interface through the baseboard management controller and issue a 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 hard disk log data.
  • the power supply 23 is used to provide operating voltage for various hardware devices on the electronic device; the communication interface 24 can create a data transmission channel between the electronic device and external devices.
  • the communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.
  • the 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), or PLA (Programmable Logic Array).
  • the processor 21 may also include a main processor and a coprocessor.
  • the main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state.
  • the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen.
  • the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
  • AI Artificial Intelligence
  • the memory 22 as a carrier for resource storage, can be a read-only memory, random access memory, disk or CD, etc.
  • the resources stored thereon include an operating system 221, a computer program 222 and data 223, etc.
  • the storage method can be temporary storage or permanent storage.
  • the operating system 221 is used to manage and control the various hardware devices and computer programs 222 on the electronic device, so as to enable the processor 21 to calculate and process the massive amount of data 223 in the memory 22. It can be Windows, Unix, Linux, etc. In addition to including computer programs capable of performing the hard disk monitoring method performed by the electronic device disclosed in any of the aforementioned embodiments, the computer programs 222 may further include computer programs capable of performing other specific tasks. Data 223 may include data received by the electronic device from external devices, as well as data collected by its own input and output interface 25.
  • an embodiment of the present application also discloses a computer non-volatile readable storage medium, in which a computer program is stored.
  • a computer program is stored.
  • the hard disk monitoring method steps disclosed in any of the aforementioned embodiments are implemented.
  • the steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two.
  • the software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a compact disc read-only memory (CD-ROM), or any other form of storage medium known in the art.

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

本申请公开了一种服务器及其硬盘监控方法、装置、设备和介质,涉及硬盘监控技术领域,应用于硬盘带外监控控制器,包括:确定系统启动控制器在初始化阶段检测到的具有带外监控功能的与硬盘带外监控控制器连接的目标硬盘;向目标硬盘发送引脚配置信息,并获取目标硬盘根据引脚配置信息进行相应配置后输出的目标信号;引脚配置信息包括用于指示目标硬盘中的输出目标信号的硬盘状态引脚的标识,用于配置目标硬盘的基于硬盘日志数据和硬盘状态引脚对应的硬盘状态信号的信号调制过程的配置参数;解调目标信号得到硬盘日志数据并执行对目标硬盘的监控任务。本申请支持对具有带外监控功能的硬盘的引脚进行配置,提高了可监控硬盘的范围。

Description

一种服务器及其硬盘监控方法、装置、设备和介质
相关申请的交叉引用
本申请要求于2024年03月29日提交中国专利局,申请号为202410382028.X,申请名称为“一种服务器及其硬盘监控方法、装置、设备和介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及硬盘监控技术领域,特别涉及一种服务器及其硬盘监控方法、装置、设备和介质。
背景技术
硬盘的健康运行是保障设备服务器可靠性的关键因素之一。为保证对硬盘的运行状态的精准掌控,需要设备在硬盘运行过程中进行监控以获取硬盘的状态信息。目前主要的硬盘监控方案分为硬盘带内监控和硬盘带外监控。其中,硬盘带外监控是由设备的带外监控控制器,如基板管理控制器,通过硬盘所连接的硬盘扩展卡通信获得硬盘状态信息,然而,若硬盘并未连接硬盘扩展卡,则无法实现对硬盘的带外监控。
在硬盘带外监控方案中是需要带外监控控制器和硬盘均支持带外监控功能的情况下,带外监控控制器才能对硬盘进行带外监控;且当前硬盘只能通过规定的数据引脚输出硬盘状态信息,很难进行配置并利用硬盘的其他引脚。
发明内容
有鉴于此,本申请的目的在于提供一种服务器及其硬盘监控方法、装置、设备和介质,能够在确保硬盘支持带外监控功能的条件下,还能支持对硬盘其他引脚的配置,提高硬盘带外监控方案中的可监控硬盘的范围。其具体方案如下:
第一方面,本申请公开了一种硬盘监控方法,应用于硬盘带外监控控制器,包括:
确定目标硬盘;目标硬盘为系统启动控制器在初始化阶段检测到的具有带外监控功能的与硬盘带外监控控制器通过第一信号线连接的硬盘;
向目标硬盘发送引脚配置信息,并通过第一信号线获取目标硬盘根据引脚配置信息进行相应配置后输出的目标信号;引脚配置信息包括用于指示目标硬盘中的输出目标信号的硬盘状态引脚的标识,以及用于配置目标硬盘的基于硬盘日志数据和硬盘状态引脚对应的硬盘状态信号的信号调制过程的配置参数;
解调目标信号得到硬盘日志数据,并基于硬盘日志数据执行对目标硬盘的监控任务。
在一些实施例中,硬盘带外监控控制器基于双线双向通信机制执行与目标硬盘的第一交互操作;第一交互操作为硬盘带外监控控制器向目标硬盘发送引脚配置信息,并获取目标硬盘根据引脚配置信息进行相应配置后输出的目标信号。
在一些实施例中,在识别目标信号中的硬盘状态信号为非指示状态信号或无效信号,且当前时刻为与目标硬盘约定的协商时间段时,硬盘带外监控控制器基于单线双向通信机制执行与目标硬盘的第二交互操作;第二交互操作为硬盘带外监控控制器向目标硬盘发送反向传输请求,并在获得目标硬盘对反向传输请求的允许信号时,向目标硬盘输出引脚配置信息。
在一些实施例中,系统启动控制器的初始化阶段包括:
在服务器上电启动时,利用系统启动控制器检测硬盘带外监控控制器和待监控硬盘的版本号,并基于版本号确定硬盘带外监控控制器和待监控硬盘是否均支持带外监控功能;
若系统启动控制器确定硬盘带外监控控制器和待监控硬盘均支持带外监控功能,则将待监控硬盘作为目标硬盘,并启用硬盘带外监控控制器和目标硬盘的带外监控功能以及将目标硬盘的信息发送至硬盘带外监控控制器,以便硬盘带外监控控制器获取到目标硬盘的硬盘日志数据;
若硬盘带外监控控制器或待监控硬盘不支持带外监控功能,则禁止启用硬盘带外监控控制器和待监控硬盘的带外监控功能。
在一些实施例中,系统启动控制器基于统一可扩展固件接口或基本输出输入系统构建,硬盘带外监控控制器包括基板管理控制器和/或复杂可编程逻辑器件。
在一些实施例中,当系统启动控制器基于统一可扩展固件接口构建时,利用系统启动控制器检测硬盘带外监控控制器的版本号的过程包括:
在系统启动控制器的驱动执行环境阶段,利用系统启动控制器通过智能平台管理接口向基板管理控制器发送用于获取基板管理控制器和/或复杂可编程逻辑器件的版本号的目标请求;
通过系统启动控制器获取基板管理控制器对目标请求进行响应后返回的版本号;其中,基板管理控制器对目标请求进行响应的过程包括:基板管理控制器根据目标请求从用于存放版本号的第一寄存器中读取与基板管理控制器对应的第一版本号和/或读取与复杂可编程逻辑器件对应的第二版本号,以及将读取到的第一版本号和/或第二版本号发送至系统启动控制器。
在一些实施例中,基于版本号确定硬盘带外监控控制器是否支持数据监控功能,包括:
确定与基板管理控制器对应的第一预设版本号,若第一版本号不低于第一预设版本号,则确定基板管理控制器支持数据监控功能;其中,第一预设版本号为基板管理控制器支持数据监控功能的最低版本号;
和/或,确定与复杂可编程逻辑器件对应的第二预设版本号,若第二版本号不低于第二预设版本号,则确定复杂可编程逻辑器件支持数据监控功能;其中,第二预设版本号为复杂可编程逻辑器件支持数据监控功能的最低版本号。
在一些实施例中,硬盘监控方法,还包括:
若基板管理控制器从第一寄存器中未读取到第一版本号,或系统启动控制器未获取到基板管理控制器发送的第一版本号,则通过系统启动控制器检测基板管理控制器的网页界面是否存在硬盘数据显示组件,若存在硬盘数据显示组件,则确定基板管理控制器支持带外监控功能。
在一些实施例中,硬盘监控方法,还包括:
若基板管理控制器从第一寄存器中未读取到第二版本号,或系统启动控制器未获取到基板管理控制器发送的第二版本号,则通过系统启动控制器从复杂可编程逻辑器件中的第二寄存器中读取复杂可编程逻辑器件的代码占用内存大小,若代码占用内存大小与复杂可编程逻辑器件的代码开发大小相同,则确定复杂可编程逻辑器件支持带外监控功能。
在一些实施例中,当系统启动控制器为基于统一可扩展固件接口构建时,利用系统启动控制器检测待监控硬盘的版本号的过程包括:
在系统启动控制器的驱动执行环境阶段,利用系统启动控制器轮询所有待监控硬盘,以获取各待监控硬盘对应的第三版本号、供应商标识和组织唯一标识符;
相应的,基于版本号确定待监控硬盘是否支持数据监控功能,包括:
基于第三版本号、供应商标识和组织唯一标识符确定待监控硬盘是否支持数据监控功能。
在一些实施例中,基于第三版本号、供应商标识和组织唯一标识符确定待监控硬盘是否支持数据监控功能,包括:
基于供应商标识和组织唯一标识符确定与待监控硬盘对应的第三预设版本号;第三预设版本号为待监控硬盘支持数据监控功能的最低版本号;
若第三版本号不低于第三预设版本号,且待监控硬盘的硬盘管理日志的格式无误,则确定待监控硬盘支持数据监控功能。
在一些实施例中,硬盘监控方法,还包括:
当系统启动控制器为基于统一可扩展固件接口构建时,若在系统启动控制器的启动设备选择阶段获取到用户通过第一用户界面发送的关于硬盘带外监控控制器和/或目标硬盘的功能配置修改指令,或若在系统启动控制器的操作系统加载前期阶段获取到用户通过第二用户界面发送的关于硬盘带外监控控制器和/或目标硬盘的功能配置修改指令,则通过获取到的功能配置修改指令对硬盘带外监控控制器和/或目标硬盘进行修改配置;
在检测到第一用户界面或第二用户界面关闭后,通过系统启动控制器检测硬盘带外监控控制器和目标硬盘的带外监控功能的功能配置状态是否一致;功能配置状态包括开启状态和关闭状态;
若硬盘带外监控控制器和目标硬盘的带外监控功能的功能配置状态不一致,则判定获取到的功能配置修改指令为无效指令,并清除关于硬盘带外监控控制器和/或目标硬盘的修改配置。
在一些实施例中,第一用户界面和第二用户界面用于显示当前硬盘带外监控控制器和当前目标硬盘是否支持带外监控功能,以及当前硬盘带外监控控制器和当前目标硬盘是否已开启带外监控功能。
在一些实施例中,硬盘监控方法,还包括:
通过系统启动控制器在操作系统启动时安装驱动程序,若操作系统获取到用户通过终端发送的关于硬盘带外监控控制器和/或目标硬盘的功能配置修改指令,则基于获取到的功能配置修改指令对硬盘带外监控控制器和/或目标硬盘进行修改配置;
在检测到终端关闭后,通过驱动程序检测硬盘带外监控控制器和目标硬盘的带外监控功能的功能配置状态是否一致;功能配置状态包括开启状态和关闭状态;
若硬盘带外监控控制器和/或目标硬盘的带外监控功能的功能配置状态不一致,则判定获取到的功能配置修改指令为无效指令,并清除关于硬盘带外监控控制器和/或目标硬盘的修改配置。
在一些实施例中,硬盘带外监控控制器为基板管理控制器;
相应的,基于硬盘日志数据执行对目标硬盘的监控任务,包括:
在目标界面显示硬盘日志数据;
基于硬盘日志数据的类型确定对应的预设阈值条件,并判断硬盘日志数据是否满足预设阈值条件,若不满足则发出预警提示。
在一些实施例中,硬盘带外监控控制器包括基板管理控制器和复杂可编程逻辑器件;
相应的,基于硬盘日志数据执行对目标硬盘的监控任务,包括:
在获取到目标硬盘通过硬盘状态引脚输出的硬盘日志数据后,通过复杂可编程逻辑器件并利用第一目标总线向基板管理控制器发出中断信号;
通过基板管理控制器响应中断信号,并通过第二目标总线向复杂可编程逻辑器件发送数据读取请求,以便复杂可编程逻辑器件将硬盘日志数据发送至基板管理控制器;
通过基板管理控制器在目标界面显示硬盘日志数据,并在硬盘日志数据不满足预设阈值条件时发出预警提示;预设阈值条件为与硬盘日志数据的类型对应的阈值条件。
第二方面,本申请公开了一种服务器,包括硬盘带外监控控制器和系统启动控制器;
硬盘带外监控控制器,用于从硬盘中确定目标硬盘,以及向目标硬盘发送引脚配置信息;目标硬盘为系统启动控制器在初始化阶段检测到的具有带外监控功能的硬盘,引脚配置信息包括用于指示目标硬盘中的输出目标信号的硬盘状态引脚的标识,以及用于配置目标硬盘的基于硬盘日志数据和硬盘状态引脚对应的硬盘状态信号的信号调制过程的配置参数;
目标硬盘,用于根据引脚配置信息进行相应配置后向硬盘带外监控控制器输出目标信号,以便硬盘带外监控控制器解调目标信号得到硬盘日志数据,并基于硬盘日志数据执行对目标硬盘的监控任务。
第三方面,本申请公开了一种硬盘监控装置,应用于硬盘带外监控控制器,包括:
硬盘确定模块,用于确定目标硬盘;目标硬盘为系统启动控制器在初始化阶段检测到的具有带外监控功能的与硬盘带外监控控制器连接的硬盘;
配置模块,用于向目标硬盘发送引脚配置信息,并获取目标硬盘根据引脚配置信息进行相应配置后输出的目标信号;引脚配置信息包括用于指示目标硬盘中的输出目标信号的硬盘状态引脚的标识,以及用于配置目标硬盘的基于硬盘日志数据和硬盘状态引脚对应的硬盘状态信号的信号调制过程的配置参数;
监控模块,用于解调目标信号得到硬盘日志数据,并基于硬盘日志数据执行对目标硬盘的监控任务。
第四方面,本申请公开了一种电子设备,包括:
存储器,用于保存计算机程序;
处理器,用于执行计算机程序,以实现前述公开的硬盘监控方法的步骤。
第五方面,本申请公开了一种计算机非易失性可读存储介质,用于存储计算机程序;其中,计算机程序被处理器执行时实现前述公开的硬盘监控方法的步骤。
可见,本申请通过硬盘带外监控控制器确定目标硬盘;目标硬盘为系统启动控制器在初始化阶段检测到的具有带外监控功能的与硬盘带外监控控制器连接的硬盘;向目标硬盘发送引脚配置信息,并获取目标硬盘根据引脚配置信息进行相应配置后输出的目标信号;引脚配置信息包括用于指示目标硬盘中的输出目标信号的硬盘状态引脚的标识,以及用于配置目标硬盘的基于硬盘日志数据和硬盘状态引脚对应的硬盘状态信号的信号调制过程的配置参数;解调目标信号得到硬盘日志数据,并基于硬盘日志数据执行对目标硬盘的监控任务。
本申请的有益效果:本申请中硬盘带外监控控制器首先需要确定服务器中具有带外监控功能的目标硬盘,具体是服务器中的系统启动控制器在初始化阶段对各硬盘进行检测,以检测到具有带外监控功能的硬盘。且本申请采取硬盘带外监控控制器与目标硬盘直连的方式,以实现对目标硬盘的带外监控,无需再额外连接硬盘扩展卡,也即无论硬盘是否连接在硬盘扩展卡上,都能实现对硬盘的带外监控,降低了带外监控难度。进一步的,硬盘带外监控控制器还能向目标硬盘发送引脚配置信息,引脚配置信息中包括用于指示目标硬盘中的输出目标信号的硬盘状态引脚的标识,以使得目标硬盘能够根据硬盘带外监控控制器选择的硬盘状态引脚输出目标信号;此外,引脚配置信息还包括配置参数,用于配置目标硬盘根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号的信号调制过程,从而调制得到目标信号。通过由目标硬盘利用硬盘日志数据和硬盘状态引脚原有功能对应的硬盘状态信号进行调制得到目标信号并输出的方式,实现硬盘状态引脚也能够输出硬盘日志数据,解决了当前只能通过规定的数据引脚连接硬盘扩展卡才能输出硬盘日志数据的局限性。也即,目标硬盘可以根据硬盘日志数据和硬盘带外监控控制器选择的硬盘状态引脚对应的硬盘状态信号进行调制的方式输出目标信号,使得硬盘带外监控控制器直连目标硬盘就能获取到硬盘日志数据,上述方案既不影响目标硬盘的原有功能也降低了带外监控难度,且有效提高了硬盘带外监控的可监控硬盘的范围。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本申请公开的一种现有的硬盘带内监控系统的结构示意图;
图2为本申请公开的一种现有的硬盘带外监控系统的结构示意图;
图3为本申请公开的一种硬盘监控方法流程图;
图4为本申请公开的一种系统启动控制器初始化阶段的检测方法流程图;
图5为本申请公开的一种版本号的检测和修改配置流程图;
图6为本申请公开的一种硬盘带外监控流程图;
图7为本申请公开的一种硬盘监控系统架构图;
图8为本申请公开的一种硬盘监控装置结构示意图;
图9为本申请公开的一种电子设备结构图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
带外监控是硬盘运维更需要的监控方案,其是由设备的带外监控控制器,如基板管理控制器,通过硬盘所连接的硬盘扩展卡通信获得硬盘状态信息,然而,若硬盘并未连接硬盘扩展卡,则无法实现对硬盘的带外监控。此外,在硬盘带外监控方案中是需要带外监控控制器和硬盘均支持带外监控功能的情况下,才能进行带外监控;且当前硬盘只能通过规定的数据引脚输出硬盘状态信息,而对于硬盘的其他引脚,很难进行配置并利用。
为此,本申请实施例公开了一种服务器及其硬盘监控方法、装置、设备和介质,能够在确保硬盘支持带外监控功能的条件下,还能支持对硬盘其他引脚的配置,提高硬盘带外监控方案中的可监控硬盘的范围。
为便于理解,首先对硬盘带内监控方案和硬盘带外监控方案进行说明。
按照网络管理的方式,目前设备运行监控方案主要分为带内管理方案和带外管理方案。
带内管理使得网络中的网管数据和业务数据在相同的链路中传输,通过登录设备的操作系统,访问设备的用户数据,可以获取被监控设备的带内管理数据。如图1所示的,基于中央处理器(Central Processing Unit,CPU)运行操作系统获取被监控部件的监控数据的方式为带内管理方式,例如对硬盘的带内监控方案,中央处理器通过与硬盘通信,不仅可以访问硬盘中存储的用户数据,还能够获取硬盘在运行中记载的硬盘日志数据,则用户可以通过登录操作系统查看硬盘日志数据。
带外管理则指通过专门的网管通道实现对网络的管理,将网管数据与业务数据分开,为网管数据建立独立通道。在这个通道中,只传输管理数据,网管数据与业务数据分离,可以提高网管的效率与可靠性,也有利于提高网管数据的安全性。
由于带内监控无法满足运维需求,服务器在部署后,会通过基板管理控制器(baseboard management controller,BMC)提供带外管理监控功能。基板管理控制器是一个专门的服务处理机,它利用传感器来监视一台计算机、网络服务器,或者是其他硬件驱动设备的状态,并通过独立的连接线路和设备的系统管理员进行通信。在实际使用中,基板管理控制器通常被安装在母板或被监控设备的主电路板上。基板管理控制器通过传感器用于测量内部物理变量,例如:温度,湿度,电源电压,风扇速度,通信参数和操作系统(OS,operating system)函数等。如果这些变量中的任何一个超出制定限制的范围,基板管理控制器就会通知系统管理员。基板管理控制器可以提供网络(web)服务,其具有网络通信功能以及提供网页来显示监控界面,运维人员可以通过在设备现场通过网线连接被监控设备的基板管理控制器,或在数据中心通过网络连接多个被监控设备的基板管理控制器来实现获取基板管理控制器的监控数据。
由于基板管理控制器系统中的基板管理控制器的性能和引脚数量有限,随着需要监控的部件数量和需要监控的项目的增加,基板管理控制器系统中常设有复杂可编程逻辑器件(Complex Programmable logic device,CPLD)来实现对基板管理控制器的性能压力分担以及提供更多的引脚来连接传感器或被监控部件。复杂可编程逻辑器件主要由逻辑块、可编程互连通道和输入/输出块(I/O块)三部分构成。复杂可编程逻辑器件的一个逻辑块通常包括4~20个宏单元,每个宏单元一般由乘积项阵列、乘积项分配和可编程寄存器构成。每个宏单元有多种配置方式,各宏单元也可级联使用,因此可实现较复杂组合逻辑和时序逻辑功能。对集成度较高的复杂可编程逻辑器件,通常还提供了带片内随机存取存储器(Random Access Memory,RAM)/只读存储器(Read-Only Memory,ROM)的嵌入阵列块。可编程互连通道主要提供逻辑块、宏单元、输入/输出引脚间的互连网络。输入/输出块(I/O块)提供内部逻辑到器件I/O引脚之间的接口。
硬盘作为服务器的重要部件,是带外监控管理的重要对象。按照通信接口的类型,主要分为串行连接小型计算机系统接口(Serial Attached SCSI,下文简称SAS)/串行高级技术附件(Serial Advanced Technology Attachment,下文简称SATA)接口硬盘以及非易失性内存主机控制器接口(Non Volatile Memory Host Controller Interface Specification,NVMHCIS或NVM Express,下文简称NVMe)接口硬盘。其中,SAS接口兼容SATA接口。按照存储介质的类型,硬盘又主要分为机械硬盘(Hard Disk Drive,HDD)和固态硬盘(Solid State Disk或Solid State Drive,SSD)。其中,机械硬盘主要为SAS接口或SATA接口。固态硬盘包括SAS接口、SATA接口和NVMe接口硬盘。
如图1和图2所示,通过将硬盘连接在硬盘背板的硬盘插槽上,实现服务器侧对硬盘的使用。硬盘的接口通常为金手指结构,其中的引脚与硬盘插槽上的位置插接后,可以经由硬盘背板上的电路连接到服务器侧的部件(如数据引脚连接到中央处理器)。
在实际连接中,部分硬盘直接插接在硬盘背板的硬盘插槽上,而部分硬盘是通过硬盘扩展卡连接在硬盘背板上的。硬盘扩展卡(Expender)的类型包括磁盘阵列(Redundant Arrays of Independent Disks,RAID)卡、串行连接小型计算机系统接口扩展卡(SAS扩展卡)、串行高级技术附件扩展卡(SATA扩展卡)等。而直接插接到硬盘插槽的硬盘,例如通过高级主机控制器接口(Advanced Host Controller Interface,AHCI)控制器与中央处理器连接的硬盘。
如图1所示,中央处理器通过高速串行计算机扩展总线(peripheral component interconnect express,PCI-Express,PCIe)访问硬盘,由于SAS或SATA接口的硬盘无法直接连接高速串行计算机扩展总线,需要硬盘扩展卡进行信号的协议转换。中央处理器也可以通过以串行通用输入/输出(Serial General Purpose Input/Output,sGPIO)线连接硬盘背板来获取或控制硬盘状态信息。即是说,中央处理器可以通过高速串行计算机扩展总线连接硬盘扩展卡获取硬盘日志数据,或通过高级主机控制器接口获取硬盘日志数据,实现对硬盘的带内监控。
如图2所示,基板管理控制器若想要获得硬盘日志数据,则针对连接在硬盘扩展卡上的硬盘,可以通过集成电路总线(Inter-Integrated Circuit,IIC或I2C)访问硬盘扩展卡,基板管理控制器运行监控软件向硬盘扩展卡发送透传命令,硬盘扩展卡能够将该透传命令转发至硬盘,硬盘响应该透传命令后将相应的硬盘日志数据发送至硬盘扩展卡,由硬盘扩展卡将硬盘日志数据转发至基板管理控制器。此外,NVMe接口硬盘可以通过高速串行计算机扩展总线直接连接中央处理器,可以通过硬盘与中央处理器之间的高速串行计算机扩展总线提供一路集成电路总线到基板管理控制器,以实现如硬盘扩展卡的为基板管理控制器转发命令以及硬盘日志数据的功能,此时才可以实现对硬盘的带外监控。
可以看到,在目前的服务器监控架构中,设备的业务数据出于保密需要,无法对外界展示,即运维人员没有权限访问带内数据以获取中央处理器所能读取到的硬盘日志数据,用于实现带外监控的基板管理控制器同样无法直接访问硬盘数据,导致对硬盘的带外监控功能的受限,使得带外监控方无法及时、准确地获得硬盘的运行状态,进而使硬盘存储可靠性面临威胁。
由于基板管理控制器与硬盘之间若不经过集成电路总线接口则没有数据通路,对于硬盘的带外监控只能借助支持通过集成电路总线接口接受透传命令的硬盘扩展卡或通过提供集成电路总线接口的高速串行计算机扩展总线,对于不存在该条件的硬盘,如高级主机控制器接口控制器之下的硬盘,则无法实现对其的带外监控。
参见图3所示,本申请实施例公开了一种硬盘监控方法,应用于硬盘带外监控控制器,该方法包括:
步骤S11:确定目标硬盘;目标硬盘为系统启动控制器在初始化阶段检测到的具有带外监控功能的与硬盘带外监控控制器连接的硬盘。
本实施例中,硬盘带外监控控制器首先需要确定服务器中具有带外监控功能的目标硬盘,具体是服务器中的系统启动控制器在初始化阶段对各硬盘进行检测,以检测到其中具有带外监控功能的硬盘。且本申请采取硬盘带外监控控制器与目标硬盘直连的方式,以实现对目标硬盘的带外监控。也即,本申请在对硬盘进行带外监控时,硬盘无需再额外连接硬盘扩展卡,也就是说,无论硬盘是否连接在硬盘扩展卡上,硬盘带外监控控制器都能实现对硬盘的带外监控,降低了带外监控难度。
步骤S12:向目标硬盘发送引脚配置信息,并获取目标硬盘根据引脚配置信息进行相应配置后输出的目标信号;引脚配置信息包括用于指示目标硬盘中的输出目标信号的硬盘状态引脚的标识,以及用于配置目标硬盘的基于硬盘日志数据和硬盘状态引脚对应的硬盘状态信号的信号调制过程的配置参数。
本实施例中,硬盘带外监控控制器还能向目标硬盘发送引脚配置信息,引脚配置信息中包括用于指示目标硬盘中的输出目标信号的硬盘状态引脚的标识,以使得目标硬盘能够根据硬盘带外监控控制器选择的硬盘状态引脚输出目标信号;此外,引脚配置信息还包括配置参数,用于配置目标硬盘根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号的信号调制过程,从而调制得到目标信号。通过由目标硬盘利用硬盘日志数据和硬盘状态引脚原有功能对应的硬盘状态信号进行调制得到目标信号并输出的方式,实现硬盘状态引脚也能够输出硬盘日志数据,解决了当前只能通过规定的数据引脚连接硬盘扩展卡才能输出硬盘日志数据的局限性。
也即,本申请实施例还可以使用硬盘的硬盘状态引脚来输出硬盘日志数据,如此一来,对于硬盘而言,其可以提供多个引脚来输出硬盘日志数据,具体包括原始规定的用于输出硬盘日志数据的数据引脚以及硬盘状态引脚;其中,数据引脚需要连接硬盘扩展卡的方式才能输出硬盘日志数据,而硬盘状态引脚无需再连接硬盘扩展卡,而是直连硬盘带外监控控制器,并通过调制的方式来输出硬盘日志数据。
需要指出的是,硬盘状态引脚具体指的是硬盘中除数据引脚、电源引脚、地引脚之外的硬盘引硬盘的硬盘状态引脚主要包括硬盘状态指示引脚、硬盘生产调试引脚和硬盘空闲引脚。
其中,硬盘状态指示引脚包括硬盘在位状态指示引脚(p10引脚)、硬盘读写状态指示引脚等(p11引脚)。硬盘状态指示引脚为硬盘用于输出硬盘状态指示信号的引脚,例如硬盘在位状态指示引脚用于硬盘输出硬盘在位状态信号,硬盘读写状态指示引脚用于硬盘输出硬盘读写状态信号。当硬盘连接到硬盘背板后,硬盘状态指示引脚主要有两种连接方式,一种是连接到基板管理控制器以告知基板管理控制器相应的硬盘状态数据,另一种是连接到硬盘背板上的控制电路以控制相应的被控元件的状态以使用户获悉相应的硬盘状态。例如,硬盘背板上设有硬盘状态指示灯来指示硬盘运行状态。如硬盘在处于读写状态时可以控制硬盘读写状态指示引脚输出方波信号至硬盘读写状态指示灯的放大驱动电路以控制硬盘读写状态指示灯亮起,硬盘未处于读写状态(空闲状态)时则控制硬盘读写状态指示引脚输出一个恒定电平信号(如恒定高电平信号)使硬盘读写状态指示灯熄灭来指示自己处于空闲状态,以便用户通过观看硬盘读写状态指示灯的亮灭,获悉硬盘是否处于读写状态。硬盘基于硬盘在位状态指示引脚的状态展示同理。或者,硬盘也可以通过这些硬盘状态指示引脚输出两种不同的恒定电平信号(一高一低)来指示不同的状态,该信号可以输入至基板管理控制器以便触发相应的记录、处理或控制。
硬盘生产调试引脚主要为SAS或SATA接口的硬盘在SAS或SATA接口旁的引脚(debug引脚),这些引脚通常是硬盘在生产调试阶段使用的,在硬盘实际使用中,生产调试引脚可以用于在硬盘初始化阶段输出引导信息。
而在NVMe接口硬盘上,除了上述硬盘状态指示引脚外,还包括硬盘空闲引脚。目前NVMe接口硬盘主要采用三种连接器,分别是M.2连接器、U.2连接器和CEM连接器。其中,M.2连接器的NVMe接口,不同的(Key)类型用于连接不同类型的设备,其中Key B和Key M可用于连接固态硬盘。当M.2规范的NVMe接口连接SATA接口的固态硬盘时,其P10引脚的定义与SAS或SATA接口的P11引脚定义相同,均为硬盘读写状态指示引脚。当M.2规范的NVMe接口连接NVMe接口硬盘时,其P10引脚定义为指示灯控制引脚。U.2连接器的NVMe接口与SAS及SATA接口完全兼容,其P11引脚也为硬盘读写状态指示引脚。CEM连接器(Compute Express Link Module,计算快速链路模块连接器)的NVMe接口的A面的P32引脚为空闲引脚(Reserved引脚),也是除了硬盘数据引脚之外的硬盘状态引脚,且在x8(八线接口)及以上还存在多个空闲引脚。
上述硬盘状态引脚并非硬盘用于输出数据的引脚,没有泄露硬盘中存储的用户数据的风险,目前在硬盘插入硬盘背板后,这些硬盘状态引脚有直接与基板管理控制器连接或者具有与基板管理控制器连接的权限。
则在本申请实施例提供的硬盘监控系统中,所采用硬盘的硬盘状态引脚可以包括硬盘状态指示引脚、硬盘生产调试引脚和硬盘空闲引脚中的至少一种。
本实施例中,若采用硬盘在位状态指示引脚、硬盘读写状态指示引脚等硬盘状态指示引脚,由于这些硬盘引脚通常已经与基板管理控制器的通用输入/输出口(General-purpose input/output,GPIO)引脚或复杂可编程逻辑器件的输入/输出(I/O)引脚连接,可以直接采用该硬件架构而不需要对服务器的硬件架构做出改动,实现简单方便。
目前设备上的硬盘生产调试引脚(debug引脚)通常是悬空的,通常包括4个引脚。若本申请实施例采用硬盘生产调试引脚作为硬盘输出硬盘日志数据的硬盘引脚,则可以采用相应数量引脚的连接器将硬盘生产调试引脚连接到基板管理控制器的GPIO引脚或复杂可编程逻辑器件的I/O引脚上。
由于硬盘的闲置引脚通常为NVMe(Non Volatile Memory Host Controller Interface Specification,NVMHCIS或NVM Express,非易失性内存主机控制器接口)接口的硬盘的接口中才有,高速信号不能悬空,目前NVMe接口中的硬盘闲置引脚在硬盘连接到硬盘背板后是通过硬盘背板上的电阻电容电路接地的。若本申请实施例采用硬盘闲置引脚作为硬盘输出硬盘日志数据的硬盘引脚,则将硬盘闲置引脚与硬盘背板的连接关系改为连接至基板管理控制器的GPIO引脚或复杂可编程逻辑器件的I/O引脚。
对于目标硬盘而言,首先需要根据配置信息中标识确定使用哪一个硬盘状态引脚输出硬盘日志数据,进一步再根据引脚配置信息中的配置参数对信号调制过程进行配置,即目标硬盘如何根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号进行调制得到目标信号并输出,以便硬盘带外监控控制器对目标信号解调得到硬盘日志数据。
其中,目标硬盘根据配置参数确定的调制方法主要包括以下两种:第一种是目标硬盘将硬盘日志数据转换为电平信号后,直接在硬盘状态引脚对应的硬盘状态信号中插入该电平信号,得到目标信号;第二种是目标硬盘将硬盘日志数据转换为电平信号后,在硬盘状态引脚对应的硬盘状态信号为无效信号的时间段插入该电平信号,得到目标信号。通过本申请的调制方式,既不影响硬盘状态引脚的原有功能,也能够输出硬盘日志数据,降低了带外监控难度,有效提高了硬盘带外监控的可监控硬盘的范围,使得硬盘在不连接硬盘扩展卡的情况下,通过硬盘状态引脚直连硬盘带外监控器就能够输出硬盘日志数据。
需要指出的是,硬盘带外监控控制器向目标硬盘发送引脚配置信息的过程可以发生在任何阶段,例如在首次对目标硬盘进行带外监控时,向其发送引脚配置信息,使其根据引脚配置信息进行相应配置后输出目标信号,还可以发生在系统运行过程中,此时发出向目标硬盘发送引脚配置信息以更换目标硬盘当前使用的引脚。
在一些实施例中,硬盘带外监控控制器基于双线双向通信机制执行与目标硬盘的第一交互操作;第一交互操作为硬盘带外监控控制器向目标硬盘发送引脚配置信息,并获取目标硬盘根据引脚配置信息进行相应配置后输出的目标信号。也即,本实施例中可以使用两条信号线实现硬盘带外监控控制器和目标硬盘之间的双向通信,其中,硬盘带外监控控制器通过第一信号线获取目标硬盘根据引脚配置信息进行相应配置后输出的目标信号,另外再通过第二信号线向目标硬盘发送引脚配置信息。通过使用两条信号线实现硬盘带外监控控制器和目标硬盘之间的双向通信,能够保证两条信号线中的数据传输互不干扰。
在一些实施例中,在识别目标信号中的硬盘状态信号为非指示状态信号或无效信号,且当前时刻为与目标硬盘约定的协商时间段时,硬盘带外监控控制器基于单线双向通信机制执行与目标硬盘的第二交互操作;第二交互操作为硬盘带外监控控制器向目标硬盘发送反向传输请求,并在获得目标硬盘对反向传输请求的允许信号时,向目标硬盘输出引脚配置信息。也即,为了节省计算机资源,本申请实施例也可以使用单条信号线实现硬盘带外监控控制器和目标硬盘之间的双向通信。由于单条信号线在同一时间只能实现数据的单向传输,也即要么是硬盘带外监控控制器向目标硬盘发送引脚配置信息,要么是目标硬盘向硬盘带外监控控制器输出目标信号。因此为了决定当前到底由谁发送数据,需要在单线两端设计仲裁逻辑,例如对本申请实施例而言,信号线的主要任务是接收目标硬盘输出的目标信号,从而解调目标信号得到硬盘日志数据以实现带外监控,那么需要规定好硬盘带外监控控制器在什么情况下才能向目标硬盘发送引脚配置信息。具体的,本实施例规定只有硬盘带外监控控制器在识别目标信号中的硬盘状态信号为非指示状态信号或无效信号,且当前时刻为与目标硬盘约定的协商时间段时,才能通过该条信号线向目标硬盘发送反向传输请求,并且只有在获得目标硬盘对反向传输请求的允许信号时,才能通过该条信号线向目标硬盘输出引脚配置信息。其中,非指示状态信号即表示硬盘状态引脚当前为空闲状态,无效信号是指硬盘状态信号输出的信号未携带任何信息,协商时间段即用于规定硬盘带外监控控制器只能在这个时间段内才能反向传输数据。也即,本实施例提供了一种使用单线双向通信的方法,以实现硬盘带外监控控制器和目标硬盘之间数据传输。
步骤S13:解调目标信号得到硬盘日志数据,并基于硬盘日志数据执行对目标硬盘的监控任务。
本实施例中,硬盘带外监控控制器解调目标信号得到硬盘日志数据,并基于硬盘日志数据执行对目标硬盘的监控任务。
在一些实施例中,硬盘带外监控控制器为基板管理控制器;相应的,基于硬盘日志数据执行对目标硬盘的监控任务,包括:在目标界面显示硬盘日志数据;基于硬盘日志数据的类型确定对应的预设阈值条件,并判断硬盘日志数据是否满足预设阈值条件,若不满足则发出预警提示。也即,当硬盘带外监控控制器为基板管理控制器(BMC)时,即使用BMC直连目标硬盘,以对其进行带外监控,那么BMC在解调得到硬盘日志数据后,则直接在其目标界面显示硬盘日志数据,并基于硬盘日志数据的类型确定对应的预设阈值条件,需要指出的是,要监控的硬盘状态信息包括温度、坏道数量、错误累计数量等等,不同的状态信息对应的阈值条件是不一致的,因此本申请需判断硬盘日志数据是否满足对应的阈值条件,若不满足则发出预警提示,例如,当硬盘温度超过70度之后,则进行预警。
在一些实施例中,硬盘带外监控控制器包括基板管理控制器和复杂可编程逻辑器件;相应的,基于硬盘日志数据执行对目标硬盘的监控任务,包括:在获取到目标硬盘通过硬盘状态引脚输出的硬盘日志数据后,通过复杂可编程逻辑器件并利用第一目标总线向基板管理控制器发出中断信号;通过基板管理控制器响应中断信号,并通过第二目标总线向复杂可编程逻辑器件发送数据读取请求,以便复杂可编程逻辑器件将硬盘日志数据发送至基板管理控制器;通过基板管理控制器在目标界面显示硬盘日志数据,并在硬盘日志数据不满足预设阈值条件时发出预警提示;预设阈值条件为与硬盘日志数据的类型对应的阈值条件。
也即,硬盘带外监控控制器可以包括基板管理控制器(BMC)和复杂可编程逻辑器件(Complex Programmable Logic Device,CPLD),即本申请实施例中BMC通过CPLD连接目标硬盘,以实现对目标硬盘的带外监控,BMC通过第一目标总线和第二目标总线连接各个CPLD;其中CPLD可以是背板上的CPLD,用于连接SAS(Serial Attached SCSI,串行连接SCSI接口,其中SCSI为Small Computer System Interface,小型计算机系统接口)接口或SATA(Serial Advanced Technology Attachment,串行高级技术附件)接口的固态/机械硬盘,也可以是主板上的CPLD,用于连接NVMe(Non Volatile Memory Host Controller Interface Specification,非易失性内存主机控制器接口)接口的固态硬盘。其中,CPLD通过第一信号线获取目标硬盘输出信号并解调得到硬盘日志数据后,CPLD利用第一目标总线向BMC发出中断信号,BMC响应中断信号后通过第二目标总线向CPLD发送数据读取请求,以读取CPLD中的硬盘日志数据,BMC读取到硬盘日志数据后再在本地的目标界面显示硬盘日志数据,并在硬盘日志数据不满足预设阈值条件时发出预警提示,预设阈值条件为与硬盘日志数据的类型对应的阈值条件。并且,上述方案通过中断的方式,能够避免BMC频繁轮询读取CPLD中的硬盘日志数据,降低了BMC的压力。
有益效果:本申请中硬盘带外监控控制器首先需要确定服务器中具有带外监控功能的目标硬盘,具体是服务器中的系统启动控制器在初始化阶段对各硬盘进行检测,以检测到具有带外监控功能的硬盘。且本申请采取硬盘带外监控控制器通过第一信号线与目标硬盘直连的方式,以实现对目标硬盘的带外监控,无需再额外连接硬盘扩展卡,也即无论硬盘是否连接在硬盘扩展卡上,都能实现对硬盘的带外监控,降低了带外监控难度。进一步的,硬盘带外监控控制器还能向目标硬盘发送引脚配置信息,引脚配置信息中包括用于指示目标硬盘中的输出目标信号的硬盘状态引脚的标识,以使得目标硬盘能够根据硬盘带外监控控制器选择的硬盘状态引脚输出目标信号;此外,引脚配置信息还包括配置参数,用于配置目标硬盘根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号的信号调制过程,从而调制得到目标信号。通过由目标硬盘利用硬盘日志数据和硬盘状态引脚原有功能对应的硬盘状态信号进行调制得到目标信号并输出的方式,实现硬盘状态引脚也能够输出硬盘日志数据,解决了当前只能通过规定的数据引脚连接硬盘扩展卡才能输出硬盘日志数据的局限性。也即,目标硬盘可以根据硬盘日志数据和硬盘带外监控控制器选择的硬盘状态引脚对应的硬盘状态信号进行调制的方式输出目标信号,使得硬盘带外监控控制器通过第一信号线直连目标硬盘就能获取到硬盘日志数据,上述方案既不影响目标硬盘的原有功能也降低了带外监控难度,且有效提高了硬盘带外监控的可监控硬盘的范围。
需要指出的是,系统启动控制器在初始化阶段除了检测各硬盘是否具有带外监控功能外,也需检测硬盘带外监控控制器是否支持带外监控功能,并根据检测结果确定是否启用带外监控功能,具体参见图4和图5所示,本申请公开了一种系统启动控制器在初始化阶段的执行流程,具体包括:
步骤S21:在服务器上电启动时,利用系统启动控制器检测硬盘带外监控控制器和待监控硬盘的版本号,并基于版本号确定硬盘带外监控控制器和待监控硬盘是否均支持带外监控功能。
本实施例中,在服务器上电启动后,则利用系统启动控制器检测硬盘带外监控控制器和待监控硬盘的版本号,并基于版本号确定硬盘带外监控控制器和待监控硬盘是否均支持带外监控功能。
可以理解的是,本申请实施例预先对硬盘和硬盘带外监控控制器进行了调试配置,使得硬盘和硬盘带外监控控制器所构成的带外监控系统能够具备各自所需要的带外监控功能,从而使得整个带外监控系统能够正常运行。并在调试配置完后,修改它们各自的版本号,使得后续在检查到对应的版本号后,则认为硬盘和硬盘带外监控控制器是支持带外监控功能的。其中,对于硬盘,相比于硬盘原有的仅使用硬盘状态引脚输出相应硬盘状态信号而言,其需要支持将硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制后输出相应的目标信号;对于硬盘带外监控控制器,其需要支持根据相应的信号解调规则完成对目标信号的解调,以获取硬盘日志数据,再基于硬盘日志数据对目标硬盘进行带外监控。
需要注意的是,现有的带外监控方案都是默认硬盘通过规定的数据引脚来传输硬盘日志数据,而硬盘状态引脚也只需完成相应的状态指示功能,例如硬盘在处于读写状态时,可以控制硬盘读写状态指示引脚P11输出方波信号以控制硬盘读写状态指示灯亮起,硬盘未处于读写状态(空闲状态)时则控制硬盘读写状态指示引脚P11输出一个恒定电平信号(如恒定高电平信号)来指示自己处于空闲状态,以便用户通过观看硬盘读写状态指示灯的亮灭获悉硬盘是否处于读写状态。
因此,对于硬盘,由于本申请额外增加了利用其硬盘状态引脚来输出硬盘日志数据的功能,对于硬盘带外监控控制器,额外增加了其解调硬盘输出信号得到硬盘日志数据并解析数据的功能,所以需要利用系统启动控制器检测硬盘和硬盘带外监控控制器的版本号。
并且,本申请实施例需要确保硬盘带外监控控制器和待监控硬盘均支持带外监控功能,因为硬盘带外监控控制器和待监控硬盘之间的交互是相辅相成的,若其中仅有一方支持带外监控功能,那么整个带外监控系统并不能正常运行。
需要指出的是,系统启动控制器具体可以基于统一可扩展固件接口(Unified Extensible Firmware Interface,UEFI)或基本输出输入系统(Basic Input Output System,BIOS)构建,硬盘带外监控控制器包括基板管理控制器(BMC)和/或复杂可编程逻辑器件(CPLD)。也即,本实施例具体可以由BIOS或者UEFI在初始化阶段检测硬盘带外监控控制器和待监控硬盘是否均支持带外监控功能。
在具体实施方式中,当系统启动控制器基于统一可扩展固件接口构建时,利用系统启动控制器检测硬盘带外监控控制器的版本号的过程包括:在系统启动控制器的驱动执行环境阶段,利用系统启动控制器通过智能平台管理接口向基板管理控制器发送用于获取基板管理控制器和/或复杂可编程逻辑器件的版本号的目标请求;通过系统启动控制器获取基板管理控制器对目标请求进行响应后返回的版本号;其中,基板管理控制器对目标请求进行响应的过程包括:基板管理控制器根据目标请求从用于存放版本号的第一寄存器中读取与基板管理控制器对应的第一版本号和/或读取与复杂可编程逻辑器件对应的第二版本号,以及将读取到的第一版本号和/或第二版本号发送至系统启动控制器。
需要指出的是,UEFI系统从加电到关机可以分为七个阶段,这七个阶段分别为:SEC(Security,安全验证)、PEI(Pre Extensible Firmware Interface Initialization,可扩展固件接口前期初始化)、DXE(Driver Execution Environment,驱动执行环境)、BDS(Boot Dev Select,启动设备选择)、TSL(Transient System Load,操作系统加载前期)、RT(Run Time,系统运行阶段)、AL(After Life,系统灾难恢复期或关机)。在UEFI的DXE阶段,UEFI通过使用智能平台管理接口(Intelligent Platform Management Interface,即IPMI)向基板管理控制器请求获取基板管理控制器和/或复杂可编程逻辑器件的版本号;基板管理控制器根据目标请求从用于存放版本号的第一寄存器中读取与基板管理控制器对应的第一版本号和/或读取与复杂可编程逻辑器件对应的第二版本号,并将读取到的第一版本号和/或第二版本号发送至UEFI。
进一步的,本申请可以在基于UEFI构建的系统启动控制器中实现安全验证机制,以确保从BMC接收到的版本号是可信的。具体的,需要创建包含一组用于签名和验证的密钥对。UEFI中嵌入了一组预定义的公钥,用于验证外部提供者的签名。与此对应的,BMC需要使用与之对应的私钥对需要发送至系统启动控制器的版本号信息进行签名,通过这些签名确保信息的安全性和完整性。在UEFI启动过程中,通过UEFI固件验证BMC固件的签名,以根据签名确定版本号是否可信。另外,本申请利用加密协议在BMC和基于UEFI构建的系统启动控制器之间预先创建安全通道,以便基于该安全通道实现系统启动控制器与BMC之间的安全通信。
相应的,系统启动控制器基于版本号确定硬盘带外监控控制器是否支持数据监控功能,包括:确定与基板管理控制器对应的第一预设版本号,若第一版本号不低于第一预设版本号,则确定基板管理控制器支持数据监控功能;其中,第一预设版本号为基板管理控制器支持数据监控功能的最低版本号;和/或,确定与复杂可编程逻辑器件对应的第二预设版本号,若第二版本号不低于第二预设版本号,则确定复杂可编程逻辑器件支持数据监控功能;其中,第二预设版本号为复杂可编程逻辑器件支持数据监控功能的最低版本号。需要指出的是,带外监控功能主要指的是数据监控功能,也即,系统启动控制器判断基板管理控制器、复杂可编程逻辑器件是否支持带外监控功能,主要是判断它们是否支持监控硬盘日志数据的功能(即数据监控功能)。可以理解的是,硬盘带外监控主要是对硬盘日志数据的监控,而本申请对于硬盘,额外增加了利用其硬盘状态引脚来输出硬盘日志数据的功能;对于硬盘带外监控控制器,若硬盘带外监控控制器包括基板管理控制器和复杂可编程逻辑器件,则对于复杂可编程逻辑器件,其需要支持信号解调以及存储硬盘日志数据的功能,对于基板管理控制器,其需要支持读取复杂可编程逻辑器件中的硬盘日志数据并解析的功能。因此本申请检测版本号是为了看当前版本的基板管理控制器和/或复杂可编程逻辑器件是否支持上述监控硬盘日志数据的功能。
另外,判断基板管理控制器和复杂可编程逻辑器件是否支持数据监控功能都是将其当前的版本号与支持带外监控功能的最低版本号进行比较,若当前版本号不低于最低版本号,则说明基板管理控制器和复杂可编程逻辑器件支持数据监控功能。
需要指出的是,若基板管理控制器从第一寄存器中未读取到第一版本号,或系统启动控制器未获取到基板管理控制器发送的第一版本号,则通过系统启动控制器检测基板管理控制器的网页界面是否存在硬盘数据显示组件,若存在硬盘数据显示组件,则确定基板管理控制器支持带外监控功能。需要说明的是,针对某些基板管理控制器无法从第一寄存器中查找到版本号,或系统启动控制器无法获取到基板管理控制器的版本号的情况,本申请实施例还提供了另一种方法用于确认基板管理控制器是否支持带外监控功能。基板管理控制器的网页界面设置有硬盘数据显示组件,可将获取的硬盘日志数据实时显示在屏幕上。系统启动控制器在无法获取基板管理控制器版本号时,会检测BMC网页界面对应位置是否存在硬盘数据显示组件,若存在则认为基板管理控制器支持本系统功能。
需要指出的是,若基板管理控制器从第一寄存器中未读取到第二版本号,或系统启动控制器未获取到基板管理控制器发送的第二版本号,则通过系统启动控制器从复杂可编程逻辑器件中的第二寄存器中读取复杂可编程逻辑器件的代码占用内存大小,若代码占用内存大小与复杂可编程逻辑器件的代码开发大小相同,则确定复杂可编程逻辑器件支持带外监控功能。需要说明的是,针对某些复杂可编程逻辑器件无法从第一寄存器中查找到版本号,或系统启动控制器无法获取到复杂可编程逻辑器件的版本号的情况,本申请实施例还提供了另一种方法用于确认复杂可编程逻辑器件是否支持带外监控功能。复杂可编程逻辑器件中设置有第二寄存器用于存储复杂可编程逻辑器件的代码占用内存大小,系统启动控制器在无法获取复杂可编程逻辑器件的版本号时,会从第二寄存器中读取复杂可编程逻辑器件的代码占用内存大小,若代码占用内存大小与复杂可编程逻辑器件的代码开发大小相同,则确定复杂可编程逻辑器件支持带外监控功能。
在具体实施方式中,当系统启动控制器为基于统一可扩展固件接口构建时,利用系统启动控制器检测待监控硬盘的版本号的过程包括:在系统启动控制器的驱动执行环境阶段,利用系统启动控制器轮询所有待监控硬盘,以获取各待监控硬盘对应的第三版本号、供应商标识和组织唯一标识符;相应的,基于版本号确定待监控硬盘是否支持数据监控功能,包括:基于第三版本号、供应商标识和组织唯一标识符确定待监控硬盘是否支持数据监控功能。与检测硬盘带外监控控制器的过程相似,系统启动控制器判断硬盘是否支持带外监控功能,主要是判断硬盘是否支持数据监控功能,即是否能够利用其硬盘状态引脚来输出硬盘日志数据。在UEFI的DXE阶段,UEFI可以通过PCIE总线轮询所有待监控硬盘,通过ATA Pass Through命令确定硬盘是否支持数据监控功能。具体的,UEFI轮询所有待监控硬盘,以获取各待监控硬盘对应的第三版本号、供应商标识和组织唯一标识符(Organizationally unique identifier,OUI),再基于第三版本号、供应商标识和组织唯一标识符确定待监控硬盘是否支持数据监控功能。
具体的,上述基于第三版本号、供应商标识和组织唯一标识符确定待监控硬盘是否支持数据监控功能,包括:基于供应商标识和组织唯一标识符确定与待监控硬盘对应的第三预设版本号;第三预设版本号为待监控硬盘支持数据监控功能的最低版本号;若第三版本号不低于第三预设版本号,且待监控硬盘的硬盘管理日志的格式无误,则确定待监控硬盘支持数据监控功能。可以理解的是,系统启动控制器在判断待监控硬盘是否支持数据监控功能时,也是将各待监控硬盘的版本号与支持带外监控功能的最低版本号进行比较,若当前版本号不低于最低版本号,且待监控硬盘的硬盘管理日志的格式无误,则确定待监控硬盘支持数据监控功能。
步骤S22:若系统启动控制器确定硬盘带外监控控制器和待监控硬盘均支持带外监控功能,则将待监控硬盘作为目标硬盘,并启用硬盘带外监控控制器和目标硬盘的带外监控功能以及将目标硬盘的信息发送至硬盘带外监控控制器,以便硬盘带外监控控制器获取到目标硬盘的硬盘日志数据。
本实施例中,若系统启动控制器确定硬盘带外监控控制器和待监控硬盘均支持带外监控功能,则将待监控硬盘作为目标硬盘,并启用硬盘带外监控控制器和目标硬盘的带外监控功能。也即,只有硬盘带外监控控制器和待监控硬盘同时支持带外监控功能的条件下,才开启硬盘带外监控控制器和目标硬盘的带外监控功能。系统启动控制器进一步再将目标硬盘的信息发送至硬盘带外监控控制器,以便硬盘带外监控控制器获取到目标硬盘的硬盘日志数据。
步骤S23:若硬盘带外监控控制器或待监控硬盘不支持带外监控功能,则禁止启用硬盘带外监控控制器和待监控硬盘的带外监控功能。
本实施例中,若硬盘带外监控控制器或待监控硬盘不支持带外监控功能,则禁止启用硬盘带外监控控制器和待监控硬盘的带外监控功能。需要指出的是,硬盘带外监控控制器和待监控硬盘均默认关闭了带外监控功能,也即若硬盘带外监控控制器和待监控硬盘其中有一个不支持带外监控功能,则两者的带外监控功能均不能启动。
需要指出的是,本申请实施例支持用户在用户界面修改配置带外监控功能。在具体实施方式中,当系统启动控制器为基于统一可扩展固件接口构建时,若在系统启动控制器的启动设备选择阶段获取到用户通过第一用户界面发送的关于硬盘带外监控控制器和/或目标硬盘的功能配置修改指令,或若在系统启动控制器的操作系统加载前期阶段获取到用户通过第二用户界面发送的关于硬盘带外监控控制器和/或目标硬盘的功能配置修改指令,则通过获取到的功能配置修改指令对硬盘带外监控控制器和/或目标硬盘进行修改配置;在检测到第一用户界面或第二用户界面关闭后,通过系统启动控制器检测硬盘带外监控控制器和目标硬盘的带外监控功能的功能配置状态是否一致;功能配置状态包括开启状态和关闭状态;若硬盘带外监控控制器和目标硬盘的带外监控功能的功能配置状态不一致,则判定获取到的功能配置修改指令为无效指令,并清除关于硬盘带外监控控制器和/或目标硬盘的修改配置。其中,第一用户界面和第二用户界面用于显示当前硬盘带外监控控制器和当前目标硬盘是否支持带外监控功能,以及当前硬盘带外监控控制器和当前目标硬盘是否已开启带外监控功能。
需要指出的是,第一用户界面具体为setup(设置)界面,第二用户界面具体为shell(壳)界面,也即,用户可在UEFI的BDS阶段的setup界面和TSL阶段的shell界面人工查看硬盘带外监控控制器和目标硬盘是否支持和开启带外监控功能,还可以配置硬盘带外监控控制器和目标硬盘的带外监控功能,如果用户通过setup界面、shell界面的方式修改了硬盘带外监控控制器和目标硬盘关于带外监控功能的功能配置状态,那么在检测到setup界面或shell界面关闭后,UEFI需重新确认硬盘带外监控控制器和目标硬盘关于带外监控功能的功能配置状态是否一致,即是否同时开启/关闭了带外监控功能,若存在一方未开启/关闭,则用户此次的配置更改是无效的,那么则清除用户本次关于硬盘带外监控控制器和/或目标硬盘的修改配置。
具体流程如下:UEFI进入Setup界面,进入后可以查看硬盘带外监控控制器和目标硬盘是否支持带外监控功能以及是否开启了该功能;如果硬盘带外监控控制器和目标硬盘均支持本系统功能,则可以通过更改选项开启或关闭硬盘带外监控控制器和目标硬盘的带外监控功能,此外,还可以输入数值更改硬盘输出目标信号的输出间隔;如果用户启用/关闭硬盘带外监控控制器和目标硬盘的带外监控功能,则在离开Setup界面时,UEFI确认硬盘带外监控控制器和目标硬盘的带外监控功能是否同时开启/关闭,否则用户此次的配置更改无效。此外,在UEFI进入Shell后,可通过对应的命令执行以上相同流程。
并且,本申请实施例还支持用户在操作系统的终端修改配置带外监控功能。具体的,通过系统启动控制器在操作系统启动时安装驱动程序,若操作系统获取到用户通过终端发送的关于硬盘带外监控控制器和/或目标硬盘的功能配置修改指令,则基于获取到的功能配置修改指令对硬盘带外监控控制器和/或目标硬盘进行修改配置;在检测到终端关闭后,通过驱动程序检测硬盘带外监控控制器和目标硬盘的带外监控功能的功能配置状态是否一致;功能配置状态包括开启状态和关闭状态;若硬盘带外监控控制器和/或目标硬盘的带外监控功能的功能配置状态不一致,则判定获取到的功能配置修改指令为无效指令,并清除关于硬盘带外监控控制器和/或目标硬盘的修改配置。
可以理解的是,系统启动控制器在操作系统启动时安装驱动程序,确认硬盘带外监控控制器的带外监控功能是否已开启,若已开启则进行以下流程;当检测到热插入硬盘时,操作系统需要获取硬盘的供应商标识、组织唯一标识符和版本号,根据供应商标识、组织唯一标识符和版本号确认硬盘是否支持带外监控功能,确定硬盘的管理日志地址,根据硬盘管理日志地址获取硬盘管理日志,确认硬盘管理日志的格式是否正常;如果硬盘支持带外监控功能且管理日志格式正常则开启硬盘关于本系统的带外监控功能。用户可以通过在终端输入指令查看、修改复杂可编程逻辑器件、基板管理控制器和硬盘关于本系统功能的状态和配置。如果用户启用/关闭硬盘带外监控控制器和/或目标硬盘的本系统功能,则在关闭终端时,由驱动程序确认硬盘带外监控控制器和目标硬盘的带外监控功能是否同时开启/关闭,否则用户此次的配置更改无效。
可见,本申请实施例中,系统启动控制器在初始化阶段会分别检测各硬盘和硬盘带外监控控制器是否支持带外监控功能,并根据检测结果确定是否启用带外监控功能,只有在硬盘和硬盘带外监控控制器均支持带外监控功能的情况下,才启用带外监控功能。并且,本申请还支持用户在UEFI的BDS阶段的setup界面和TSL阶段的shell界面人工查看和修改配置带外监控功能,且还支持在操作系统终端人工查看和修改配置带外监控功能,并且在检测到setup界面、shell界面关闭后或终端关闭后,UEFI/驱动程序需要重新确认硬盘带外监控控制器和目标硬盘关于带外监控功能的功能配置状态是否一致,即确认硬盘带外监控控制器和目标硬盘的带外监控功能是否同时开启/关闭,否则用户此次的配置更改无效。也即,无论在系统运行的任何阶段,硬盘带外监控控制器和目标硬盘关于带外监控功能的功能配置状态都需要保持一致,即同时开启或同时关闭,若用户只修改了其中一种的功能配置状态,使得修改后两者功能配置状态不一致,则认为用户此处的修改配置是无效的,以保证系统正常运行。
具体参见图6所示,本申请公开了一种使用基板管理控制器和复杂可编程逻辑器件对硬盘进行监控的流程图。
首先由系统启动控制器检测硬盘、基板管理控制器和复杂可编程逻辑器件是否均支持带外监控功能,并接收硬盘、基板管理控制器和复杂可编程逻辑器件对于带外监控功能的支持结果。其中,对于系统启动控制器是先检测硬盘还是先检测基板管理控制器和复杂可编程逻辑器件,本申请实施例对此不作限定,两者可以同时进行也可以按照规定的先后顺序进行检测,图6只是为方便描述本方案流程而给出的一种具体示例。
进一步的,若硬盘、基板管理控制器和复杂可编程逻辑器件均支持带外监控功能,则启用硬盘、基板管理控制器和复杂可编程逻辑器件的带外监控功能,并返回功能启用结果。同理,对于系统启动控制器是先启用硬盘的带外监控功能还是先启用基板管理控制器和复杂可编程逻辑器件的带外监控功能,本申请实施例对此不作限定,两者可以同时进行也可以按照规定的先后顺序进行启用,图6只是为方便描述本方案流程而给出的一种具体示例。
在硬盘、基板管理控制器和复杂可编程逻辑器件的带外监控功能均启用完成后,硬盘则可以执行向外传输硬盘日志数据的步骤,以便基板管理控制器和复杂可编程逻辑器件对硬盘进行带外监控。
具体的,硬盘基于硬盘日志数据和硬盘状态引脚对应的硬盘状态信号进行调制以输出目标信号给复杂可编程逻辑器件,复杂可编程逻辑器件解调目标信号得到硬盘日志数据后存储在本地,并向基板管理控制器发出中断信号以提醒基板管理控制器读取数据,基板管理控制器响应中断信号并从复杂可编程逻辑器件中读取硬盘日志数据,然后在其目标界面进行显示,并在硬盘日志数据不满足预设阈值条件时发出预警提示。
本申请实施例还公开了一种服务器,包括硬盘带外监控控制器、硬盘、系统启动控制器和第一信号线;
硬盘带外监控控制器,用于从硬盘中确定目标硬盘,以及向目标硬盘发送引脚配置信息;目标硬盘为系统启动控制器在初始化阶段检测到的具有带外监控功能的硬盘,引脚配置信息包括用于指示目标硬盘中的输出目标信号的硬盘状态引脚的标识,以及用于配置目标硬盘的基于硬盘日志数据和硬盘状态引脚对应的硬盘状态信号的信号调制过程的配置参数;
目标硬盘,用于根据引脚配置信息进行相应配置后通过第一信号线向硬盘带外监控控制器输出目标信号,以便硬盘带外监控控制器解调目标信号得到硬盘日志数据,并基于硬盘日志数据执行对目标硬盘的监控任务。
也即,本申请中硬盘带外监控控制器首先从服务器中的各硬盘中确定出具有带外监控功能的目标硬盘,具体是由服务器中的系统启动控制器在初始化阶段对各硬盘进行检测,以检测到具有带外监控功能的硬盘。进一步的,硬盘带外监控控制器还能向目标硬盘发送引脚配置信息,引脚配置信息中包括用于指示目标硬盘中的输出目标信号的硬盘状态引脚的标识,以使得目标硬盘能够根据硬盘带外监控控制器选择的硬盘状态引脚输出目标信号;此外,引脚配置信息还包括配置参数,用于配置目标硬盘根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号的信号调制过程,从而调制得到目标信号。通过由目标硬盘利用硬盘日志数据和硬盘状态引脚原有功能对应的硬盘状态信号进行调制得到目标信号并输出的方式,实现硬盘状态引脚也能够输出硬盘日志数据,解决了当前只能通过规定的数据引脚连接硬盘扩展卡才能输出硬盘日志数据的局限性。目标硬盘在根据引脚配置信息进行相应配置后通过第一信号线向硬盘带外监控控制器输出目标信号,以便硬盘带外监控控制器解调目标信号得到硬盘日志数据,并基于硬盘日志数据执行对目标硬盘的监控任务。也即,目标硬盘可以根据硬盘日志数据和硬盘带外监控控制器选择的硬盘状态引脚对应的硬盘状态信号进行调制的方式输出目标信号,使得硬盘带外监控控制器通过第一信号线直连目标硬盘就能获取到硬盘日志数据。如此一来,硬盘带外监控控制器通过第一信号线与目标硬盘直连的方式,以实现对目标硬盘的带外监控,无需再额外连接硬盘扩展卡,也即无论硬盘是否连接在硬盘扩展卡上,都能实现对硬盘的带外监控,上述方案既不影响目标硬盘的原有功能也降低了带外监控难度,且有效提高了硬盘带外监控的可监控硬盘的范围。
参加图7所示,本申请以硬盘带外监控控制器为基板管理控制器和复杂可编程逻辑器件为例,对本申请的技术方案进行详细说明。
首先由基板管理控制器、第一目标总线、第二目标总线、复杂可编程逻辑器件、目标硬盘和系统启动控制器组成图7中的硬盘监控系统架构。其中:
基板管理控制器,通过第一目标总线、第二目标总线与服务器系统中的各个硬盘背板/主板上的复杂可编程逻辑器件相连,负责经第二目标总线通过轮询的方式获取各个复杂可编程逻辑器件中存储的硬盘日志数据,或经第一目标总线接收复杂可编程逻辑器件发出的中断信号,再经第二目标总线获取对应复杂可编程逻辑器件中存储的硬盘日志数据。
第一目标总线,是服务器系统中带外管理的信号总线,满足复杂可编程逻辑器件向基板管理控制器发送中断信号的需求;当第二目标总线支持中断功能时,第一目标总线为可选组件。
第二目标总线,是服务器系统中带外管理的数据总线,按照一主多从的模式工作,其中基板管理控制器为主设备,各个复杂可编程逻辑器件为从设备,第二目标总线为必选组件。
复杂可编程逻辑器件由硬盘监控数据服务模块、脉冲宽度解调模块组成:
硬盘监控数据服务模块,负责接收并暂存脉冲宽度解调模块解调出的硬盘日志数据,在有数据时通过第一目标总线向基板管理控制器发出中断,并响应基板管理控制器经第二目标总线发出的数据读取请求并返回硬盘日志数据。
脉冲宽度解调模块,通过一个引脚连接至一块目标硬盘的引脚,准确识别硬盘引脚当前输出信号的电平时长,以基于电平时长解调当前输出信号得到硬盘日志数据。
目标硬盘,利用当前硬盘日志数据对硬盘引脚输出信号进行调制得到当前输出信号,并通过硬盘引脚输出给复杂可编程逻辑器件。
系统启动控制器可在服务器启动时自动检测硬盘、复杂可编程逻辑器件、基板管理控制器,确认硬盘、复杂可编程逻辑器件、基板管理控制器的版本;可以理解的是,本申请实施例预先对硬盘、复杂可编程逻辑器件、基板管理控制器进行了调试配置,并修改了各自的版本信息,使得硬盘、复杂可编程逻辑器件、基板管理控制器所构成的带外监控系统能够具备各自所需要的带外监控功能,从而使得整个带外监控系统能够正常运行。因此通过检测其版本号可以确定硬盘、复杂可编程逻辑器件、基板管理控制器是否同时支持带外监控功能,若均支持,则开启三个模块的带外监控功能,如果硬盘、复杂可编程逻辑器件、基板管理控制器不能同时支持带外监控功能,即确认三个模块均关闭了带外监控功能。其中,硬盘、复杂可编程逻辑器件、基板管理控制器均默认关闭了带外监控功能。
参见图8所示,本申请实施例公开了一种硬盘监控装置,应用于硬盘带外监控控制器,该装置包括:
硬盘确定模块11,用于确定目标硬盘;目标硬盘为系统启动控制器在初始化阶段检测到的具有带外监控功能的与硬盘带外监控控制器通过第一信号线连接的硬盘;
配置模块12,用于向目标硬盘发送引脚配置信息,并通过第一信号线获取目标硬盘根据引脚配置信息进行相应配置后输出的目标信号;引脚配置信息包括用于指示目标硬盘中的输出目标信号的硬盘状态引脚的标识,以及用于配置目标硬盘的基于硬盘日志数据和硬盘状态引脚对应的硬盘状态信号的信号调制过程的配置参数;
监控模块13,用于解调目标信号得到硬盘日志数据,并基于硬盘日志数据执行对目标硬盘的监控任务。
有益效果:本申请中硬盘带外监控控制器首先需要确定服务器中具有带外监控功能的目标硬盘,具体是服务器中的系统启动控制器在初始化阶段对各硬盘进行检测,以检测到具有带外监控功能的硬盘。且本申请采取硬盘带外监控控制器通过第一信号线与目标硬盘直连的方式,以实现对目标硬盘的带外监控,无需再额外连接硬盘扩展卡,也即无论硬盘是否连接在硬盘扩展卡上,都能实现对硬盘的带外监控,降低了带外监控难度。进一步的,硬盘带外监控控制器还能向目标硬盘发送引脚配置信息,引脚配置信息中包括用于指示目标硬盘中的输出目标信号的硬盘状态引脚的标识,以使得目标硬盘能够根据硬盘带外监控控制器选择的硬盘状态引脚输出目标信号;此外,引脚配置信息还包括配置参数,用于配置目标硬盘根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号的信号调制过程,从而调制得到目标信号。通过由目标硬盘利用硬盘日志数据和硬盘状态引脚原有功能对应的硬盘状态信号进行调制得到目标信号并输出的方式,实现硬盘状态引脚也能够输出硬盘日志数据,解决了当前只能通过规定的数据引脚连接硬盘扩展卡才能输出硬盘日志数据的局限性。也即,目标硬盘可以根据硬盘日志数据和硬盘带外监控控制器选择的硬盘状态引脚对应的硬盘状态信号进行调制的方式输出目标信号,使得硬盘带外监控控制器通过第一信号线直连目标硬盘就能获取到硬盘日志数据,上述方案既不影响目标硬盘的原有功能也降低了带外监控难度,且有效提高了硬盘带外监控的可监控硬盘的范围。
在一些实施例中,硬盘带外监控控制器基于双线双向通信机制执行与目标硬盘的第一交互操作;第一交互操作为硬盘带外监控控制器向目标硬盘发送引脚配置信息,并获取目标硬盘根据引脚配置信息进行相应配置后输出的目标信号。
在一些实施例中,装置用于在识别目标信号中的硬盘状态信号为非指示状态信号或无效信号,且当前时刻为与目标硬盘约定的协商时间段时,硬盘带外监控控制器基于单线双向通信机制执行与目标硬盘的第二交互操作;第二交互操作为硬盘带外监控控制器向目标硬盘发送反向传输请求,并在获得目标硬盘对反向传输请求的允许信号时,向目标硬盘输出引脚配置信息。
在一些实施例中,在系统启动控制器的初始化阶段,装置还包括:
版本检测模块,用于在服务器上电启动时,利用系统启动控制器检测硬盘带外监控控制器和待监控硬盘的版本号,并基于版本号确定硬盘带外监控控制器和待监控硬盘是否均支持带外监控功能;
功能启用模块,用于若系统启动控制器确定硬盘带外监控控制器和待监控硬盘均支持带外监控功能,则将待监控硬盘作为目标硬盘,并启用硬盘带外监控控制器和目标硬盘的带外监控功能以及将目标硬盘的信息发送至硬盘带外监控控制器,以便硬盘带外监控控制器获取到目标硬盘的硬盘日志数据;
功能禁用模块,用于若硬盘带外监控控制器或待监控硬盘不支持带外监控功能,则禁止启用硬盘带外监控控制器和待监控硬盘的带外监控功能。
在一些实施例中,系统启动控制器基于统一可扩展固件接口或基本输出输入系统构建,硬盘带外监控控制器包括基板管理控制器和/或复杂可编程逻辑器件。
在一些实施例中,当系统启动控制器基于统一可扩展固件接口构建时,版本检测模块具体用于在系统启动控制器的驱动执行环境阶段,利用系统启动控制器通过智能平台管理接口向基板管理控制器发送用于获取基板管理控制器和/或复杂可编程逻辑器件的版本号的目标请求;通过系统启动控制器获取基板管理控制器对目标请求进行响应后返回的版本号;其中,基板管理控制器对目标请求进行响应的过程包括:基板管理控制器根据目标请求从用于存放版本号的第一寄存器中读取与基板管理控制器对应的第一版本号和/或读取与复杂可编程逻辑器件对应的第二版本号,以及将读取到的第一版本号和/或第二版本号发送至系统启动控制器。
在一些实施例中,版本检测模块,具体用于确定与基板管理控制器对应的第一预设版本号,若第一版本号不低于第一预设版本号,则确定基板管理控制器支持数据监控功能;其中,第一预设版本号为基板管理控制器支持数据监控功能的最低版本号;和/或,确定与复杂可编程逻辑器件对应的第二预设版本号,若第二版本号不低于第二预设版本号,则确定复杂可编程逻辑器件支持数据监控功能;其中,第二预设版本号为复杂可编程逻辑器件支持数据监控功能的最低版本号。
在一些实施例中,装置,还包括:
组件检测单元,用于若基板管理控制器从第一寄存器中未读取到第一版本号,或系统启动控制器未获取到基板管理控制器发送的第一版本号,则通过系统启动控制器检测基板管理控制器的网页界面是否存在硬盘数据显示组件,若存在硬盘数据显示组件,则确定基板管理控制器支持带外监控功能。
在一些实施例中,装置,还包括:
内存比对单元,用于若基板管理控制器从第一寄存器中未读取到第二版本号,或系统启动控制器未获取到基板管理控制器发送的第二版本号,则通过系统启动控制器从复杂可编程逻辑器件中的第二寄存器中读取复杂可编程逻辑器件的代码占用内存大小,若代码占用内存大小与复杂可编程逻辑器件的代码开发大小相同,则确定复杂可编程逻辑器件支持带外监控功能。
在一些实施例中,当系统启动控制器为基于统一可扩展固件接口构建时,版本检测模块,具体用于在系统启动控制器的驱动执行环境阶段,利用系统启动控制器轮询所有待监控硬盘,以获取各待监控硬盘对应的第三版本号、供应商标识和组织唯一标识符;基于第三版本号、供应商标识和组织唯一标识符确定待监控硬盘是否支持数据监控功能。
在一些实施例中,版本检测模块,具体用于基于供应商标识和组织唯一标识符确定与待监控硬盘对应的第三预设版本号;第三预设版本号为待监控硬盘支持数据监控功能的最低版本号;若第三版本号不低于第三预设版本号,且待监控硬盘的硬盘管理日志的格式无误,则确定待监控硬盘支持数据监控功能。
在一些实施例中,装置,还包括:
第一配置单元,用于当系统启动控制器为基于统一可扩展固件接口构建时,若在系统启动控制器的启动设备选择阶段获取到用户通过第一用户界面发送的关于硬盘带外监控控制器和/或目标硬盘的功能配置修改指令,或若在系统启动控制器的操作系统加载前期阶段获取到用户通过第二用户界面发送的关于硬盘带外监控控制器和/或目标硬盘的功能配置修改指令,则通过获取到的功能配置修改指令对硬盘带外监控控制器和/或目标硬盘进行修改配置;
第一状态检测单元,用于在检测到第一用户界面或第二用户界面关闭后,通过系统启动控制器检测硬盘带外监控控制器和目标硬盘的带外监控功能的功能配置状态是否一致;功能配置状态包括开启状态和关闭状态;
第一配置清除单元,用于若硬盘带外监控控制器和目标硬盘的带外监控功能的功能配置状态不一致,则判定获取到的功能配置修改指令为无效指令,并清除关于硬盘带外监控控制器和/或目标硬盘的修改配置。
在一些实施例中,第一用户界面和第二用户界面用于显示当前硬盘带外监控控制器和当前目标硬盘是否支持带外监控功能,以及当前硬盘带外监控控制器和当前目标硬盘是否已开启带外监控功能。
在一些实施例中,装置,还包括:
第二配置单元,用于通过系统启动控制器在操作系统启动时安装驱动程序,若操作系统获取到用户通过终端发送的关于硬盘带外监控控制器和/或目标硬盘的功能配置修改指令,则基于获取到的功能配置修改指令对硬盘带外监控控制器和/或目标硬盘进行修改配置;
第二状态检测单元,用于在检测到终端关闭后,通过驱动程序检测硬盘带外监控控制器和目标硬盘的带外监控功能的功能配置状态是否一致;功能配置状态包括开启状态和关闭状态;
第二配置清除单元,用于若硬盘带外监控控制器和/或目标硬盘的带外监控功能的功能配置状态不一致,则判定获取到的功能配置修改指令为无效指令,并清除关于硬盘带外监控控制器和/或目标硬盘的修改配置。
在一些实施例中,硬盘带外监控控制器为基板管理控制器;
相应的,监控模块,包括:
显示单元,用于在目标界面显示硬盘日志数据;
第一预警单元,用于基于硬盘日志数据的类型确定对应的预设阈值条件,并判断硬盘日志数据是否满足预设阈值条件,若不满足则发出预警提示。
在一些实施例中,硬盘带外监控控制器包括基板管理控制器和复杂可编程逻辑器件;
相应的,监控模块,包括:
中断信号发送单元,用于在获取到目标硬盘通过硬盘状态引脚输出的硬盘日志数据后,通过复杂可编程逻辑器件并利用第一目标总线向基板管理控制器发出中断信号;
数据读取单元,用于通过基板管理控制器响应中断信号,并通过第二目标总线向复杂可编程逻辑器件发送数据读取请求,以便复杂可编程逻辑器件将硬盘日志数据发送至基板管理控制器;
第二预警单元,用于通过基板管理控制器在目标界面显示硬盘日志数据,并在硬盘日志数据不满足预设阈值条件时发出预警提示;预设阈值条件为与硬盘日志数据的类型对应的阈值条件。
图9为本申请实施例提供的一种电子设备的结构示意图。具体可以包括:至少一个处理器21、至少一个存储器22、电源23、通信接口24、输入输出接口25和通信总线26。其中,存储器22用于存储计算机程序,计算机程序由处理器21加载并执行,以实现前述任一实施例公开的由电子设备执行的硬盘监控方法中的相关步骤。
本实施例中,电源23用于为电子设备上的各硬件设备提供工作电压;通信接口24能够为电子设备创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本申请技术方案的任意通信协议,在此不对其进行具体限定;输入输出接口25,用于获取外界输入数据或向外界输出数据,其具体的接口类型可以根据具体应用需要进行选取,在此不进行具体限定。
其中,处理器21可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器21可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器21也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器21可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器21还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。
另外,存储器22作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源包括操作系统221、计算机程序222及数据223等,存储方式可以是短暂存储或者永久存储。
其中,操作系统221用于管理与控制电子设备上的各硬件设备以及计算机程序222,以实现处理器21对存储器22中海量数据223的运算与处理,其可以是Windows、Unix、Linux等。计算机程序222除了包括能够用于完成前述任一实施例公开的由电子设备执行的硬盘监控方法的计算机程序之外,还可以进一步包括能够用于完成其他特定工作的计算机程序。数据223除了可以包括电子设备接收到的由外部设备传输进来的数据,也可以包括由自身输入输出接口25采集到的数据等。
进一步的,本申请实施例还公开了一种计算机非易失性可读存储介质,存储介质中存储有计算机程序,计算机程序被处理器加载并执行时,实现前述任一实施例公开的硬盘监控方法步骤。
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
本领域技术人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(Random Access Memory,即RAM)、内存、只读存储器(Read-Only Memory,即ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、只读光盘(Compact Disc Read-Only Memory,即CD-ROM)、或技术领域内所公知的任意其它形式的存储介质中。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上对本申请所提供的一种硬盘监控方法、装置、设备及存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种硬盘监控方法,其特征在于,应用于硬盘带外监控控制器,包括:
    确定目标硬盘;所述目标硬盘为系统启动控制器在初始化阶段检测到的具有带外监控功能的与所述硬盘带外监控控制器连接的硬盘;
    向所述目标硬盘发送引脚配置信息,并获取所述目标硬盘根据所述引脚配置信息进行相应配置后输出的目标信号;所述引脚配置信息包括被配置为指示所述目标硬盘中的输出所述目标信号的硬盘状态引脚的标识,以及被配置为配置所述目标硬盘的基于硬盘日志数据和所述硬盘状态引脚对应的硬盘状态信号的信号调制过程的配置参数;
    解调所述目标信号得到所述硬盘日志数据,并基于所述硬盘日志数据执行对所述目标硬盘的监控任务。
  2. 根据权利要求1所述的硬盘监控方法,其特征在于,所述硬盘带外监控控制器基于双线双向通信机制执行与所述目标硬盘的第一交互操作;所述第一交互操作为所述硬盘带外监控控制器向所述目标硬盘发送引脚配置信息,并获取所述目标硬盘根据所述引脚配置信息进行相应配置后输出的目标信号。
  3. 根据权利要求1所述的硬盘监控方法,其特征在于,在识别所述目标信号中的所述硬盘状态信号为非指示状态信号或无效信号,且当前时刻为与所述目标硬盘约定的协商时间段时,所述硬盘带外监控控制器基于单线双向通信机制执行与所述目标硬盘的第二交互操作;所述第二交互操作为所述硬盘带外监控控制器向所述目标硬盘发送反向传输请求,并在获得所述目标硬盘对所述反向传输请求的允许信号时,向所述目标硬盘输出所述引脚配置信息。
  4. 根据权利要求1所述的硬盘监控方法,其特征在于,所述系统启动控制器的初始化阶段包括:
    在服务器上电启动时,利用所述系统启动控制器检测所述硬盘带外监控控制器和待监控硬盘的版本号,并基于所述版本号确定所述硬盘带外监控控制器和所述待监控硬盘是否均支持带外监控功能;
    若所述系统启动控制器确定所述硬盘带外监控控制器和所述待监控硬盘均支持带外监控功能,则将所述待监控硬盘作为所述目标硬盘,并启用所述硬盘带外监控控制器和所述目标硬盘的带外监控功能以及将所述目标硬盘的信息发送至所述硬盘带外监控控制器,以便所述硬盘带外监控控制器获取到所述目标硬盘的硬盘日志数据;
    若所述硬盘带外监控控制器或所述待监控硬盘不支持带外监控功能,则禁止启用所述硬盘带外监控控制器和所述待监控硬盘的带外监控功能。
  5. 根据权利要求4所述的硬盘监控方法,其特征在于,所述系统启动控制器基于统一可扩展固件接口或基本输出输入系统构建,所述硬盘带外监控控制器包括基板管理控制器和/或复杂可编程逻辑器件。
  6. 根据权利要求5所述的硬盘监控方法,其特征在于,当所述系统启动控制器基于统一可扩展固件接口构建时,利用所述系统启动控制器检测所述硬盘带外监控控制器的版本号的过程包括:
    在所述系统启动控制器的驱动执行环境阶段,利用所述系统启动控制器通过智能平台管理接口向所述基板管理控制器发送被配置为获取所述基板管理控制器和/或所述复杂可编程逻辑器件的版本号的目标请求;
    通过所述系统启动控制器获取所述基板管理控制器对所述目标请求进行响应后返回的版本号;其中,所述基板管理控制器对所述目标请求进行响应的过程包括:所述基板管理控制器根据所述目标请求从被配置为存放版本号的第一寄存器中读取与所述基板管理控制器对应的第一版本号和/或读取与所述复杂可编程逻辑器件对应的第二版本号,以及将读取到的所述第一版本号和/或所述第二版本号发送至所述系统启动控制器。
  7. 根据权利要求6所述的硬盘监控方法,其特征在于,基于所述版本号确定所述硬盘带外监控控制器是否支持数据监控功能,包括:
    确定与所述基板管理控制器对应的第一预设版本号,若所述第一版本号不低于所述第一预设版本号,则确定所述基板管理控制器支持数据监控功能;其中,所述第一预设版本号为所述基板管理控制器支持数据监控功能的最低版本号;
    和/或,确定与所述复杂可编程逻辑器件对应的第二预设版本号,若所述第二版本号不低于所述第二预设版本号,则确定所述复杂可编程逻辑器件支持数据监控功能;其中,所述第二预设版本号为所述复杂可编程逻辑器件支持数据监控功能的最低版本号。
  8. 根据权利要求6所述的硬盘监控方法,其特征在于,还包括:
    若所述基板管理控制器从所述第一寄存器中未读取到所述第一版本号,或所述系统启动控制器未获取到所述基板管理控制器发送的所述第一版本号,则通过所述系统启动控制器检测所述基板管理控制器的网页界面是否存在硬盘数据显示组件,若存在所述硬盘数据显示组件,则确定所述基板管理控制器支持带外监控功能。
  9. 根据权利要求6所述的硬盘监控方法,其特征在于,还包括:
    若所述基板管理控制器从所述第一寄存器中未读取到所述第二版本号,或所述系统启动控制器未获取到所述基板管理控制器发送的所述第二版本号,则通过所述系统启动控制器从所述复杂可编程逻辑器件中的第二寄存器中读取所述复杂可编程逻辑器件的代码占用内存大小,若所述代码占用内存大小与所述复杂可编程逻辑器件的代码开发大小相同,则确定所述复杂可编程逻辑器件支持带外监控功能。
  10. 根据权利要求5所述的硬盘监控方法,其特征在于,当所述系统启动控制器为基于统一可扩展固件接口构建时,利用所述系统启动控制器检测待监控硬盘的版本号的过程包括:
    在所述系统启动控制器的驱动执行环境阶段,利用所述系统启动控制器轮询所有待监控硬盘,以获取各所述待监控硬盘对应的第三版本号、供应商标识和组织唯一标识符;
    相应的,基于所述版本号确定所述待监控硬盘是否支持数据监控功能,包括:
    基于所述第三版本号、所述供应商标识和所述组织唯一标识符确定所述待监控硬盘是否支持数据监控功能。
  11. 根据权利要求10所述的硬盘监控方法,其特征在于,所述基于所述第三版本号、所述供应商标识和所述组织唯一标识符确定所述待监控硬盘是否支持数据监控功能,包括:
    基于所述供应商标识和所述组织唯一标识符确定与所述待监控硬盘对应的第三预设版本号;所述第三预设版本号为所述待监控硬盘支持数据监控功能的最低版本号;
    若所述第三版本号不低于所述第三预设版本号,且所述待监控硬盘的硬盘管理日志的格式无误,则确定所述待监控硬盘支持数据监控功能。
  12. 根据权利要求5所述的硬盘监控方法,其特征在于,还包括:
    当所述系统启动控制器为基于统一可扩展固件接口构建时,若在所述系统启动控制器的启动设备选择阶段获取到用户通过第一用户界面发送的关于所述硬盘带外监控控制器和/或所述目标硬盘的功能配置修改指令,或若在所述系统启动控制器的操作系统加载前期阶段获取到用户通过第二用户界面发送的关于所述硬盘带外监控控制器和/或所述目标硬盘的功能配置修改指令,则通过获取到的所述功能配置修改指令对所述硬盘带外监控控制器和/或所述目标硬盘进行修改配置;
    在检测到所述第一用户界面或所述第二用户界面关闭后,通过所述系统启动控制器检测所述硬盘带外监控控制器和所述目标硬盘的带外监控功能的功能配置状态是否一致;所述功能配置状态包括开启状态和关闭状态;
    若所述硬盘带外监控控制器和所述目标硬盘的带外监控功能的功能配置状态不一致,则判定获取到的所述功能配置修改指令为无效指令,并清除关于所述硬盘带外监控控制器和/或所述目标硬盘的修改配置。
  13. 根据权利要求12所述的硬盘监控方法,其特征在于,所述第一用户界面和所述第二用户界面被配置为显示当前所述硬盘带外监控控制器和当前所述目标硬盘是否支持带外监控功能,以及当前所述硬盘带外监控控制器和当前所述目标硬盘是否已开启带外监控功能。
  14. 根据权利要求4所述的硬盘监控方法,其特征在于,还包括:
    通过所述系统启动控制器在操作系统启动时安装驱动程序,若所述操作系统获取到用户通过终端发送的关于所述硬盘带外监控控制器和/或所述目标硬盘的功能配置修改指令,则基于获取到的所述功能配置修改指令对所述硬盘带外监控控制器和/或所述目标硬盘进行修改配置;
    在检测到所述终端关闭后,通过所述驱动程序检测所述硬盘带外监控控制器和所述目标硬盘的带外监控功能的功能配置状态是否一致;所述功能配置状态包括开启状态和关闭状态;
    若所述硬盘带外监控控制器和/或所述目标硬盘的带外监控功能的功能配置状态不一致,则判定获取到的所述功能配置修改指令为无效指令,并清除关于所述硬盘带外监控控制器和/或所述目标硬盘的修改配置。
  15. 根据权利要求1至14任一项所述的硬盘监控方法,其特征在于,所述硬盘带外监控控制器为基板管理控制器;
    相应的,所述基于所述硬盘日志数据执行对所述目标硬盘的监控任务,包括:
    在目标界面显示所述硬盘日志数据;
    基于所述硬盘日志数据的类型确定对应的预设阈值条件,并判断所述硬盘日志数据是否满足所述预设阈值条件,若不满足则发出预警提示。
  16. 根据权利要求1至14任一项所述的硬盘监控方法,其特征在于,所述硬盘带外监控控制器包括基板管理控制器和复杂可编程逻辑器件;
    相应的,所述基于所述硬盘日志数据执行对所述目标硬盘的监控任务,包括:
    在获取到所述目标硬盘通过所述硬盘状态引脚输出的硬盘日志数据后,通过所述复杂可编程逻辑器件并利用第一目标总线向所述基板管理控制器发出中断信号;
    通过所述基板管理控制器响应所述中断信号,并通过第二目标总线向所述复杂可编程逻辑器件发送数据读取请求,以便所述复杂可编程逻辑器件将所述硬盘日志数据发送至所述基板管理控制器;
    通过所述基板管理控制器在目标界面显示所述硬盘日志数据,并在所述硬盘日志数据不满足预设阈值条件时发出预警提示;所述预设阈值条件为与所述硬盘日志数据的类型对应的阈值条件。
  17. 一种服务器,其特征在于,包括硬盘带外监控控制器和系统启动控制器;
    所述硬盘带外监控控制器,被配置为从硬盘中确定目标硬盘,以及向所述目标硬盘发送引脚配置信息;所述目标硬盘为所述系统启动控制器在初始化阶段检测到的具有带外监控功能的硬盘,所述引脚配置信息包括被配置为指示所述目标硬盘中的输出目标信号的硬盘状态引脚的标识,以及被配置为配置所述目标硬盘的基于硬盘日志数据和所述硬盘状态引脚对应的硬盘状态信号的信号调制过程的配置参数;
    所述目标硬盘,被配置为根据所述引脚配置信息进行相应配置后向所述硬盘带外监控控制器输出所述目标信号,以便所述硬盘带外监控控制器解调所述目标信号得到所述硬盘日志数据,并基于所述硬盘日志数据执行对所述目标硬盘的监控任务。
  18. 一种硬盘监控装置,其特征在于,应用于硬盘带外监控控制器,包括:
    硬盘确定模块,被配置为确定目标硬盘;所述目标硬盘为系统启动控制器在初始化阶段检测到的具有带外监控功能的与所述硬盘带外监控控制器连接的硬盘;
    配置模块,被配置为向所述目标硬盘发送引脚配置信息,并获取所述目标硬盘根据所述引脚配置信息进行相应配置后输出的目标信号;所述引脚配置信息包括被配置为指示所述目标硬盘中的输出所述目标信号的硬盘状态引脚的标识,以及被配置为配置所述目标硬盘的基于硬盘日志数据和所述硬盘状态引脚对应的硬盘状态信号的信号调制过程的配置参数;
    监控模块,被配置为解调所述目标信号得到所述硬盘日志数据,并基于所述硬盘日志数据执行对所述目标硬盘的监控任务。
  19. 一种电子设备,其特征在于,包括:
    存储器,被配置为保存计算机程序;
    处理器,被配置为执行所述计算机程序,以实现如权利要求1至16任一项所述的硬盘监控方法的步骤。
  20. 一种计算机非易失性可读存储介质,其特征在于,被配置为存储计算机程序;其中,所述计算机程序被处理器执行时实现如权利要求1至16任一项所述的硬盘监控方法的步骤。
PCT/CN2024/139297 2024-03-29 2024-12-13 一种服务器及其硬盘监控方法、装置、设备和介质 Pending WO2025200599A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202410382028.XA CN117992311B (zh) 2024-03-29 2024-03-29 一种服务器及其硬盘监控方法、装置、设备和介质
CN202410382028.X 2024-03-29

Publications (1)

Publication Number Publication Date
WO2025200599A1 true WO2025200599A1 (zh) 2025-10-02

Family

ID=90894447

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/139297 Pending WO2025200599A1 (zh) 2024-03-29 2024-12-13 一种服务器及其硬盘监控方法、装置、设备和介质

Country Status (2)

Country Link
CN (1) CN117992311B (zh)
WO (1) WO2025200599A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117992311B (zh) * 2024-03-29 2024-06-14 苏州元脑智能科技有限公司 一种服务器及其硬盘监控方法、装置、设备和介质
CN118503053B (zh) * 2024-07-17 2024-09-27 苏州元脑智能科技有限公司 一种硬件信息传输方法、产品、设备及介质
CN118689516B (zh) * 2024-08-27 2024-11-26 苏州元脑智能科技有限公司 一种基于系统启动的日志输出方法、产品、装置以及介质
CN119271583A (zh) * 2024-09-30 2025-01-07 苏州元脑智能科技有限公司 一种串口控制方法、装置及电子设备和存储介质
CN119336682B (zh) * 2024-12-19 2025-06-20 苏州元脑智能科技有限公司 执行热移除操作的方法、热插拔系统、设备、介质及产品
CN120723849B (zh) * 2025-09-01 2025-11-21 浪潮电子信息产业股份有限公司 硬盘盘序识别方法、电子设备及服务器
CN120803549B (zh) * 2025-09-12 2025-12-12 安擎计算机信息股份有限公司 一种在bios阶段查询硬盘vpd信息的方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176883A (zh) * 2011-12-20 2013-06-26 鸿富锦精密工业(深圳)有限公司 固态硬盘状态监控系统
CN112527594A (zh) * 2020-12-04 2021-03-19 浪潮电子信息产业股份有限公司 一种硬盘巡检方法、装置及系统
CN117472690A (zh) * 2023-11-10 2024-01-30 山东云海国创云计算装备产业创新中心有限公司 一种固态硬盘的性能监控方法、装置、设备及介质
CN117632637A (zh) * 2023-11-06 2024-03-01 中国长城科技集团股份有限公司 硬盘管理方法、装置、计算机可读存储介质及电子设备
CN117992311A (zh) * 2024-03-29 2024-05-07 苏州元脑智能科技有限公司 一种服务器及其硬盘监控方法、装置、设备和介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948157B (zh) * 2021-01-29 2022-12-23 苏州浪潮智能科技有限公司 服务器故障定位方法、装置、系统及计算机可读存储介质
CN116932311A (zh) * 2022-03-29 2023-10-24 富联精密电子(天津)有限公司 固态硬盘状态监控方法、系统、服务器及存储介质
CN117076227A (zh) * 2023-08-31 2023-11-17 苏州浪潮智能科技有限公司 硬盘背板监控功能的模拟测试系统、方法、装置及介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176883A (zh) * 2011-12-20 2013-06-26 鸿富锦精密工业(深圳)有限公司 固态硬盘状态监控系统
CN112527594A (zh) * 2020-12-04 2021-03-19 浪潮电子信息产业股份有限公司 一种硬盘巡检方法、装置及系统
CN117632637A (zh) * 2023-11-06 2024-03-01 中国长城科技集团股份有限公司 硬盘管理方法、装置、计算机可读存储介质及电子设备
CN117472690A (zh) * 2023-11-10 2024-01-30 山东云海国创云计算装备产业创新中心有限公司 一种固态硬盘的性能监控方法、装置、设备及介质
CN117992311A (zh) * 2024-03-29 2024-05-07 苏州元脑智能科技有限公司 一种服务器及其硬盘监控方法、装置、设备和介质

Also Published As

Publication number Publication date
CN117992311A (zh) 2024-05-07
CN117992311B (zh) 2024-06-14

Similar Documents

Publication Publication Date Title
WO2025200599A1 (zh) 一种服务器及其硬盘监控方法、装置、设备和介质
CN105938450B (zh) 自动除错信息收集的方法及系统
US9471126B2 (en) Power management for PCIE switches and devices in a multi-root input-output virtualization blade chassis
US5852743A (en) Method and apparatus for connecting a plug-and-play peripheral device to a computer
US20050276092A1 (en) Virtual mass storage device for server management information
US20150074323A1 (en) Data bus host and controller switch
CN112463689B (zh) 一种ocp卡热插拔装置、方法及计算机可读存储介质
CN108304299A (zh) 服务器上电状态监测系统及方法、计算机存储器及设备
CN118708519B (zh) 服务器拓展模组、服务器、配置方法、设备及介质
CN114600088A (zh) 使用基板管理控制器的服务器状态监测系统和方法
CN117971610B (zh) 一种硬盘监控方法、装置、系统、设备及存储介质
CN109032901A (zh) 一种远程带外ssd的监控方法、装置及受控终端
CN117251333A (zh) 一种硬盘信息获取方法、装置、设备及存储介质
WO2025227994A1 (zh) 一种热拔插设备的设备信息更新方法、系统、设备及介质
WO2026037009A1 (zh) 带宽分配方法、服务器、设备、介质及程序产品
CN114611116A (zh) 设备启动方法、装置、电子设备及计算机可读存储介质
CN112596983A (zh) 一种服务器内连接器的监测方法
CN116467124A (zh) 一种rmt的选项配置方法、装置、设备和存储介质
CN117971613B (zh) 硬盘监控系统、方法、设备、存储介质及基板管理控制器
JP5689783B2 (ja) コンピュータ、コンピュータシステム、および障害情報管理方法
CN117971607B (zh) 一种硬盘监控方法、装置、设备及介质
Brey et al. BladeCenter chassis management
CN115934616A (zh) 串口信息保存方法、装置、服务器、电子设备和存储介质
CN117056154A (zh) 一种智能网卡网口功能的检测方法、系统、装置及介质
US20240070092A1 (en) Input/output expansion emulation with a programmable device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24931854

Country of ref document: EP

Kind code of ref document: A1