Fault information processing method, equipment and medium

By detecting abnormalities in the server operating system and triggering the system crash dump mechanism, fault information is stored centrally, which solves the problem of incomplete fault information in the existing technology and achieves more comprehensive fault information collection and processing.

CN118860720APending Publication Date: 2024-10-29EVEX TECHNOLOGY CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411078929.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing server fault information collection is not comprehensive and complete, causing troubleshooting and processing to be affected.

Method used

By detecting whether there is an abnormality in the server operating system, triggering the system crash dump mechanism, the operating system operating information, hardware information and firmware information are centrally stored to ensure the comprehensiveness and integrity of the fault information.

Benefits of technology

This avoids the omission and deletion of fault information, improves the comprehensiveness and completeness of fault information collection, and simplifies the subsequent troubleshooting and processing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860720A_ABST
    Figure CN118860720A_ABST
Patent Text Reader

Abstract

The invention provides a fault information processing method and device and a medium, and relates to the field of servers. The method comprises the following steps: detecting whether an operating system of a server is abnormal or not, wherein the abnormity comprises system abnormity and hardware errors; and responding to the exception, triggering a system crash dump mechanism of the operating system to dump operation information of the operating system into a system fault log, collecting hardware information and firmware information related to the operating system, and performing centralized storage on the hardware information, the firmware information and the system fault log. According to the method provided by the invention, the comprehensiveness and integrity of server fault information collection are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of servers, and in particular to a method, device and medium for processing fault information. Background Art

[0002] The server is an important part of the network, and how to handle server fault information is becoming more and more important.

[0003] In the prior art, when a server's operating system fails and triggers a kernel panic, the system crash dump mechanism kdump is usually automatically triggered to transfer the operating system's running information to a log and collect operating system fault information so that operation and maintenance personnel can troubleshoot and handle the fault based on the operating system information. However, the fault information collected in this way is not comprehensive and complete, and may be missed or missing, affecting subsequent troubleshooting and handling.

[0004] Therefore, a fault information processing solution is needed that can improve the comprehensiveness and integrity of fault information collection. Summary of the invention

[0005] The present application provides a method, device and medium for processing fault information, so as to solve the technical problem that the fault information collection of existing servers is not comprehensive and complete.

[0006] In a first aspect, the present application provides a method for processing fault information, comprising:

[0007] Detecting whether the operating system of the server has any abnormality, wherein the abnormality includes system abnormality and hardware error;

[0008] In response to an exception, a system crash dump mechanism of the operating system is triggered to transfer the operating information of the operating system to a system fault log, and hardware information and firmware information related to the operating system are collected, and the hardware information, the firmware information and the system fault log are centrally stored.

[0009] In a possible implementation, the centrally storing the hardware information, the firmware information, and the system fault log includes:

[0010] Storing the hardware information and the firmware information in a hardware failure log;

[0011] The system fault log and the hardware fault log are stored in the BMC log management module.

[0012] In a possible implementation manner, storing the system fault log and the hardware fault log in a BMC log management module includes:

[0013] Using shared memory, transferring the system fault log in the operating system to the BMC log management module;

[0014] The system fault log and the hardware fault log are stored in corresponding positions of the server in the BMC log management module, and the same fault identification is generated.

[0015] In a possible implementation, the detecting whether an operating system of the server is abnormal includes:

[0016] Using a program monitoring mechanism to detect whether the operating system times out without sending a system message;

[0017] If the system message is not sent within the time limit, it is determined that a system abnormality occurs in the operating system.

[0018] In a possible implementation, the detecting whether an operating system of the server is abnormal includes:

[0019] receiving an MCA machine check signal sent by a central processor;

[0020] If the MCA machine check signal is a machine check exception error signal MCEERR, it is determined that a hardware error occurs in the operating system;

[0021] The machine check exception error signal MCEERR is sent by the central processing unit through the MCA signal line when the central processing unit detects that a failure or error occurs in the hardware and / or firmware related to the operating system.

[0022] In a possible implementation, the triggering of the system crash dump mechanism of the operating system includes:

[0023] A system crash dump shortcut key of the operating system is simulated, and the system crash dump shortcut key is transmitted to the operating system through a virtual universal serial bus, wherein the system crash dump shortcut key is used to trigger a system crash dump mechanism of the operating system.

[0024] In a possible implementation, the triggering of the system crash dump mechanism of the operating system includes:

[0025] A non-maskable interrupt signal of the operating system is triggered, where the non-maskable interrupt signal is used to trigger a system crash dump mechanism of the operating system.

[0026] In a second aspect, the present application provides a baseboard management control device, including:

[0027] A detection module, used to detect whether an abnormality occurs in the operating system of the server, wherein the abnormality includes a system abnormality and a hardware error;

[0028] A processing module is used to respond to an exception, trigger the system crash dump mechanism of the operating system to transfer the operating information of the operating system to the system fault log, collect hardware information and firmware information related to the operating system, and centrally store the hardware information, the firmware information and the system fault log.

[0029] In a third aspect, the present application provides another baseboard management control device, comprising: a processor, and a memory communicatively connected to the processor;

[0030] The memory stores computer-executable instructions;

[0031] The processor executes the computer-executable instructions stored in the memory to implement the above method.

[0032] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to implement the above-mentioned method when executed by a processor.

[0033] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0034] The method, device and medium for processing fault information provided by the present application can detect whether the operating system of the server is abnormal, and the abnormality includes system abnormality and hardware error; in response to the abnormality, the system crash dump mechanism of the operating system is triggered to transfer the operating system's running information to the system fault log, and the hardware information and firmware information related to the operating system are collected, and the hardware information, firmware information and system fault log are centrally stored. The method of the present application, regardless of whether the operating system triggers a kernel error, as long as the BMC detects that the operating system is abnormal, on the one hand, the system crash dump mechanism of the operating system is triggered to transfer the operating system's running information, and on the other hand, the hardware information and firmware information related to the operating system are collected. Through such a setting, the omission and missing of the server fault information can be avoided, and the comprehensiveness and integrity of the fault information collection can be ensured. Further, the collected / transferred hardware information, firmware information and system fault log can also be centrally stored to avoid information omission and confusion caused by different storage paths, and further improve the comprehensiveness and integrity of the fault information collection. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0036] Figure 1 It is a schematic diagram of the process of collecting fault information in the prior art;

[0037] Figure 2 This is a flowchart of a method for processing fault information according to an embodiment of the present application;

[0038] Figure 3 A schematic diagram of a process of processing fault information according to an embodiment of the present application;

[0039] Figure 4 This is a structural diagram of a baseboard management control device according to an embodiment of the present application;

[0040] Figure 5 This is a structural diagram of a baseboard management control device according to another embodiment of the present application.

[0041] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0042] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0043] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0044] It should also be noted that the fault information processing method, device and medium of the present application can be used in the server field, and can also be used in any field other than the server field, such as the fault detection field, etc. The application field of the fault information processing method, device and medium of the present application is not limited.

[0045] The fault information processing method, device and medium of the present application can be applied to scenarios where the baseboard management control device BMC processes fault information of the server. For example, the BMC collects relevant system information, hardware information, etc. when the operating system crashes or a hardware error occurs. Any relevant scenario involving the use of BMC to collect server fault information can apply the fault information processing method, device and medium of the present application.

[0046] First, the terms involved in this application are explained:

[0047] Baseboard Management Controller (BMC) is a dedicated controller used to monitor and manage servers. In layman's terms, BMC is an independent system under the host server system. This independent system has its own processor and memory. Even if the host hardware or operating system crashes or is shut down, the host system can still be managed by the BMC system. It is like a backdoor on the server and is used to manage the server.

[0048] Operating System (OS) is the system software that manages and controls the hardware and software resources of computers / servers. It runs directly on the hardware of computers / servers and provides an operating environment and interface for other software. The core functions of the operating system include resource scheduling and management, ensuring the efficient operation of the computer / server system and the rational allocation of resources.

[0049] Kernel panic refers to the action taken by the operating system when it detects a fatal internal error and cannot handle the error safely.

[0050] System crash dump (kdump) is a tool and service used to dump memory operating parameters when the system crashes, deadlocks or freezes.

[0051] System downtime refers to a phenomenon in which a problem occurs in the operating system or system hardware, causing the system to be unresponsive for a long time and requiring the computer / server to be restarted.

[0052] Non-Maskable Interrupt (NMI) has the highest priority and is automatically triggered when the system encounters a serious error to ensure stable and safe operation of the system.

[0053] Machine Check Architecture (MCA) is an architecture designed for computer / server systems to detect and handle hardware errors. MCA usually consists of two parts: hardware and software. In terms of hardware, the processor, memory, bus, and other key components in the computer / server system will integrate MCA functions to monitor the operating status of the system and detect any hardware errors. In terms of software, the operating system and system management software can use the error information provided by MCA to take necessary measures, such as recording error logs, notifying administrators, or trying to automatically restore the system status.

[0054] Shared memory refers to a large-capacity memory that can be accessed by different central processing units (CPUs) in a multi-processor computer / server system. Since multiple CPUs need to access the memory quickly, the memory must be cached. After any cached data is updated, other processors may also need to access it, so the shared memory needs to be updated immediately, otherwise different processors may use different data. It is usually used for communication between multiple processes of a program. In fact, multiple programs can also transmit information through shared memory.

[0055] MCEERR (Machine Check Exception Error) is a machine check exception error, usually referring to an abnormal situation caused by a hardware error or failure. When a computer / server system detects a hardware error, MCEERR is triggered, and the system will try to record the error information and take appropriate measures, such as reporting the error, recording the error log, or trying to restore the system state.

[0056] For example, Figure 1 FIG. 1 is a schematic diagram of a process for collecting fault information in the prior art. Figure 1 As shown, when the server's operating system fails and triggers a kernel panic, the system crash dump mechanism kdump is usually automatically triggered to transfer the operating system's running information to the log and collect the operating system's fault information so that the operation and maintenance personnel can troubleshoot and handle the fault according to the operating system information.

[0057] However, the fault information collected in this way is not comprehensive and may be missed or missing, which will affect subsequent troubleshooting and processing. For example:

[0058] (1) When the operating system crashes, a kernel error is not necessarily triggered, resulting in the inability to collect fault information about the problem environment. In addition, if a kernel error is triggered when the operating system crashes, only relevant information about the operating system is collected. The fault information collection is not comprehensive, which affects subsequent fault detection and processing.

[0059] (2) When a hardware error occurs on the server, it does not necessarily trigger a kernel error. In addition, when a kernel error is not triggered, the system will automatically restart, destroying the problem environment and making it impossible to collect fault information about the related hardware.

[0060] (3) The storage of fault information is scattered. The operating system related information is stored on the system side, while the hardware and firmware information is stored on the BMC side. This can easily lead to information confusion and omissions, affecting subsequent fault detection and processing.

[0061] Based on this technical problem, the inventive concept of the present application is to provide a method for processing fault information that can improve the comprehensiveness and integrity of fault information collection.

[0062] Specifically, it can detect whether the operating system of the server is abnormal, including system abnormality and hardware error; respond to the abnormality, trigger the system crash dump mechanism of the operating system, so as to transfer the operating system's operating information to the system fault log, collect the hardware information and firmware information related to the operating system, and centrally store the hardware information, firmware information and system fault log. The method of the present application, regardless of whether the operating system triggers a kernel error, as long as the BMC detects that the operating system is abnormal, on the one hand, triggers the system crash dump mechanism of the operating system to transfer the operating system's operating information, and on the other hand, collects the hardware information and firmware information related to the operating system. Through such a setting, the omission and missing of the server fault information can be avoided, and the comprehensiveness and integrity of the fault information collection can be guaranteed. Further, the collected / transferred hardware information, firmware information and system fault log can also be centrally stored to avoid the information omission and confusion caused by different storage paths, and further improve the comprehensiveness and integrity of the fault information collection.

[0063] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0064] Embodiment 1

[0065] Figure 2 1 is a flowchart of a method for processing fault information according to an embodiment of the present application. In this embodiment, the method for processing fault information is described by taking the execution subject as the baseboard management control device BMC. Figure 2 As shown, the method for processing the fault information may include the following steps:

[0066] S201: Detect whether the operating system of the server has any abnormality, and the abnormality includes system abnormality and hardware error.

[0067] In this embodiment, the system exception may be an exception related to the operating system or a business level exception; the hardware error may be an error related to the hardware and firmware of the server.

[0068] In a possible implementation, the detecting whether the operating system of the server is abnormal in the above step S201 may include:

[0069] S11: Use the program monitoring mechanism to detect whether the operating system times out and fails to send a system message.

[0070] S12: If the system message is not sent within the time limit, it is determined that a system abnormality occurs in the operating system.

[0071] In this embodiment, the program monitoring mechanism can be a so-called "watchdog" mechanism, which is a program monitoring timer. The watchdog is like a guardian that monitors the running status of the server. It works in a similar way to a timer and will count periodically. If the device is running normally, it will "feed the dog" regularly to keep the watchdog silent; but if the device fails or pauses, and the "dog" is not "fed" in time, the watchdog will generate an alarm or even perform a restart operation to restart the device and resume normal operation.

[0072] Exemplarily, the server's operating system can periodically send system messages to the BMC. If the BMC detects through a program monitoring mechanism that it has not received a system message sent by the operating system for a certain period of time, it can be considered that the operating system has timed out and has not sent a system message. In this case, it can be determined that a system abnormality has occurred in the operating system.

[0073] In this embodiment, by using the watchdog program monitoring mechanism, it is possible to accurately detect whether the operating system has timed out and has not sent a system message, and further accurately determine whether the operating system has a system abnormality.

[0074] In another possible implementation, the detecting whether the operating system of the server is abnormal in the above step S201 may further include:

[0075] S21: Receive the MCA machine check signal sent by the central processing unit.

[0076] S22: If the MCA machine check signal is a machine check exception error signal MCEERR, it is determined that a hardware error occurs in the operating system.

[0077] The machine check exception error signal MCEERR is sent through the MCA signal line when the central processing unit detects a failure or error in the hardware and / or firmware related to the operating system.

[0078] In this embodiment, the central processing unit CPU monitors the status of the hardware and firmware in the server. When the CPU detects that the hardware and / or firmware of the server is faulty or erroneous, it triggers the MCA machine check architecture and sends a machine check exception error signal MCEERR to the BMC through the MCA signal line. After receiving the MCEERR signal, the BMC starts to collect the hardware information and firmware information of the server.

[0079] In this embodiment, the CPU may send various MCA machine check signals, such as MCEERR, IERR, CMCI, etc. to the BMC through the MCA signal line. The BMC will confirm that a hardware error occurs in the operating system only when it detects the machine check exception error signal MCEERR.

[0080] In this embodiment, hardware refers to the actual physical components in the server, including hardware devices such as CPU, memory, hard disk, and motherboard.

[0081] In this embodiment, firmware refers to the program written in EPROM (erasable programmable read-only memory) or EEPROM (electrically erasable programmable read-only memory). Firmware refers to the device "driver" stored inside the device. Through firmware, the operating system can implement the operation of a specific machine according to the standard device driver.

[0082] In this embodiment, by using the MCA machine check architecture and the machine check exception error signal MCEERR, it is possible to simply and accurately determine whether a hardware error occurs in the operating system.

[0083] S202: In response to the exception, trigger the system crash dump mechanism of the operating system to dump the operating information of the operating system into the system fault log.

[0084] In this embodiment, since the detected system abnormality / hardware error does not necessarily trigger a kernel panic, as long as an operating system abnormality is detected, regardless of whether the abnormality will trigger a kernel panic, the BMC will trigger the operating system's system crash dump mechanism kdump to dump system operation information to improve the comprehensiveness and completeness of fault information collection.

[0085] In this embodiment, the storage path of the system fault log is on the system side.

[0086] In a possible implementation, triggering the system crash dump mechanism of the operating system in the above step S202 may include: simulating the system crash dump shortcut key of the operating system, and transmitting the system crash dump shortcut key to the operating system via a virtual universal serial bus, wherein the system crash dump shortcut key is used to trigger the system crash dump mechanism of the operating system.

[0087] In this embodiment, the system crash dump shortcut key of the operating system can be simulated by the virtual keyboard of the server. The specific implementation of transmitting the system crash dump shortcut key to the operating system through the virtual universal serial bus (virtual USB) can refer to the solution in the prior art, which will not be repeated here.

[0088] In this implementation, the system crash dump mechanism of the operating system can be simply and accurately triggered by simulating the system crash dump shortcut key of the operating system and the virtual universal serial bus USB.

[0089] In another possible implementation, triggering the system crash dump mechanism of the operating system in the above step S202 may further include: triggering a non-maskable interrupt signal of the operating system, where the non-maskable interrupt signal is used to trigger the system crash dump mechanism of the operating system.

[0090] In this implementation, the operating system may be configured to automatically trigger the system crash dump mechanism of the operating system as long as the non-maskable interrupt signal NMI is triggered.

[0091] In this implementation, by triggering the non-maskable interrupt signal of the operating system, the system crash dump mechanism of the operating system can be triggered quickly and accurately.

[0092] S203: Collect the hardware information and firmware information of the server, and centrally store the hardware information, firmware information and system fault log.

[0093] In this embodiment, since the system abnormality may also be caused by hardware or firmware problems, as long as the operating system abnormality is detected, the BMC will collect the hardware information and firmware information of the server to improve the comprehensiveness and completeness of fault information collection.

[0094] In this embodiment, the specific process of the BMC collecting the hardware information and firmware information of the server can be referred to the prior art and will not be described in detail here.

[0095] In a possible implementation, the centralized storage of hardware information, firmware information, and system fault logs in step S203 may include:

[0096] S31: Storing the hardware information and the firmware information in the hardware failure log.

[0097] S32: storing the system fault log and the hardware fault log in the BMC log management module.

[0098] In this implementation, the storage path of the hardware fault log is on the BMC side.

[0099] In this embodiment, the storage path of the system fault log is on the system side, and the storage path of the hardware fault log is on the BMC side. Therefore, in order to avoid information omission and confusion caused by different storage paths, the system fault log and the hardware fault log can be centrally stored in the BMC log management module.

[0100] In a possible implementation, the above step S203 stores the system fault log and the hardware fault log in the BMC log management module, which may include:

[0101] S41: Using the shared memory, the system fault log in the operating system is transferred to the BMC log management module.

[0102] S42: storing the system fault log and the hardware fault log in corresponding locations of the server in the BMC log management module, and generating the same fault identifier.

[0103] In this embodiment, the BMC may monitor the status of multiple servers, so the information of different servers can be stored in categories. For a certain server, the system fault log and hardware fault log corresponding to the same system exception / hardware error can be stored together and generate the same fault identifier, so that subsequent operation and maintenance personnel can find the fault information of this exception to troubleshoot and handle the fault.

[0104] In this embodiment, since the storage path of the system fault log is on the system side, the system fault log on the system side can be accurately transferred to the BMC log management module using shared memory. In addition, all fault information (system fault log and hardware fault log) of a certain abnormality can be accurately found according to the fault identification in the BMC log management module, so that subsequent operation and maintenance personnel can find the fault information of this abnormality to troubleshoot and handle the fault.

[0105] For example, Figure 3 FIG. 1 is a schematic diagram of a process of processing fault information according to an embodiment of the present application. Figure 3As shown, after the server's operating system is started, the BMC monitors the server's status in real time. On the one hand, it uses the program monitoring mechanism to detect whether the operating system has system anomalies, and on the other hand, it uses the MCEERR signal to detect whether the operating system has hardware errors. As long as the BMC detects that the operating system has an abnormality (system anomaly / hardware error), it will use the system crash dump shortcut key or non-maskable interrupt signal to trigger the operating system's system crash dump mechanism, and transfer the operating system's running information to the system fault log on the system side. On the other hand, it collects the server's hardware information and firmware information, and stores the hardware information and firmware information in the hardware fault log on the BMC side. Finally, the system fault log is transferred to the BMC log management module using shared memory, and the system fault log and hardware fault log are centrally stored using the BMC log management module.

[0106] In this embodiment, regardless of whether the operating system triggers a kernel error, as long as the BMC detects that the operating system is abnormal, on the one hand, the system crash dump mechanism of the operating system is triggered to transfer the operating system running information, and on the other hand, the hardware information and firmware information related to the operating system are collected. Through such a setting, the omission and loss of server fault information can be avoided, and the comprehensiveness and integrity of fault information collection can be guaranteed. Furthermore, the collected / transferred hardware information, firmware information and system fault logs can also be centrally stored to avoid information omission and confusion caused by different storage paths, and further improve the comprehensiveness and integrity of fault information collection.

[0107] The method for processing fault information of the present application is described below with reference to a specific embodiment.

[0108] Embodiment 2

[0109] In a specific embodiment, the BMC monitors the status of the server in real time and processes relevant fault information when detecting an abnormality in the server's operating system. The specific processing process is as follows:

[0110] In the first step, after the server's operating system is started, the BMC monitors the server's status in real time.

[0111] In the second step, the BMC uses the program monitoring mechanism to detect that the operating system times out and fails to send a system message at a certain moment, and then determines that a system abnormality occurs in the operating system.

[0112] In the third step, the BMC simulates the system crash dump shortcut key kdump of the operating system and transmits the system crash dump shortcut key kdump to the operating system through the virtual universal serial bus.

[0113] In the fourth step, after receiving the system crash dump shortcut key kdump, the server operating system triggers the system crash dump mechanism of the operating system to dump the operating information of the operating system into the system fault log of the system end.

[0114] In the fifth step, the BMC collects the hardware information and firmware information of the server, and stores the hardware information and firmware information in the hardware fault log on the BMC side.

[0115] In the sixth step, the BMC uses shared memory to transfer the system fault log in the operating system to the BMC log management module, generates the same fault identifier, and centrally stores the system fault log and hardware fault log.

[0116] Figure 4 FIG. 1 is a schematic diagram of the structure of a baseboard management control device according to an embodiment of the present application. Figure 4 As shown, the baseboard management and control device includes: a detection module 41, which is used to detect whether the operating system of the server is abnormal, and the abnormality includes system abnormality and hardware error; a processing module 42, which is used to respond to the abnormality and trigger the system crash dump mechanism of the operating system to transfer the operating system's running information to the system fault log, and collect the server's hardware information and firmware information, and centrally store the hardware information, firmware information and system fault log. In one embodiment, the description of the specific implementation function of the baseboard management and control device can refer to steps S201-S203 in Example 1, which will not be repeated here.

[0117] In a possible implementation, the detection module 41 may also be used to:

[0118] Use the program monitoring mechanism to detect whether the operating system has timed out and failed to send system messages;

[0119] If the system message is not sent within the time limit, it is determined that the operating system has a system abnormality.

[0120] In this embodiment, the description of the specific functions implemented by the detection module 41 can refer to step S201 in the first embodiment, which will not be repeated here.

[0121] In a possible implementation, the detection module 41 may also be used to:

[0122] receiving an MCA machine check signal sent by a central processor;

[0123] If the MCA machine check signal is the machine check exception error signal MCEERR, it is determined that a hardware error occurs in the operating system;

[0124] The machine check exception error signal MCEERR is sent through the MCA signal line when the central processing unit detects a failure or error in the hardware and / or firmware related to the operating system.

[0125] In this embodiment, the description of the specific functions implemented by the detection module 41 can refer to step S201 in the first embodiment, which will not be repeated here.

[0126] In a possible implementation, the processing module 42 may also be used to:

[0127] A system crash dump shortcut key of the operating system is simulated, and the system crash dump shortcut key is transmitted to the operating system through a virtual universal serial bus, where the system crash dump shortcut key is used to trigger a system crash dump mechanism of the operating system.

[0128] In this embodiment, the description of the specific functions implemented by the processing module 42 can refer to step S202 in the first embodiment, which will not be repeated here.

[0129] In a possible implementation, the processing module 42 may also be used to:

[0130] Trigger the non-maskable interrupt signal of the operating system. The non-maskable interrupt signal is used to trigger the system crash dump mechanism of the operating system.

[0131] In this embodiment, the description of the specific functions implemented by the processing module 42 can refer to step S202 in the first embodiment, which will not be repeated here.

[0132] In a possible implementation, the processing module 42 may also be used to:

[0133] Store hardware information and firmware information in the hardware fault log;

[0134] The system fault log and hardware fault log are stored in the BMC log management module.

[0135] In this embodiment, the description of the specific functions implemented by the processing module 42 can refer to step S203 in the first embodiment, which will not be repeated here.

[0136] In a possible implementation, the processing module 42 may also be used to:

[0137] Use shared memory to transfer system fault logs in the operating system to the BMC log management module;

[0138] The system fault log and the hardware fault log are stored in the corresponding position of the server in the BMC log management module, and the same fault identification is generated.

[0139] In this embodiment, the description of the specific functions implemented by the processing module 42 can refer to step S203 in the first embodiment, which will not be repeated here.

[0140] Figure 5 This is a structural diagram of a baseboard management control device according to another embodiment of the present application. Figure 5 As shown, the baseboard management control device includes: a processor 501, and a memory 502 that is communicatively connected to the processor 501; the memory 502 stores computer execution instructions; the processor 501 executes the computer execution instructions stored in the memory 502 to implement the steps of the fault information processing method in the above-mentioned method embodiments.

[0141] The baseboard management control device may be independent or a part of a server, and the processor 501 and the memory 502 may adopt existing hardware of the server.

[0142] In the above-mentioned baseboard management control device, the memory 502 and the processor 501 are electrically connected directly or indirectly to realize data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines, such as through a bus connection. The memory 502 stores computer-executable instructions for implementing the data access control method, including at least one software function module that can be stored in the memory 502 in the form of software or firmware. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502.

[0143] The memory 502 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 502 is used to store programs, and the processor 501 executes the programs after receiving the execution instruction. Furthermore, the software programs and modules in the above-mentioned memory 502 may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.

[0144] The processor 501 may be an integrated circuit chip having the ability to process signals. The processor 501 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The methods, steps, and logic diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or any conventional processor.

[0145] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the steps of each method embodiment of the present application.

[0146] An embodiment of the present application further provides a computer program product, including a computer program, which implements the steps of each method embodiment of the present application when executed by a processor.

[0147] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, 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 optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0148] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0149] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.

[0150] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.

[0151] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0152] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the appended claims.

[0153] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for processing fault information, characterized in that: include: Detecting whether the operating system of the server has any abnormality, wherein the abnormality includes system abnormality and hardware error; In response to an exception, a system crash dump mechanism of the operating system is triggered to transfer the operating information of the operating system to a system fault log, and hardware information and firmware information of the server are collected, and the hardware information, the firmware information and the system fault log are centrally stored.

2. The method according to claim 1, characterized in that The centrally storing the hardware information, the firmware information and the system fault log includes: Storing the hardware information and the firmware information in a hardware failure log; The system fault log and the hardware fault log are stored in the BMC log management module.

3. The method according to claim 2, characterized in that The storing the system fault log and the hardware fault log in the BMC log management module includes: Using shared memory, transferring the system fault log in the operating system to the BMC log management module; The system fault log and the hardware fault log are stored in corresponding positions of the server in the BMC log management module, and the same fault identification is generated.

4. The method according to any one of claims 1 to 3, characterized in that The step of detecting whether an operating system of the server is abnormal includes: Using a program monitoring mechanism to detect whether the operating system times out without sending a system message; If the system message is not sent within the time limit, it is determined that a system abnormality occurs in the operating system.

5. The method according to any one of claims 1 to 3, characterized in that: The step of detecting whether an operating system of the server is abnormal includes: receiving an MCA machine check signal sent by a central processor; If the MCA machine check signal is a machine check exception error signal MCEERR, it is determined that a hardware error occurs in the operating system; The machine check exception error signal MCEERR is sent by the central processing unit through the MCA signal line when the central processing unit detects that a failure or error occurs in the hardware and / or firmware related to the operating system.

6. The method according to any one of claims 1 to 3, characterized in that The system crash dump mechanism of triggering the operating system includes: A system crash dump shortcut key of the operating system is simulated, and the system crash dump shortcut key is transmitted to the operating system through a virtual universal serial bus, wherein the system crash dump shortcut key is used to trigger a system crash dump mechanism of the operating system.

7. The method according to any one of claims 1 to 3, characterized in that The system crash dump mechanism of triggering the operating system includes: A non-maskable interrupt signal of the operating system is triggered, where the non-maskable interrupt signal is used to trigger a system crash dump mechanism of the operating system.

8. A baseboard management control device, characterized in that: include: A detection module, used to detect whether an abnormality occurs in the operating system of the server, wherein the abnormality includes a system abnormality and a hardware error; A processing module is used to respond to an exception, trigger the system crash dump mechanism of the operating system to transfer the operating information of the operating system to the system fault log, collect the hardware information and firmware information of the server, and centrally store the hardware information, the firmware information and the system fault log.

9. A baseboard management control device, characterized in that: comprising a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed.

Citation Information

Cited By

  • Equipment fault processing method, management firmware, electronic equipment and storage medium

    CN121233386A

  • Server fatal error processing method and system

    CN122309241A

  • Server fatal error handling methods and systems

    CN122309241B