CN107907762B - Test method and system for detecting influence of BBU on stability of whole cabinet - Google Patents

Test method and system for detecting influence of BBU on stability of whole cabinet Download PDF

Info

Publication number
CN107907762B
CN107907762B CN201711100119.6A CN201711100119A CN107907762B CN 107907762 B CN107907762 B CN 107907762B CN 201711100119 A CN201711100119 A CN 201711100119A CN 107907762 B CN107907762 B CN 107907762B
Authority
CN
China
Prior art keywords
bbu
test
whole cabinet
rmc
test data
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
CN201711100119.6A
Other languages
Chinese (zh)
Other versions
CN107907762A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201711100119.6A priority Critical patent/CN107907762B/en
Publication of CN107907762A publication Critical patent/CN107907762A/en
Application granted granted Critical
Publication of CN107907762B publication Critical patent/CN107907762B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application relates to a test method and a system for detecting influence of BBU on stability of an entire cabinet, which are applied to the entire cabinet provided with the BBU, wherein a plurality of node servers are installed in the entire cabinet, and the test method comprises the following steps: the Host logs in the RMC through a script; sequentially carrying out a BBU self-inspection test, a BBU discharge test and a BBU charging test; and setting the cycle number of the test according to the model of the BBU and the test requirement. The system comprises a login for logging in the RMC by a Host in a script mode; the test module is used for sequentially carrying out BBU self-inspection test, BBU discharge test and BBU charging test; and the cycle setting module is used for setting the cycle testing times of the testing module according to the model and the testing requirement of the BBU. The testing method and the testing system can cover all use scenes of the BBU, can continuously acquire the RMC, the node BMC, the node input voltage and the node system log of the whole cabinet in the testing process, and can timely find out the adverse effect of the BBU on the stability of the whole cabinet.

Description

Test method and system for detecting influence of BBU on stability of whole cabinet
Technical Field
The application relates to the technical field of power supply of a server of a complete cabinet, in particular to a test method and a test system for detecting influence of BBU on the stability of the complete cabinet.
Background
In the field of power supply of a complete equipment cabinet server, a Backup power supply system of a current data center mainly comprises an alternating current UPS system, a high-voltage direct current system and a BBU (Battery Backup Unit) power supply system. The conversion efficiency of the BBU power supply in the BBU power supply system is high, and the BBU is used as a backup power supply of the data center, so that the capital investment in the initial stage of data center construction can be saved, and the later stage can be expanded as required. The influence of the BBU on the stability of the whole cabinet in the working process of the BBU determines the reliability of the BBU as a backup power supply of the data center, so that the detection of the influence of the BBU on the stability of the whole cabinet is an important problem in BBU testing.
At present, the influence of BBU on the stability of the whole cabinet is detected, and the influence is mainly determined by troubleshooting the fault after the BBU power supply is used as a standby voltage to supply power to a system.
However, the existing method for detecting the influence of the BBU on the stability of the whole cabinet belongs to the experience summarized afterwards, and the adverse effect of the BBU on the stability of the whole cabinet cannot be found in time, so that the BBU power supply system is maintained or replaced to achieve the purpose of early warning. In addition, the existing method for detecting the influence of the BBU on the stability of the whole cabinet has no complete test flow and cannot completely cover the use scene of the BBU, so that the influence of the BBU power supply on the stability of the whole cabinet cannot be integrally evaluated.
Disclosure of Invention
In order to solve the problems that the adverse effect of a BBU on the stability of the whole cabinet cannot be found in time and the influence of a BBU power supply on the stability of the whole cabinet cannot be evaluated integrally in the related technology, the application provides a test method and a system for detecting the influence of the BBU on the stability of the whole cabinet.
A test method for detecting the influence of BBU on the stability of the whole cabinet is applied to the whole cabinet with BBU, a plurality of node servers are installed in the whole cabinet, and the method comprises the following steps:
s1: the Host logs in an RMC (Rack Management Controller, Rack complete cabinet Management module) through a script, and the Host is in communication connection with a plurality of node servers;
s2: sequentially carrying out a BBU self-inspection test, a BBU discharge test and a BBU charging test;
s3: and setting the cycle number of the step S2 according to the model of the BBU and the test requirement.
Alternatively, step S2 includes the following procedure:
s201: under the condition that the power supply is normally powered, the BBU starts the boosting self-checking discharge and enables the BBU self-checking test time T1 to be more than or equal to 10 minutes, test data are continuously acquired in the process, and whether the whole cabinet is abnormal or not is judged according to the acquired test data;
s202: the power supply is automatically turned off through the RMC, the BBU starts to discharge, and the BBU discharge test time T2 is enabled to meet the condition that T2 is more than or equal to 5 minutes and less than or equal to 10 minutes, test data are continuously acquired in the process, and whether the whole cabinet is abnormal or not is judged according to the acquired test data;
s203: the power supply is automatically started through the RMC, the power supply charges the BBU, the BBU charging test time T3 is enabled to meet the condition that T3 is more than or equal to 2 hours and less than or equal to 3 hours, test data are continuously acquired in the process, and whether the whole cabinet is abnormal or not is judged according to the acquired test data.
Alternatively, step S2 includes the following procedure:
s211: under the condition that the power supply is normally powered, the BBU starts boosting self-checking discharge and discharges electricity to 70% of electricity, test data are continuously acquired in the process, and whether the whole cabinet is abnormal or not is judged according to the acquired test data;
s212: the power supply is automatically turned off through the RMC, the BBU starts to discharge and discharges to 10% -20% of electric quantity, test data are continuously collected in the process, and whether the whole cabinet is abnormal or not is judged according to the collected test data;
s213: the power supply is automatically started through the RMC, the BBU is charged by the power supply to 95% -100% of electric quantity, test data are continuously collected in the process, and whether the whole cabinet is abnormal or not is judged according to the collected test data.
Optionally, the test data includes: an input voltage of each node server, a log of RMC, a log of BMC (Baseboard Management Controller) of each node server, and a system log of each node server.
Optionally, judging whether the entire cabinet is abnormal according to the collected test data includes:
and judging whether the node servers have an undervoltage condition or an overvoltage condition according to the input voltage of each node server, and judging whether the states of the whole cabinet and each node server are normal according to the log of the RMC, the log of the BMC of each node server and the system log of each node server.
Optionally, before step S1, the test method further includes the following steps:
and configuring a test environment.
Optionally, the configuring the test environment includes:
s41: building a Host machine to ensure that networks between the Host machine and the RMC of the whole cabinet and between the Host machine and the BMC of each node server are smooth;
s42: respectively setting the Syslogserver IP of the RMC and the Syslogserver IP of each node server as the IP of a Host, and configuring a Host syslog server;
s43: setting an SSH password-free login mode between a Host and each node server;
s44: and pressurizing each node server to ensure that the whole cabinet achieves the maximum power consumption.
A test system for detecting the influence of BBU on the stability of the whole cabinet is applied to the whole cabinet with BBU, a plurality of node servers are installed in the whole cabinet, the system includes:
the login module is used for logging in the RMC through a Host computer in a script mode, and the Host computer is in communication connection with the plurality of node servers;
the test module is used for sequentially carrying out BBU self-inspection test, BBU discharge test and BBU charging test;
and the cycle setting module is used for setting the cycle testing times of the testing module according to the model and the testing requirement of the BBU.
Optionally, the test module comprises:
the first BBU self-test unit is used for enabling the BBU to start boosting self-test discharge under the condition that the power supply is normally supplied with power, enabling the self-test time T1 to be more than or equal to 10 minutes, continuously acquiring test data in the BBU self-test process and judging whether the whole cabinet is abnormal or not according to the acquired test data;
the first BBU discharge test unit is used for enabling the BBU to start discharging under the condition that the power supply is turned off and enabling the discharge test time T2 to meet the condition that the time T2 is more than or equal to 5 minutes and less than or equal to 10 minutes, and continuously collecting test data in the BBU discharge process and judging whether the whole cabinet is abnormal or not according to the collected test data;
the first BBU charging test unit is used for enabling a power supply to charge the BBU under the condition that the power supply is turned on, enabling the charging test time T3 to meet the condition that the time T3 is more than or equal to 2 hours and less than or equal to 3 hours, continuously collecting test data in the BBU charging process and judging whether the whole cabinet is abnormal or not according to the collected test data.
Optionally, the test module comprises:
the second BBU self-checking test unit is used for enabling the BBU to start boosting self-checking discharge and discharge to 70% of electric quantity under the condition that the power supply is normally supplied, continuously acquiring test data in the BBU self-checking process and judging whether the whole cabinet is abnormal or not according to the acquired test data;
the second BBU discharge test unit is used for enabling the BBU to start discharging and discharging to 10% -20% of electric quantity under the condition that the power supply is turned off, continuously collecting test data in the BBU discharge process and judging whether the whole cabinet is abnormal or not according to the collected test data;
and the second BBU charging test unit is used for enabling the power supply to charge the BBU under the condition that the power supply is started and charging the BBU to 95% -100% of electric quantity, continuously acquiring test data in the BBU charging process and judging whether the whole cabinet is abnormal according to the acquired test data.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
according to the test method for testing the influence of BBU on the stability of the whole cabinet, firstly, a Host logs in an RMC through a script; then sequentially carrying out a BBU self-inspection test, a BBU discharge test and a BBU charging test; and setting the cycle times of the BBU self-check test, the BBU discharge test and the BBU charging test according to the model and the test requirement of the BBU. The method comprises the steps of continuously acquiring input voltage of each node server, log of RMC, log of BMC of each node server and system log of each node server in the processes of BBU self-inspection test, BBU discharge test and BBU charging test, and analyzing the influence of BBU on the stability of the whole cabinet according to test data. The method can cover all use scenes of the BBU, including BBU self-inspection, BBU charging and BBU discharging, so that the influence of the BBU on the stability of the whole cabinet can be tested more comprehensively, and a more accurate test result can be obtained. The method in the embodiment of the application can continuously acquire the input voltage of each node server, the log of RMC, the log of BMC of each node server and the system log of each node server in the test process, so that the influence of BBU on the stability of the whole cabinet can be found in time, and therefore, the adverse effect on the stability of the whole cabinet in the operation process of BBU can be fed back in time to achieve the early warning purpose. In addition, the method is realized in a script mode, and the automatic operation can greatly improve the testing efficiency.
The application provides a test system for verifying BBU influences on whole cabinet stability, include: the device comprises a login module, a test module and a cycle setting module. The system comprises a logging module, a testing module and a cycle setting module, wherein the logging module is used for logging in the RMC in a script mode through a Host, the testing module is used for sequentially carrying out BBU self-inspection testing, BBU discharge testing and BBU charging testing, and the cycle setting module is used for setting the cycle testing times of the testing module according to the model and the testing requirement of the BBU. The test system in the embodiment can completely cover the use scene of the BBU, including BBU self-inspection, BBU charging and BBU discharging, thereby more comprehensively testing the influence of the BBU on the stability of the whole cabinet and further obtaining more accurate test results. In addition, the test system in this embodiment can continuously collect the input voltage of each node server, the log of the RMC, the log of the BMC of each node server, and the system log of each node server in the test process, so that the influence of the BBU on the stability of the entire cabinet can be timely discovered, and the purposes of early warning and feedback in time when the stability of the entire cabinet is poor are achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic flow chart of a testing method for checking the influence of BBU on the stability of an entire cabinet according to an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating one implementation manner of step S2 in the present embodiment;
FIG. 3 is a schematic flow chart illustrating another implementation manner of step S2 in the present embodiment;
FIG. 4 is a schematic structural diagram of a test system for checking the influence of BBU on the stability of an entire cabinet according to an embodiment of the present application;
the symbols represent: the system comprises a 1-login module, a 2-test module and a 3-cycle setting module.
Detailed Description
In order to clearly explain the technical features of the present invention, the present application will be explained in detail by the following embodiments in combination with the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Further, the present application may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted so as to not unnecessarily limit the application.
The stability test of the Rack BBU cabinet is an important test item in BBU test. The application provides a test method for detecting the influence of BBU on the stability of an entire cabinet, namely an automatic test method for the stability of the cabinet and nodes of a Rack entire cabinet provided with the BBU under various charging and discharging conditions of the BBU.
For a better understanding of the present application, embodiments of the present application are explained in detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic flowchart of a testing method for checking an influence of BBU on stability of an entire cabinet according to an embodiment of the present application.
As can be seen from fig. 1, the method in the embodiment of the present application mainly includes the following steps:
s1: and the Host computer logs in the RMC through a script, and is in communication connection with the plurality of node servers.
In this embodiment, the Host may log in the RMC in the form of an Expect script. For example:
#!/usr/local/bin/expect
set pw admin
spawn ssh admin@192.168.1.251
expect"*password:"
send"$pw\r"
expect"*system*"
the RMC with IP address 192.168.1.251 may be logged in through the Except script exemplified above.
S2: and sequentially carrying out a BBU self-inspection test, a BBU discharge test and a BBU charging test.
Specifically, the testing method of step S2 includes two embodiments, which are described in detail below with reference to fig. 2 and 3, respectively. Referring to fig. 2, fig. 2 is a schematic flowchart of an implementation manner of step S2 in the embodiment of the present application. As shown in fig. 2, step S2 further includes the following steps:
s201: under the condition that the power supply is normally powered, the BBU starts the boosting self-checking discharge, the BBU self-checking test time T1 is enabled to be more than or equal to 10 minutes, test data are continuously acquired in the process, and whether the whole cabinet is abnormal or not is judged according to the acquired test data.
Step S2 provided in this embodiment is implemented from the perspective of controlling the test time, where the self-test time of different complete cabinets is related to the load of the complete cabinet, and the self-test time is longer when the load is larger. In this embodiment, the BBU self-test time T1 is greater than or equal to 10 minutes, which can ensure that a complete and comprehensive round of self-test can be performed on BBUs in a conventional Rack cabinet. Normally, the self-checking test time is selected to be 10 minutes, so that the BBU can be guaranteed to complete one round of self-checking, time can be saved, and the self-checking test efficiency is improved. The power supply in the embodiment is a traditional power supply for supplying power to the whole cabinet, and the BBU is a standby power supply. In step S201, the power supply is kept in an on state to perform self-checking test, so that the BBU can be discharged once at intervals, the BBU is ensured to be in a working state for a long time, the BBU is prevented from being invalid, and the performance of the BBU is protected. Typically, BBU is discharged every 90 days.
After step S201 is executed, a part of discharging is already performed in the BBU self-test process, and then step S202 is executed: and (3) automatically turning off the power supply through the RMC, starting the BBU to discharge and enabling the BBU discharge test time T2 to meet the condition that T2 is more than or equal to 5 minutes and less than or equal to 10 minutes, continuously acquiring test data in the process and judging whether the whole cabinet is abnormal according to the acquired test data.
Step S202 is to continue discharging on the basis of the already discharged part of step S201, and it should be noted that step S202 is to perform a discharge test of BBU in a state where the power supply is turned off. BBU discharge test time T2 satisfies 5 minutes ≤ T2 ≤ 10 minutes. The discharge time of 5-10 minutes can prevent the power failure of the whole cabinet caused by the discharge of the electric quantity of the BBU or the adverse effect on the performance of the BBU caused by the over-discharge of the BBU, and the time setting can ensure that the stability of the whole cabinet is judged through the discharge test. Preferably, the discharge test time is 5 minutes.
After the BBU discharge is finished, step S203 is executed: the power supply is automatically started through the RMC, the power supply charges the BBU, the BBU charging test time T3 is enabled to meet the condition that T3 is more than or equal to 2 hours and less than or equal to 3 hours, test data are continuously acquired in the process, and whether the whole cabinet is abnormal or not is judged according to the acquired test data.
The BBU charging test time is preferably 3 hours, the maximum electric quantity which can be borne by the BBU can be ensured after the BBU is charged, and the performance of the BBU is not adversely affected.
In the above steps S201 to S203, the test data includes: the input voltage of each node server, the log of the RMC, the log of the BMC of each node server, and the system log of each node server.
Correspondingly, whether the complete machine cabinet is abnormal or not is judged according to the collected test data, and the method comprises the following steps: and judging whether the node servers have an undervoltage condition or an overvoltage condition according to the input voltage of each node server, and judging whether the states of the whole cabinet and each node server are normal or not according to the log of the RMC, the log of the BMC and the system log of each node server.
Specifically, the input voltage of the node server is normally 12V ± 5%, namely: 11.4V-12.6V. If the input voltage captured by one node server in each node server in the test period is less than 11.4V, judging that the node server has an under-voltage condition; and if the input voltage captured by one node server in each node server in the test period is more than 12.6V, judging that the node server has an overvoltage condition. And if the log of the RMC has a critical or warning log, judging that the complete machine cabinet is abnormal. And if the log of each node server BMC or the log of a certain node server of each node server has a critical or warning log, judging that the node server is abnormal in state. And the influence of the BBU on the stability of the whole cabinet can be detected according to whether the node server has an undervoltage or overvoltage condition and whether the state of the whole cabinet is normal.
In the above steps S201-S203, the test time is set by the script, and the BBU self-inspection test, the BBU discharge test, and the BBU charge test are controlled by controlling the test time, which is convenient and fast, and is beneficial to improving the test efficiency.
Referring to fig. 3, fig. 3 is a schematic flowchart of another implementation manner of step S2 in this embodiment. As can be seen from fig. 3, step S2 includes the following processes:
s211: under the condition that the power supply is normally powered, the BBU starts the boosting self-checking discharge and discharges to 70% of electric quantity, test data are continuously acquired in the process, and whether the whole cabinet is abnormal or not is judged according to the acquired test data.
Step S2 provided in this embodiment is implemented from the perspective of controlling the BBU power, and the BBU power can be acquired in real time by the BMC. The BBU self-checking process can be set to discharge to 70% of electric quantity through a script, when the residual electric quantity of the BBU reaches 70% of the full electric quantity of the BBU, the BBU self-checking test is finished, and the next test process is started.
S212: and (3) automatically turning off the power supply through the RMC, starting the BBU to discharge and discharging to 10-20% of electric quantity, continuously acquiring test data in the process and judging whether the whole cabinet is abnormal or not according to the acquired test data.
Step S212 is to continue discharging following the discharging amount of step S211, that is, the initial amount of electricity of the discharging test of step S212 is 70% of the amount of electricity. It should be noted that step S211 is performed in a power-on state, and step S212 is performed in a power-off, BBU-powered state. And finishing the discharge test when the BBU is discharged to 10% -20% of the full capacity of the BMC by checking. The residual 10% -20% of the electric quantity of the BBU can prevent the power failure of the whole cabinet caused by the discharge of the electric quantity of the BBU or the adverse effect on the performance of the BBU caused by the over discharge of the BBU, and the residual electric quantity setting can ensure that the stability of the whole cabinet is judged through a discharge test.
S213: the power supply is automatically started through the RMC, the BBU is charged by the power supply to 95% -100% of electric quantity, test data are continuously collected in the process, and whether the whole cabinet is abnormal or not is judged according to the collected test data.
In the above steps S211 to S213, the method for selecting the test data and determining whether the entire cabinet is abnormal according to the collected test data is the same as that in the embodiment shown in fig. 2, and will not be described herein again.
It can be known from the above step S2 that the test method in the present application can cover all usage scenarios of the BBU, including BBU self-inspection, BBU charging, and BBU discharging, so that the influence of the BBU on the stability of the entire cabinet can be tested more comprehensively, and a more accurate test result can be obtained.
S3: and setting the cycle number of the step S2 according to the model of the BBU and the test requirement.
The test method in the embodiment of the application is a cycle test, namely: and taking a BBU self-inspection test, a BBU discharge test and a BBU charging test as a test period, and performing multiple cycle tests to test the hero of the BBU in the stability of the whole cabinet. The specific cycle number is determined according to the model of the BBU and the test requirement of the whole cabinet, and for the conventional Rack whole cabinet, the cycle number is usually set to be 15. If the test is performed in a manner of controlling the test time, the total test time may be set to 48 hours. If the test is performed in a manner of controlling the BBU power, the number of cycles can be set to 15.
In this embodiment of the application, before step S1, the method may further include: and configuring a test environment. Specifically, configuring the test environment includes the following processes:
s41: and a Host is established, so that networks between the Host and the RMC of the whole cabinet and between the Host and the BMC of each node server are smooth.
S42: and respectively setting the Syslogserver IP of the RMC and the Syslogserver IP of each node server as the IP of the Host, and configuring the Host syslog server.
It can be ensured by step S42 that the Host continuously receives the RMC and the log of each node server.
S43: and setting an SSH password-free login mode between the Host and each node server.
S44: and pressurizing each node server to ensure that the whole cabinet achieves the maximum power consumption.
Aiming at a conventional Rack whole cabinet server, the maximum power consumption can be set to be more than or equal to 8.8KW, namely the minimum set value of the maximum power consumption of the Rack whole cabinet server is 8.8 KW. Generally, when the maximum power consumption of the Rack whole cabinet reaches 8.8KW, the whole cabinet is under the condition of maximum load, and under the condition of the maximum load, various tests of BBU are performed on the whole cabinet server, so that more reliable test data can be obtained.
With the above steps S41-S44, test data can be quickly obtained by the Host, such as: the input voltage of each node server, the log of the RMC of the complete machine cabinet, the log of the BMC of each node server and the system log of each node server provide smooth test environment for subsequent BBU self-inspection test, BBU discharge test and BBU charging test, and the improvement of test efficiency and test accuracy is facilitated.
Taking a mode of controlling the test time as an example, an Except script for the BBU self-test, the BBU discharge test and the BBU charging test is provided, wherein the self-test time in the script is set to be 10 minutes, the BBU discharge test time is set to be 5 minutes, and the BBU charging test time is set to be 3 hours. The specific script is as follows:
#!/usr/local/bin/expect
set pw admin
spawn ssh admin@192.168.1.251
expect"*password:"
send"$pw\r"
expect"*system*"
send"set set bbs.ForceDischarging=start\r"
expect"*system*"
exec sleep 600
send"set power.PSUControlMode=manual\r"
expect"*system*"
exec sleep 20
send"stop power/\r"
expect"*sure*"
send"y\r"
expect"*system*"
exec sleep 300
send"start power/\r"
expect"*system*"
exec sleep 120
send"*start chassis*"
exec sleep 10800。
an example of a program for continuously collecting the 12V voltage of the node server in the test process is as follows:
for i in{1..40};do ssh cu$i"ipmitool sdr|grep"SYS_12V">>12V.log";done.
during the test, an example of a procedure for continuously collecting the log of the entire cabinet RMC and the log of each node server BMC is as follows:
#!/bin/sh
for word in{error fail warning}
do
cat/var/log/messages|grep-i$word|tee-a/root/error.log//
if error report of error and the like appears in the log, the error report information is written into error.
Referring to fig. 4, the present application further provides a test system for testing the influence of BBU on the stability of the whole cabinet, the test system is applied to the whole cabinet with BBU, and a plurality of node servers are installed in the whole cabinet. As can be seen from fig. 4, the test system includes: the system comprises a login module 1, a test module 2 and a cycle setting module 3. The login module 1 is used for logging in the RMC through a Host computer in a script mode, and the Host computer is in communication connection with a plurality of node servers; the test module 2 is used for sequentially carrying out BBU self-inspection test, BBU discharge test and BBU charging test; the cycle setting module 3 is used for setting the cycle testing times of the testing module according to the model of the BBU and the testing requirement.
Further, the test module 2 has two embodiments, and the test module 2 in the first embodiment includes: the system comprises a first BBU self-detection testing unit, a first BBU discharge testing unit and a first BBU charge testing unit, wherein the first BBU self-detection testing unit is used for enabling a BBU to start boosting self-detection discharge under the condition that a power supply is normally supplied with power and enabling self-detection testing time T1 to be more than or equal to 10 minutes, and test data are continuously acquired in the BBU self-detection process and whether the whole cabinet is abnormal or not is judged according to the acquired test data; the first BBU discharge test unit is used for enabling the BBU to start discharging under the condition that the power supply is turned off and enabling the discharge test time T2 to meet the condition that the time T2 is more than or equal to 5 minutes and less than or equal to 10 minutes, and continuously collecting test data in the BBU discharge process and judging whether the whole cabinet is abnormal or not according to the collected test data; the first BBU charging test unit is used for enabling a power supply to charge the BBU under the condition that the power supply is turned on, enabling the charging test time T3 to meet the condition that the time T3 is more than or equal to 2 hours and less than or equal to 3 hours, continuously collecting test data in the BBU charging process and judging whether the whole cabinet is abnormal or not according to the collected test data.
The test module 2 in the second embodiment comprises: the system comprises a second BBU self-checking test unit, a second BBU discharge test unit and a second BBU charging test unit. The second BBU self-test unit is used for enabling the BBU to start boosting self-test discharge and discharge to 70% of electric quantity under the condition that the power supply is started, continuously collecting test data in the BBU self-test process and judging whether the whole cabinet is abnormal or not according to the collected test data; the second BBU discharge test unit is used for enabling the BBU to start discharging and discharging to 10% -20% of electric quantity under the condition that the power supply is turned off, continuously collecting test data in the BBU discharge process and judging whether the whole cabinet is abnormal or not according to the collected test data; the second BBU charging test unit is used for enabling the power supply to charge the BBU under the condition that the power supply is turned on and charging the BBU to 95% -100% of electric quantity, continuously collecting test data in the BBU charging process and judging whether the whole cabinet is abnormal or not according to the collected test data.
Further, the test system in the present application may further include a test environment configuration module, and specifically, the test environment configuration module may further include: the system comprises a network platform, a Host computer syslog server configuration unit, an SSH password-free login setting unit and a pressurization control unit. The network platform is used for building a Host machine, so that networks between the Host machine and the RMC of the whole cabinet and between the Host machine and the BMC of each node server are smooth. The Host syslog server configuration unit is configured to set the syslog server IP of the RMC and the syslog server IP of each node server as the IP of the Host, thereby configuring the Host syslog server. And the SSH password-free login setting unit is used for setting an SSH password-free login mode between the Host and each node server. And the pressurization control unit is used for pressurizing each node server to enable the whole cabinet to achieve the maximum power consumption.
The testing principle and the testing method of the testing system for checking the influence of BBU on the stability of the whole cabinet provided in the embodiment of the present application have been described in detail in the embodiments shown in FIGS. 1 to 3, and are not described herein again.
In summary, the test system in this embodiment can completely cover the usage scenario of the BBU, including BBU self-inspection, BBU charging, and BBU discharging, so that the influence of the BBU on the stability of the entire cabinet can be tested more comprehensively, and a more accurate test result can be obtained. In addition, the test system in this embodiment can continuously collect the input voltage of each node server, the log of the RMC, the log of the BMC of each node server, and the system log of each node server in the test process, so that the influence of the BBU on the stability of the entire cabinet can be timely discovered, and the purposes of early warning and feedback in time when the stability of the entire cabinet is poor are achieved.
The foregoing is only an alternative embodiment of the present application and it will be apparent to those skilled in the art that numerous modifications and adaptations can be made without departing from the principles of the present application and are intended to be included within the scope of the present application.

Claims (5)

1. A test method for detecting the influence of BBU on the stability of the whole cabinet is applied to the whole cabinet with BBU, a plurality of node servers are installed in the whole cabinet, and the test method is characterized by comprising the following steps:
s1: the Host logs in the RMC through a script, and the Host is in communication connection with a plurality of node servers;
s2: sequentially carrying out a BBU self-inspection test, a BBU discharge test and a BBU charging test;
s3: setting the cycle number of the step S2 according to the model of the BBU and the test requirement;
wherein, step S2 specifically includes:
s201: under the condition that the power supply is normally powered, the BBU starts the boosting self-checking discharge and enables the BBU self-checking test time T1 to be more than or equal to 10 minutes, test data are continuously acquired in the process, and whether the whole cabinet is abnormal or not is judged according to the acquired test data, wherein the test data comprise: the input voltage of each node server, the log of RMC, the log of BMC and the system log of each node server;
s202: the power supply is automatically turned off through the RMC, the BBU starts to discharge, and the BBU discharge test time T2 is enabled to meet the condition that T2 is more than or equal to 5 minutes and less than or equal to 10 minutes, test data are continuously acquired in the process, and whether the whole cabinet is abnormal or not is judged according to the acquired test data;
s203: the power supply is automatically started through the RMC, the power supply charges the BBU, the BBU charging test time T3 is enabled to meet the condition that T3 is more than or equal to 2 hours and less than or equal to 3 hours, test data are continuously acquired in the process, and whether the whole cabinet is abnormal or not is judged according to the acquired test data.
2. The method as claimed in claim 1, wherein the step of determining whether the entire cabinet is abnormal according to the collected test data comprises:
and judging whether the node servers have an undervoltage condition or an overvoltage condition according to the input voltage of each node server, and judging whether the states of the whole cabinet and each node server are normal according to the log of the RMC, the log of the BMC of each node server and the system log of each node server.
3. The method according to claim 1 or 2, wherein before step S1, the method further comprises the following steps:
and configuring a test environment.
4. The method of claim 3, wherein said configuring the test environment includes the steps of:
s41: building a Host machine to ensure that networks between the Host machine and the RMC of the whole cabinet and between the Host machine and the BMC of each node server are smooth;
s42: respectively setting the Syslogserver IP of the RMC and the Syslogserver IP of each node server as the IP of a Host, and configuring a Host syslog server;
s43: setting an SSH password-free login mode between a Host and each node server;
s44: and pressurizing each node server to ensure that the whole cabinet achieves the maximum power consumption.
5. A test system for detecting the influence of BBU on the stability of the whole cabinet is applied to the whole cabinet with BBU, a plurality of node servers are installed in the whole cabinet, and the test system is characterized by comprising:
the system comprises a login module (1) and a plurality of node servers, wherein the login module is used for logging in the RMC in a script mode through a Host, and the Host is in communication connection with the node servers;
the test module (2) is used for sequentially carrying out a BBU self-inspection test, a BBU discharge test and a BBU charging test;
the cycle setting module (3) is used for setting the cycle testing times of the testing module according to the model of the BBU and the testing requirement;
wherein the test module (2) comprises:
the first BBU self-test unit is used for enabling the BBU to start boosting self-test discharge under the condition that a power supply is normally supplied with power, enabling the self-test time T1 to be more than or equal to 10 minutes, continuously acquiring test data in the BBU self-test process and judging whether the whole cabinet is abnormal or not according to the acquired test data, wherein the test data comprise: the input voltage of each node server, the log of RMC, the log of BMC and the system log of each node server;
the first BBU discharge test unit is used for enabling the BBU to start discharging under the condition that the power supply is turned off and enabling the discharge test time T2 to meet the condition that the time T2 is more than or equal to 5 minutes and less than or equal to 10 minutes, and continuously collecting test data in the BBU discharge process and judging whether the whole cabinet is abnormal or not according to the collected test data;
the first BBU charging test unit is used for enabling a power supply to charge the BBU under the condition that the power supply is turned on, enabling the charging test time T3 to meet the condition that the time T3 is more than or equal to 2 hours and less than or equal to 3 hours, continuously collecting test data in the BBU charging process and judging whether the whole cabinet is abnormal or not according to the collected test data.
CN201711100119.6A 2017-11-09 2017-11-09 Test method and system for detecting influence of BBU on stability of whole cabinet Active CN107907762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711100119.6A CN107907762B (en) 2017-11-09 2017-11-09 Test method and system for detecting influence of BBU on stability of whole cabinet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711100119.6A CN107907762B (en) 2017-11-09 2017-11-09 Test method and system for detecting influence of BBU on stability of whole cabinet

Publications (2)

Publication Number Publication Date
CN107907762A CN107907762A (en) 2018-04-13
CN107907762B true CN107907762B (en) 2020-10-20

Family

ID=61843827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711100119.6A Active CN107907762B (en) 2017-11-09 2017-11-09 Test method and system for detecting influence of BBU on stability of whole cabinet

Country Status (1)

Country Link
CN (1) CN107907762B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616428A (en) * 2018-05-14 2018-10-02 郑州云海信息技术有限公司 A kind of mobile APP implementations of remote management RACK computer rooms

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI427471B (en) * 2011-07-28 2014-02-21 Quanta Comp Inc Rack server system and operation method thereof
CN103729271B (en) * 2012-10-11 2017-07-25 北京百度网讯科技有限公司 Stability test method, system and the test server of whole machine cabinet
CN104317714A (en) * 2014-10-29 2015-01-28 浪潮电子信息产业股份有限公司 Method for automatically testing stability of rack based on expect
CN105183598A (en) * 2015-08-27 2015-12-23 浪潮电子信息产业股份有限公司 Reliability test method of server complete machine in cloud computing ecosystem
CN105608002A (en) * 2015-12-17 2016-05-25 浪潮电子信息产业股份有限公司 Method for simultaneously capturing all node information of Rack whole cabinet
CN106339294A (en) * 2016-08-29 2017-01-18 浪潮电子信息产业股份有限公司 Voltage monitoring system and method
CN106445755B (en) * 2016-09-21 2019-09-06 郑州云海信息技术有限公司 A kind of server automated test method of whole machine cabinet
CN106785145A (en) * 2017-02-04 2017-05-31 郑州云海信息技术有限公司 A kind of battery BBU discharge and recharge detection methods based on Rack racks
CN106908738A (en) * 2017-04-13 2017-06-30 广东浪潮大数据研究有限公司 A kind of automatic testing method of SmartRack reserce cells

Also Published As

Publication number Publication date
CN107907762A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
US8648568B2 (en) Backup power system management
TWI427471B (en) Rack server system and operation method thereof
CN111312325B (en) BBU fault diagnosis method and device, electronic equipment and storage medium
US20170074946A1 (en) Energy based battery backup unit testing
CN106774771B (en) Power supply system and power supply control method thereof
US9531202B2 (en) Battery management system and method for charging lithium-ion battery cells in an information handling system
CN106908738A (en) A kind of automatic testing method of SmartRack reserce cells
CN108920307A (en) Server Restart test method, device, equipment and computer readable storage medium
CN104600784A (en) Method and device for controlling power-on flow of multi-branch battery energy storage system
CN107748331A (en) A kind of method for verifying battery confidence level
CN114441964B (en) Fault positioning method, device and medium in power supply process of storage system
CN107612775A (en) A kind of node two level connects the DC method of testings and system of server
CN110008070A (en) A kind of AEP memory AC test method powered off at random based on power supervisor
CN107907762B (en) Test method and system for detecting influence of BBU on stability of whole cabinet
US20180233947A1 (en) Device operating state modification with uninterruptible power source
CN114400736A (en) Online battery pack capacity checking and balancing device
CN109412819A (en) Method and device for warning device power down
CN104333093B (en) Electric cabinet management method and device and battery management system
CN110515757B (en) Information processing method, device, server and medium of distributed storage system
CN110377450A (en) A kind of hardware anomalies processing method, system and associated component
CN107391324B (en) Test control device and method of storage system
CN116185737A (en) DC abnormal power failure detection method and device based on notebook computer and computer equipment
CN108804269A (en) A kind of system and method controlling test RAID board stability based on domain
CN114184959A (en) Online detection device for storage battery
CN109116141B (en) Method for testing power supply reliability of POE switch restart

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200921

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant