A server power supply interruption protection system and method based on redundant batteries
By introducing redundant batteries and a control module at the BMC level into the server, the problem of secondary power outages caused by prolonged power outages in the BBU solution is solved. This enables timely shutdown via built-in battery power during power interruptions, avoiding secondary power outages, extending battery life, and providing flexible shutdown strategies.
Patent Information
- Application Number
- CN202210555782.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-20
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2042-05-20
AI Technical Summary
The existing BBU solution still suffers from a secondary power outage when the server runs out of power after a long power outage.
The server power interruption protection system, which uses redundant batteries, controls the power supply of the BBU through the control module at the BMC level. When the external power supply is interrupted, it switches to the internal battery power supply. Combined with the HOST shutdown policy, it ensures that the server can shut down in time when there is a sudden power failure, avoiding secondary power outages.
It enables the use of the built-in battery for power supply when the external power supply is interrupted, avoiding secondary power failures, protecting the battery and extending its lifespan, while providing flexible shutdown strategies to adapt to different user needs.
Smart Images

Figure CN115167649B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer firmware technology, and specifically to a server power supply interruption protection system and method based on redundant batteries. Background Technology
[0002] Currently, most mainstream servers use BMC for remote monitoring and management. However, a sudden power outage can cause abnormal power loss, data loss, or even malfunction. To address this, server manufacturers use the BBU solution to prevent server malfunctions caused by sudden power outages.
[0003] The existing BBU solution has the following problem: if there is a prolonged power outage after a power failure, the server will still experience a secondary power interruption when the BBU's power is depleted. Summary of the Invention
[0004] In view of this, the present invention provides a server power supply interruption protection system and method based on redundant batteries, which can use backup batteries to provide power to the server for a short time and shut it down according to the shutdown strategy in the event of a sudden interruption of external power supply equipment, thereby avoiding secondary power outages.
[0005] To achieve the above objectives, the technical solution of the present invention is as follows: a server power supply interruption protection system based on redundant batteries, wherein the server consists of three layers: a backup battery (BBU) layer, a baseboard control manager (BMC) layer, and a host layer. An external power supply device is connected to the BBU, and the BBU is also equipped with a built-in battery. The BBU provides a BMC power supply port and a HOST power supply port, which are connected to the BMC and the HOST respectively for power supply.
[0006] A control module is set up at the BMC level to control the power supply to the BBU.
[0007] The control module at the BMC level connects to the HOST control terminal via the HOST control interface and to the BBU control terminal via the BBU control interface.
[0008] The control module determines in real time whether the external power supply device of the server is normal. If it is normal, it controls the BBU to continue to use the external power supply device for power supply, and at the same time charges the BBU's built-in battery. When the power supply of the external power supply device is interrupted, it controls the BBU to switch the built-in battery to power the server.
[0009] The control module is also used to control the power on / off state of the host layer in the server.
[0010] Furthermore, the control module includes a power failure detection unit, a HOST power on / off control unit, a BBU management unit, and a notification unit.
[0011] The power failure detection unit is used to detect the operating status of external power supply equipment.
[0012] The HOST power on / off control unit is used to control the power on / off function of the operating system running on the HOST via the HOST control terminal.
[0013] The BBU management unit is used by the BBU control terminal to query BBU information and status, and switch BBU working status.
[0014] Furthermore, the control module also includes a notification unit.
[0015] The notification unit is used to notify the user in the event of a power outage or when the host is powered off.
[0016] Furthermore, the power failure detection unit is used to detect the external power supply status. If the power supply is interrupted, it executes the HOST shutdown operation according to the HOST shutdown policy, and notifies the user via SMS and email notification modules. Then, after the HOST shutdown is completed, it sets the BBU to sleep mode and interrupts the BBU power supply. The HOST shutdown policy is set to shut down immediately after the power supply is interrupted, shut down after a set time after the power supply is interrupted, or shut down when the remaining BBU power is less than a set threshold after the power supply is interrupted.
[0017] Furthermore, the HOST power-on and power-off control module is used to control the power-on and power-off operations of the HOST.
[0018] Furthermore, the BBU management module is used to set the BBU to be in working or dormant state.
[0019] Furthermore, the notification unit sends power outage and server shutdown messages to maintenance personnel via SMS or email.
[0020] Another embodiment of the present invention provides a protection method for a server during power outages based on redundant batteries, comprising the following steps:
[0021] Step 1: Power on the server and start the BMC. At this time, the server is not powered on.
[0022] Step 2: After the BMC starts, check if the external power supply is normal. If it is normal, set the BBU to enter working mode and proceed to Step 3; otherwise, set the BBU to enter sleep mode.
[0023] Step 3: The control module at the BMC level periodically checks the server's power supply status through the BBU control interface. If the power supply is interrupted, the server is shut down according to the HOST shutdown policy. The HOST shutdown policy is set to shut down immediately after a power outage, shut down after a set delay after a power outage, or shut down when the remaining BBU power is less than a set threshold after a power outage.
[0024] Step 4: After the server has finished shutting down, BMC will notify maintenance personnel of the power outage via email or SMS.
[0025] Step 5: Set the BBU to sleep mode and stop supplying power to the BBU.
[0026] Furthermore, the BBU is configured with a working mode and a sleep mode; in the working mode, the BBU is powered by an external power supply or a built-in battery under the control of the control module at the BMC level; in the sleep mode, the BBU stops receiving power.
[0027] Beneficial effects:
[0028] 1. The present invention provides a server power supply interruption protection system based on redundant batteries. By setting a control module at the BMC level, the power supply control of the BBU and the power on / off control of the host can be realized. This allows the system to control the use of external power supply equipment when the external power supply equipment is normal, and to use the built-in battery for power supply when the external power supply equipment is interrupted. Furthermore, the system can promptly shut down the host when the built-in battery is providing power, thus avoiding secondary power outages caused by prolonged power supply from the built-in battery.
[0029] 2. This invention provides a server power interruption protection system based on redundant batteries, wherein the control module is equipped with a HOST shutdown policy unit for storing and executing HOST shutdown policies. Through the HOST shutdown policy module, a shutdown method suitable for user needs can be implemented using preset policies. The HOST shutdown policy is set to: immediately shut down after a power interruption, shut down after a set delay after a power interruption, or shut down when the remaining BBU battery power is less than a set threshold after a power interruption.
[0030] 3. The server power interruption protection system based on redundant batteries provided by this invention adds a control module at the BMC level for power interruption protection, realizing control information interaction between BBU and server. On the one hand, it facilitates BBU management, and on the other hand, it avoids the use of large batteries, which is conducive to BBU miniaturization.
[0031] 4. The server power supply interruption protection method based on redundant batteries provided by this invention, after the BMC starts up, if the power supply is normal, sets the BBU to enter working mode, that is, the BBU can charge and supply power to the server, so that the server will not immediately shut down in the event of a sudden power failure. When the power supply is interrupted, the BMC performs a shutdown operation on the server. After the server is shut down, the BBU is set to enter hibernation mode, that is, the BBU power supply switch is turned off, and it is turned on when the power supply is restored, to prevent secondary power outages caused by over-discharge of the BBU. Attached Figure Description
[0032] Figure 1 This is a block diagram illustrating the principle of a server power interruption protection system based on redundant batteries.
[0033] Figure 2 This is a flowchart of a server power interruption protection method based on redundant batteries. Detailed Implementation
[0034] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0035] In this embodiment of the invention, the BMC and BBU can communicate via I2C or serial port, enabling the BMC to query and configure the BBU.
[0036] Figure 1 A schematic diagram of a server power supply interruption protection system based on redundant batteries is provided. The server consists of three layers: the backup battery (BBU) layer, the baseboard control manager (BMC) layer, and the host layer. External power supply devices are connected to the BBU, which also has an internal battery. The BBU provides a BMC power supply port and a host power supply port, which are connected to the BMC and the host respectively for power supply.
[0037] A control module is set up at the BMC level to control the power supply to the BBU.
[0038] The control module at the BMC level connects to the HOST control terminal via the HOST control interface and to the BBU control terminal via the BBU control interface.
[0039] The control module determines in real time whether the external power supply device of the server is normal. If it is normal, it controls the BBU to continue to use the external power supply device for power supply, and at the same time charges the BBU's built-in battery. When the power supply of the external power supply device is interrupted, it controls the BBU to switch the built-in battery to power the server.
[0040] The control module is also used to control the power on / off state of the host layer in the server.
[0041] This invention provides a specific implementation of a control module, which includes a power failure detection unit, a HOST power on / off control unit, a BBU management unit, and a notification unit.
[0042] The power failure detection unit is used to detect the operating status of external power supply equipment.
[0043] The HOST power on / off control unit is used to control the power on / off function of the operating system running on the HOST via the HOST control terminal.
[0044] The BBU management unit is used by the BBU control terminal to query BBU information and status, and switch BBU working status.
[0045] This invention controls the power supply duration of the built-in battery in the BBU by setting a control module, which can avoid the BBU battery from being depleted due to prolonged power outages and various problems caused by sudden power outages of the server.
[0046] In another embodiment of the present invention, the control module further includes a notification unit; the notification unit is used to notify the user when power is interrupted or the host is powered off.
[0047] In another embodiment of the present invention, the control module further includes a notification unit and a HOST shutdown strategy unit, used to store and execute the HOST shutdown strategy. The HOST shutdown strategy is as follows: the HOST shutdown timing is set to immediately shut down after a power outage, shut down after a set delay after a power outage, or shut down when the remaining BBU power is less than a set threshold after a power outage. The set delay time and the set threshold can be adjusted and set according to actual conditions.
[0048] The power failure detection unit is used to detect the external power supply status. If the power supply is interrupted, the HOST shutdown operation is executed according to the HOST shutdown policy. At the same time, the user is notified via SMS and email notification modules. After waiting for the HOST shutdown to complete, the BBU is set to sleep mode and the power supply to the BBU is interrupted.
[0049] The HOST power on / off control module is used to control the power-on and power-off operations of the HOST.
[0050] The BBU management module is used to set the BBU to be in working or dormant state.
[0051] The notification unit sends power outage and server shutdown messages to maintenance personnel via SMS or email.
[0052] Figure 2 Another embodiment of the present invention is shown, namely a protection method for a server during power outage based on redundant batteries, the steps of which are as follows:
[0053] Step 1: Power on the server and start the BMC. At this time, the server is not powered on.
[0054] Step 2: After the BMC starts, check if the external power supply is normal. If it is normal, set the BBU to enter working mode and proceed to Step 3; otherwise, set the BBU to enter sleep mode.
[0055] Step 3: The control module at the BMC level periodically checks the server's power supply status through the BBU control interface. If the power supply is interrupted, the server is shut down according to the HOST shutdown policy. The HOST shutdown policy is set to shut down immediately after a power outage, shut down after a set delay after a power outage, or shut down when the remaining BBU power is less than a set threshold after a power outage.
[0056] Step 4: After the server has finished shutting down, BMC will notify maintenance personnel of the power outage via email or SMS.
[0057] Step 5: Set the BBU to sleep mode and stop supplying power to the BBU.
[0058] The BBU is configured with a working mode and a sleep mode. In the working mode, the BBU is powered by an external power supply or a built-in battery under the control of the control module at the BMC level. In the sleep mode, the BBU stops receiving power.
[0059] This invention enables refined management of the BBU, which can protect the battery and extend its lifespan.
[0060] In summary, the above are merely preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A server power supply interruption protection system based on redundant batteries, characterized in that, The server consists of three layers: backup battery (BBU), baseboard control manager (BMC), and host (HOST). External power supply devices are connected to the BBU, which also has a built-in battery. The BBU provides power supply ports for the BMC and the HOST, which are connected to the BMC and the HOST respectively for power supply. A control module is set up in the BMC to control the power supply to the BBU; The BMC's control module connects to the HOST control terminal via the HOST control interface and to the BBU control terminal via the BBU control interface. The control module determines in real time whether the external power supply device of the server is normal. If it is normal, it controls the BBU to continue to use the external power supply device for power supply and charges the BBU's built-in battery at the same time. When the power supply of the external power supply device is interrupted, it controls the BBU to switch the built-in battery to power the server. The control module is also used to control the power on / off of the HOST in the server; The control module includes a power failure detection unit, a HOST power on / off control unit, a BBU management unit, and a notification unit. The control module also includes a HOST shutdown policy unit; The HOST shutdown policy unit is used to store and execute the HOST shutdown policy. The HOST shutdown policy is as follows: the HOST shutdown timing is set to shut down immediately after power interruption, shut down after a set time delay after power interruption, or shut down when the remaining BBU power is less than a set threshold after power interruption. The power failure detection unit is used to detect the external power supply status. If the power supply is interrupted, the HOST shutdown operation is executed according to the HOST shutdown strategy provided by the HOST shutdown strategy unit. At the same time, the user is notified through the SMS and email notification modules. Then, after the HOST shutdown is completed, the BBU is set to sleep mode and the power supply to the BBU is interrupted. The power failure detection unit is used to detect the operating status of external power supply equipment; The HOST power on / off control unit is used to control the power on / off function of the operating system running on the HOST through the HOST control terminal; The BBU management unit is used by the BBU control terminal to query BBU information and status, and switch BBU working status.
2. The power interruption protection system as described in claim 1, characterized in that, The control module also includes a notification unit; The notification unit is used to notify the user when power is interrupted or the host is powered off.
3. The power interruption protection system as described in claim 1, characterized in that, The HOST power on / off control unit is used to control the HOST power-on and power-off operations.
4. The power interruption protection system as described in claim 2, characterized in that, The BBU management unit is used to set the BBU to be in working or dormant state.
5. The power interruption protection system as described in claim 2, characterized in that, The notification unit sends power outage and server shutdown messages to maintenance personnel via SMS or email.
6. A protection method for a server based on redundant batteries during power outages in the system described in claim 1, characterized in that, Perform the following steps: Step 1: Power on the server and start the BMC. At this time, the server is not powered on. Step 2: After the BMC starts, check if the external power supply is normal. If it is normal, set the BBU to enter working mode and proceed to Step 3; otherwise, set the BBU to enter sleep mode. Step 3: The BMC control module periodically checks the server power supply status through the BBU control interface. If the power supply is interrupted, the server is shut down according to the HOST shutdown policy. The HOST shutdown policy is set to shut down immediately after the power supply is interrupted, shut down after a set time after the power supply is interrupted, or shut down when the remaining BBU power is less than a set threshold after the power supply is interrupted. Step 4: After the server has finished shutting down, BMC will notify maintenance personnel of the power outage via email or SMS. Step 5: Set the BBU to sleep mode and stop supplying power to the BBU.
7. The server power supply interruption protection method based on redundant batteries as described in claim 6, characterized in that, The BBU is configured with a working mode and a sleep mode. In the working mode, the BBU is powered by an external power supply or a built-in battery under the control of the BMC control module. In the sleep mode, the BBU stops receiving power.
Citation Information
Patent Citations
Battery redundancy method, device and system
CN105912089A
Independent modularized backup power supply module and using method thereof
CN107085461A