Battery backup unit setting method, power backup method, electronic device and storage medium
By splitting the battery backup unit into multiple target battery backup units and setting them up nearby, the problem of large BBU size and the need for separate heat dissipation is solved, and efficient space utilization and performance improvement of the storage system are achieved.
Patent Information
- Application Number
- CN202510897049.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2045-06-30
AI Technical Summary
The BBU is too large and requires a separate fan for heat dissipation, which takes up space in the storage system and affects the configuration and performance of the storage system.
The initial battery backup unit is split into multiple target battery backup units and placed near the target modules to supply power to the target modules when the power supply unit fails, avoiding the need to set up separate fans for heat dissipation.
It reduces the space occupied by the BBU, improves the configuration capability of the storage system, supports higher-specification configurations, and improves the performance of the storage system.
Smart Images

Figure CN120414857B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of backup power technology, and in particular to a battery backup unit setting method, a backup power method, an electronic device, and a storage medium. Background Art
[0002] Centralized storage products are designed to be extremely reliable, ensuring data protection and business continuity. To this end, storage products employ dual-node redundant controller nodes, mirrored links between the two controllers, and power supply safety features. Power supply safety relies heavily on the Battery Backup Unit (BBU). This BBU provides temporary power in the event of a power supply failure, such as a power failure in the power supply unit (PSU) or the data center power supply, protecting memory data and allowing for planned service shutdowns to ensure business continuity upon the next restart.
[0003] In related technologies, due to the increased power consumption of the central processing unit (CPU), memory, and expansion chips, the BBU needs to meet high power consumption requirements, resulting in the BBU becoming larger and larger. A separate fan is required to dissipate heat for the BBU, which takes up a lot of chassis space, affects the configuration of the storage system, and reduces the performance of the storage system. Summary of the Invention
[0004] The present application provides a battery backup unit setting method, a power backup method, an electronic device and a storage medium, so as to at least solve the problem in the related art that the BBU is getting larger and larger, and a separate fan is required to dissipate heat for the BBU, which occupies a lot of chassis space, affects the configuration of the storage system, and reduces the performance of the storage system.
[0005] A first aspect of the present application provides a method for setting a battery backup unit, comprising:
[0006] Determine the target module for executing the power backup process of the storage system;
[0007] For any target module, based on the power consumption of the target module in executing the backup power process of the storage system, determine the number of battery cells required for the target module, so as to determine the number of battery cells required for each target module in all target modules;
[0008] Based on the number of battery cells required by each target module in all target modules, split the initial battery backup unit of the storage system to obtain a target battery backup unit corresponding to each target module;
[0009] The target battery backup unit is set at a preset distance from its corresponding target module, so that when the power supply unit fails, the target battery backup unit can be used to power the target module corresponding to the target battery backup unit to complete the backup power process of the storage system.
[0010] A second aspect of the present application provides a power backup method, comprising:
[0011] In the event of a power supply unit failure, the target module is powered by the target battery backup unit corresponding to the target module;
[0012] Based on the target module, the cached data in the memory is flushed to the hard disk, the ongoing task is suspended, and new tasks are stopped from being accepted, completing the power backup process of the storage system;
[0013] After completing the storage system power backup process, shut down the storage system;
[0014] The target battery backup unit is set based on any one of the battery backup unit setting methods of the first aspect.
[0015] The third aspect of the present application also provides an electronic device, comprising: a memory for storing a computer program; a processor for implementing the steps of any battery backup unit setting method of the first aspect or any backup power method of the second aspect when executing the computer program.
[0016] The fourth aspect of the present application also provides a computer-readable storage medium, which stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of any battery backup unit setting method of the first aspect or any backup power method of the second aspect.
[0017] The fifth aspect of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any battery backup unit setting method of the first aspect or any backup power method of the second aspect.
[0018] Through the present application, a target module for executing a backup power process of a storage system is determined; for any target module, the number of battery cells required for the target module is determined based on the power consumption of the target module when executing the backup power process of the storage system, so as to determine the number of battery cells required for each target module among all target modules; based on the number of battery cells required for each target module among all target modules, the initial battery backup unit of the storage system is split to obtain a target battery backup unit corresponding to each target module; the target battery backup unit is set at a position with a preset distance from the corresponding target module, so that in the event of a failure of the power supply unit, the target battery backup unit is used to power the target module corresponding to the target battery backup unit to complete the backup power process of the storage system. By splitting the initial battery backup unit into multiple target battery backup units and setting the target battery backup units near the target modules, there is no need to set up a separate fan for the target battery backup unit for heat dissipation. Therefore, the technical problem that the BBU volume is getting larger and larger and a separate fan is required to dissipate heat for the BBU, which occupies a lot of chassis space, affects the configuration of the storage system, and reduces the performance of the storage system can be solved, thereby achieving the technical effect of reducing the space occupied by the BBU, enabling the storage system to support higher-specification configurations, and improving the performance of the storage system. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0020] Figure 1 A schematic diagram of the structure of a controller node in the related art;
[0021] Figure 2 A flowchart of a method for setting a battery backup unit according to an embodiment of the present application;
[0022] Figure 3 A schematic diagram of a process for supplying power to a storage system in the related art;
[0023] Figure 4 A schematic diagram of the structure of a controller node provided in an embodiment of the present application;
[0024] Figure 5 A schematic diagram of the structure of the target battery backup unit provided in an embodiment of the present application;
[0025] Figure 6 A schematic diagram of the structure of the backup power system provided in an embodiment of the present application;
[0026] Figure 7 A flowchart of a power backup method provided in an embodiment of the present application;
[0027] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0029] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0030] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0031] Centralized storage products differ from standard server products in that they focus on ultimate reliability, ensuring data is never lost and continuous operation without interruption to business operations in the event of unexpected situations. To achieve this, storage products incorporate unique hardware design considerations and implementations.
[0032] First, the controller node design utilizes a dual-node architecture, with both controller nodes simultaneously running the same storage services, achieving 1+1 redundancy. If one node fails, the other node seamlessly takes over, ensuring uninterrupted business continuity. Furthermore, a mirroring link is established between the two controller nodes for real-time data synchronization, providing additional data backup protection.
[0033] Secondly, in terms of power supply design, in addition to the standard 1+1 redundant PSU, each controller node is also equipped with a BBU module. The BBU provides a short burst of backup power in the event of a PSU or data center power failure. During this burst, the storage system can write cached data in memory to the hard disk, preventing data loss. The BBU also supports the orderly suspension of ongoing business operations, ensuring a smooth restart and continued operation after power is restored. This process, known as the backup power process, is a key design feature for ensuring the high reliability of the entire storage system.
[0034] In summary, centralized storage products build a highly reliable storage environment through multiple designs such as dual-controller node redundancy design, mirror links between dual controllers, and BBU backup power mechanism, thereby meeting the strict requirements of key business scenarios for stability and data security.
[0035] The design of the BBU is crucial to the reliability of the entire storage system. In related technologies, it provides temporary power support to each controller node in the event of a sudden power outage. To ensure this functionality, the BBU must have sufficient power to meet the overall power requirements of the controller node. As the transmission rates of CPUs, memory, and expansion chips increase, the power consumption of these components also increases significantly, which directly leads to the need for larger BBU capacity to cope with the increased power demand. The resulting problem is that the BBU's size continues to increase, occupying valuable space within the controller node and the entire chassis. This space compression has a negative impact on the overall configuration of the system. For example, it may limit key hardware configurations such as the number of memory slots on the motherboard, the installation space for input / output (IO) cards, and the layout and capacity of the hard drives, thereby reducing the performance of the storage system.
[0036] Figure 1 A schematic diagram of the structure of a controller node in the related art is shown in FIG. Figure 1 As shown, a controller node in a 2U2-controller disk-control integrated storage head is used as an example for description, where 2U represents the height space occupied by the storage head in the cabinet, and 1U equals 1.75 inches. 2 controls refer to 2 controller nodes, and integrated disk-control means that the controller and disk expansion unit are integrated into the same chassis. The controller node includes BBU, PSU and controller body, where the controller body is responsible for business processing, BBU is used for backup power protection, and PSU is used for main power supply. Since the controller node is a dual-core CPU design, the instantaneous power consumption after the PSU power supply is powered off can reach 675 watts (W). In this case, a 4-series and 3-parallel battery cell design is required in the BBU, that is, the BBU includes 12 battery cells to meet the discharge requirements during backup power. As Figure 1As shown in the figure, after the 12 battery cells are arranged, the overall BBU size even exceeds that of the PSU. In addition, due to the increase in power consumption and current, the heat generated by the BBU increases. A fan needs to be added next to the BBU to dissipate heat from the BBU. In other words, the controller node also includes a fan.
[0037] It can be seen that the BBU is too large and requires a separate fan to dissipate heat for the BBU, which affects the configuration of the storage system and reduces the performance of the storage system.
[0038] In order to solve the above problems, an embodiment of the present application provides a battery backup unit setting method, a backup power method, an electronic device and a storage medium. The battery backup unit setting method includes: determining a target module for executing the backup power process of the storage system; for any target module, based on the power consumption of the target module in executing the backup power process of the storage system, determining the number of battery cells required for the target module to determine the number of battery cells required for each target module in all target modules; based on the number of battery cells required for each target module in all target modules, splitting the initial battery backup unit of the storage system to obtain a target battery backup unit corresponding to each target module; setting the target battery backup unit at a preset distance from its corresponding target module, so that in the event of a failure of the power supply unit, the target battery backup unit is used to power the target module corresponding to the target battery backup unit to complete the backup power process of the storage system. The method provided by the above scheme obtains multiple target battery backup units by splitting the initial battery backup unit of the storage system, and sets the multiple target battery backup units near the target module that executes the backup power process of the storage system, so that in the event of a failure of the power supply unit, the target battery backup unit is used to power the target module corresponding to the target battery backup unit to complete the backup power process of the storage system. This solves the problem in the related technology that the BBU is large in size and requires a separate fan to dissipate heat for the BBU, which occupies a lot of chassis space, affects the configuration of the storage system, and reduces the performance of the storage system. It achieves the technical effect of reducing the space occupied by the BBU, allowing the storage system to support higher-specification configurations and improving the performance of the storage system.
[0039] The embodiment of the present application provides a battery backup unit configuration method, which is applied to a storage system. Figure 2 A flowchart of a method for setting a battery backup unit according to an embodiment of the present application is shown in FIG. Figure 2 As shown, the process includes:
[0040] Step S201: determining a target module for executing a power backup process of a storage system.
[0041] Figure 3 A schematic diagram of a process for supplying power to a storage system in related technology, such as Figure 3 As shown, the storage system includes two controller nodes, each of which includes a PSU and a BBU. When both PSUs are functioning normally, PSU1 and PSU2 provide 12V power to the two controller nodes, or the two mainboards. If the mains power fails or the PSUs malfunction, they are unable to provide 12V power to the two mainboards. In this case, the two BBUs provide power to the mainboards, and the mainboards begin the write cache shutdown process, or the mainboard power backup process. This backup process lasts approximately 3-4 minutes. In other words, after approximately 3-4 minutes of BBU power supply, the host completes the backup process and shuts down. It is understandable that backing up the motherboard is an important means of ensuring data is not lost. Normally, if data is written directly to the hard drive, the data will not be lost. However, due to the instantaneous state of the PSU failure, some data cannot be written to the hard drive in time and is temporarily stored in the memory, that is, the cache. If this data is not moved to the hard drive, it will be lost after the power outage. Therefore, the first task in the backup power process is to ensure that the data in the cache is written to the hard drive. Once the write is completed, the BBU backup power process is completed. From the above BBU power supply process, it can be seen that the storage system needs to write the cached data to the hard drive and complete the shutdown. The entire BBU power supply time may last for 3-4 minutes. To ensure the normal operation of the storage system during this 3-4 minute period, the BBU needs to provide a short power supply to the key modules of the motherboard.
[0042] The target module for executing the storage system's power backup process is determined based on the power consumption of each component on the motherboard during the power backup process. The motherboard includes the CPU, fifth-generation double data rate (DDR5) memory, a peripheral component interconnect express (PCIe) switch expansion chip, a fan (FAN), an M.2 solid-state drive (SSD), other motherboard logic circuits / integrated circuits (ICs), and an Open Compute Project card (OCP card). Table 1 shows the power consumption of each component on the motherboard during the power backup process.
[0043] Table 1
[0044]
[0045] As shown in Table 1, based on the power consumption of various motherboard components after 5 seconds of power backup, we know that the components performing the storage system power backup process include the CPU, DDR5 memory, fans, M.2 SSDs, and other motherboard logic / ICs. Therefore, when the motherboard is performing power backup, the BBU can power these components to complete the entire backup process.
[0046] The CPUs in the motherboard include CPU0 and CPU1, and the DDR5 memory includes a first memory module and a second memory module. Because the BBU is split in this embodiment, the width of the motherboard is increased. This increases the number of memory sticks in the motherboard from 16 in the related art to 24, improving the specifications of the storage system and enhancing product competitiveness. The first memory module includes 12 memory sticks, and the second memory module includes 12 memory sticks.
[0047] For any motherboard, the components that execute the storage system's backup power process are divided into four target modules. The first target module includes CPU0 and the first memory module, the second target module includes CPU1 and the second memory module, the third target module includes the M.2 SSD and the Other Motherboard Logic / IC, and the fourth target module includes the fan. The first and second target modules consume the most power. Because the Other Motherboard Logic / IC in the first, second, and third target modules is in operation during the storage system's backup power process and generates heat, the fourth target module is required to operate at the lowest speed to provide an ambient temperature suitable for normal operation.
[0048] Step S202 : for any target module, based on the power consumption of the target module in executing the backup power process of the storage system, determine the number of battery cells required by the target module, so as to determine the number of battery cells required by each target module in all target modules.
[0049] The power consumption of the target module when executing the power backup process of the storage system is determined based on the power consumption value of the target module when executing the power backup process of the storage system. The number of battery cells required by the target module is determined based on the power consumption of the target module when executing the power backup process of the storage system, so as to split the initial battery backup unit into multiple target battery backup units.
[0050] Step S203 : based on the number of battery cells required by each target module in all target modules, split the initial battery backup unit of the storage system to obtain a target battery backup unit corresponding to each target module.
[0051] The initial battery backup unit is a BBU included in a controller node in the related art. The initial battery backup unit is split into multiple target battery backup units according to the number of battery cells required by each target module.
[0052] Exemplarily, the initial battery backup unit includes 12 battery cells. Based on the power consumption of the target module in executing the backup process of the storage system and the power that a single battery cell can provide, the number of battery cells required by the target module is determined, and the initial battery backup unit is split to obtain the target battery backup unit corresponding to each target module.
[0053] In step S204, the target battery backup unit is set at a preset distance from its corresponding target module, so that when the power supply unit fails, the target battery backup unit is used to power the target module corresponding to the target battery backup unit to complete the backup power process of the storage system.
[0054] The preset distance is set by the technicians, and the principle of power supply is adopted. By arranging the target battery backup unit at a preset distance from its corresponding target module, the target battery backup unit is located next to the target module it needs to provide power to.
[0055] In each mainboard, the target battery backup units include a first target battery backup unit, a second target battery backup unit, a third target battery backup unit, and a fourth target battery backup unit. The first target battery backup unit in the mainboard is used to power the first target module in the mainboard, that is, it corresponds to the first target module in the mainboard. Similarly, the second target battery backup unit in the mainboard corresponds to the second target module in the mainboard, the third target battery backup unit in the mainboard corresponds to the third target module in the mainboard, and the fourth target battery backup unit in the mainboard corresponds to the fourth target module in the mainboard.
[0056] Figure 4 This is a schematic diagram of the structure of a controller node provided in an embodiment of the present application. Figure 4 As shown, the controller node includes a first target module, a second target module, a third target module, a fourth target module, a first target battery backup unit, a second target battery backup unit, a third target battery backup unit, and a fourth target battery backup unit. The first target battery backup unit is disposed adjacent to the first target module and is used to supply power to the first target module. The second target battery backup unit is disposed adjacent to the second target module and is used to supply power to the second target module. The third target battery backup unit is disposed adjacent to the third target module and is used to supply power to the third target module. The fourth target battery backup unit is disposed adjacent to the fourth target module and is used to supply power to the fourth target module.
[0057] The battery backup unit setting method provided in the embodiment of the present application splits the initial battery backup unit into multiple target battery backup units and sets the target battery backup units near the target module. There is no need to set up a separate fan for the target battery backup unit to dissipate heat. Therefore, it can solve the technical problem that the BBU size is getting larger and larger, and a separate fan is required to dissipate heat for the BBU, which occupies a lot of chassis space, affects the configuration of the storage system, and reduces the performance of the storage system. It achieves the technical effect of reducing the space occupied by the BBU and increasing the width of the motherboard, so that the storage system can support higher-specification configurations such as more memory specifications and higher-specification CPUs, thereby improving the performance of the storage system.
[0058] In some optional implementations, the above step S203 includes:
[0059] Step a1: based on the number of battery cells required by each target module in all target modules, split the initial battery backup unit of the storage system to obtain a target battery cell module corresponding to each target module.
[0060] The initial battery backup unit includes battery cells, a charge and discharge control circuit, and a battery cell power detection circuit. According to the number of battery cells required by each target module, the initial battery backup unit is split to obtain target battery cell modules corresponding to each target module.
[0061] Step a2: obtaining a target charge and discharge control circuit and a target battery cell power detection circuit corresponding to the target battery cell module.
[0062] To generate multiple target battery backup units, after obtaining the target battery cell module corresponding to each target module, it is also necessary to obtain the target charge and discharge control circuit and the target battery cell power detection circuit corresponding to the target battery cell module.
[0063] Step a3: determining a target battery backup unit corresponding to each target module based on a target battery cell module corresponding to each target module, a target charge and discharge control circuit corresponding to the target battery cell module, and a target battery cell power detection circuit.
[0064] in, Figure 5 A schematic diagram of the structure of the target battery backup unit provided in the embodiment of the present application is shown in FIG. Figure 5As shown, the target battery backup unit includes a target battery cell module, a printed circuit board (PCB), and a connector. The target battery backup unit is plugged into the mainboard via the connector. Since the target battery backup unit is placed nearby, the PCB design also saves power planes. The PCB is equipped with a target charge and discharge control circuit and a target battery cell power detection circuit. The target charge and discharge control circuit is used to control the charging and discharging of the target battery backup unit, while the target battery cell power detection circuit is used to detect the power usage of the target battery backup unit, thereby controlling whether charging or discharging is required, optimizing the charging and discharging process, and reducing heat generated during charging.
[0065] In the related art, the BBU charges and discharges multiple battery cells as a whole, and power monitoring also monitors the power of multiple connected battery cells as a whole. When charging at maximum current, the BBU's overall power consumption can reach 70W, increasing the power consumption of the entire device. Furthermore, the battery cells themselves generate a lot of heat, requiring separate fans to dissipate heat. In the embodiments of this application, the BBU in the related art is split into multiple BBUs. Each BBU can independently monitor power consumption and charge and discharge, and can control charge and discharge based on actual power demand, reducing the impact of charging on the overall power consumption of the device. Furthermore, each BBU contains fewer battery cells, generating less heat during charging, allowing system fans to dissipate heat, eliminating the need for separate cooling.
[0066] For example, a controller node uses a dual-CPU design, with the majority of the load concentrated on CPU0 and the first memory module. CPU1 and the second memory module have lower loads and, consequently, lower power consumption. Therefore, the first and second target battery backup units do not need to be charged simultaneously. The third target battery backup unit powers the M.2 SSD and other motherboard logic / IC. Because the cached data used in each backup operation varies, power consumption also varies. The fourth target battery backup unit powers the fans. Due to low load during backup, the fans run at low speed, resulting in constant and low power consumption.
[0067] The battery backup unit setting method provided in the embodiment of the present application determines the target battery backup unit corresponding to each target module based on the target battery cell module corresponding to each target module, the target charge and discharge control circuit corresponding to the target battery cell module, and the target battery cell power detection circuit, so that each target battery backup unit can independently detect the battery cell power and control the charge and discharge, and perform charge and discharge control according to actual power demand, thereby reducing the impact on the power consumption of the entire machine during charging. In addition, the number of battery cells is small, and the charging heat generation is small, so the system fan can be used for heat dissipation without the need for separate heat dissipation.
[0068] The embodiment of the present application provides a power backup method, and the specific application environment architecture or specific hardware architecture on which the execution of the power backup method depends is described here. Figure 6 As shown in FIG, it is a structural diagram of the backup power system based on the embodiment of the present application, such as Figure 6 As shown, the backup power system includes a first controller node and a second controller node. The structures of the first controller node and the second controller node are as shown in FIG. Figure 4 For details, see Figure 4 The description of the illustrated embodiment will not be repeated here.
[0069] Figure 7 A flowchart of the power backup method provided in the embodiment of the present application is shown in FIG. Figure 7 As shown, the process includes:
[0070] Step S701 : When a power supply unit fails, a target battery backup unit corresponding to a target module is used to supply power to the target module.
[0071] The power supply unit failure includes a situation where both the power supply units in the first controller node and the second controller node fail and a situation where the mains power is off.
[0072] Step S702: based on the target module, the cached data in the memory is flushed to the hard disk, the ongoing task is suspended and new tasks are stopped from being received, thereby completing the power backup process of the storage system.
[0073] Step S703: After completing the power backup process of the storage system, shut down the storage system.
[0074] The target battery backup unit is configured based on any of the above battery backup unit configuration methods, ie, is configured next to the corresponding target module to supply power to the corresponding target module in the event of a power supply unit failure.
[0075] The power backup method provided in the embodiment of the present application, by splitting the initial battery backup unit into multiple target battery backup units and setting the target battery backup units near the target module, does not need to set up a separate fan for the target battery backup unit to dissipate heat. Therefore, it can solve the technical problem that the BBU size is getting larger and larger, and a separate fan is required to dissipate heat for the BBU, which occupies a lot of chassis space, affects the configuration of the storage system, and reduces the performance of the storage system. It achieves the purpose of reducing the space occupied by the BBU, increasing the width of the motherboard, and increasing the locatability of the battery backup unit problem, so that the storage system can support higher-specification configurations such as more memory specifications and higher-specification CPUs, thereby improving the performance of the storage system.
[0076] By using the target battery backup unit to power the target module in the event of a power supply unit failure, the storage system can complete the backup power process, achieving precise control of the backup power. The target battery backup unit's charge and discharge are distributed on demand, increasing the reliability of the backup power, reducing the overall power consumption and heat generation of the backup power, and making full use of the chassis space, which can improve product specifications and increase product competitiveness.
[0077] In some optional implementations, the power backup method further includes:
[0078] Step b1: in the process of using the target battery backup unit corresponding to the target module to power the target module, the target battery cell power detection circuit in the target battery backup unit monitors the power information of the target battery backup unit in real time.
[0079] Step b2: When the power information of the first target battery backup unit corresponding to the first target module indicates that the power of the first target battery backup unit is lower than the preset safety power threshold, the second target battery backup unit corresponding to the second target module is used to power the first target module and the second target module.
[0080] The preset safety power threshold is set by the technician and is not specifically limited here. In related technologies, the BBU is designed one-to-one with the motherboard. If the BBU fails and cannot provide backup power, the storage system will report a fatal error, resulting in the inability to start the business normally, which is the highest level of failure. This application can reduce the occurrence of this failure by splitting the initial battery backup unit into multiple target battery backup units, and reduce the failure level without affecting the normal operation of the storage business.
[0081] Specifically, the embodiment of the present application splits the initial battery backup unit of each mainboard into four target battery backup units, which can realize a design mechanism of mutual redundancy in pairs. Among them, for any mainboard, the first target battery backup unit in the mainboard is redundant with the second target battery backup unit, and the third target battery backup unit is redundant with the fourth target battery backup unit.
[0082] The first and second BBUs can power CPU0, CPU1, and 24 memory modules. When the first and second BBUs are operating normally, the first BBU powers CPU0 and the first memory module, while the second BBU powers CPU1 and the second memory module. The first and second BBUs communicate via an Inter-Integrated Circuit (I2C) link. They can continuously monitor each other's power status via the I2C link, obtaining real-time information about each other's power level and operating status. If insufficient power or abnormal operating status is detected, a redundant path is activated, allowing the functioning BBU to power CPU0, CPU1, and the 24 memory modules. Insufficient power means power below a preset safety threshold, and abnormal operating status means abnormal operation.
[0083] It can be understood that when the power information of the second target battery backup unit corresponding to the second target module indicates that the power of the second target battery backup unit is lower than the preset safety power threshold, the first target battery backup unit corresponding to the first target module is used to power the first target module and the second target module.
[0084] Step b3: When the power information of the third target battery backup unit corresponding to the third target module indicates that the power of the third target battery backup unit is lower than the preset safety power threshold, the fourth target battery backup unit corresponding to the fourth target module is used to power the third target module and the fourth target module.
[0085] The target modules include a first target module, a second target module, a third target module and a fourth target module.
[0086] The third target battery backup unit and the fourth target battery backup unit can supply power to the third target module and the fourth target module. When the third target battery backup unit and the fourth target battery backup unit are operating normally, the third target battery backup unit supplies power to the third target module, and the fourth target battery backup unit supplies power to the fourth target module. The third target battery backup unit and the fourth target battery backup unit communicate with each other via an I2C link. The third target battery backup unit and the fourth target battery backup unit can continuously detect each other's power supply status via the I2C link, that is, obtain each other's power information and operating status information in real time. When it is detected that the other party's power is insufficient or the operating status is abnormal, the redundant path is opened, that is, the normal target battery backup unit supplies power to the third target module and the fourth target module.
[0087] It can be understood that when the power information of the fourth target battery backup unit corresponding to the fourth target module indicates that the power of the fourth target battery backup unit is lower than the preset safety power threshold, the third target battery backup unit corresponding to the third target module is used to power the third target module and the fourth target module.
[0088] The power backup method provided in the embodiment of the present application further improves the reliability of the power backup through a design mechanism of mutual redundancy in the combination of two target battery backup units, thereby avoiding the situation in the related art where the service is stopped due to the failure of the initial battery backup unit.
[0089] In some optional implementations, the power backup method further includes:
[0090] Step c1 : in the process of using the target battery backup unit corresponding to the target module to power the target module, monitoring the operating status information of the target battery backup unit in real time.
[0091] Step c2: If the operating status information of the first target battery backup unit corresponding to the first target module indicates that the first target battery backup unit operates abnormally, the second target battery backup unit corresponding to the second target module is used to power the first target module and the second target module.
[0092] It is understandable that if the operating status information of the second target battery backup unit corresponding to the second target module indicates that the second target battery backup unit operates abnormally, the first target battery backup unit corresponding to the first target module is used to power the first target module and the second target module.
[0093] Step c3: If the operating status information of the third target battery backup unit corresponding to the third target module indicates that the third target battery backup unit operates abnormally, the fourth target battery backup unit corresponding to the fourth target module is used to power the third target module and the fourth target module.
[0094] It is understandable that if the operating status information of the fourth target battery backup unit corresponding to the fourth target module indicates that the fourth target battery backup unit operates abnormally, the third target battery backup unit corresponding to the third target module is used to power the third target module and the fourth target module.
[0095] In some optional implementations, the power backup method further includes:
[0096] Step d1: During the process of using the target battery backup unit corresponding to the target module to power the target module, if the power level of the target battery backup unit is lower than a preset safety power threshold or the target battery backup unit operates abnormally, an alarm is issued to prompt the user to repair or replace the target battery backup unit.
[0097] It is understood that if the power level of a target BBU falls below a preset safety threshold or the target BBU is operating abnormally, even if the backup process is completed using a redundant target BBU of the target BBU, due to high power consumption, the redundant target BBU cannot meet the backup requirements for two consecutive times. Therefore, an alarm needs to be reported. This alarm can be a prompt alarm to prompt the user to repair or replace the target BBU. This alarm does not affect storage services and does not require immediate repair or replacement. Repair can be carried out according to business workload.
[0098] The power backup method provided in the embodiment of the present application monitors the power level and operating status of the target battery backup unit in real time during the process of powering the target module. Once it is detected that the power level is lower than the preset safety threshold or the device is operating abnormally, an alarm is immediately triggered to ensure that users can discover potential problems in a timely manner and improve system reliability.
[0099] In some optional implementations, the power backup method further includes:
[0100] Step e1 : when the power supply unit is not faulty, determining the power level of the target battery backup unit based on the target battery cell power level detection circuit in the target battery backup unit.
[0101] Wherein, if the power supply unit fails, the power supply unit is used to supply power to the mainboard, and the target battery backup unit is in an idle state.
[0102] Step e2: When the power level of the target battery backup unit is lower than the pre-equipment power level threshold, the target battery backup unit is charged by using the power supply unit based on the target charge and discharge control circuit in the target battery backup unit.
[0103] The pre-equipment power threshold may be the power required to complete a backup power process, or may be more, and is set by technical personnel, and is not specifically limited here.
[0104] The backup power method provided in the embodiment of the present application automatically charges the target battery backup unit with insufficient power when the power supply unit is operating normally, ensuring that the target battery backup unit is always in an available state, thereby enhancing the stability and reliability of the entire power supply system, especially providing a reliable backup power supply in the event of a sudden power outage.
[0105] In some optional implementations, the above step e2 includes:
[0106] In step f1 , when the voltage of the target battery backup unit is lower than a preset voltage value, the target battery backup unit is charged by using the power supply unit based on the target charge and discharge control circuit in the target battery backup unit and a first preset current value.
[0107] The preset voltage value may be 90% of the rated voltage of the target battery backup unit. The first preset current value may be 1 times the current of the battery cell capacity.
[0108] Step f2: When the voltage of the target battery backup unit reaches a preset voltage value and the charging current value of the target battery backup unit decreases to a second preset current value, determining that the charging voltage of the target battery backup unit is the rated voltage of the target battery backup unit, and charging the target battery backup unit using the power supply unit based on the target charge and discharge control circuit and the charging voltage in the target battery backup unit until charging of the target battery backup unit is completed, wherein the second preset current value is less than the first preset current value.
[0109] The second preset current value can be 10% of the first preset current value. It should be noted that when the voltage of the target BBU approaches 90% of its rated voltage, the internal polarization effect of the target BBU increases (the resistance to ion migration increases). If constant current charging is continued, the voltage will rise sharply and exceed the safety threshold. To avoid overcharging, the target BBU begins to reduce the charging current. This current decay is a natural process that passively responds to changes in the battery's internal resistance.
[0110] The backup power method provided in the embodiment of the present application can effectively improve charging efficiency and protect the battery, prevent overcharging, and extend the cycle life of the target battery backup unit by utilizing a constant current-constant voltage staged charging strategy.
[0111] In some optional implementations, the above step e2 includes:
[0112] Step g1 : when the load of the storage system is greater than a preset load threshold, charging the target battery backup unit using the power supply unit based on the target charge and discharge control circuit in the target battery backup unit and a third preset current value.
[0113] The preset load threshold is set by a technician and is not specifically limited here. The preset load threshold may be 80% of the maximum load of the storage system.
[0114] Step g2: When the load of the storage system is not greater than a preset load threshold, the target battery backup unit is charged using the power supply unit based on the target charge and discharge control circuit in the target battery backup unit and a first preset current value; wherein the first preset current value is greater than a third preset current value.
[0115] The power backup method provided in this embodiment uses different charging currents based on the storage system's load status, dynamically adjusting the target battery backup unit charging strategy. This allows for the rational allocation of power resources without impacting system performance. When the system load is high, a lower charging current is used to charge the battery backup unit, avoiding additional pressure on the main power system. When the system load is low, a higher current is used for fast charging, improving battery recovery efficiency.
[0116] In some optional implementations, the power backup method further includes:
[0117] Step h1: During the charging process of the target battery backup unit, the temperature of the target battery backup unit is monitored in real time.
[0118] In step h2, when the temperature of the target battery backup unit is greater than the first temperature threshold, the fan of the storage system is controlled to run at a target speed. The target speed is set by a technician and is not specifically limited here.
[0119] Step h3: Stop charging the target battery backup unit when the temperature of the target battery backup unit is greater than a second temperature threshold, where the second temperature threshold is greater than the first temperature threshold.
[0120] The backup power method provided in this embodiment monitors the temperature of the target battery backup unit in real time during the charging process, ensuring that the system can promptly detect anomalies. When the temperature exceeds a first temperature threshold, a fan is activated for active cooling; if the temperature continues to rise to a second temperature threshold, charging is immediately stopped. This layered temperature control strategy can effectively prevent battery performance degradation, damage, and even safety accidents caused by overheating, significantly improving the safety of system operation.
[0121] In some optional implementations, the power backup method further includes:
[0122] Step i1: in the process of using the target battery backup unit corresponding to the target module to power the target module, the temperature of the target battery backup unit is monitored in real time.
[0123] Step i2: When the temperature of the target battery backup unit is greater than a first temperature threshold, control the fan of the storage system to run at a target speed.
[0124] Step i3: When the temperature of the target battery backup unit is greater than the second temperature threshold, reducing the discharge current of the target battery backup unit to a third preset current value.
[0125] Step i4: When the temperature of the target battery backup unit is greater than a third temperature threshold, controlling the target battery backup unit to stop discharging, where the third temperature threshold is greater than the second temperature threshold.
[0126] The power backup method provided in the embodiments of the present application monitors the temperature of the target battery backup unit in real time while it is powering the target module. When the temperature exceeds a first temperature threshold, the fan is activated for heat dissipation control. When the temperature further rises to a second temperature threshold, the discharge current is reduced. When the temperature exceeds a third temperature threshold, the discharge current is stopped. This multi-level temperature response mechanism effectively prevents battery performance degradation or safety risks caused by overheating, thereby significantly improving the safety and stability of the power supply process.
[0127] In some optional implementations, the power backup method further includes:
[0128] Step j1 : collecting the voltage, charge and discharge current, and temperature of the target battery backup unit in real time based on the target battery cell power detection circuit in the target battery backup unit.
[0129] Step j2 predicts the remaining number of cycles of the target BBU based on the collected voltage, charge / discharge current, and temperature of the target BBU. For example, the remaining number of cycles of the target BBU can be predicted using a Kalman filter algorithm. Cycle count generally refers to the number of complete cycles in which a battery goes from full charge, discharges to a certain level (e.g., 0%), and then recharges to full charge.
[0130] Step j3: If the number of remaining cycles of the target battery backup unit is lower than a remaining cycle threshold, an alarm is issued. The remaining cycle threshold is set by a technician and is not specifically limited here. For example, the remaining cycle threshold may be 100 cycles.
[0131] When the remaining number of cycles of the target battery backup unit is lower than the remaining number of cycles threshold, an alarm is issued to prompt the user to replace the target battery backup unit.
[0132] The power backup method provided in the embodiment of the present application triggers an alarm mechanism when the number of remaining cycles is lower than a set threshold, prompting users or operation and maintenance personnel to replace the battery backup unit in advance, effectively avoiding the risk of sudden power interruption due to battery aging, and significantly improving the stability and reliability of the system.
[0133] In some optional implementations, the power backup method further includes:
[0134] Step k1: If the power information of the first target battery backup unit corresponding to the first target module indicates that the power of the first target battery backup unit is lower than the preset safety power threshold, and the power information of the second target battery backup unit corresponding to the second target module indicates that the power of the second target battery backup unit is lower than the preset safety power threshold, then stop using the first target battery backup unit and the second target battery backup unit to power the first target module and the second target module, and issue an alarm by continuously beeping the buzzer and keeping the alarm light on in red.
[0135] If the operating status information of the first target battery backup unit corresponding to the first target module indicates that the first target battery backup unit is operating abnormally, and the operating status information of the second target battery backup unit corresponding to the second target module indicates that the second target battery backup unit is operating abnormally, then the first target battery backup unit and the second target battery backup unit are stopped from being used to power the first target module and the second target module, and an alarm is issued by means of a continuous long buzzer sound and a steady red alarm light.
[0136] Step k2: If the power information of the third target battery backup unit corresponding to the third target module indicates that the power of the third target battery backup unit is lower than the preset safety power threshold, and the power information of the fourth target battery backup unit corresponding to the fourth target module indicates that the power of the fourth target battery backup unit is lower than the preset safety power threshold, then stop using the third target battery backup unit and the fourth target battery backup unit to power the third target module and the fourth target module, and issue an alarm by continuously beeping the buzzer and keeping the alarm light on in red.
[0137] If the operating status information of the third target battery backup unit corresponding to the third target module indicates that the third target battery backup unit is operating abnormally, and the operating status information of the fourth target battery backup unit corresponding to the fourth target module indicates that the fourth target battery backup unit is operating abnormally, the third target battery backup unit and the fourth target battery backup unit are stopped from being used to supply power to the third target module and the fourth target module, and an alarm is issued by means of a continuous long buzzer sound and a steady red alarm light.
[0138] The power backup method provided in the embodiment of the present application prevents the system from operating normally due to insufficient power or equipment failure by promptly stopping power supply and triggering an alarm (the buzzer beeps continuously and the alarm light stays red) when the battery backup units corresponding to the first target module and the second target module are both low on power or operating abnormally. Similarly, when problems occur in the battery backup units corresponding to the third target module and the fourth target module, power supply can be stopped and an alarm can be issued in a timely manner to ensure the safe operation of the system. The combination of a buzzer and an alarm light provides intuitive visual and auditory prompts, allowing users to quickly detect abnormal situations and take appropriate measures, such as replacing batteries or performing repairs.
[0139] It is understandable that the above-mentioned battery backup unit setting method and power backup method are also applicable to other scenarios requiring power backup.
[0140] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.
[0141] The embodiment of the present application also provides an electronic device, such as Figure 8 As shown, it includes a processor 801 and a memory 802, in which a computer program is stored. The processor 801 is configured to run the computer program to execute the steps in any of the above-mentioned battery backup unit setting method embodiments or the steps in any of the above-mentioned backup power method embodiments.
[0142] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, wherein the computer program is configured to execute the steps of any of the above-mentioned battery backup unit setting method embodiments or the steps of any of the above-mentioned backup power method embodiments when running.
[0143] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0144] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of any of the above-mentioned battery backup unit setting method embodiments or any of the above-mentioned power backup method embodiments.
[0145] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, implementing the steps of any of the above-mentioned battery backup unit setting method embodiments or any of the above-mentioned backup power method embodiments.
[0146] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0147] The above is a detailed introduction to a battery backup unit setting method, a backup power method, an electronic device, and a storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A power backup method, characterized in that: include: In the event of a failure of the power supply unit, the target module is powered by the target battery backup unit corresponding to the target module; Based on the target module, the cache data in the memory is flushed to the hard disk, the ongoing task is suspended and the acceptance of new tasks is stopped, and the power backup process of the storage system is completed; After completing the power backup process of the storage system, shutting down the storage system; The target battery backup unit is set by the following steps: determining a target module for executing a backup power process of the storage system; for any target module, determining the number of battery cells required for the target module based on the power consumption of the target module in executing the backup power process of the storage system, so as to determine the number of battery cells required for each target module among all target modules; splitting the initial battery backup unit of the storage system based on the number of battery cells required for each target module among all target modules to obtain a target battery cell module corresponding to each target module; obtaining a target charge and discharge control circuit and a target battery cell power detection circuit corresponding to the target battery cell module; determining a target battery backup unit corresponding to each target module based on the target battery cell module corresponding to each target module, the target charge and discharge control circuit and the target battery cell power detection circuit corresponding to the target battery cell module; setting the target battery backup unit at a preset distance from the corresponding target module, so that in the event of a failure of a power supply unit, the target battery backup unit is used to power the target module corresponding to the target battery backup unit to complete the backup power process of the storage system; The method further comprises: In the process of using the target battery backup unit corresponding to the target module to power the target module, the power information of the target battery backup unit is monitored in real time based on the target battery cell power detection circuit in the target battery backup unit; When the power information of the first target battery backup unit corresponding to the first target module indicates that the power of the first target battery backup unit is lower than a preset safety power threshold, using the second target battery backup unit corresponding to the second target module to power the first target module and the second target module; When the power information of the third target battery backup unit corresponding to the third target module indicates that the power of the third target battery backup unit is lower than a preset safety power threshold, the fourth target battery backup unit corresponding to the fourth target module is used to power the third target module and the fourth target module; The target modules include a first target module, a second target module, a third target module and a fourth target module.
2. The method according to claim 1, characterized in that The method further comprises: In the process of using the target battery backup unit corresponding to the target module to power the target module, real-time monitoring of the operating status information of the target battery backup unit; If the operating status information of the first target battery backup unit corresponding to the first target module indicates that the first target battery backup unit operates abnormally, using the second target battery backup unit corresponding to the second target module to supply power to the first target module and the second target module; If the operating status information of the third target battery backup unit corresponding to the third target module indicates that the third target battery backup unit operates abnormally, using the fourth target battery backup unit corresponding to the fourth target module to power the third target module and the fourth target module; The target modules include a first target module, a second target module, a third target module and a fourth target module.
3. The method according to claim 1, characterized in that The method further comprises: In the process of using the target battery backup unit corresponding to the target module to power the target module, if the power level of the target battery backup unit is lower than the preset safety power threshold or the target battery backup unit operates abnormally, an alarm will be issued to prompt the user to repair or replace the target battery backup unit.
4. The method according to claim 1, wherein The method further comprises: In the case that the power supply unit does not fail, determining the power level of the target battery backup unit based on a target battery cell power level detection circuit in the target battery backup unit; When the power level of the target battery backup unit is lower than the pre-equipment power level threshold, the target battery backup unit is charged by the power supply unit based on the target charge and discharge control circuit in the target battery backup unit.
5. The method according to claim 4, characterized in that The method of charging the target battery backup unit by using the power supply unit based on the target charge and discharge control circuit in the target battery backup unit includes: When the voltage of the target battery backup unit is lower than a preset voltage value, charging the target battery backup unit using the power supply unit based on a target charge and discharge control circuit in the target battery backup unit and a first preset current value; When the voltage of the target battery backup unit reaches a preset voltage value and the charging current value of the target battery backup unit decreases to a second preset current value, the charging voltage of the target battery backup unit is determined to be the rated voltage of the target battery backup unit, and the target battery backup unit is charged using the power supply unit based on the target charge and discharge control circuit in the target battery backup unit and the charging voltage until charging of the target battery backup unit is completed, wherein the second preset current value is less than the first preset current value.
6. The method according to claim 4, characterized in that The method of charging the target battery backup unit by using the power supply unit based on the target charge and discharge control circuit in the target battery backup unit includes: When the load of the storage system is greater than a preset load threshold, using the power supply unit to charge the target battery backup unit based on the target charge and discharge control circuit in the target battery backup unit and a third preset current value; When the load of the storage system is not greater than a preset load threshold, the power supply unit is used to charge the target battery backup unit based on the target charge and discharge control circuit in the target battery backup unit and a first preset current value; wherein the first preset current value is greater than the third preset current value.
7. The method according to claim 4, characterized in that The method further comprises: During the charging process of the target battery backup unit, monitoring the temperature of the target battery backup unit in real time; When the temperature of the target battery backup unit is greater than a first temperature threshold, controlling a fan of the storage system to run at a target speed; When the temperature of the target battery backup unit is greater than a second temperature threshold, charging of the target battery backup unit is stopped, and the second temperature threshold is greater than the first temperature threshold.
8. The method according to claim 1, characterized in that The method further comprises: In the process of using the target battery backup unit corresponding to the target module to power the target module, monitoring the temperature of the target battery backup unit in real time; When the temperature of the target battery backup unit is greater than a first temperature threshold, controlling a fan of the storage system to run at a target speed; When the temperature of the target battery backup unit is greater than a second temperature threshold, reducing the discharge current of the target battery backup unit to a third preset current value; When the temperature of the target battery backup unit is greater than a third temperature threshold, the target battery backup unit is controlled to stop discharging, and the third temperature threshold is greater than the second temperature threshold.
9. The method according to claim 1, characterized in that The method further comprises: Based on the target battery cell power detection circuit in the target battery backup unit, the voltage, charge and discharge current and temperature of the target battery backup unit are collected in real time; Predicting the remaining number of cycles of the target battery backup unit based on the collected voltage, charge and discharge current, and temperature of the target battery backup unit; When the remaining number of cycles of the target battery backup unit is lower than the remaining number of cycles threshold, an alarm is issued.
10. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the power backup method according to any one of claims 1 to 9 when executing the computer program.
11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the power backup method according to any one of claims 1 to 9 are implemented.
12. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the power backup method according to any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Backup power supply management method and device, server, equipment and storage medium
CN115981445A