CN115833354A - Storage server power-down protection device and method - Google Patents
Storage server power-down protection device and method Download PDFInfo
- Publication number
- CN115833354A CN115833354A CN202211580284.7A CN202211580284A CN115833354A CN 115833354 A CN115833354 A CN 115833354A CN 202211580284 A CN202211580284 A CN 202211580284A CN 115833354 A CN115833354 A CN 115833354A
- Authority
- CN
- China
- Prior art keywords
- module
- power
- power supply
- battery module
- battery
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- HEZMWWAKWCSUCB-PHDIDXHHSA-N (3R,4R)-3,4-dihydroxycyclohexa-1,5-diene-1-carboxylic acid Chemical compound O[C@@H]1C=CC(C(O)=O)=C[C@H]1O HEZMWWAKWCSUCB-PHDIDXHHSA-N 0.000 claims abstract description 6
- 238000001514 detection method Methods 0.000 claims description 35
- 230000002159 abnormal effect Effects 0.000 claims description 6
- 238000007599 discharging Methods 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 abstract description 4
- 238000011084 recovery Methods 0.000 abstract description 3
- 230000008569 process Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The application discloses a power-down protection device and a power-down protection method for a storage server, wherein if power-down of a power supply module is detected, a signal is sent to a server controller module for data dropping, a battery module automatically starts to supply power at the same time, the server controller module continues to operate by depending on the power supply provided by the battery module, stops data receiving service, and stores data in a cache into a nonvolatile storage module; if the voltage of the battery module is detected to be too low, the circuit of the battery module is disconnected so as to prevent the too low voltage from damaging the power utilization module; and if the power supply module is detected to recover power supply, the power supply module is connected with the battery module to charge the battery module. The circuit is simple and reliable; the battery module has large capacity, can maintain data to be directly stored in the nonvolatile storage module, does not need data recovery, has good universality, does not need a DCDC power supply conversion circuit, and can be adapted to a general storage server.
Description
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a storage server power-down protection device and method.
Background
In a modern computer system architecture, a volatile memory is generally adopted as a data cache for acceleration, and in the case of abnormal power failure, data in a cache cannot be stored in a nonvolatile memory before the cache, so that data loss is easily caused, and the safety and consistency of the data cannot be ensured. Currently, there are three mainstream power failure protection methods: the UPS (uninterrupted power supply) is mainly applied to a storage center, and when the input of an external power supply is normal, the UPS charges the UPS when the electric quantity is not enough and supplies power to electric equipment normally. When the external power supply is abnormally powered off, the UPS converts the electric energy in the battery into alternating current through inversion to maintain the continuous operation of the electric equipment, and the storage server stores the cache data into the hard disk and closes the service, so that the data safety is ensured. The other is a BBU (Battery Backup Unit) standby power Unit which is used in a single machine and can provide electric energy for the system to store and cache data, or ensure that a server part circuit continuously operates for a period of time, generally short time, usually not more than tens of seconds, and the system stores the data in the period of time until the external power supply is recovered. And a nonvolatile memory NVDIMM is used, the nonvolatile memory has the characteristic of no loss of power-down data, and when the system is powered on again, the controller can recover the data, so that the cache data is not lost. In the above 3 modes, the UPS has a large occupied space and a high cost due to the inverter, the rectifier circuit, and the like. The BBU only supplies power to partial circuits, so that the size is relatively small, the protection time is generally short, a power supply control circuit is complex, and the technical implementation difficulty is high. The NVDIMM is a novel storage device, the function of the NVDIMM needs to be fully played, the design of an original storage server memory circuit needs to be changed, software needs to be adapted to a certain degree, the realization difficulty is high, and the cost is high.
CN102929805A discloses a power-down protection method for a memory system cache, which uses a power module similar to a BBU form to supply power only to components such as a memory and a flash card, but needs to recover data after being powered on again, needs to adapt software and hardware to a certain extent, needs to use a DCDC circuit to convert the power, and has a relatively complex circuit. CN104021093A discloses a power-fail protection method for storage equipment based on NVDIMM, the invention uses NVDIMM storage device to protect cache data, when power failure occurs, the NVDIMM completes data storage, and data recovery is performed when power supply is recovered.
Disclosure of Invention
The invention aims to solve the problems of more complex circuit, larger volume, lower reliability and higher cost in the prior art.
In order to realize the aim of the invention, the invention discloses a power failure protection device of a storage server, which comprises a power supply module, a power supply detection module, a battery module, a server controller module and a nonvolatile storage module, wherein the power supply detection module is used for detecting the power supply of the storage server; the power supply module is connected with the nonvolatile memory module and the server controller module in parallel through power lines; the battery module is directly connected in parallel with the power supply module after passing through the electronic switch; the server controller module and the nonvolatile memory module transmit and store data through a signal line, the power supply detection module acquires working states of the power supply module and the battery module through the signal line, and the power supply detection module sends a tray-falling instruction to the server controller module through the signal line;
the power supply module is used for supplying power to the server controller module and the nonvolatile storage module; the power supply detection module is responsible for detecting the state of the battery module; if the power failure of the power supply module is detected, a signal is sent to the server controller module for data destaging, meanwhile, the battery module automatically starts to supply power, the server controller module continues to operate by depending on the power supply provided by the battery module, the data receiving service is stopped, and the data in the cache is stored in the nonvolatile storage module; if the voltage of the battery module is detected to be too low, the circuit of the battery module is disconnected so as to prevent the too low voltage from damaging the power utilization module; and if the power supply module is detected to recover power supply, the power supply module is connected with the battery module to charge the battery module.
Furthermore, the battery module is directly connected with the power module in parallel without the DCDC power conversion; the battery module is always connected with the power supply of the power supply module in parallel except that the battery module automatically disconnects a charging and discharging port when the voltage is too low and disconnects after data falling is completed.
Further, the voltage difference between the lowest working voltage of the server controller module and the nonvolatile storage module and the rated output voltage of the power supply module is the discharge voltage of the battery module; the electric quantity released when the battery module discharges from the rated voltage to the lowest voltage at which other modules of the device can work normally can ensure that the server controller module falls all cache data into the nonvolatile storage module.
Furthermore, the battery module is always communicated with the power supply of the power supply module in the operation process of the device, and when the battery voltage of the battery module is lower than that of the power supply module, the battery module is automatically charged and always keeps in a full-charge state.
In order to realize the purpose of the invention, the invention also discloses a power failure protection method for the storage server, which comprises the following steps:
step 1, when an external power supply module is abnormally powered down, a battery module connected with the power supply module in parallel automatically discharges to maintain normal operation of a server controller module and a flash memory of a nonvolatile storage module;
step 2, when the power supply detection module detects abnormal power failure of the power supply module, a power failure signal is sent to the server controller module, the server controller module stops data receiving service after receiving the signal, data fall into a disk until the data fall is completed, and then shutdown is started;
step 3, after the shutdown is completed, the server controller module feeds back a data tray falling completion signal to the power supply detection module, and the power supply detection module cuts off the power supply output of the battery module after receiving the signal, so that the battery loss is reduced;
and 4, when the power supply detection module does not receive the data tray falling completion signal and detects that the voltage of the battery module is lower than a preset value, automatically cutting off the power supply output of the battery module to prevent low voltage from damaging other power utilization modules.
Furthermore, the power detection circuit is powered by the power module and the battery module at the same time, and one of the power module and the battery module can normally provide power to ensure that the power detection circuit works; when the power detection module detects that the power module is powered on again, the power supply of the battery module is automatically switched on, so that the battery module can be charged on one hand, and the battery module enters a normal working mode on the other hand, and the power module is prevented from being powered off again.
Compared with the prior art, the invention has the remarkable improvements that: 1) When the storage server is abnormally powered down, the power supply of the battery module can seamlessly release electric energy, the server controller module is maintained to continuously operate, cache data are written into the persistent storage module, the integrity and consistency of the data are ensured, the charging and discharging characteristics of the battery and the working voltage range difference of each module are utilized in the power supply switching process, a detection circuit and a DCDC power supply conversion module are not needed, and the circuit is simple and reliable; 2) The battery module has larger capacity, can maintain data to be directly stored in the nonvolatile storage module, does not need data recovery, has good universality and does not need a DCDC power supply conversion circuit; 3) The universal storage server can be adapted by using the battery module for power supply.
To more clearly illustrate the functional characteristics and structural parameters of the present invention, the following description is given with reference to the accompanying drawings and the detailed description.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention and do not constitute a limitation of the invention. In the drawings:
FIG. 1 is a schematic diagram of a system architecture of a power down protection apparatus for a storage server;
FIG. 2 is a schematic diagram of a working flow of a method for power-down protection of a storage server;
fig. 3 is a schematic diagram of a working flow of a power-down protection method for a storage server.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments; all other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, the abnormal power failure protection device for a storage server of the present invention includes a power module, a power detection module, a battery module, a server controller module, and a nonvolatile storage module. Wherein: the power module supplies power to all parts of the system, comprises a server controller module and a nonvolatile storage module, and charges the server controller module and the nonvolatile storage module under the condition that the battery module is not full of electricity.
The power detection module is responsible for detecting the states of the power module and the battery module, and comprises whether the power module is normal or not, if a power failure event is detected, a signal is sent to the server controller module to perform data dropping, and the battery module circuit is disconnected when the voltage of the battery module is too low, so that the power module is prevented from being damaged by too low voltage, and when the power module is detected to restore the power supply, the battery module is automatically switched on to be charged.
The battery module is responsible for providing the power for the system when power module falls down, and the battery in the battery module is simply connected in series and in parallel, and is directly connected in parallel with the power module after passing through the electronic switch.
And the server controller module is a protected object, and when the power-down signal of the power supply module sent by the power supply detection module is received, the server controller module continues to operate by depending on the power supply provided by the battery module, stops data receiving service and stores the data in the cache into the nonvolatile storage module.
The nonvolatile storage module is used for storing data, and the server controller module stores the cache data into the nonvolatile storage module when a power failure event occurs.
As shown in fig. 2, in the working process after abnormal power failure occurs, the power detection module continuously detects the working state of the power module, and once a power failure event is detected, the power module enters a power failure protection mode:
when the external power supply module is abnormally powered down, the battery module connected with the power supply module in parallel automatically discharges to maintain the normal operation of the server controller module and the nonvolatile flash memory.
When the power supply detection module detects abnormal power failure of the power supply module, a power failure signal is sent to the server controller module, the server controller module stops data receiving service after receiving the signal, data fall into a disk until the completion, and then shutdown is started.
After the shutdown is finished, the server controller module feeds back a data tray falling completion signal to the power supply detection module, and the power supply detection module cuts off the power supply output of the battery module after receiving the signal, so that the battery loss is reduced;
when the power supply detection module does not receive the data tray falling completion signal and detects that the voltage of the battery module is lower than a preset value, the power supply output of the battery module is automatically cut off, and other power utilization modules are prevented from being damaged by low voltage;
the workflow after the power-up occurs as shown in fig. 3 is:
the power supply detection circuit is powered by the power supply module and the battery module at the same time, and one of the power supply module and the battery module can normally supply power to ensure that the power supply detection circuit works; when the power detection module detects that the power module is electrified again, the power supply of the battery module is automatically switched on, so that the battery module can be charged on one hand, and the battery module enters a normal working mode on the other hand, and the power module is prevented from being powered down again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (6)
1. A power failure protection device for a storage server is characterized by comprising a power supply module, a power supply detection module, a battery module, a server controller module and a nonvolatile storage module; the power supply module is connected with the nonvolatile memory module and the server controller module in parallel through power lines; the battery module is directly connected in parallel with the power supply module after passing through the electronic switch; the server controller module and the nonvolatile memory module transmit and store data through a signal line, the power supply detection module acquires working states of the power supply module and the battery module through the signal line, and the power supply detection module sends a tray-falling instruction to the server controller module through the signal line;
the power supply module is used for supplying power to the server controller module and the nonvolatile storage module; the power supply detection module is used for detecting the state of the battery module; if the power failure of the power supply module is detected, a signal is sent to the server controller module for data destaging, meanwhile, the battery module automatically starts to supply power, the server controller module continues to operate by depending on the power supply provided by the battery module, the data receiving service is stopped, and the data in the cache is stored in the nonvolatile storage module; if the voltage of the battery module is detected to be too low, the circuit of the battery module is disconnected so as to prevent the too low voltage from damaging the power utilization module; and if the power supply module is detected to recover power supply, the power supply module is connected with the battery module to charge the battery module.
2. The storage server power-down protection device according to claim 1, wherein the battery module is directly connected in parallel with the power module without being converted by a DCDC power supply; the battery module is always connected with the power supply of the power supply module in parallel except that the battery module automatically disconnects a charging and discharging port when the voltage is too low and disconnects after data falling is completed.
3. The storage server power-fail protection device of claim 1, wherein the voltage difference between the lowest operating voltage of the server controller module and the nonvolatile storage module and the rated output voltage of the power module is the discharge voltage of the battery module; the electric quantity released when the battery module is discharged from the rated voltage to the lowest voltage at which other modules of the device can work normally can ensure that the server controller module falls all the cache data into the nonvolatile storage module.
4. The power-fail safeguard device for the storage server of claim 1, wherein the battery module is always connected to the power supply of the power module during the operation of the device, and when the battery voltage of the battery module is lower than that of the power module, the battery module is automatically charged and always keeps in a full-power state.
5. A storage server power-down protection method based on the storage server power-down protection device of claims 1-4 is characterized by comprising the following steps:
step 1, when an external power supply module is abnormally powered down, a battery module connected with the power supply module in parallel automatically discharges to maintain normal operation of a server controller module and a flash memory of a nonvolatile storage module;
step 2, when the power supply detection module detects abnormal power failure of the power supply module, a power failure signal is sent to the server controller module, the server controller module stops data receiving service after receiving the signal, data falls into a disk until the completion, and then the shutdown is started;
step 3, after the shutdown is completed, the server controller module feeds back a data tray falling completion signal to the power supply detection module, and the power supply detection module cuts off the power supply output of the battery module after receiving the signal, so that the battery loss is reduced;
and 4, when the power supply detection module does not receive the data tray falling completion signal and detects that the voltage of the battery module is lower than a preset value, automatically cutting off the power supply output of the battery module to prevent low voltage from damaging other power utilization modules.
6. The storage server power-down protection method according to claim 5, wherein the power detection circuit is powered by both the power module and the battery module, and the power detection circuit can be guaranteed to operate if one of the power module and the battery module can normally provide power; when the power detection module detects that the power module is electrified again, the power supply of the battery module is automatically switched on, so that the battery module can be charged on one hand, and the battery module enters a normal working mode on the other hand, and the power module is prevented from being powered down again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211580284.7A CN115833354A (en) | 2022-12-09 | 2022-12-09 | Storage server power-down protection device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211580284.7A CN115833354A (en) | 2022-12-09 | 2022-12-09 | Storage server power-down protection device and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115833354A true CN115833354A (en) | 2023-03-21 |
Family
ID=85546030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211580284.7A Pending CN115833354A (en) | 2022-12-09 | 2022-12-09 | Storage server power-down protection device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115833354A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119690872A (en) * | 2025-02-25 | 2025-03-25 | 山东云海国创云计算装备产业创新中心有限公司 | Power-off protection method, device, electronic equipment and storage medium |
WO2025130260A1 (en) * | 2023-12-19 | 2025-06-26 | 深圳市汇川技术股份有限公司 | Power-down data saving method, apparatus and device, and readable storage medium |
-
2022
- 2022-12-09 CN CN202211580284.7A patent/CN115833354A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2025130260A1 (en) * | 2023-12-19 | 2025-06-26 | 深圳市汇川技术股份有限公司 | Power-down data saving method, apparatus and device, and readable storage medium |
CN119690872A (en) * | 2025-02-25 | 2025-03-25 | 山东云海国创云计算装备产业创新中心有限公司 | Power-off protection method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102156679B (en) | PCIE interface-based solid state disk power-down protection method and device | |
US6691248B1 (en) | Method and apparatus for controlling supply of power, and storage medium | |
CN101517852B (en) | Discharger and discharge control method | |
CN112165156B (en) | Charging/discharging device, battery system, charging/discharging control method, and storage medium | |
US7795842B2 (en) | Adjustable cut-off voltage for mobile device battery | |
US8713363B2 (en) | Power supply system for a data storage system and a method of controlling a power supply | |
CN109245283B (en) | Standby battery monitoring system and uninterrupted power supply intelligent switching and monitoring system | |
CN115833354A (en) | Storage server power-down protection device and method | |
CN102280924B (en) | Uninterrupted power supply system for relay protection device | |
CN202013570U (en) | Power down protecting device for solid state disk based on PCIE (Peripheral Component Interface Express) interface | |
CN106250786A (en) | A kind of power-off protection of solid state disk method and device | |
CN102882267A (en) | Power supply device, electronic equipment and power supply method | |
CN106208347A (en) | A kind of electric supply installation, electric power system and method | |
CN201036001Y (en) | A disk array device | |
CN206259749U (en) | Standby power system with energy storage effect | |
CN117713163A (en) | Control method and device of energy storage system and energy storage system | |
CN114079288A (en) | Power supply system, control method and storage medium | |
CN201766409U (en) | Continuous power-supply UPS matching device | |
US20010047492A1 (en) | Uninterruptible power supply for automatically storing computer data in hard disk when halting | |
CN113311932A (en) | UPS-based terminal equipment management method, system and medium | |
CN108304059A (en) | A kind of computer abnormal power-down auto shutdown system and method | |
CN217388303U (en) | Embedded system power-down protection device based on super capacitor | |
CN107994672A (en) | There is the standby power system of energy storage | |
CN111864875A (en) | A supercapacitor power supply control system and method for a whole cabinet server | |
CN113452131A (en) | Power supply management device and method of numerical control equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |