Error information auxiliary extraction method, device, equipment and readable storage medium

By judging and obtaining basic data related to hardware errors in the server system, quickly identifying and prompting the error type, the problem that the MCA mechanism cannot record error information in a timely manner is solved, and the repair efficiency and equipment utilization of faulty equipment are improved.

CN111737039BActive Publication Date: 2024-11-12GUANGDONG INSPUR BIG DATA RES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010571704.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-19
Publication Date
2024-11-12
Estimated Expiration
2040-06-19

AI Technical Summary

Technical Problem

During the operation of the server or storage device, the MCA mechanism cannot record hardware error information in a timely manner, making it difficult for staff to quickly determine the error type and repair the faulty device, reducing the utilization rate of the device.

Method used

Provide an error information auxiliary extraction method, which determines whether the target device has a self-test error through preset judgment conditions, obtains basic data related to hardware errors, determines the error type, and prompts the error type through the prompter to ensure that technicians can quickly identify it. And repair the faulty equipment.

Benefits of technology

Improve work efficiency, quickly repair faulty equipment, improve equipment utilization, and ensure that when the self-test error is incorrect, the error type can be determined and repaired through basic data even if the system is down.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111737039B_ABST
    Figure CN111737039B_ABST
Patent Text Reader

Abstract

The present invention discloses an error information auxiliary extraction method. Considering that although the error log may not be recorded due to downtime when some self-check errors occur, some basic data related to the error generated in the device at this time can still reflect the error type, the present application can determine the error type by obtaining basic data from a preset position of the target device when determining that the target device generates a self-check error during operation, and prompt the error type through a prompter. Since the present application is applied to a processor, the error type can be quickly determined and prompted, which is convenient for technicians to quickly know the error type and start maintenance work, improves work efficiency, is conducive to quickly repairing faulty equipment, and improves equipment utilization. The present invention also discloses an error information auxiliary extraction device, equipment, and computer-readable storage medium, which have the same beneficial effects as the above error information auxiliary extraction method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to an error information auxiliary extraction method. The present invention also relates to an error information auxiliary extraction device, equipment and a computer-readable storage medium. Background Art

[0002] During the operation of the server or storage device, the MCA (Machine-Check Architecture) mechanism can perform self-checks on the hardware in the system and record the error information as a log when an error is detected, so that the staff can determine the hardware error and repair it through the log. However, some hardware errors may directly cause the system to shut down. In this case, the MCA mechanism cannot record the error information as a log in time, and the staff cannot quickly determine the type of hardware error and repair it through the log, resulting in low work efficiency. In addition, the faulty equipment cannot be quickly repaired and work normally, reducing the utilization rate of the equipment.

[0003] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention

[0004] The purpose of the present invention is to provide an error information auxiliary extraction method, which improves work efficiency, is conducive to the rapid repair of faulty equipment, and improves the utilization rate of equipment; another purpose of the present invention is to provide an error information auxiliary extraction device, equipment and computer-readable storage medium, which improves work efficiency, is conducive to the rapid repair of faulty equipment, and improves the utilization rate of equipment.

[0005] In order to solve the above technical problems, the present invention provides an error information auxiliary extraction method, which is applied to a server system and a processor, and comprises:

[0006] Determine whether the target device generates a self-test error during operation according to preset judgment conditions;

[0007] If so, obtaining basic data related to the hardware error from a preset location of the target device;

[0008] Determine the error type of the target device according to the basic data;

[0009] The control prompter prompts the error type.

[0010] Preferably, judging whether a self-test error occurs in the target device during operation according to a preset judgment condition is specifically:

[0011] Determine whether the target device generates an error signal during operation.

[0012] Preferably, the acquiring basic data related to the hardware error from the preset position of the target device specifically includes:

[0013] Gets the register value of a specified register in the target device.

[0014] Preferably, the error type of the target device being determined to have an error according to the basic data is specifically:

[0015] According to a preset correspondence between a register value and an error type, the error type corresponding to the register value is determined.

[0016] Preferably, after determining the error type of the target device according to the basic data, the error information auxiliary extraction method further includes:

[0017] Determine whether the error type is a preset serious error;

[0018] If so, the alarm is controlled to sound an alarm.

[0019] Preferably, the processor is a baseboard management controller BMC in the target device.

[0020] In order to solve the above technical problems, the present invention further provides an error information auxiliary extraction device, which is applied to a server system and a processor, and includes:

[0021] A judgment module, used to judge whether the target device generates a self-test error during operation according to a preset judgment condition, and if so, trigger the acquisition module;

[0022] The acquisition module is used to acquire basic data related to the hardware error from a preset position of the target device;

[0023] A determination module, configured to determine an error type of the target device according to the basic data;

[0024] The control module is used to control the prompter to prompt the error type.

[0025] Preferably, the processor is a BMC in the target device.

[0026] In order to solve the above technical problems, the present invention further provides an error information auxiliary extraction device, which is applied to a server system and comprises:

[0027] Memory for storing computer programs;

[0028] A processor is used to implement the steps of the error information auxiliary extraction method as described in any one of the above items when executing the computer program.

[0029] To solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the error information auxiliary extraction method as described in any one of the above items are implemented.

[0030] The present invention provides an auxiliary extraction method for error information. Considering that although the error log cannot be recorded due to downtime when certain self-check errors occur, some basic data related to the error generated in the device at this time can still reflect the error type, the present application can determine the error type by obtaining basic data from a preset position of the target device when determining that a self-check error occurs in the target device during operation, and prompt the error type through a prompter. Since the present application is applied to the processor, the error type can be quickly determined and prompted, which is convenient for technicians to quickly know the error type and start maintenance work, thereby improving work efficiency, being conducive to quickly repairing faulty equipment, and improving equipment utilization.

[0031] The present invention also provides an error information auxiliary extraction device, equipment and computer-readable storage medium, which have the same beneficial effects as the above error information auxiliary extraction method. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0033] Figure 1 A schematic diagram of a flow chart of an error information auxiliary extraction method provided by the present invention;

[0034] Figure 2 A schematic diagram of the structure of an error information auxiliary extraction device provided by the present invention;

[0035] Figure 3 A schematic diagram of the structure of an error information auxiliary extraction device provided by the present invention. DETAILED DESCRIPTION

[0036] The core of the present invention is to provide an error information auxiliary extraction method, which improves work efficiency, is conducive to the rapid repair of faulty equipment, and improves the utilization rate of equipment; another core of the present invention is to provide an error information auxiliary extraction device, equipment and computer-readable storage medium, which improves work efficiency, is conducive to the rapid repair of faulty equipment, and improves the utilization rate of equipment.

[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of 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.

[0038] Please refer to Figure 1 , Figure 1 A schematic diagram of a flow chart of an error information auxiliary extraction method provided by the present invention, the error information auxiliary extraction method comprising:

[0039] Step S1: judging whether a self-test error occurs during operation of the target device according to a preset judgment condition;

[0040] Specifically, considering the technical problems in the above-mentioned background technology, in order to achieve the purpose of locating the error, in this step, the occurrence of the self-test error can be first determined. Since the device will have some special characteristics when a self-test error occurs, these characteristics can be judged according to preset judgment conditions to determine whether the target device has a self-test error during operation.

[0041] Among them, the preset judgment conditions may be of various types, which may be related to special features that may appear when a self-test error occurs in the target device, and the embodiment of the present invention is not limited here.

[0042] Specifically, the judgment result in this step can trigger the execution of subsequent steps, so as to finally complete the location of the error.

[0043] Step S2: If yes, then obtain basic data related to the hardware error from a preset location of the target device;

[0044] Specifically, after determining in the previous step that the target device has generated a self-test error during operation, it is necessary to determine the error type, that is, it is necessary to determine which hardware caused the error. Considering that after a self-test error occurs, even if the error is serious enough to cause the target device to crash, there may not be enough time to log the self-test error in this case, but the target device will still generate basic data related to the hardware error. The specific error type can still be determined through this basic data. Therefore, in this step, the basic data related to the hardware error can be obtained from the preset position of the target device, and used as the data basis for subsequent steps to locate the error.

[0045] Among them, the preset position can be of various types and can be set independently, and the embodiment of the present invention does not limit this.

[0046] Step S3: determining the error type of the target device according to the basic data;

[0047] Specifically, after obtaining the basic data related to the hardware error, the error type of the target device can be determined based on the basic data, that is, which specific part of the hardware has failed. At this point, the specific fault type is determined. When faced with hardware errors that may directly cause downtime, the error type can still be quickly determined through the method in the embodiment of the present invention. Of course, when faced with self-test errors that will not directly cause downtime, the error type can also be determined through the method in the embodiment of the present invention.

[0048] Specifically, there may be multiple specific processes for determining the error type according to the basic data, which is not limited in the embodiment of the present invention.

[0049] Step S4: Control the prompter to prompt the error type.

[0050] Specifically, in order to facilitate the staff to quickly obtain the determined error type, the error type can be prompted through a prompter in the embodiment of the present invention. In this way, the staff does not need to actively obtain the error type determined in the previous step through other means, but can quickly know the error type through the prompter and perform the corresponding maintenance process, thereby improving work efficiency.

[0051] The prompter may be of various types, such as a display, etc., which is not limited in the embodiment of the present invention.

[0052] The present invention provides an auxiliary extraction method for error information. Considering that although the error log cannot be recorded due to downtime when certain self-check errors occur, some basic data related to the error generated in the device at this time can still reflect the error type, the present application can determine the error type by obtaining basic data from a preset position of the target device when determining that a self-check error occurs in the target device during operation, and prompt the error type through a prompter. Since the present application is applied to the processor, the error type can be quickly determined and prompted, which is convenient for technicians to quickly know the error type and start maintenance work, thereby improving work efficiency, being conducive to quickly repairing faulty equipment, and improving equipment utilization.

[0053] Based on the above embodiments:

[0054] As a preferred embodiment, judging whether a self-test error occurs during operation of the target device according to a preset judgment condition is specifically as follows:

[0055] Determine whether the target device generates an error signal during operation.

[0056] Specifically, during the self-test process after the MCA mechanism is turned on, once a self-test error occurs, an error message will be generated in the target device. At this time, although the MCA mechanism cannot correct the error and record the error message, and the system will crash, the error signal can be detected through the hardware interface in an out-of-band manner in the embodiment of the present invention. Once it is found that the target device generates an error signal during operation, it can be determined that a self-test error has occurred in the target device. The method provided in the embodiment of the present invention can quickly and accurately determine whether a self-test error has occurred.

[0057] Of course, in addition to the specific method in the embodiment of the present invention, there may be other specific methods for determining whether a self-test error occurs in the target device during operation according to a preset judgment condition, which is not limited in the embodiment of the present invention.

[0058] As a preferred embodiment, obtaining basic data related to the hardware error from a preset position of the target device is specifically:

[0059] Gets the register value of the specified register in the target device.

[0060] Specifically, considering that the MCA mechanism will first record the error information in some registers in the form of register values ​​when self-checking an error, and then generate a log for recording according to the register values ​​in the registers, when an error causing downtime occurs, although there is no log record, the error can be located through the register values ​​in these registers. Therefore, in the embodiment of the present invention, the register value of the specified register in the target device can be obtained, so that the error type can be determined through the register value in the subsequent steps.

[0061] In the embodiment of the present invention, the register value in the specified register can be obtained in an out-of-band manner, which can ensure that the register value can still be obtained even when the target device is down.

[0062] As a preferred embodiment, the error type of the target device that is determined to have an error according to the basic data is specifically:

[0063] According to the preset correspondence between the register value and the error type, the error type corresponding to the register value is determined.

[0064] Specifically, the correspondence between the register value and the error type can be pre-set. For example, when the register value is A, the corresponding error type is B. Error type B means that there is a fault in the hardware b in the target device. This method in the embodiment of the present invention can quickly and accurately determine the error type based on the register value.

[0065] Of course, in addition to the above-mentioned method, the error type of the target device may be determined according to the basic data in other ways, which are not limited in the embodiment of the present invention.

[0066] As a preferred embodiment, after determining the error type of the target device according to the basic data, the error information auxiliary extraction method further includes:

[0067] Determine whether the error type is a preset serious error;

[0068] If so, the alarm is controlled to sound.

[0069] Specifically, although a prompt is given after the error type is determined, the staff may not check the error type in time. In this case, once an error occurs, the error type is a more serious error. If it is not handled in time, it may cause more serious losses to the target device. Therefore, in the embodiment of the present invention, it can be determined whether the determined error type is a preset serious error. Once it is found that the determined error type is a serious error, the alarm can be immediately controlled to sound, which is convenient for the staff to discover the situation early and take countermeasures quickly, reducing the risk of further expansion of the failure of the target device and reducing losses.

[0070] The alarm may be of various types, such as a buzzer, etc., which is not limited in the embodiment of the present invention.

[0071] As a preferred embodiment, the processor is a BMC in the target device.

[0072] Specifically, using a BMC (Baseboard Management Controller) as a processor can reduce costs and has a higher processing performance.

[0073] Of course, in addition to the BMC in the target device, the processor may also be an additionally provided processor, and may be of other types, which is not limited in the embodiment of the present invention.

[0074] Please refer to Figure 2 , Figure 2 This is a schematic diagram of the structure of an auxiliary error information extraction device provided by the present invention, which is applied to a server system and a processor, and includes:

[0075] The judgment module 1 is used to judge whether the target device generates a self-test error during operation according to a preset judgment condition, and if so, trigger the acquisition module;

[0076] An acquisition module 2, used for acquiring basic data related to the hardware error from a preset location of the target device;

[0077] Determination module 3, used to determine the error type of the target device according to the basic data;

[0078] The control module 4 is used to control the prompter to prompt the error type.

[0079] As a preferred embodiment, the processor is a BMC in the target device.

[0080] For an introduction to the error information auxiliary extraction device provided in an embodiment of the present invention, please refer to the aforementioned embodiment of the error information auxiliary extraction method, and the embodiment of the present invention will not be described in detail here.

[0081] Please refer to Figure 3 , Figure 3 The present invention provides a schematic diagram of the structure of an error information auxiliary extraction device, which is applied to a server system and includes:

[0082] Memory 5, used for storing computer programs;

[0083] The processor 6 is used to implement the steps of the error information auxiliary extraction method in the above-mentioned embodiment when executing the computer program.

[0084] For an introduction to the error information auxiliary extraction device provided in an embodiment of the present invention, please refer to the aforementioned embodiment of the error information auxiliary extraction method, and the embodiment of the present invention will not be described in detail here.

[0085] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the error information auxiliary extraction method in the above-mentioned embodiment are implemented.

[0086] For an introduction to the computer-readable storage medium provided in an embodiment of the present invention, please refer to the aforementioned embodiment of the error information auxiliary extraction method, and the embodiment of the present invention will not be described in detail here.

[0087] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should also be noted that in this specification, the term "includes", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including a..." do not exclude the existence of other identical elements in the process, method, article or equipment including the element.

[0088] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An error information auxiliary extraction method, applied to a server system, characterized in that: Applicable to processors, including: Determine whether the target device generates a self-test error during operation according to preset judgment conditions; If so, obtaining basic data related to the hardware error from a preset location of the target device; Determine the error type of the target device according to the basic data; Controlling the prompter to prompt the error type; Determining whether a self-test error occurs during operation of the target device based on preset judgment conditions includes: Determine whether the target device generates an error signal during the self-check process of the MCA mechanism of the machine check system through an out-of-band method; If an error signal is generated, it is determined that the target device has a self-test error during the self-test process of the MCA mechanism; Wherein, the target device includes a server or a storage device; The basic data related to the hardware error is obtained from the preset position of the target device as follows: Obtaining a register value of a specified register in the target device in an out-of-band manner; The error type of the target device being determined to have an error according to the basic data is specifically: Determine the error type corresponding to the register value according to the preset correspondence relationship between the register value and the error type; After determining the error type of the target device according to the basic data, the error information auxiliary extraction method further includes: Determine whether the error type is a preset serious error; If so, the alarm is controlled to sound an alarm; The processor is a baseboard management controller BMC in the target device.

2. An error information auxiliary extraction device, applied to a server system, characterized in that: Applicable to processors, including: A judgment module, used to judge whether the target device generates a self-test error during operation according to a preset judgment condition, and if so, trigger the acquisition module; The acquisition module is used to acquire basic data related to the hardware error from a preset position of the target device; A determination module, configured to determine an error type of the target device according to the basic data; A control module, used for controlling the prompter to prompt the error type; Determining whether a self-test error occurs during operation of the target device based on preset judgment conditions includes: Determine whether the target device generates an error signal during the self-check process of the MCA mechanism of the machine check system through an out-of-band method; If an error signal is generated, it is determined that the target device has a self-test error during the self-test process of the MCA mechanism; Wherein, the target device includes a server or a storage device; Determine the module specifically for: Obtaining a register value of a specified register in the target device in an out-of-band manner; The determination module is specifically used for: Determine the error type corresponding to the register value according to the preset correspondence relationship between the register value and the error type; The error information auxiliary extraction device is also used for: Determine whether the error type is a preset serious error; If so, the alarm is controlled to sound an alarm; The processor is a baseboard management controller BMC in the target device.

3. An error information auxiliary extraction device, applied to a server system, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the error information auxiliary extraction method as claimed in claim 1 when executing the computer program.

4. 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 steps of the error information auxiliary extraction method according to claim 1 are implemented.