Server exception handling method and device, electronic equipment and medium
By deploying the first and second operating systems in the server to handle hardware errors, performance problems and operation and maintenance difficulties caused by hardware errors are solved, and efficient error handling and remote operation and maintenance are achieved.
Patent Information
- Application Number
- CN202411132974.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Hardware errors may occur during server operation, resulting in system performance degradation, data loss, or system crash. Existing technology will affect operating system performance when handling hardware errors, and operation and maintenance personnel cannot perform remote operation and maintenance when the BMC firmware is abnormal.
Deploy a first operating system and a second operating system in the server. The first operating system is used to carry the business of the baseboard management controller. The second operating system is used to handle hardware error events by obtaining hardware error information and storing it in the baseboard management controller. The memory space of the processor is used to send system event interrupts to the basic input and output system, so that the operating system can respond and process error messages, and when errors cannot be corrected, alarm emails and remote restart commands are sent through the network interface.
It realizes the processing of hardware errors without affecting the performance of the operating system, avoids system performance degradation, data loss or system crash, and provides a remote operation and maintenance interface when the BMC main system is abnormal, improving server management efficiency.
Smart Images

Figure CN118656245A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a method, device, electronic equipment and medium for handling server exceptions. Background Art
[0002] With the development of computer technology, servers, as specific devices that provide computing power and run software applications in a network environment, provide computing or application services to other clients (such as personal computers, smart phones and other terminal devices) in the network. Generally speaking, servers have the ability to respond to service requests, provide services, and ensure services.
[0003] However, hardware errors may occur during the operation of the server system, such as Memory (internal memory or main memory) / PCIE (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) / UPI (Ultra Path Interconnect, Ultra Path Interconnect) / CXL (Compute Express Link, a high-speed interconnect technology) and other hardware errors. These errors may cause system performance degradation, data loss or system crash. Summary of the invention
[0004] In view of the above problems, a method, device, electronic device and medium for handling server exceptions are proposed to overcome the above problems or at least partially solve the above problems, including: A method for handling server exceptions, wherein a baseboard management controller in the server is deployed with a first operating system and a second operating system, wherein the first operating system is used to carry services of the baseboard management controller, and the second operating system is used to handle hardware error events, and the method comprises: The second operating system obtains error information of the hardware error event in response to the hardware error event, and stores the error information in the memory space of the baseboard management controller; The second operating system sends a system event interrupt to the basic input and output system, so that the basic input and output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain error information in the memory space for error processing.
[0005] Optionally, before the second operating system obtains error information of the hardware error event in response to the hardware error event and stores the error information in the memory space of the baseboard management controller, the method further includes: The second operating system monitors the hardware pin level and determines that a hardware error event is detected when a change in the hardware pin level is detected; wherein the change in the hardware pin level is that the basic input / output system changes the level state of the hardware pin when a hardware error event is detected.
[0006] Optionally, the second operating system monitors the hardware pin level, including: the second operating system monitors the hardware pin level through a general input and output interface in the baseboard management controller.
[0007] Optionally, the second operating system obtains error information of the hardware error event in response to the hardware error event, and stores the error information in the memory space of the baseboard management controller, including: In response to a hardware error event, the second operating system sends an information read request to the basic input / output system through the baseboard management controller to obtain error information of the hardware error event, and stores the error information in a memory space of the baseboard management controller.
[0008] Optionally, in response to a hardware error event, the second operating system sends an information read request to the basic input / output system through the baseboard management controller to obtain error information of the hardware error event, and stores the error information in a memory space of the baseboard management controller, including: In response to a hardware error event, the second operating system sends an information read request to the platform environment control interface of the basic input / output system through the platform environment control interface of the baseboard management controller to obtain error information of the hardware error event, and stores the error information in the memory space of the baseboard management controller.
[0009] Optionally, the error information is information read by the basic input and output system from an internal register of a processor of the server.
[0010] Optionally, the second operating system sends a system event interrupt to a basic input output system, so that the basic input output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt, obtains error information in the memory space and performs error processing, including: The second operating system sends a system event interrupt to the basic input / output system through the enhanced serial peripheral interface of the baseboard management controller, so that the basic input / output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt, obtains error information in the memory space and performs error processing.
[0011] Optionally, the operating system of the server maps the memory space storing the error information in the baseboard management controller to the operating system of the server through the memory mapping management and monitoring interface in the basic input and output system, so that the operating system of the server obtains the error information in the memory space.
[0012] Optionally, before the second operating system sends a system event interrupt to a basic input / output system so that the basic input / output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain error information in the memory space for error processing, the method further includes: determining the hardware error event; In the case where the hardware error is a correctable error, the second operating system is executed to send a system event interrupt to the basic input and output system, so that the basic input and output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain error information in the memory space for error processing.
[0013] Optionally, the correctable errors include any one or more of the following: memory errors, high-speed serial computer expansion bus interface errors, unified parallel interface errors, and high-speed interconnect interface errors.
[0014] Optionally, it also includes: When the hardware error is an uncorrectable error, the second operating system sends an alarm email through the network interface of the baseboard management controller.
[0015] Optionally, it also includes: The second operating system receives a remote error log acquisition command through the network interface, and in response to the remote error log acquisition command, reads the error information from the memory space and returns it.
[0016] Optionally, it also includes: The second operating system receives a remote restart command through the network interface, and controls the server to perform a restart operation in response to the remote restart command.
[0017] Optionally, the second operating system receives a remote restart command through the network interface, and controls the server to perform a restart operation in response to the remote restart command, including: The second operating system receives a remote restart command through the network interface, and in response to the remote restart command, notifies the mainboard to perform a restart operation through the integrated circuit bus interface in the baseboard management controller.
[0018] Optionally, the chip of the baseboard management controller has at least two cores, and the first operating system and the second operating system are deployed on different cores.
[0019] Optionally, the first operating system and the second operating system are heterogeneous operating systems.
[0020] A device for handling server exceptions, wherein a baseboard management controller in the server is deployed with a first operating system and a second operating system, wherein the first operating system is used to carry services of the baseboard management controller, and the second operating system is used to handle hardware error events, and the device comprises: An error information storage module, used for obtaining error information of the hardware error event in response to the hardware error event, and storing the error information in the memory space of the baseboard management controller; The error handling module is used to send a system event interrupt to a basic input / output system, so that the basic input / output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain error information in the memory space for error handling.
[0021] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method described above when executed by the processor.
[0022] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0023] A computer program product comprises a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described above.
[0024] The embodiments of the present invention have the following advantages: In an embodiment of the present invention, a first operating system and a second operating system are deployed in a baseboard management controller in a server, the first operating system is used to carry the services of the baseboard management controller, and the second operating system is used to handle hardware error events; the second operating system responds to the hardware error event by obtaining error information of the hardware error event and storing the error information in the memory space of the baseboard management controller; the second operating system sends a system event interrupt to the basic input and output system, so that the basic input and output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt, obtains the error information in the memory space for error processing, and realizes the use of an independent operating system in the baseboard management controller to handle server hardware errors, avoids problems such as system performance degradation, data loss or system crash that may be caused by errors, and can handle errors without affecting the performance of the operating system. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0026] Figure 1 It is a process architecture diagram of server exception handling provided by some embodiments of the present invention; Figure 2 is a flow chart of steps of a method for handling server exceptions provided by some embodiments of the present invention; Figure 3 is a server hardware error processing flow chart provided by some embodiments of the present invention; Figure 4 is a structural block diagram of a device based on server exception handling provided by some embodiments of the present invention; Figure 5 is a structural block diagram of an electronic device provided by some embodiments of the present invention; Figure 6 is a structural block diagram of a storage medium provided by some embodiments of the present invention; Figure 7 It is a structural block diagram of a program product provided by some embodiments of the present invention. DETAILED DESCRIPTION
[0027] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] In the related art, when the server processor detects a hardware error such as Memory / PCIE / UPI / CXL during operation, it records the error information to the internal register, and the BIOS (Basic Input Output System) triggers an SMI (System Management Interrupt) interrupt to notify the operating system. The SMM (Service Processor Memory Management) in the operating system performs error handling, logging and other operations.
[0029] If this method is used, since SMM is a high-priority task, when exceptions occur frequently, it is necessary to enter the SMM mode for processing, which will seriously affect the performance of the server operating system.
[0030] Among them, SMI is a special interrupt used to handle system management related events and functions; SMI is initiated by the firmware (usually BIOS) on the computer's motherboard, which allows the firmware to perform some specific system management tasks on top of the operating system.
[0031] SMM is a special processor operating mode used to provide a higher level of system management and control; SMM runs outside the operating system and user space and can perform some sensitive and privileged system management tasks while being completely isolated from the operating system and applications.
[0032] In the related technology, since the BMC (Baseboard Management Controller) firmware based on the Linux system can read the server processor registers through the PECI (Platform Environment Control Interface) interface, obtain error information, and provide a remote restart interface for operation and maintenance personnel to perform remote operations, if the BMC firmware also has abnormal operation, when an abnormality occurs, the operation and maintenance personnel cannot remotely operate the server.
[0033] Therefore, the present invention proposes a server hardware exception handling method based on heterogeneous dual-system BMC firmware, by running freeRTOS (an open source real-time operating system (RTOS)) and Linux (a free-to-use and freely-disseminated Unix-like operating system) operating systems on the MCU (Microcontroller Unit) core and A55 (AMD A55 chip) core on the BMC chip, respectively, wherein the Linux operating system (i.e., the first operating system) carries the main BMC business, and the FreeRTOS system (i.e., the second operating system) is used to monitor the error signal of the CPU (Central Processing Unit) hardware pin.
[0034] Among them, freeRTOS: an open source real-time operating system (RTOS) specifically for embedded systems; it provides a small and efficient kernel so that developers can run multiple tasks and achieve real-time requirements on resource-limited embedded devices. Linux: the full name is GNU / Linux, which is a free to use and freely disseminated Unix-like operating system. It is a POSIX-based multi-user, multi-tasking operating system that supports multi-threading and multi-CPU.
[0035] Once the server's basic input and output system detects a hardware error, it notifies the BMC through changes in the hardware pin level. After the error handling process on FreeRTOS detects the level change, it reads the specific error information through the PECI interface and records it in the memory.
[0036] If it is an uncorrectable error such as Fatal (serious error or failure), an email is sent to the operation and maintenance personnel through the SNMP (Simple Network Management Protocol) process, and the redfish (open standard hardware management protocol) process for reading the error log and the IPMI (Intelligent Platform Management Interface) process for remotely restarting the server are run. After receiving the email, the operation and maintenance personnel send the redfish command for remotely obtaining the error log through the network interface. The redfish process parses the redfish command, reads the corresponding data from the memory space, packages it into a redfish message and returns it to the operation and maintenance personnel through the network interface. The operation and maintenance personnel make a judgment based on the message. If it is determined that the server needs to be restarted, the operation and maintenance personnel send a remote restart command through the network interface, the IPMI process parses it, and controls the server to notify the mainboard CPLD through I2C to perform DC power-on and power-off restart operations.
[0037] If it is a correctable error such as Memory / PCIE / UPI / CXL, the error handling process of freeRTOS reports the system event interrupt to the BIOS through the dotted channel of the ESPI (Embedded Serial Peripheral Interface) interface, and the BIOS further reports the SCI (Serial Communication Interface) to the operating system; the error handling process in the operating system reads the error information log stored in the BMC memory through the MMBI (Memory-Mapped Baseboard Management Controller Interface, a baseboard management controller interface based on memory mapping) interface and performs corresponding error handling.
[0038] Among them, SCI: (System Control Interrupt) is a special interrupt used to implement system-level control and management; SCI is usually associated with the operating system and ACPI (Advanced Configuration and Power Interface) to handle system management and control events.
[0039] ESPI: (Enhanced Serial Peripheral Interface) is a serial bus interface used for connection and communication in computer systems; ESPI is usually used to connect various devices and subsystems on the motherboard to achieve data transmission and system management functions.
[0040] MMBI: Memory-Mapped BMC Interface is an interface used to communicate with the BMC (Baseboard Management Controller) in a server or computer system; MMBI allows the software in the system to interact with the BMC through memory mapping to monitor, configure, and manage server hardware.
[0041] SNMP: Simple Network Management Protocol is a standard protocol for network device management and monitoring; it allows network administrators to manage and monitor networks by collecting and monitoring the status and performance information of network devices.
[0042] Redfish: An open standard hardware management protocol that aims to provide a unified approach to managing and monitoring servers, storage, and network devices. Based on modern Web technologies such as HTTP, JSON, and OData, it provides a set of RESTful APIs that allow managers to perform various management tasks by sending HTTP requests, such as obtaining device information, configuring devices, monitoring device status, and performing remote control.
[0043] IPMI: (Intelligent Platform Management Interface) is a hardware management interface standard designed to provide a unified method for remote management and monitoring of servers, storage, and network devices.
[0044] like Figure 1 The hardware interfaces provided by the baseboard management controller (BMC) include I2C (IICBus, integrated circuit bus), network, GPIO (General Purpose Input Output), PECI, ESPI and PCIE.
[0045] The I2C interface is used to communicate with the mainboard CPLD (Complex Programmable Logic Device, a digital integrated circuit in which users construct logic functions according to their own needs) and send commands to power on, off, and restart the server DC (Data Center).
[0046] The network interface is used by operation and maintenance personnel to remotely send IPMI server restart and RedFish error log acquisition commands, and receive SNMP email alarm messages.
[0047] The GPIO interface is used to monitor the hardware error signal of the server processor; the PECI interface is used to read the internal registers of the processor to obtain error information.
[0048] The eSPI interface is used to report system event interrupts through the Vwire channel.
[0049] The PCIE interface is used to support MMBI memory mapping, mapping the memory space for storing error logs on the BMC side to the server operating system.
[0050] All server hardware error handling processes on the BMC run on freeRTOS, including the IPMI process, SNMP process, Redfish process, and error handling process. The IPMI process is used to parse the remote restart command and notify the mainboard CPLD through I2C to perform DC power-on and power-off restart operations.
[0051] The SNMP process is used to receive instructions from the error handling process and send SNMP alarm emails through the network interface.
[0052] The Redfish process is used to parse the Redfish command for remotely obtaining error logs, read the corresponding data from the memory space, and package it into a Redfish message for return.
[0053] The error handling process is used to monitor the ERR PIN level status, read error information through the PECI interface, and report system event interrupts through the espi Vwire.
[0054] like Figure 1 , BIOS provides EER PIN, PECI, espi Vwire and MMBI interfaces.
[0055] The EER PIN is used to change the level state and notify the BMC when a hardware error occurs.
[0056] The PECI interface is used to process the BMC's PECI read request, read the processor's internal registers, and obtain error information.
[0057] The espi Vwire interface is used to receive system time interrupts and convert them into system management interrupts to report to the operating system.
[0058] MMBI is used to provide the operating system with an interface for reading the BMC memory space; the error handling process in the operating system is used to respond to the system management interrupt sent by the BIOS, obtain error information through the MMBI interface, and take error handling actions.
[0059] The present invention will be further described below in conjunction with the accompanying drawings: Reference Figure 2 , showing a step flow chart of a method for handling server exceptions provided in some embodiments of the present invention, wherein a baseboard management controller in the server is deployed with a first operating system and a second operating system, wherein the first operating system is used to carry the business of the baseboard management controller, and the second operating system is used to handle hardware error events.
[0060] In some embodiments of the present invention, the chip of the baseboard management controller has at least two cores, and the first operating system and the second operating system are deployed on different cores.
[0061] In some embodiments of the present invention, the first operating system and the second operating system are heterogeneous operating systems.
[0062] As some examples, there is a baseboard management controller in the server, and the chip of the baseboard management controller has two cores. The first operating system and the second operating system can be deployed in different cores, and the first operating system and the second operating system are heterogeneous operating systems. The first operating system is used to carry the services of the baseboard management controller, and the second operating system is used to handle hardware error events.
[0063] In some examples, freeRTOS and Linux operating systems can be run respectively on the MCU core and A55 core on the BMC (baseboard management controller) chip of the server, where the Linux operating system (i.e., the first operating system) carries the main BMC services, and the FreeRTOS system (i.e., the second operating system) is used to monitor the error signals of the CPU hardware pins to handle hardware error events.
[0064] Specifically, the following steps may be included: Step 201: the second operating system obtains error information of the hardware error event in response to the hardware error event, and stores the error information in the memory space of the baseboard management controller.
[0065] As some examples, the second operating system of the baseboard management controller can detect the hardware pin level. When the hardware pin level changes, a hardware error event occurs. The second operating system can obtain error information through an interface connected to the basic input and output system (BIOS) and store the error information in the memory space of the baseboard management controller.
[0066] In some embodiments of the present invention, before the second operating system obtains error information of the hardware error event in response to the hardware error event and stores the error information in the memory space of the baseboard management controller, the method further includes: The second operating system monitors the hardware pin level and determines that a hardware error event is detected when a change in the hardware pin level is detected; wherein the change in the hardware pin level is that the basic input / output system changes the level state of the hardware pin when a hardware error event is detected.
[0067] As some examples, the basic input and output system (BIOS) of the server can detect whether a hardware error occurs. When a hardware error occurs, the second operating system of the baseboard management controller is notified by changing the level state of the hardware pin. The second operating system can monitor the hardware pin level in real time. When a change in the hardware pin level is detected, it is determined that a hardware error event has been monitored.
[0068] In some embodiments of the present invention, the second operating system monitors the hardware pin level, including: the second operating system monitors the hardware pin level through a general purpose input / output interface in the baseboard management controller.
[0069] As some examples, when a basic input and output system (BIOS) detects a hardware error, the hardware pin level state can be changed through the EER PIN interface, and the second operating system can monitor the hardware pin level in real time through the general input and output (GPIO) interface to determine the level state of the hardware pin.
[0070] In some embodiments of the present invention, the second operating system obtains error information of the hardware error event in response to the hardware error event, and stores the error information in the memory space of the baseboard management controller, including: In response to a hardware error event, the second operating system sends an information read request to the basic input / output system through the baseboard management controller to obtain error information of the hardware error event, and stores the error information in a memory space of the baseboard management controller.
[0071] As some examples, an error handling process can be established in the second operating system. When a change in the hardware pin level is detected, it is determined that a hardware error event has been monitored. The error handling process can respond to the hardware error event by sending an information read request to the basic input / output system through the baseboard management controller. After the basic input / output system responds to the information read request, the error handling process reads the error information corresponding to the hardware error event through the interface and stores the error information in the memory space of the baseboard management controller.
[0072] In some embodiments of the present invention, the second operating system sends an information read request to the basic input and output system through the baseboard management controller in response to the hardware error event to obtain error information of the hardware error event, and stores the error information in the memory space of the baseboard management controller, including: In response to a hardware error event, the second operating system sends an information read request to the platform environment control interface of the basic input / output system through the platform environment control interface of the baseboard management controller to obtain error information of the hardware error event, and stores the error information in the memory space of the baseboard management controller.
[0073] As some examples, the error handling process of the second operating system can respond to a hardware error event by sending an information read request to the platform environment control interface of the basic input and output system through the platform environment control (PEIC) interface of the baseboard management controller. After the basic input and output system responds to the information read request, the error handling process reads the error information corresponding to the hardware error event through the platform environment control interface and stores the error information in the memory space of the baseboard management controller.
[0074] In some embodiments of the present invention, the error information is information read by the basic input and output system from an internal register of a processor of the server.
[0075] As some examples, when a hardware error event occurs, the server's basic input and output system (BIOS) can detect whether a hardware error occurs. When a hardware error occurs, the second operating system of the baseboard management controller is notified by changing the level state of the hardware pin, and the processor stores the hardware error event and corresponding information in an internal register; the second operating system detects and monitors the level state of the hardware pin, determines that in response to the hardware error event, and reads the error information from the internal register of the server's processor through the platform environment control interface according to the basic input and output system.
[0076] Step 202: The second operating system sends a system event interrupt to the basic input output system, so that the basic input output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain error information in the memory space for error processing.
[0077] As some examples, the second operating system can send a system event interrupt to the basic input and output system, so that the basic input and output system sends a system control interrupt to the server's operating system. The server's operating system calls the interface based on the system control interrupt to obtain error information in the baseboard management controller memory space through the basic input and output system for error handling.
[0078] In some embodiments of the present invention, the second operating system sends a system event interrupt to a basic input output system, so that the basic input output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain error information in the memory space for error processing, including: The second operating system sends a system event interrupt to the basic input / output system through the enhanced serial peripheral interface of the baseboard management controller, so that the basic input / output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt, obtains error information in the memory space and performs error processing.
[0079] As some examples, the second operating system in the baseboard management controller can send a system control interrupt to the server's operating system through the basic input and output system according to the enhanced serial peripheral (eSPI) interface. The server's operating system calls the interface through the basic input and output system based on the system control interrupt to obtain error information in the baseboard management controller memory space for error handling.
[0080] In some embodiments of the present invention, the operating system of the server maps the memory space storing the error information in the baseboard management controller to the operating system of the server through the memory mapping management and monitoring interface in the basic input and output system, so that the operating system of the server obtains the error information in the memory space.
[0081] As some examples, an error handling process can be established in the server's operating system; the server's operating system calls the memory-mapped management and monitoring interface (MMBI) in the basic input and output system according to the error handling process, so that the memory space storing error information in the baseboard management controller can be mapped to the server's operating system through the high-speed serial computer expansion bus standard (PCIE) according to the MMBI, thereby enabling the server's operating system to obtain the error information in the baseboard management controller's memory space.
[0082] In some embodiments of the present invention, by migrating the SMM process of the processor in the server to the BMC second operating system, the second operating system performs the process of hardware error detection, information reading and processing, which can effectively reduce the interference of SMI on the operation of the server processor and improve system performance.
[0083] In some embodiments of the present invention, before the second operating system sends a system event interrupt to a basic input output system so that the basic input output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain error information in the memory space for error processing, the method further includes: Determine the hardware error event; if the hardware error is a correctable error, execute the second operating system to send a system event interrupt to the basic input and output system, so that the basic input and output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain the error information in the memory space for error processing.
[0084] As some examples, before the second operating system sends a system event interrupt to the basic input and output system, the second operating system can determine the hardware error type of the current hardware error event according to the acquired error information, such as a correctable error or an uncorrectable error.
[0085] In some examples, if the hardware error type is a correctable error, the second operating system sends a system event interrupt to the basic input and output system, so that the basic input and output system sends a system control interrupt to the server's operating system, and the server's operating system responds to the system control interrupt to obtain error information in the memory space for error processing.
[0086] In some embodiments of the present invention, the correctable errors include any one or more of the following: memory errors, high-speed serial computer expansion bus interface errors, unified parallel interface errors, and high-speed interconnect interface errors.
[0087] In some embodiments of the present invention, it also includes: When the hardware error is an uncorrectable error, the second operating system sends an alarm email through the network interface of the baseboard management controller.
[0088] As some examples, if the hardware error type is an uncorrectable error, the second operating system of the baseboard management controller can send an email to the operation and maintenance personnel through the network (SNMP) interface, and provide a redfish (open standard hardware management protocol) interface for reading error logs and an IPMI (Intelligent Platform Management Interface) interface for remotely restarting the server.
[0089] As some examples, an SNMP process can also be established in the second operating system to receive instructions from the error handling process in the second operating system; specifically, after the error handling process in the second operating system detects the level change, it can read the specific error information through the PECI interface and record it in the memory space of the baseboard management controller; the second operating system determines the hardware error type of the current hardware error event based on the acquired error information, and when the error type is uncorrectable, the error handling process sends instructions to the SNMP process to send an SNMP alarm email to the operation and maintenance personnel through the network interface.
[0090] In some embodiments of the present invention, it also includes: The second operating system receives a remote error log acquisition command through the network interface, and in response to the remote error log acquisition command, reads the error information from the memory space and returns it.
[0091] As some examples, after receiving the alarm email, the operation and maintenance personnel can send a remote error log acquisition command through the network interface. After the second operating system receives the remote error log acquisition command through the network interface (SNMP), it reads the error information from the memory space of the baseboard management controller and returns the message through the network interface.
[0092] As some examples, a Redfish process can also be established in the second operating system to parse the redfish command for remotely obtaining error logs, read the corresponding data from the memory space, and package it into a redfish message and return it; specifically, after receiving the alarm email, the operation and maintenance personnel can send a remote error log acquisition command through the network interface. After the second operating system receives the remote error log acquisition command through the network interface (SNMP), it parses the remote error log acquisition command through the Redfish process, reads the error information from the memory space of the baseboard management controller, and then packages it into a redfish message and sends it to the operation and maintenance personnel through the network interface.
[0093] In the related art, since the BMC firmware based on the Linux system may also have abnormal operation, when an abnormality occurs, the operation and maintenance personnel cannot remotely operate the server. The present invention provides the operation and maintenance personnel with a network interface for remotely reading server hardware error information and restarting the server through the second operating system, thereby reducing the problem of system performance degradation, data loss or system crash when an abnormality occurs and being unable to operate and maintain in time, and improving the management efficiency of the server.
[0094] In some embodiments of the present invention, it also includes: The second operating system receives a remote restart command through the network interface, and controls the server to perform a restart operation in response to the remote restart command.
[0095] As some examples, the operation and maintenance personnel analyze the returned message. If the server needs to be restarted, the operation and maintenance personnel can send a remote restart command through the network interface. The second operating system controls the server to restart according to the received remote restart command.
[0096] In some embodiments of the present invention, the second operating system receives a remote restart command through the network interface, and controls the server to perform a restart operation in response to the remote restart command, including: The second operating system receives a remote restart command through the network interface, and in response to the remote restart command, notifies the mainboard to perform a restart operation through the integrated circuit bus interface in the baseboard management controller.
[0097] As some examples, the second operating system can parse the remote restart command and notify the mainboard CPLD to perform a DC (data center) power-on and power-off restart operation through an integrated circuit bus (I2C) interface.
[0098] As some examples, an IPMI process can also be established in the second operating system to parse the remote restart command and notify the mainboard CPLD through I2C to perform DC power on and off restart operations; specifically, the operation and maintenance personnel analyze the returned message. If it is determined that the server needs to be restarted, the operation and maintenance personnel can send a remote restart command through the network interface. The second operating system parses the received remote restart command through the IPMI process, and controls the server to notify the mainboard CPLD through I2C to perform DC power on and off restart operations.
[0099] In some embodiments of the present invention, hardware error events are processed by the second operating system without affecting the business of the BMC main operating system (first operating system). At the same time, a backup remote interface is provided. When an abnormality occurs in the BMC main system, operation and maintenance personnel can also remotely obtain the server error information log and restart the server through the network.
[0100] In an embodiment of the present invention, a first operating system and a second operating system are deployed in a baseboard management controller in a server, the first operating system is used to carry the services of the baseboard management controller, and the second operating system is used to handle hardware error events; the second operating system responds to the hardware error event by obtaining error information of the hardware error event and storing the error information in the memory space of the baseboard management controller; the second operating system sends a system event interrupt to the basic input and output system, so that the basic input and output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt, obtains the error information in the memory space for error processing, and realizes the use of an independent operating system in the baseboard management controller to handle server hardware errors, avoids problems such as system performance degradation, data loss or system crash that may be caused by errors, and can handle errors without affecting the performance of the operating system.
[0101] The following combination Figure 3 An example explanation is given below: Step 31, when the server's basic input and output system (BIOS) detects a hardware error, it notifies the BMC through a hardware pin level change.
[0102] Step 32: The error handling process running in the second operating system of the baseboard management controller detects the level change, reads the internal register of the server processor through the PECI interface, obtains detailed error information, and writes it into the memory space.
[0103] Step 33, determine the error type. If it is an uncorrectable error, send an alarm email to the operation and maintenance mailbox through SNMP; the operation and maintenance personnel remotely read the error information through the redfish interface. If it is determined that the server needs to be restarted, send an IPMI command to restart the server, and end; if it is a correctable error, send a system event interrupt to BIOS through the espi Vwire interface, and proceed to step 14.
[0104] Step 34, after receiving the interrupt, the BIOS sends a system management interrupt to the operating system; Step 35, after receiving the interrupt, the operating system error handling service calls the MMBI interface, directly reads the error information in the BMC memory space, and takes corresponding processing actions.
[0105] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0106] Reference Figure 4 , showing a structural schematic diagram of a server exception handling device provided by some embodiments of the present invention, wherein a baseboard management controller in the server is deployed with a first operating system and a second operating system, wherein the first operating system is used to carry the business of the baseboard management controller, and the second operating system is used to handle hardware error events.
[0107] Specifically, it can include the following modules: An error information storage module 401 is used to obtain error information of the hardware error event in response to the hardware error event, and store the error information in the memory space of the baseboard management controller; The error handling module 402 is used to send a system event interrupt to the basic input and output system, so that the basic input and output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain the error information in the memory space for error handling.
[0108] In some embodiments of the present invention, the device further comprises: The hardware error event determination module is used to monitor the hardware pin level and determine that a hardware error event is detected when a change in the hardware pin level is detected; wherein the change in the hardware pin level is that the basic input / output system changes the level state of the hardware pin when a hardware error event is detected.
[0109] In some embodiments of the present invention, the hardware error event determination module includes: The pin level monitoring submodule is used to monitor the hardware pin level through the general input and output interface in the baseboard management controller.
[0110] In some embodiments of the present invention, the error information storage module 401 includes: The information read request sending submodule is used to respond to a hardware error event by sending an information read request to the basic input and output system through the baseboard management controller to obtain error information of the hardware error event and store the error information in the memory space of the baseboard management controller.
[0111] In some embodiments of the present invention, the information read request sending submodule includes: The platform environment control interface calling unit is used to respond to a hardware error event by sending an information read request to the platform environment control interface of the basic input and output system through the platform environment control interface of the baseboard management controller to obtain error information of the hardware error event and store the error information in the memory space of the baseboard management controller.
[0112] In some embodiments of the present invention, the error information is information read by the basic input and output system from an internal register of a processor of the server.
[0113] In some embodiments of the present invention, the error handling module 402 includes: The enhanced serial peripheral interface calling submodule is used to send a system event interrupt to the basic input and output system through the enhanced serial peripheral interface of the baseboard management controller, so that the basic input and output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt, obtains error information in the memory space and performs error processing.
[0114] In some embodiments of the present invention, the operating system of the server maps the memory space storing the error information in the baseboard management controller to the operating system of the server through the memory mapping management and monitoring interface in the basic input and output system, so that the operating system of the server obtains the error information in the memory space.
[0115] In some embodiments of the present invention, the device further comprises: An error event determination module, used to determine the hardware error event; An interrupt module is used to execute the second operating system to send a system event interrupt to a basic input / output system when the hardware error is a correctable error, so that the basic input / output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain error information in the memory space for error processing.
[0116] In some embodiments of the present invention, the correctable errors include any one or more of the following: memory errors, high-speed serial computer expansion bus interface errors, unified parallel interface errors, and high-speed interconnect interface errors.
[0117] In some embodiments of the present invention, it also includes: The alarm module is used to send an alarm email through the network interface of the baseboard management controller when the hardware error is an uncorrectable error.
[0118] In some embodiments of the present invention, it also includes: The command receiving module is used to receive a remote error log acquisition command through the network interface, and in response to the remote error log acquisition command, read the error information from the memory space and return it.
[0119] In some embodiments of the present invention, it also includes: The restart module is used to receive a remote restart command through the network interface, and control the server to perform a restart operation in response to the remote restart command.
[0120] In some embodiments of the present invention, the restart module includes: The integrated circuit bus interface calling submodule is used to receive a remote restart command through the network interface, and in response to the remote restart command, notify the mainboard to perform a restart operation through the integrated circuit bus interface in the baseboard management controller.
[0121] In some embodiments of the present invention, the chip of the baseboard management controller has at least two cores, and the first operating system and the second operating system are deployed on different cores.
[0122] In some embodiments of the present invention, the first operating system and the second operating system are heterogeneous operating systems.
[0123] Reference Figure 5, shows an electronic device provided by some embodiments of the present invention, including a processor 501, a memory 502, and a computer program stored in the memory 502 and capable of running on the processor 501, and the computer program implements the above method when executed by the processor.
[0124] Reference Figure 6 , shows a computer-readable storage medium 600 provided in some embodiments of the present invention, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.
[0125] Reference Figure 7 , shows a computer program product 700 provided by some embodiments of the present invention, including a computer program, and the computer program implements the above method when executed by a processor.
[0126] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0127] The above is a detailed introduction to a method, device, electronic device and medium for handling server exceptions. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for handling server exceptions, characterized in that: The baseboard management controller in the server is deployed with a first operating system and a second operating system, the first operating system is used to carry the services of the baseboard management controller, and the second operating system is used to handle hardware error events, and the method includes: The second operating system obtains error information of the hardware error event in response to the hardware error event, and stores the error information in the memory space of the baseboard management controller; The second operating system sends a system event interrupt to the basic input and output system, so that the basic input and output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain error information in the memory space for error processing.
2. The method according to claim 1, characterized in that Before the second operating system obtains error information of the hardware error event in response to the hardware error event and stores the error information in the memory space of the baseboard management controller, the method further includes: The second operating system monitors the hardware pin level and determines that a hardware error event is detected when a change in the hardware pin level is detected; wherein the change in the hardware pin level is that the basic input / output system changes the level state of the hardware pin when a hardware error event is detected.
3. The method according to claim 2, characterized in that The second operating system monitors the hardware pin level, including: the second operating system monitors the hardware pin level through a general input and output interface in the baseboard management controller.
4. The method according to claim 1, 2 or 3, characterized in that: The second operating system obtains error information of the hardware error event in response to the hardware error event, and stores the error information in the memory space of the baseboard management controller, including: In response to a hardware error event, the second operating system sends an information read request to the basic input / output system through the baseboard management controller to obtain error information of the hardware error event, and stores the error information in a memory space of the baseboard management controller.
5. The method according to claim 4, characterized in that The second operating system sends an information read request to the basic input / output system through the baseboard management controller in response to the hardware error event to obtain error information of the hardware error event, and stores the error information in the memory space of the baseboard management controller, including: In response to a hardware error event, the second operating system sends an information read request to the platform environment control interface of the basic input / output system through the platform environment control interface of the baseboard management controller to obtain error information of the hardware error event, and stores the error information in the memory space of the baseboard management controller.
6. The method according to claim 5, characterized in that The error information is information read by the basic input and output system from an internal register of a processor of the server.
7. The method according to claim 1, 2 or 3, characterized in that: The second operating system sends a system event interrupt to a basic input output system, so that the basic input output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt, obtains error information in the memory space and performs error processing, including: The second operating system sends a system event interrupt to the basic input / output system through the enhanced serial peripheral interface of the baseboard management controller, so that the basic input / output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt, obtains error information in the memory space and performs error processing.
8. The method according to claim 1, 2 or 3, characterized in that: The operating system of the server maps the memory space storing the error information in the baseboard management controller to the operating system of the server through the management and monitoring interface of the memory mapping in the basic input and output system, so that the operating system of the server obtains the error information in the memory space.
9. The method according to claim 1, 2 or 3, characterized in that: Before the second operating system sends a system event interrupt to a basic input / output system so that the basic input / output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain error information in the memory space for error processing, the method further includes: determining the hardware error event; In the case where the hardware error is a correctable error, the second operating system is executed to send a system event interrupt to the basic input and output system, so that the basic input and output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain error information in the memory space for error processing.
10. The method according to claim 9, characterized in that The correctable errors include any one or more of the following: memory errors, high-speed serial computer expansion bus interface errors, unified parallel interface errors, and high-speed interconnect interface errors.
11. The method according to claim 9, characterized in that Also includes: When the hardware error is an uncorrectable error, the second operating system sends an alarm email through the network interface of the baseboard management controller.
12. The method according to claim 11, characterized in that Also includes: The second operating system receives a remote error log acquisition command through the network interface, and in response to the remote error log acquisition command, reads the error information from the memory space and returns it.
13. The method according to claim 11, characterized in that Also includes: The second operating system receives a remote restart command through the network interface, and controls the server to perform a restart operation in response to the remote restart command.
14. The method according to claim 13, characterized in that The second operating system receives a remote restart command through the network interface, and controls the server to perform a restart operation in response to the remote restart command, including: The second operating system receives a remote restart command through the network interface, and in response to the remote restart command, notifies the mainboard to perform a restart operation through the integrated circuit bus interface in the baseboard management controller.
15. The method according to claim 1, characterized in that The chip of the baseboard management controller has at least two cores, and the first operating system and the second operating system are deployed on different cores.
16. The method according to claim 1, characterized in that The first operating system and the second operating system are heterogeneous operating systems.
17. A device for handling server exceptions, characterized in that: The baseboard management controller in the server is deployed with a first operating system and a second operating system, the first operating system is used to carry the business of the baseboard management controller, and the second operating system is used to handle hardware error events, and the device includes: An error information storage module, used for obtaining error information of the hardware error event in response to the hardware error event, and storing the error information in the memory space of the baseboard management controller; The error handling module is used to send a system event interrupt to a basic input / output system, so that the basic input / output system sends a system control interrupt to the operating system of the server, and the operating system of the server responds to the system control interrupt to obtain error information in the memory space for error handling.
18. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method according to any one of claims 1 to 16 when executed by the processor.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 16 is implemented.
20. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Error reporting method and device and medium
CN112905376A
Method and device for adjusting correctable error report threshold and related equipment
CN117608893A
Cited By
Remote restarting method and device, storage medium and computer program product
CN119376803A
Memory monitoring method, device, system and equipment and medium
CN119668923A
System manager, error data processing method, device and program product
CN120429158A
Server state monitoring method and electronic equipment
CN121050971A
Memory error processing method, system and device, storage medium and program product
CN121070675A
