CN109032320B - Battery backup unit testing method and related equipment - Google Patents

Battery backup unit testing method and related equipment Download PDF

Info

Publication number
CN109032320B
CN109032320B CN201810842277.7A CN201810842277A CN109032320B CN 109032320 B CN109032320 B CN 109032320B CN 201810842277 A CN201810842277 A CN 201810842277A CN 109032320 B CN109032320 B CN 109032320B
Authority
CN
China
Prior art keywords
bbu
test result
instruction
preset
electric quantity
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.)
Active
Application number
CN201810842277.7A
Other languages
Chinese (zh)
Other versions
CN109032320A (en
Inventor
韩廷卯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810842277.7A priority Critical patent/CN109032320B/en
Publication of CN109032320A publication Critical patent/CN109032320A/en
Application granted granted Critical
Publication of CN109032320B publication Critical patent/CN109032320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the application discloses a BBU (base band unit) testing method for a battery backup unit, which is applied to a storage node and used for ensuring the high availability of the BBU in an actual working environment by providing a BBU test. The method in the embodiment of the application comprises the following steps: sending a test instruction to the BBU, wherein the test instruction is used for indicating the BBU to return an original test result; determining a target test result according to the original test result returned by the BBU; judging whether the target test result exceeds a preset test result threshold value or not; and if the preset test result threshold value is exceeded, reporting an alarm.

Description

Battery backup unit testing method and related equipment
Technical Field
The present disclosure relates to the field of data storage, and in particular, to a method and related device for testing a battery backup unit.
Background
With the advent of the internet, the data generated by humans in production and life has grown exponentially into the 21 st century. With the increasing data, the storage capacity is required to be larger, the traditional storage technologies of single node and disk array are difficult to meet the requirement of mass data storage, and the cluster storage system is widely used with its natural scalability advantage, including distributed file system.
The distributed storage system includes a plurality of storage nodes, and a BBU (battery back-up unit) is widely used in each storage node as a backup power supply. When the external power supply of a certain storage node is powered off, the BBU is responsible for providing power for cache data disk dropping and data dumping, and data loss is avoided.
When the external power supply is powered off, if the BBU fails, the BBU cannot provide power or the power is insufficient, and user data is inevitably lost. Therefore, it is an urgent problem to be solved by those skilled in the art to provide a testing method for BBU to ensure high availability of BBU in an actual working environment.
Disclosure of Invention
The embodiment of the application provides a method for testing a battery backup unit, which is used for ensuring the high availability of BBU in an actual working environment by providing a test for BBU.
In a first aspect, an embodiment of the present application provides a method for testing a battery backup unit, where the method is applied to a storage node, and the method includes:
sending a test instruction to the BBU, wherein the test instruction is used for indicating the BBU to return an original test result;
determining a target test result according to the original test result returned by the BBU;
judging whether the target test result exceeds a preset test result threshold value or not;
and if the preset test result threshold value is exceeded, reporting an alarm.
In a second aspect, an embodiment of the present application provides a storage node, where the storage node includes:
a sending unit, configured to send a test instruction to the BBU, where the test instruction is used to instruct the BBU to return an original test result;
the determining unit is used for determining a target test result according to the original test result returned by the BBU;
the judging unit is used for judging whether the target test result exceeds a preset test result threshold value or not;
and the reporting unit is used for reporting an alarm when the judging unit determines that the preset test result threshold value is exceeded.
In a third aspect, an embodiment of the present application provides a storage node, where the storage node includes: a processor and a memory, wherein the memory stores instructions for the battery backup unit test according to the first aspect;
the processor is adapted to execute instructions for a battery-backup unit test stored in the memory, to perform the steps of the battery-backup unit test method according to the first aspect described above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored therein instructions for a battery backup unit test, which when run on a computer, cause the computer to perform the method of the first aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
sending a test instruction to the BBU, so that the BBU returns an original test result after receiving the test instruction, generating a target test result according to the original test result returned by the BBU, judging whether the target test result exceeds a preset test result threshold value, and sending a report alarm if the target test result exceeds the test result threshold value. The scheme detects whether the BBU is a normally running BBU or not by sending a test instruction to the BBU, so that the high availability of the BBU is ensured; the storage node determines a target test result according to the original test result returned by the BBU, so that extra workload on the BBU is avoided; and when the target test result exceeds a preset test result threshold value, sending a report alarm to remind of timely processing faults of the BBU, so that the safety of user data is ensured.
Drawings
Fig. 1 is a schematic structural diagram of a distributed file system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for testing a battery backup unit according to an embodiment of the present disclosure;
fig. 3 is another schematic flow chart of a method for testing a battery backup unit according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another method for testing a battery backup unit according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of another method for testing a battery backup unit according to an embodiment of the present disclosure;
fig. 6 is a schematic flowchart of another method for testing a battery backup unit according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a storage node according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a storage node according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a method for testing a battery backup unit, which is used for ensuring the high availability of BBU in an actual working environment by providing a test for BBU. The embodiment of the application also provides a corresponding storage node, a server and a computer readable storage medium. The following are detailed below.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
As shown in fig. 1, the distributed file system is composed of a plurality of storage nodes 10, the storage nodes 10 may be distributed at the same location or at any number of locations, and the storage nodes 10 communicate and transmit data via a network 20. Each storage node 10 is configured with a BBU, each storage node 10 runs with a host system, and the BBU runs with an independent BBU system.
In this embodiment, the distributed file system includes a wave distributed storage system ICFS system, a large-scale file system (GFS), a cluster file system Lustre, or other distributed file systems, and in this embodiment and subsequent embodiments, only the distributed file system is taken as an example of the ICFS system for description.
In this embodiment, the network 20 may be a wired network or a wireless network, and the wireless network may be a WAN (wide area network), a wireless network, a peer-to-peer network, a star network, a token ring network, or other wireless networks, and the embodiments of the present invention are not limited thereto.
In this embodiment, the storage node 10 may be composed of one storage device, or may be a storage device group composed of a plurality of storage devices, and may store and process data, which is not limited herein.
Referring to fig. 2, a method for testing a battery backup unit according to an embodiment of the present application is described in detail below, and an embodiment of the method for testing a battery backup unit according to the present application may include:
201. and the storage node sends a test instruction to the BBU.
In this embodiment, the host system running on each storage node may include one or more test modules, and different test modules may send different test instructions to the BBU, where the test instructions are used to instruct the BBU to return an original test result.
In this embodiment, the test instruction is an instruction sent by the storage node to know the condition of the BBU, and may be, for example, a first read instruction for reading an inherent attribute of the BBU, a second read instruction for reading an operating state of the BBU, a discharge instruction for instructing the BBU to perform a discharge operation, or another type of test instruction, which is not limited herein.
In this embodiment, the original test result corresponds to the test instruction, and is information fed back by the BBU after receiving the test instruction, and may be, as an example, an inherent attribute of the BBU, an operating state of the BBU, or a discharge signal lamp, which is not limited herein.
202. And the storage node determines a target test result according to the original test result returned by the BBU.
In this embodiment, after receiving an original test result returned by the BBU, the storage node may take the read original test result as a target test result after receiving the original test result; or generating a target test result according to the original test result after receiving the original test result.
In this embodiment, the target test result is information that can reflect the attribute of the BBU, for example, the inherent attribute of the BBU, the actual rated power of the BBU, the time interval between the BBU reception information and the return information, or other types of attribute information, and the specific details are not limited herein.
203. The storage node judges whether the target test result exceeds a preset test result threshold value or not; if the preset test result threshold is exceeded, go to step 204; if the predetermined test result threshold is not exceeded, step 205 is entered.
In this embodiment, the storage node is preset with a test result threshold, and as one or more test modules may exist in the main system of the storage node, different test modules may set different test result thresholds for different types of target test results.
204. And the storage node reports an alarm.
In this embodiment, when the storage node determines that the target test result exceeds the preset test result threshold, an alarm may be reported, and as an example, if the inherent attribute of the BBU exceeds the preset attribute threshold, it is prompted that the BBU is unavailable; as another example, if the ratio of the actual rated electric quantity of the BBU to the standard rated electric quantity is lower than the preset electric quantity threshold, a BBU replacement is prompted or an alarm is reported in other situations.
205. The storage node executes other programs.
In this embodiment, the test instruction is sent to the BBU, so that the BBU returns an original test result after receiving the test instruction, a target test result is generated according to the original test result returned by the BBU, and it is determined whether the target test result exceeds a preset test result threshold, and if the target test result exceeds the preset test result threshold, a report alarm is sent. The scheme detects whether the BBU is a normally running BBU or not by sending a test instruction to the BBU, so that the high availability of the BBU is ensured; the storage node determines a target test result according to the original test result returned by the BBU, so that extra workload on the BBU is avoided; and when the target test result exceeds a preset test result threshold value, sending a report alarm to remind of timely processing faults of the BBU, so that the safety of user data is ensured.
Because the storage node may include a plurality of test modules, and different test modules send different test instructions to the BBU, the storage node may receive different original test results, and further obtain different target test results, based on different test modules, which are described below:
first, electric quantity check module
Referring to fig. 3 in particular, an embodiment of a method for testing a battery backup unit according to the present disclosure may include:
301. and when the BBU is in a full state, the storage node sends a first discharge instruction to the BBU.
In this embodiment, the storage node may obtain the real-time electric quantity of the BBU, and when the storage node determines that the BBU is in the full-power state, the storage node sends a first discharge instruction to the BBU, where the first discharge instruction carries at least a first voltage, and is used to instruct the BBU to perform a discharge operation until a current voltage of the BBU is the first voltage.
302. And the storage node generates first electric quantity, wherein the first electric quantity is the electric quantity released by the BBU in the process of executing the discharging operation according to the first discharging instruction.
In this embodiment, after sending the first discharge instruction to the BBU, the storage node receives a discharge signal returned by the BBU, reads a discharge current every fixed time period after receiving the discharge signal, and generates the first electric quantity by integrating the discharge current over time.
In this embodiment, the fixed duration is a preset duration, and may be a duration of 5 seconds, 3 seconds, 6 seconds, or other lengths, which is not limited herein.
303. The storage node determines an actual rated capacity of the BBU according to the first voltage and the first capacity.
In this embodiment, since the voltage of the BBU and the electric quantity are in a linear relationship within a certain range, after the storage node acquires the first electric quantity, the pre-estimated value of the current total electric quantity of the BBU can be determined according to the first voltage and the first electric quantity. As an example, when the voltage of the BBU is a, the remaining capacity of the BBU is 75% of FCC, after the BBU is fully charged, a first discharge command carrying the voltage of a is sent to the BBU, after receiving a discharge signal, a discharge current is read every 5 seconds, a discharged capacity B is obtained by integrating the discharge current over time, and an actual rated capacity C of the BBU is estimated to be B/0.25 according to the capacity C; as another example, when the BBU voltage is D, the remaining capacity of the BBU is 50% of FCC, after the BBU is fully charged, a first discharge command carrying the D voltage is sent to the BBU, after receiving the discharge signal, the discharge current is read every 5 seconds, the discharged capacity E is obtained by integrating the discharge current over time, and the actual rated capacity F of the BBU is estimated to be E/0.5 according to the capacity.
304. The storage node determines whether the ratio of the actual rated power to the standard rated power is lower than a first preset threshold, and if the ratio is lower than the first preset threshold, the step 305 is performed; if not, go to step 306.
In this embodiment, after determining the actual rated electric quantity of the BBU, the storage node generates a ratio of the actual rated electric quantity to the standard rated electric quantity, and determines whether the ratio of the actual rated electric quantity to the standard rated electric quantity is lower than a first preset threshold.
In this embodiment, the standard rated electric quantity may be a rated electric quantity of the BBU immediately after the factory shipment.
In this embodiment, the first preset threshold is preset by the storage node according to the actual condition of the storage node, and since the reliability requirements of the storage nodes included in different storage products on the BBU are different, the first preset threshold preset by the storage node having a high reliability requirement on the BBU is smaller, and the first preset threshold preset by the storage node having a low reliability requirement on the BBU is larger.
305. And the storage node reports an alarm.
In this embodiment, the storage node reports an alarm after determining that the ratio of the actual rated electric quantity to the standard rated electric quantity is lower than a first preset threshold, where as an example, the reported alarm content may be "BBU power supply capacity is insufficient and BBU needs to be replaced", and the specific reported alarm content is not limited here.
It should be understood that, when the storage node determines that the ratio of the actual rated capacity to the standard rated capacity is lower than the first preset threshold value when performing steps 301 to 304 for the first time, the step 305 is directly entered; or, when the steps 301 to 304 are executed for the first time, if the storage node determines that the ratio of the actual rated electric quantity to the standard rated electric quantity is lower than the first preset threshold, the steps 301 to 304 are executed again, that is, when the BBU is charged until the BBU is in a full-power state, the first discharge instruction is sent to the BBU again to generate the first electric quantity, the actual rated electric quantity of the BBU is determined according to the first voltage and the first electric quantity, whether the ratio of the actual rated electric quantity to the standard rated electric quantity is lower than the first preset threshold is judged, and if the ratio still exceeds the first preset value, the step 305 is executed again.
In this embodiment, the time interval between the storage node sending the first discharge instruction twice to the BBU may be one month to three months.
In this embodiment, a timer may be disposed on the storage node to calculate a time interval for the storage node to send the first discharge instruction to the BBU, where the time interval may be one month, two months, three months, or the like, and specifically, the length of the time interval for sending the first discharge instruction twice may be flexibly set according to an actual situation, and since the time interval is set too short, the normal operation of the BBU is affected, and the burden of the storage node is also increased, and if the time interval is set too long, the power supply capability of the BBU cannot be guaranteed, and the time interval is set to be one month to three months, the power supply capability of the BBU is guaranteed, and the burden on the storage node due to frequent checking can be avoided.
306. The storage node executes other programs.
In this embodiment, as the BBU is used, the actual rated electric quantity thereof is gradually reduced, so that the power supply capability of the BBU is continuously reduced, the discharge instruction is periodically sent to the first voltage to the BBU, the actual rated electric quantity of the BBU is determined according to the first voltage and the first electric quantity generated by the BBU in the discharge operation, and when the proportion of the actual rated electric quantity to the standard rated electric quantity is lower than a first preset threshold value, replacement of the BBU is prompted, so that the power supply capability of the BBU is ensured, and high availability of the BBU is ensured.
Second, discharge test module
Referring to fig. 4 in particular, another embodiment of a method for testing a battery backup unit according to an embodiment of the present disclosure may include:
401. and the storage node sends a second discharging instruction to the BBU.
In this embodiment, the storage node sends a second discharge instruction to the BBU, where the second discharge instruction is used to instruct the BBU to perform a discharge operation.
402. The storage node receives a discharge signal returned by the BBU to obtain a first time interval.
In this embodiment, after sending the second discharge instruction to the BBU, the discharge signal returned by the BBU is received, so as to determine a first time interval, where the first time interval is a time interval between sending the second discharge instruction to the BBU and receiving the discharge signal of the BBU.
403. The storage node determines whether the first time interval exceeds a second preset threshold, and if the first time interval exceeds the second preset threshold, the step 404 is performed; if the second predetermined threshold is not exceeded, step 405 is entered.
In this embodiment, a second preset threshold is preset on the storage node, and after the first time interval is obtained, it is determined whether the first time interval exceeds the second preset threshold.
In this embodiment, the second preset threshold is used to reflect the power supply capability of the BBU, the higher the requirement on the power supply capability of the BBU is, the smaller the second preset threshold is, and the lower the requirement on the power supply capability of the BBU is, the larger the second preset threshold is, for example, the second preset threshold may be 50 milliseconds, 40 milliseconds, 60 milliseconds, or other lengths, and the specific here is not limited.
404. And the storage node reports an alarm.
In this embodiment, if the storage node determines that the first time interval exceeds the second preset threshold, the alarm is reported, and the reported alarm content may be "BBU power supply timeout, please replace BBU", and the specific reported alarm content is not limited herein.
It should be understood that, when steps 401 to 403 are executed for the first time, if the first time interval exceeds the second preset threshold, step 404 is directly entered; or, when the steps 401 to 403 are executed for the first time, if the first time interval exceeds the second preset threshold, the steps 401 to 403 are repeatedly executed again, and if the first time interval still exceeds the second preset threshold, the step 404 is executed again; it may also be configured that, when steps 401 to 403 are executed for the first time, if the first time interval exceeds the second preset threshold, steps 401 to 403 are repeatedly executed two or more times, and if the first time interval still exceeds the second preset threshold, step 404 is then executed.
405. The storage node executes other programs.
In this embodiment, after the second discharge instruction is sent to the BBU, the time for sending the second discharge instruction to the BBU and the first time interval for receiving the discharge signal of the BBU are determined according to the received discharge signal, and when the first time interval exceeds a second preset threshold, an alarm is reported, so that it is ensured that the BBU can supply power in time when the external power supply of the storage node is powered off.
Third, initialization module
Referring to fig. 5 in particular, a battery backup unit testing method according to another embodiment of the present disclosure may include:
501. and the storage node sends a first reading instruction to the BBU.
In this embodiment, when a system of a BBU is initialized, a storage node sends a first read instruction to the BBU, where the first read instruction is used to instruct the BBU to acquire an inherent attribute of the BBU. The inherent attributes of the BBU may include, among other things, the manufacturer of the BBU, the firmware version, the battery model, or other inherent attribute information.
502. And the storage node receives and reads the inherent attribute of the BBU returned by the BBU.
503. The storage node judges whether the inherent attribute of the BBU exceeds a preset attribute threshold, and if the inherent attribute of the BBU exceeds the preset attribute threshold, the step 504 is executed; if the predetermined attribute threshold is not exceeded, step 505 is entered.
In this embodiment, an attribute threshold is preset on the storage node, and after the intrinsic attribute of the BBU returned by the BBU is read, it is determined whether the intrinsic attribute of the BBU exceeds the preset attribute threshold.
In this embodiment, BBUs that can be supported by different storage nodes are different, and therefore, different attribute thresholds preset by different storage nodes are different, and the thresholds of the inherent attributes, such as manufacturers, firmware versions, or battery models, of BBUs need to be set according to the actual BBU compatibility of different storage nodes.
504. And the storage node reports an alarm.
In this embodiment, if the storage node determines whether the inherent attribute of the BBU exceeds the preset attribute threshold, an alarm is reported, and the reported alarm content may be "BBU unavailable", and the specific reported alarm content is not limited herein.
505. The storage node executes other programs.
In this embodiment, because different storage nodes can support different BBUs, when a BBU is initialized, the inherent attribute of the BBU is read to determine whether the BBU is usable, so as to ensure that the BBU loaded on a storage node is the BBU supported by the storage node.
Fourth, fault detection module
Referring to fig. 6 in detail, a further embodiment of a method for testing a battery backup unit according to the present invention may include:
601. and the storage node sends a second read instruction to the BBU.
In this embodiment, in the operation process of the BBU, the storage node sends a second read instruction to the BBU, where the second read instruction is used to instruct the BBU to acquire the operation state information of the BBU. The operation state information of the BBU comprises information such as the temperature of the BBU and the like.
602. And the storage node receives the running state information returned by the BBU to obtain a second time interval.
In this embodiment, after receiving the operation status information returned by the BBU, the storage node determines a second time interval, where the second time interval is a time interval between sending the second read instruction and receiving the operation status information.
603. The storage node determines whether the second time interval exceeds a third preset threshold, and if the second time interval exceeds the third preset threshold, the step 605 is executed; if the third predetermined threshold is not exceeded, go to step 604.
604. The storage node judges whether the running state information exceeds a fourth preset threshold, and if the running state information exceeds the fourth preset threshold, the step 605 is executed; if the fourth predetermined threshold is not exceeded, go to step 606.
In this embodiment, when it is determined that the second time interval does not exceed the third preset threshold, it is determined whether the operating state information exceeds a fourth preset threshold. The fourth preset threshold may be information such as a preset BBU temperature threshold.
605. And the storage node reports an alarm.
In this embodiment, when step 603 enters step 605, the content of the reported alarm may be "BBU communication interruption"; when the step 605 is entered from the step 604, the content of the reported alarm may be "BBU temperature is too high", and the like, and the specific description is not limited herein.
It should be understood that step 604 is an optional step, and if step 604 is not included, step 606 may be directly entered when step 603 determines that the third predetermined threshold is not exceeded.
606. The storage node executes other programs.
In this embodiment, the storage node supervises the BBU operation process, and ensures that the operation state of the BBU in the operation process is good, so as to ensure high availability of the BBU.
Based on the embodiments described in fig. 2 to fig. 6, another embodiment of a method for testing a battery backup unit is provided in the embodiments of the present application, and after step 205, the method for testing a battery backup unit further includes:
the storage node detects the voltage of the BBU;
when the voltage of the BBU is lower than a preset voltage threshold, the storage node charges the BBU until the voltage of the BBU reaches a rated voltage;
and the storage node sends a third discharge instruction to the BBU, wherein the third discharge instruction at least carries a second voltage and is used for indicating the BBU to perform a discharge operation until the current voltage of the BBU is the second voltage, and the service life of the BBU at the second voltage is longer than that at the rated voltage.
In this embodiment, the storage node detects the voltage of the BBU, and when the voltage is lower than the preset voltage threshold, the storage node charges the BBU in time, and discharges the BBU after reaching the rated voltage, so that the current voltage of the BBU is lower than the rated voltage, and the service life of the BBU is prolonged on the premise of ensuring that the electric quantity of the BBU is sufficient.
It should be understood that any one of the four test modules may be disposed in the storage node, or the four test modules may be disposed simultaneously, or any combination of the four test modules may be disposed in the storage node.
Fig. 7 is a schematic structural diagram of a storage node according to an embodiment of the present invention, where the storage node 700 may include:
a sending unit 701, configured to send a test instruction to the BBU, where the test instruction is used to instruct the BBU to return an original test result;
a determining unit 702, configured to determine a target test result according to an original test result returned by the BBU;
a determining unit 703, configured to determine whether the target test result exceeds a preset test result threshold;
a reporting unit 704, configured to report an alarm when the determining unit 703 determines that the preset test result threshold is exceeded.
Further, the sending unit 701 is specifically configured to send a first discharge instruction to the BBU when the BBU is in a full power state, where the first discharge instruction carries at least a first voltage, and is used to instruct the BBU to perform a discharge operation until a current voltage of the BBU is the first voltage;
the determining unit 702 is specifically configured to generate a first electric quantity according to the discharge signal returned by the BBU, where the first electric quantity is an electric quantity released by the BBU in a process of performing a discharge operation according to the first discharge instruction, and determine an actual rated electric quantity of the BBU according to the first voltage and the first electric quantity;
the determining unit 703 is specifically configured to determine whether a ratio of the actual rated power to the standard rated power is lower than a first preset threshold, and when the ratio is lower than the first preset threshold, determine that the target test result exceeds the preset test result threshold.
Further, the sending unit 701 is specifically configured to send a second discharge instruction to the BBU, where the second discharge instruction is used to instruct the BBU to perform a discharge operation;
the determining unit 702 is specifically configured to receive the discharge signal returned by the BBU, so as to obtain a first time interval, where the first time interval is a time interval between sending the second discharge instruction to the BBU and receiving the discharge signal of the BBU;
the determining unit 703 is specifically configured to determine whether the first time interval exceeds a second preset threshold, and when the first time interval exceeds the second preset threshold, determine that the target test result exceeds the preset test result threshold.
Further, the sending unit 701 is specifically configured to send a first read instruction to the BBU, where the first read instruction is used to instruct the BBU to obtain the inherent attribute of the BBU;
the determining unit 702 is specifically configured to receive and read the inherent attribute of the BBU returned by the BBU;
the determining unit 703 is specifically configured to determine whether the inherent attribute of the BBU exceeds a preset attribute threshold, and when the inherent attribute of the BBU exceeds the preset attribute threshold, determine that the target test result exceeds the preset test result threshold.
Further, the sending unit 701 is specifically configured to send a second read instruction to the BBU, where the second read instruction is used to instruct the BBU to obtain the running state information of the BBU;
the determining unit 702 is specifically configured to receive the running state information returned by the BBU, so as to obtain a second time interval, where the second time interval is a time interval between sending the second read instruction and receiving the running state information;
the determining unit 703 is specifically configured to determine whether the second time interval exceeds a third preset threshold, and when the second time interval exceeds the third preset threshold, determine that the target test result exceeds the preset test result threshold.
Further, the storage node 700 may further include:
a detection unit 705 for detecting the voltage of the BBU;
a charging unit 706, configured to charge the BBU until the voltage of the BBU reaches a rated voltage, when the voltage of the BBU is lower than a preset voltage threshold;
and a discharge unit 707, configured to send a third discharge instruction to the BBU, where the third discharge instruction carries at least a second voltage, and is used to instruct the BBU to perform a discharge operation until a current voltage of the BBU is the second voltage, where a life of the BBU at the second voltage is longer than a life of the BBU at the rated voltage.
In this embodiment, the flow executed by each unit in the storage node is similar to the flow executed by the storage node in the embodiments shown in fig. 2 to fig. 6, and is not described again here.
In this embodiment, the sending unit 701 sends a test instruction to the BBU, so that the BBU returns an original test result after receiving the test instruction, the determining unit 702 generates a target test result according to the original test result returned by the BBU, the determining unit 703 determines whether the target test result exceeds a preset test result threshold, and if the target test result exceeds the preset test result threshold, the reporting unit 704 sends a reporting alarm. The scheme detects whether the BBU is a normally running BBU or not by sending a test instruction to the BBU, so that the high availability of the BBU is ensured; the storage node determines a target test result according to the original test result returned by the BBU, so that extra workload on the BBU is avoided; and when the target test result exceeds a preset test result threshold value, sending a report alarm to remind of timely processing faults of the BBU, so that the safety of user data is ensured.
Also provided in embodiments of the present application is a storage node, and referring to fig. 8, the storage node 800 may have a relatively large difference due to different configurations or performances, and may include one or more processors 801 and a memory 802 (e.g., one or more mass storage devices). Wherein the memory 802 may be a transient storage or a persistent storage. The program stored on the memory 802 may include one or more modules (not shown), each of which may include a sequence of instructions operating on the storage nodes. Further, the processor 801 may be arranged to communicate with the memory 802, to execute a series of instruction operations in the memory 802 on the storage node 800.
The storage node 800 may also include one or more input-output units 803, one or more power supplies 804, one or more wired or wireless network interfaces 805.
In some embodiments of the invention, the processor 801, the memory 802, the input/output unit 803, the power supply 804 and the wired or wireless network interface 805 may be connected by a bus or other means, as exemplified by a bus in fig. 8.
The memory stores instructions for testing the battery backup unit described in the embodiments of fig. 2 to 6;
the processor is configured to execute the instructions for testing the battery-backup unit stored in the memory, and to perform the steps of the method for testing the battery-backup unit as described in the embodiments of fig. 2 to 6.
Also provided in an embodiment of the present application is a computer-readable storage medium having stored therein instructions for testing a battery-backup unit, which when run on a computer, cause the computer to perform the steps of the method for testing a battery-backup unit as described in the embodiments of fig. 2 to 6 above.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A BBU testing method is applied to a storage node, and comprises the following steps:
sending a test instruction to the BBU, wherein the test instruction is used for indicating the BBU to return an original test result;
determining a target test result according to the original test result returned by the BBU;
judging whether the target test result exceeds a preset test result threshold value or not;
if the preset test result threshold value is exceeded, reporting an alarm;
the sending of the test instruction to the BBU includes: when the BBU is in a full-power state, sending a first discharge instruction to the BBU, wherein the first discharge instruction at least carries a first voltage and is used for instructing the BBU to execute a discharge operation until the current voltage of the BBU is the first voltage; sending a second discharging instruction to the BBU, wherein the second discharging instruction is used for indicating the BBU to execute discharging operation;
the determining a target test result according to the original test result returned by the BBU comprises: generating a first electric quantity according to a discharge signal returned by the BBU, wherein the first electric quantity is an electric quantity released in the process that the BBU executes a discharge operation according to the first discharge instruction; determining the actual rated electric quantity of the BBU according to the first voltage and the first electric quantity; receiving a discharge signal returned by the BBU based on the second discharge instruction to obtain a first time interval, wherein the first time interval is a time interval between sending the second discharge instruction to the BBU and receiving the discharge signal of the BBU;
the judging whether the target test result exceeds a preset test result threshold value includes: judging whether the proportion of the actual rated electric quantity to the standard rated electric quantity is lower than a first preset threshold value or not; judging whether the first time interval exceeds a second preset threshold value or not; and if the proportion of the actual rated electric quantity to the standard rated electric quantity is lower than the first preset threshold value, or the first time interval exceeds the second preset threshold value, determining that the target test result exceeds the preset test result threshold value.
2. The method of claim 1, wherein the time interval between sending the first discharge instruction twice to the BBU is one month to three months.
3. The method of claim 1, wherein said sending a test instruction to the BBU comprises:
sending a first read instruction to the BBU, wherein the first read instruction is used for instructing the BBU to acquire the inherent attribute of the BBU;
the determining a target test result according to the original test result returned by the BBU comprises:
receiving and reading the inherent attribute of the BBU returned by the BBU;
the judging whether the target test result exceeds a preset test result threshold value includes:
judging whether the inherent attribute of the BBU exceeds a preset attribute threshold value or not;
and if the target test result exceeds the preset attribute threshold, determining that the target test result exceeds the preset test result threshold.
4. The method of claim 1, wherein said sending a test instruction to the BBU comprises:
sending a second read instruction to the BBU, wherein the second read instruction is used for indicating the BBU to acquire the running state information of the BBU;
the determining a target test result according to the original test result returned by the BBU comprises:
receiving running state information returned by the BBU to obtain a second time interval, wherein the second time interval is the time interval between the sending of the second reading instruction and the receiving of the running state information;
the judging whether the target test result exceeds a preset test result threshold value includes:
judging whether the second time interval exceeds a third preset threshold value or not;
and if the target test result exceeds the third preset threshold, determining that the target test result exceeds the preset test result threshold.
5. The method according to any one of claims 1 to 4, further comprising:
detecting a voltage of the BBU;
when the voltage of the BBU is lower than a preset voltage threshold, charging the BBU until the voltage of the BBU reaches a rated voltage;
and sending a third discharge instruction to the BBU, wherein the third discharge instruction at least carries a second voltage and is used for indicating the BBU to perform discharge operation until the current voltage of the BBU is the second voltage, and the service life of the BBU at the second voltage is longer than the service life of the BBU at the rated voltage.
6. A storage node, comprising:
the system comprises a sending unit, a test unit and a test unit, wherein the sending unit is used for sending a test instruction to the BBU, and the test instruction is used for indicating the BBU to return an original test result;
the determining unit is used for determining a target test result according to the original test result returned by the BBU;
the judging unit is used for judging whether the target test result exceeds a preset test result threshold value or not;
the reporting unit is used for reporting an alarm when the judging unit determines that the preset test result threshold value is exceeded;
the sending unit is specifically configured to send a first discharge instruction to the BBU when the BBU is in a full power state, where the first discharge instruction carries at least a first voltage, and is used to instruct the BBU to perform a discharge operation until a current voltage of the BBU is the first voltage; sending a second discharging instruction to the BBU, wherein the second discharging instruction is used for indicating the BBU to execute discharging operation;
the determining unit is specifically configured to generate a first electric quantity according to the discharge signal returned by the BBU, where the first electric quantity is an electric quantity released by the BBU in a process of executing a discharge operation according to the first discharge instruction; determining the actual rated electric quantity of the BBU according to the first voltage and the first electric quantity; receiving a discharge signal returned by the BBU based on the second discharge instruction to obtain a first time interval, wherein the first time interval is a time interval between sending the second discharge instruction to the BBU and receiving the discharge signal of the BBU;
the judging unit is specifically used for judging whether the proportion of the actual rated electric quantity to the standard rated electric quantity is lower than a first preset threshold value; judging whether the first time interval exceeds a second preset threshold value or not; and if the proportion of the actual rated electric quantity to the standard rated electric quantity is lower than the first preset threshold value, or the first time interval exceeds the second preset threshold value, determining that the target test result exceeds the preset test result threshold value.
7. A storage node, comprising: a processor and a memory, the memory having stored therein instructions for the battery backup unit test of any of claims 1-5;
the processor is adapted to execute instructions for performing a battery back-up unit test stored in the memory, to perform the steps of the battery back-up unit test method according to any of claims 1-5.
8. A computer-readable storage medium having stored therein instructions for a battery backup unit test, which when run on a computer, causes the computer to perform the method of any of claims 1-5.
CN201810842277.7A 2018-07-26 2018-07-26 Battery backup unit testing method and related equipment Active CN109032320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810842277.7A CN109032320B (en) 2018-07-26 2018-07-26 Battery backup unit testing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810842277.7A CN109032320B (en) 2018-07-26 2018-07-26 Battery backup unit testing method and related equipment

Publications (2)

Publication Number Publication Date
CN109032320A CN109032320A (en) 2018-12-18
CN109032320B true CN109032320B (en) 2022-04-22

Family

ID=64646079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810842277.7A Active CN109032320B (en) 2018-07-26 2018-07-26 Battery backup unit testing method and related equipment

Country Status (1)

Country Link
CN (1) CN109032320B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947372A (en) * 2019-03-28 2019-06-28 浙江众邦机电科技有限公司 A kind of speech storage medium guard method, system, equipment and computer media
CN110618388B (en) * 2019-09-04 2023-01-17 苏州浪潮智能科技有限公司 Battery performance detection method and device
CN111273181A (en) * 2020-02-28 2020-06-12 苏州浪潮智能科技有限公司 Battery backup unit monitoring method and device, server and readable storage medium
CN114089026A (en) * 2021-10-09 2022-02-25 广西世纪创新显示电子有限公司 Shutdown power test method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107202958A (en) * 2016-03-17 2017-09-26 伊姆西公司 For the method and apparatus for the situation for testing battery
CN107436414A (en) * 2017-08-03 2017-12-05 郑州云海信息技术有限公司 BBU validity test method and apparatus in a kind of storage system
CN107480031A (en) * 2017-08-28 2017-12-15 郑州云海信息技术有限公司 The method of testing and device of BBU temperature are monitored under a kind of MCS systems in real time
CN107748331A (en) * 2017-09-28 2018-03-02 郑州云海信息技术有限公司 A kind of method for verifying battery confidence level

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107202958A (en) * 2016-03-17 2017-09-26 伊姆西公司 For the method and apparatus for the situation for testing battery
CN107436414A (en) * 2017-08-03 2017-12-05 郑州云海信息技术有限公司 BBU validity test method and apparatus in a kind of storage system
CN107480031A (en) * 2017-08-28 2017-12-15 郑州云海信息技术有限公司 The method of testing and device of BBU temperature are monitored under a kind of MCS systems in real time
CN107748331A (en) * 2017-09-28 2018-03-02 郑州云海信息技术有限公司 A kind of method for verifying battery confidence level

Also Published As

Publication number Publication date
CN109032320A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109032320B (en) Battery backup unit testing method and related equipment
US10429914B2 (en) Multi-level data center using consolidated power control
US9800087B2 (en) Multi-level data center consolidated power control
US10013040B2 (en) Rack server system and control method thereof
CN110568838B (en) Vehicle quiescent current acquisition method and system, electronic device and storage medium
US8185753B2 (en) Storage medium for storing power consumption monitor program, power consumption monitor apparatus and power consumption monitor method
US20140122140A1 (en) Advanced managed service customer edge router
CN110515802A (en) A kind of monitoring method, system and the associated component of server booting failure
CN104734902A (en) Testing system and server end thereof
CN109862583A (en) A kind of method and device reporting exception information
CN107819617B (en) Monitoring method of communication equipment and communication equipment
CN101800672B (en) Equipment detection method and equipment
CN104881256A (en) Method and device for monitoring availability of data sources
CN108064054B (en) FTP file transmission monitoring method and system in LTE system
CN109412819A (en) Method and device for warning device power down
CN109525036A (en) A kind of monitoring method, the device and system of the commercial power supply state of communication equipment
CN111784185A (en) Distributed power distribution communication network timed task scheduling system
CN111176878A (en) Server BBU (building base band Unit) standby power diagnosis method, system, terminal and storage medium
CN112152878B (en) Monitoring and management method, system, terminal and storage medium for digital channel of transformer substation
CN115543707A (en) Hard disk fault detection method, system and device, storage medium and electronic device
CN116483613B (en) Processing method and device of fault memory bank, electronic equipment and storage medium
CN117215859B (en) Main and standby BIOS automatic switching method, automatic switching device and computer
CN117331731A (en) Fault detection method and device for server test, storage medium and electronic device
CN116319412A (en) Method, device, terminal and storage medium for monitoring and switching server network card
CN116340105A (en) Task monitoring method, monitoring system and electronic 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
GR01 Patent grant
GR01 Patent grant