PSU abnormal power failure diagnosis method based on BMC delayed power failure and server
The PSU module is monitored through the BMC module and the black box log is obtained using the delayed power supply module, which solves the problem that the server PSU module cannot analyze the cause of the fault after power failure, and realizes efficient fault diagnosis and processing.
Patent Information
- Application Number
- CN202510376353.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2045-03-27
AI Technical Summary
After the server power failure, the PSU module powered down, causing the cause of the failure to be read, and the operating data of the PSU module was cleared after powering on again, and the cause of the failure cannot be analyzed.
The BMC module monitors the operating status of the PSU module, recognizes the abnormal power-off status, and when the PSU module is abnormally powered off, the BMC module is powered by the delayed power supply module, so that the BMC module can obtain the black box log of the PSU module and performs diagnosis.
It realizes the acquisition of the cause of the fault after the PSU module is powered down, thereby performing corresponding fault processing, improving the reliability and safety of fault analysis and reducing hardware modification costs.
Smart Images

Figure CN119882974A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power supply failure analysis, and in particular to a PSU abnormal power failure diagnosis method and server based on BMC delayed power failure. Background Art
[0002] Due to the characteristics of server power supply and management, when the server power fails, it will directly affect the use of the entire device. That is, when the server power fails, the entire machine will lose power. After the entire machine loses power, both the PSU module and the BMC module lose power, resulting in no way to read the cause of the PSU module failure. At the same time, when the entire machine is powered on again, all operating data of the PSU module will be cleared, and it is still impossible to analyze the cause of the PSU module failure.
[0003] Therefore, there is an urgent need for a method to obtain the black box log of the PSU during the period of abnormal power failure of the PSU, and to diagnose the cause of the abnormal power failure of the PSU based on the black box log. Summary of the invention
[0004] In view of this, the present application provides a PSU abnormal power off diagnosis method and server based on BMC delayed power off, so as to obtain the PSU black box log within the time period of the PSU abnormal power off, and diagnose the cause of the PSU abnormal power off based on the black box log.
[0005] Specifically, the present application is implemented through the following technical solutions: In a first aspect, the present application provides a method for diagnosing abnormal power failure of a PSU based on delayed power failure of a BMC, the method comprising: The BMC module monitors the operating status of the PSU module and identifies an abnormal power-off state based on the operating status; If the PSU module is in an abnormal power-off state, trigger the delayed power supply module to supply power to the BMC module, wherein the delayed power supply module is in a charging state when the PSU module is in a normal working state, and the delayed power supply module is in a discharging state when the PSU module is in an abnormal power-off state; During the period when the delayed power supply module supplies power, the BMC module obtains the black box log of the PSU module and performs abnormal power failure diagnosis on the PSU module.
[0006] A second aspect of the present application provides a server, the server comprising a BMC module, a PSU module and a delayed power supply module; wherein: The BMC module is used to monitor the operating state of the PSU module and identify an abnormal power-off state based on the operating state; The delayed power supply module is used to supply power to the BMC module when the PSU module is in an abnormal power-off state, wherein the delayed power supply module is in a charging state when the PSU module is in a normal working state, and the delayed power supply module is in a discharging state when the PSU module is in an abnormal power-off state; The BMC module is further used to obtain the black box log of the PSU module and perform abnormal power failure diagnosis on the PSU module during the power supply of the delayed power supply module.
[0007] The present application provides a PSU abnormal power-off diagnosis method and server based on BMC delayed power-off. When the BMC module determines that the PSU module is in an abnormal power-off state based on the operating state of the PSU module, the BMC module is powered by the delayed power supply module, so that the BMC module can still obtain the black box log of the PSU module when the PSU module is abnormally powered off, and perform abnormal power-off diagnosis based on the black box log. On the one hand, it solves the problem that the cause of the PSU module failure cannot be obtained after the PSU module is powered off in the past, and the cause of the PSU module failure is obtained after the PSU module is powered off, so as to perform corresponding fault processing. On the other hand, since the black box log is stored in the BMC non-volatile file system, it is not easy to lose, and the black box log can be read again after the BMC is restarted, which has strong security. On the third hand, only by setting a delayed power supply module, the PSU module black box log can be obtained in the case of abnormal power off of the PSU module, without changing the internal structure of the PSU module, and the hardware transformation is simplified by adding an external module, which reduces the cost of the system. It is also of reference significance in other fields, with strong compatibility and scalability. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 A flowchart of Embodiment 1 of the PSU abnormal power-off diagnosis method based on BMC delayed power-off provided by the present application; Figure 2 A schematic diagram of the structure of the server provided for this application. DETAILED DESCRIPTION
[0009] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.
[0010] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.
[0011] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0012] Specific embodiments are given below to introduce the technical solution of the present application in detail.
[0013] Figure 1 This is a flowchart of the first embodiment of the PSU abnormal power failure diagnosis method based on BMC delayed power failure provided by this application. Please refer to Figure 1 , the method provided in this embodiment may include: S101. A BMC module monitors an operating state of a PSU module, and identifies an abnormal power-off state based on the operating state.
[0014] Specifically, the method provided in this embodiment is applied to a server, and the server includes a BMC (Baseboard Management Controller) module, a PSU (Power Supply Unit) module, and a delayed power supply module. Among them, the BMC module is connected to the PSU module, and the PSU module is connected to the delayed power supply module. The BMC module is used to monitor and manage the server, and when an abnormal situation is detected, it records the event log, and performs troubleshooting and analysis after restarting the server. The PSU module is used to provide the direct current required inside the server. The delayed power supply module is used to supply power to the BMC module when the PSU module loses power abnormally.
[0015] Furthermore, the operating status of the PSU module includes the voltage, current, temperature, fan speed, etc. of the PSU module. The abnormal power-off status indicates that the PSU module cannot continue to supply power to the server due to a specific reason (such as external power interruption, internal fault, etc.).
[0016] In a specific implementation, the BMC module monitors the operating status of the PSU module, including: (1) Determining a monitoring point of the BMC module based on a range of changes in the abnormal power-off state parameters, wherein the monitoring point is a parameter to be detected by the PSU module.
[0017] Specifically, the abnormal power-off state parameters include the voltage, current and temperature of the PSU module, etc. The monitoring points of the BMC module are the parameters to be detected of the PSU module, which are the same as the abnormal power-off state parameters, that is, the monitoring points of the BMC module are the voltage, current and temperature of the PSU module, etc.
[0018] In specific implementation, the voltage monitoring point of the BMC module is determined based on the variation range of the PSU module voltage, the current monitoring point of the BMC module is determined based on the variation range of the PSU module current, and the current monitoring point of the BMC module is determined based on the variation range of the PSU module temperature.
[0019] For example, in one embodiment, it is determined that the voltage monitoring points of the BMC module include +12V, +5V and +3V, the current monitoring points include the current of each output port of the PSU module, and the temperature monitoring points include the temperature inside the PSU and key components.
[0020] (2) The BMC module is configured with ADC channels for monitoring the monitoring points based on the monitoring points of the PSU module, wherein the number of the ADC channels corresponds to the number of the monitoring points.
[0021] Specifically, the ADC channel is used to monitor analog signals such as voltage, current, and temperature of the PSU module, and convert these analog signals into digital signals for processing and analysis by the BMC module. The number of ADC channels corresponds to the number of monitoring points, and each ADC channel is used to monitor one monitoring point.
[0022] In specific implementation, the BMC module allocates each monitoring point to a corresponding ADC channel, that is, allocates a voltage monitoring point to a corresponding ADC channel, allocates a current monitoring point to a corresponding ADC channel, and allocates a temperature monitoring point to a corresponding ADC channel.
[0023] For example, in one embodiment, combined with the above example, if the monitoring points include 3 voltage points, 2 current points and 1 temperature point, in this step, 6 ADC channels need to be configured, and each ADC channel monitors one monitoring point.
[0024] (3) Based on the ADC channel, periodically obtain status information of the PSU module.
[0025] In specific implementation, a suitable sampling period is set (for example, sampling once per second) to ensure that the state changes of the PSU module are captured in time. When each sampling period arrives, the state information of the PSU module is obtained through the ADC channel and converted into a digital signal.
[0026] Further, after obtaining the operating status of the PSU module, the operating status is compared with a specific threshold value to determine whether the PSU module is in an abnormal power-off state. In this embodiment, the specific value of the specific threshold value is not limited. For example, in one embodiment, when the voltage of the PSU module is less than 9V, the PSU module is determined to be in an abnormal power-off state. When the current of the PSU module is greater than 20A, the PSU module is determined to be in an abnormal state. When the temperature of the PSU module exceeds 70°C, the PSU module is determined to be in an abnormal state.
[0027] Optionally, after identifying the abnormal power-off state based on the operating state, the method further includes: (1) If the PSU module is in a normal power supply state, the BMC module monitors the status register field of the PSU module.
[0028] Specifically, the normal power supply state indicates that the PSU module can continue to supply power to the server. The status register field of the PSU module is used to store and reflect various information of the current working state of the PSU module, including parameters such as voltage, current, temperature, and fault state.
[0029] In specific implementation, the BMC module reads and parses various fields in the status register field in the PSU module to monitor the operation status of the PSU module in real time.
[0030] (2) If the status register field of the PSU module is abnormal, the BMC module obtains the black box log of the PSU module.
[0031] Specifically, the black box log of the PSU module records important events and status information of the PSU module, such as voltage anomalies, overcurrent protection triggering, overtemperature protection triggering, etc.
[0032] In specific implementation, if the fault status parameters recorded in the status register field of the PSU module are abnormal (for example, abnormal voltage status, abnormal current status, abnormal temperature status, overvoltage protection status, overcurrent protection status, overtemperature protection status, etc.), the BMC module communicates with the PSU module through I2C, and the BMC module sends a specific command to the PSU module to obtain the black box log of the PSU module. After receiving the specific command, the PSU module sends the black box log to the BMC, and the BMC saves the received black box log to the BMC non-volatile file system.
[0033] (3) The black box log corresponding to the abnormal state register field is renamed based on the abnormal power-off identifier, and the renamed log name indicates that the black box log corresponding to the abnormal state register field is not used for abnormal power-off diagnosis.
[0034] Specifically, the abnormal power-off flag indicates the abnormal power-off state of the PSU module. The abnormal power-off flag has a first initial value. If the abnormal power-off flag is 1, it indicates that the PSU module is in an abnormal power-off state; if the abnormal power-off flag is not 1, it indicates that the PSU module is in a normal power supply state.
[0035] In specific implementation, combined with the above description, if the PSU module is in a normal power supply state, the abnormal power-off flag is not 1. In this step, the black box log is renamed based on the abnormal power-off flag that is not 1. Since the black box log is the black box log corresponding to the PSU module in a normal power supply state, it is not used for abnormal power-off diagnosis in the future.
[0036] For example, in one embodiment, the renamed black box log is named PSUx_BlackBoxPre.dat.
[0037] As an optional embodiment, before the BMC module monitors the operating status of the PSU module, the method includes: calculating an estimated read time based on the size of the PSU module black box log file; determining a discharge time based on the estimated read time; determining a parameter value of the delayed power supply module based on the discharge time, wherein the delayed power supply module at least includes a delayed power-off capacitor, and the parameter value at least includes a capacitance value of the delayed power-off capacitor; establishing the delayed power supply module according to the parameter value, and maintaining the delayed power supply module in a fully charged state when the PSU module is in a normal power supply state.
[0038] The method provided by the present invention utilizes the PSU module to power the BMC module when the PSU module is in normal working state to maintain normal monitoring, and utilizes the external delayed power supply module to continuously briefly power the BMC module when the PSU is abnormally powered off to ensure that the BMC module obtains log files related to the PSU abnormality. Furthermore, in order to make it clear that the short power supply can ensure that the complete log information is obtained, the size of the module parameter value is reversely determined according to the time requirement for reading the log to ensure that the delayed power supply module can still read the log file in the discharge state.
[0039] Furthermore, the discharge time is the time it takes for the delayed power supply module to discharge from a fully charged state to an uncharged state. Preferably, the discharge time is N times the estimated reading time, where N is a positive number and can be equal to 1, i.e., the full discharge time is exactly equal to the estimated reading time. As an optional embodiment, the discharge time is determined based on the discharge curve of the delayed power-down capacitor and the estimated reading time, and N is greater than 1. The present invention takes into account the arbitrariness of the time at which the PSU module fails, and the delayed power-down capacitor may not necessarily be able to remain fully charged in any scenario, and the discharge amount does not remain constant. Therefore, a longer discharge time is comprehensively determined based on the changes in the discharge curve and the power demand of the BMC module to improve the applicability of the delayed power supply module of the present invention to various scenarios.
[0040] S102. If the PSU module is in an abnormal power-off state, trigger the delayed power supply module to supply power to the BMC module, wherein the delayed power supply module is in a charging state when the PSU module is in a normal working state, and the delayed power supply module is in a discharging state when the PSU module is in an abnormal power-off state.
[0041] Specifically, in combination with the above description, the delayed power supply module is used to supply power to the BMC module when the PSU module is abnormally powered off. The delayed power supply module includes a delayed power-off capacitor. When the PSU module is in a normal working state, the delayed power-off capacitor is charged by the power provided by the PSU module. After the delayed power-off capacitor is fully powered, the charging circuit is disconnected; when the PSU module is in an abnormal power-off state, the delayed power-off capacitor is connected to the BMC module, and the charge stored in the delayed power-off capacitor is released.
[0042] Optionally, if the PSU module is in an abnormal power-off state, the method further includes: (1) Modifying a value of an abnormal power-off flag, wherein the abnormal power-off flag has a first initial value, and the value of the abnormal power-off flag in an abnormal power-off state is different from the first initial value.
[0043] Specifically, in combination with the above description, the abnormal power-off flag indicates the abnormal power-off state of the PSU module. Wherein, if the abnormal power-off flag is 1, it indicates that the PSU module is in an abnormal power-off state; if the abnormal power-off flag is not 1, it indicates that the PSU module is in a normal power supply state.
[0044] In specific implementation, in this step, the value of the abnormal power-off flag is modified to 1, indicating that the PSU module is in an abnormal power-off state.
[0045] (2) The read black box log is renamed based on the abnormal power-off identifier, and the renamed log name indicates that the black box log corresponding to the abnormal power-off state is used for abnormal power-off diagnosis.
[0046] The specific implementation is that, combined with the above description, the abnormal power-off flag is 1. In this step, the read black box log is renamed based on the abnormal power-off flag with a value of 1. Since the black box log is the black box log corresponding to the PSU module in the abnormal power-off state, it is used for abnormal power-off diagnosis in the subsequent process. It should be noted that the log name of the black box log corresponding to the abnormal power-off state is different from the log name of the black box log corresponding to the normal power supply state, and the two have different uses.
[0047] For example, in one embodiment, the renamed black box log is named PSUx_BlackBoxCur.dat.
[0048] S103: During the period when the delayed power supply module supplies power, the BMC module obtains the black box log of the PSU module and performs abnormal power failure diagnosis on the PSU module.
[0049] Optionally, before the BMC module obtains the black box log of the PSU module, the method further includes: (1) After the BMC module runs for a preset period of time based on the power supplied by the delayed power supply module, the BMC module is powered off and shut down.
[0050] Specifically, the preset duration is set according to actual needs, and in this embodiment, the specific value of the preset duration is not limited. For example, in one embodiment, the preset duration is 2s.
[0051] In specific implementation, the delayed power supply module supplies power to the BMC module after the PSU module is abnormally powered off. After the BMC module runs for a preset time during the power supply period of the delayed power supply module, the BMC module is powered off and shut down.
[0052] (2) After the BMC module is restarted, the black box log of the PSU module is read from the BMC non-volatile file system.
[0053] Specifically, the BMC non-volatile file system is used to store important information, including storage logs, configuration files, firmware updates and other data, so that it is still available after the BMC is restarted or powered off. The BMC non-volatile file system usually runs on the BMC's embedded storage device, such as flash memory or EEPROM.
[0054] In specific implementation, the BMC module has a remote control function, which can restart the server. When the server restarts, the BMC module also restarts. Furthermore, the BMC module reads the previously stored black box log of the PSU module from the BMC non-volatile file system, including reading specific files or directories to obtain the event and status information of the PSU module.
[0055] Specifically, the BMC module obtains the black box log of the PSU module and performs abnormal power failure diagnosis on the PSU module, including: (1) Read the black box log of the PSU module from the BMC non-volatile file system.
[0056] In specific implementation, the BMC module reads the previously stored black box log of the PSU module from the BMC non-volatile file system, including reading a specific file or directory to obtain the event and status information of the PSU module.
[0057] (2) Filter the target black box log based on the nouns of the black box log.
[0058] Specifically, the target black box log refers to a black box log related to abnormal power failure.
[0059] In the specific implementation, based on some keywords, such as "power off", "power outage", "voltage abnormality" and other nouns, the target black box logs that may be related to abnormal power off are filtered out from the black box logs.
[0060] (3) Parse the target black box log and extract event data.
[0061] Specifically, the event data includes information such as timestamp, voltage value, current value, temperature value, etc.
[0062] In the specific implementation, the target black box log is parsed to identify and extract event data related to abnormal power failure.
[0063] (4) Convert the event data into a log file in a target format.
[0064] Specifically, the target format is set according to actual needs, and in this embodiment, the specific value of the target format is not limited. For example, in one embodiment, the target format is a JSON format or a specific structured text.
[0065] In specific implementation, a script or program can be written based on a programming language (such as Python) according to actual needs and data structure. The program receives event data as input and formats the event data into a log file in the target format.
[0066] (5) Analyze the converted log file to determine the cause of the abnormal power failure.
[0067] Specifically, analyzing the converted log file to determine the cause of the abnormal power failure includes: (i) extracting event data recorded in the converted log file, and associating the event data with time to determine the time when the abnormal power failure occurred and the event sequence before and after.
[0068] Specifically, in combination with the above description, the event data includes information such as timestamp, voltage value, current value, temperature value, etc.
[0069] In the specific implementation, the event data recorded in the converted log file is extracted, the extracted event data is traversed, all abnormal power-off events are identified, and the timestamps of their occurrence are recorded. Then, based on these timestamps, the event sequences before and after each abnormal power-off event are determined, and these sequences can be used to determine the state and behavior of the system before and after the power-off event occurs.
[0070] (ii) identifying abnormal events recorded in the converted log files and associating the abnormal events with relevant data.
[0071] In the specific implementation, the extracted event data is checked to identify all abnormal events that are not normal. These abnormal events may be voltage that is too high, too low, abnormal current, or other abnormal conditions.
[0072] (iii) Based on the correlated event data and the correlated abnormal events, perform fault diagnosis to determine the cause of the abnormal power failure.
[0073] In specific implementation, for each abnormal power-off event, fault diagnosis is performed in combination with the abnormal event and the sequence of events before and after. The root cause of the abnormal power-off is determined by analyzing the abnormal event and the changes in the system status. This may involve checking the stability of the power supply, system load, ambient temperature, circuit faults and other factors.
[0074] The PSU abnormal power-off diagnosis method based on BMC delayed power-off provided in this embodiment is that when the BMC module determines that the PSU module is in an abnormal power-off state based on the operating state of the PSU module, the BMC module is powered by the delayed power supply module, so that the BMC module can still obtain the black box log of the PSU module when the PSU module is abnormally powered off, and perform abnormal power-off diagnosis based on the black box log. On the one hand, it solves the problem that the cause of the PSU module failure cannot be obtained after the PSU module is powered off in the past, and the cause of the PSU module failure is obtained after the PSU module is powered off, so as to perform corresponding fault processing. On the other hand, since the black box log is stored in the BMC non-volatile file system, it is not easy to lose, and the black box log can be read again after the BMC is restarted, which has strong security. On the third hand, only by setting the delayed power supply module, the PSU module black box log can be obtained in the case of abnormal power off of the PSU module, without changing the internal structure of the PSU module, and the hardware transformation is simplified by adding an external module, reducing the cost of the system, which is also of reference significance in other fields, with strong compatibility and scalability.
[0075] Corresponding to the aforementioned embodiment of a method for diagnosing abnormal PSU power failure based on BMC delayed power failure, the present application also provides a server.
[0076] Figure 2 The structural diagram of the server provided for this application. Please refer to Figure 2 , the server provided in this embodiment includes a BMC module, a PSU module and a delayed power supply module; wherein, The BMC module is used to monitor the operating state of the PSU module and identify an abnormal power-off state based on the operating state; The delayed power supply module is used to supply power to the BMC module when the PSU module is in an abnormal power-off state, wherein the delayed power supply module is in a charging state when the PSU module is in a normal working state, and the delayed power supply module is in a discharging state when the PSU module is in an abnormal power-off state; The BMC module is further used to obtain the black box log of the PSU module and perform abnormal power failure diagnosis on the PSU module during the power supply of the delayed power supply module.
[0077] In the server provided by the present application, when the BMC module determines that the PSU module is in an abnormal power-off state based on the operating state of the PSU module, the BMC module is powered by the delayed power supply module, so that the BMC module can still obtain the black box log of the PSU module when the PSU module is abnormally powered off, and perform abnormal power-off diagnosis based on the black box log. On the one hand, it solves the problem that the cause of the PSU module failure cannot be obtained after the PSU module is powered off, and the cause of the PSU module failure is obtained after the PSU module is powered off, so as to perform corresponding fault processing. On the other hand, since the black box log is stored in the BMC non-volatile file system, it is not easy to lose, and the black box log can be read again after the BMC is restarted, which has strong security. On the third hand, only by setting a delayed power supply module, it is possible to obtain the black box log of the PSU module in the case of abnormal power off of the PSU module, without changing the internal structure of the PSU module, simplifying the hardware transformation by adding an external module, reducing the cost of the system, and also having reference significance in other fields, with strong compatibility and scalability.
[0078] The server provided by this application can be used to execute Figure 1 The steps, specific implementation principles and implementation processes of the method embodiment shown are similar and will not be repeated here.
[0079] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0080] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0081] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A PSU abnormal power-off diagnosis method based on BMC delayed power-off, characterized in that: The method comprises: The BMC module monitors the operating status of the PSU module and identifies an abnormal power-off state based on the operating status; If the PSU module is in an abnormal power-off state, trigger the delayed power supply module to supply power to the BMC module, wherein the delayed power supply module is in a charging state when the PSU module is in a normal working state, and the delayed power supply module is in a discharging state when the PSU module is in an abnormal power-off state; During the period when the delayed power supply module supplies power, the BMC module obtains the black box log of the PSU module and performs abnormal power failure diagnosis on the PSU module; Before the BMC module monitors the operating status of the PSU module, the method includes: Calculate the estimated reading time according to the size of the PSU module black box log file; determining a discharge time based on the estimated read time; Determining a parameter value of the delayed power supply module based on the discharge time, wherein the delayed power supply module at least includes a delayed power-down capacitor, and the parameter value at least includes a capacitance value of the delayed power-down capacitor; The delayed power supply module is established according to the parameter value, and when the PSU module is in a normal power supply state, the delayed power supply module is kept in a fully powered state.
2. The method according to claim 1, characterized in that After identifying the abnormal power-off state based on the operating state, the method further includes: If the PSU module is in a normal power supply state, the BMC module monitors a status register field of the PSU module; If the status register field of the PSU module is abnormal, the BMC module obtains the black box log of the PSU module; The black box log corresponding to the abnormal state register field is renamed based on the abnormal power-off identifier, and the renamed log name indicates that the black box log corresponding to the abnormal state register field is not used for abnormal power-off diagnosis.
3. The method according to claim 1, characterized in that: The BMC module monitors the operating status of the PSU module, including: Determining a monitoring point of the BMC module based on a variation range of an abnormal power-off state parameter, wherein the monitoring point is a parameter to be detected by the PSU module; The BMC module configures ADC channels for monitoring the monitoring points based on the monitoring points of the PSU module, wherein the number of the ADC channels corresponds to the number of the monitoring points; Based on the ADC channel, the status information of the PSU module is periodically obtained.
4. The method according to claim 1, characterized in that If the PSU module is in an abnormal power-off state, the method further includes: Modifying a value of an abnormal power-off flag, wherein the abnormal power-off flag has a first initial value, and the value of the abnormal power-off flag in an abnormal power-off state is different from the first initial value; The read black box log is renamed based on the abnormal power-off identifier, and the renamed log name marks the black box log corresponding to the abnormal power-off state for abnormal power-off diagnosis.
5. The method according to claim 1, characterized in that The delayed power supply module includes a delayed power-down capacitor; When the PSU module is in a normal working state, the delayed power-off capacitor is charged by the power provided by the PSU module, and the charging circuit is disconnected after the delayed power-off capacitor is fully charged; When the PSU module is in an abnormal power-off state, the delayed power-off capacitor is connected to the BMC module, and the charge stored in the delayed power-off capacitor is released.
6. The method according to claim 1, characterized in that The BMC module obtains the black box log of the PSU module and performs abnormal power failure diagnosis on the PSU module, including: Reading the black box log of the PSU module from the BMC non-volatile file system; Filter the target black box log based on the noun of the black box log; Parsing the target black box log to extract event data; Converting the event data into a log file in a target format; Analyze the converted log files to determine the cause of the abnormal power failure.
7. The method according to claim 6, characterized in that The analyzing the converted log file to determine the cause of the abnormal power failure includes: Extracting the event data recorded in the converted log file, and associating the event data with time, to determine the time when the abnormal power failure occurred and the sequence of events before and after; Identifying abnormal events recorded in the converted log files and associating the abnormal events with relevant data; Based on the correlated event data and the correlated abnormal events, fault diagnosis is performed to determine the cause of the abnormal power failure.
8. The method according to claim 1, characterized in that Before the BMC module obtains the black box log of the PSU module, the method further includes: After the BMC module runs for a preset period of time based on the power provided by the delayed power supply module, the BMC module is powered off and shut down; After the BMC module is restarted, the black box log of the PSU module is read from the BMC non-volatile file system.
9. A server, characterized in that: The server includes a BMC module, a PSU module and a delayed power supply module; wherein, The BMC module is used to monitor the operating state of the PSU module and identify an abnormal power-off state based on the operating state; The delayed power supply module is used to supply power to the BMC module when the PSU module is in an abnormal power-off state, wherein the delayed power supply module is in a charging state when the PSU module is in a normal working state, and the delayed power supply module is in a discharging state when the PSU module is in an abnormal power-off state; The BMC module is further used to obtain the black box log of the PSU module and perform abnormal power failure diagnosis on the PSU module during the power supply of the delayed power supply module; Before the BMC module monitors the operating status of the PSU module, the BMC module is further used to: Calculate the estimated reading time according to the size of the PSU module black box log file; determining a discharge time based on the estimated read time; Determining a parameter value of the delayed power supply module based on the discharge time, wherein the delayed power supply module at least includes a delayed power-down capacitor, and the parameter value at least includes a capacitance value of the delayed power-down capacitor; The delayed power supply module is established according to the parameter value, and when the PSU module is in a normal power supply state, the delayed power supply module is kept in a fully powered state.
Citation Information
Patent Citations
Server switching power supply protecting device and method
CN107315675A
PSU power failure reason detection method and device
CN111078445A
Design method and system for realizing BMC independent power supply
CN112272098A
Server power supply and server power supply log generation method
CN114527858A
Abnormal power failure protection device for domestic double-control disk array
CN115273922A