CN116166485A - Server testing method, device, equipment, storage medium and program product - Google Patents

Server testing method, device, equipment, storage medium and program product Download PDF

Info

Publication number
CN116166485A
CN116166485A CN202211606220.XA CN202211606220A CN116166485A CN 116166485 A CN116166485 A CN 116166485A CN 202211606220 A CN202211606220 A CN 202211606220A CN 116166485 A CN116166485 A CN 116166485A
Authority
CN
China
Prior art keywords
server
disk array
tested
array mode
test
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.)
Granted
Application number
CN202211606220.XA
Other languages
Chinese (zh)
Other versions
CN116166485B (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.)
Zhongke Controllable Information Industry Co Ltd
Original Assignee
Zhongke Controllable Information Industry 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 Zhongke Controllable Information Industry Co Ltd filed Critical Zhongke Controllable Information Industry Co Ltd
Priority to CN202211606220.XA priority Critical patent/CN116166485B/en
Publication of CN116166485A publication Critical patent/CN116166485A/en
Application granted granted Critical
Publication of CN116166485B publication Critical patent/CN116166485B/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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • 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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application relates to a server testing method, device, apparatus, storage medium and program product. The method comprises the steps of determining a disk array mode to be tested; after the server is powered down and restarted, performing stability test on the server in a disk array mode to be tested, and determining whether the server is in a normal working state; if the server is in the normal working state, updating the disk array mode to be tested, and performing stability test on the server in the updated disk array mode. The server testing method can accurately test the overall stability of the server.

Description

Server testing method, device, equipment, storage medium and program product
Technical Field
The present invention relates to the field of testing technologies, and in particular, to a server testing method, apparatus, device, storage medium, and program product.
Background
With the rapid development of industries such as data centers and cloud computing, the rapid increase of cabinets of the data centers and the improvement of computing power in the cloud computing industry, the performance requirements on servers are higher and higher. In order to ensure the normal operation of the server for a long time, the stability of the server needs to be tested.
In the prior art, when a server is tested, the whole stability of the server cannot be accurately tested.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a server testing method, apparatus, device, storage medium, and program product that can accurately test the overall stability of a server and ensure the overall stability of the server.
In a first aspect, the present application provides a server testing method, including:
determining a disk array mode to be tested;
after the server is powered down and restarted, performing stability test on the server in a disk array mode to be tested, and determining whether the server is in a normal working state;
if the server is in the normal working state, updating the disk array mode to be tested, and performing stability test on the server in the updated disk array mode.
In the above embodiment, after the stability test is performed on the server in the disk array mode to be tested, and when the server is determined to be in the normal working state, the disk array mode to be tested is updated, and the stability test is performed on the server again in the updated disk array mode. Compared with the prior art for testing the stability of a single disk array mode, the method can test the stability of the server in two disk array modes, and can better accord with the actual application scene, so that the overall stability of the server can be accurately tested, and the overall stability of the server is ensured. In addition, the server testing method provided by the embodiment can realize automatic testing of the overall stability of the server, can reduce manpower and material resources and cost investment, and has higher practicability.
In one embodiment, performing a stability test on a server in a disk array mode to be tested, and determining whether the server is in a normal working state includes:
acquiring test information under a disk array mode to be tested;
and determining whether the server is in a normal working state according to the test information.
In the above embodiment, by acquiring the test information of the server in the disk array mode to be tested, whether the server is in a normal working state is determined directly according to the test information, and the determination method is quick, simple and easy to implement.
In one embodiment, the test information includes error information and hardware information of the link layer, and determining whether the server is in a normal operating state according to the test information includes:
under the condition that the error information does not contain preset abnormal values, determining whether the hardware information is consistent with the corresponding hardware parameters;
if the server is consistent, determining that the server is in a normal working state;
if the server is inconsistent, the server is determined to not be in a normal working state.
In the above embodiment, when the test information includes the error information and the hardware information of the link layer, it is determined whether the error information includes the preset abnormal value, and if the error information does not include the preset abnormal value, it is further compared whether the hardware information is consistent with the corresponding hardware parameter to determine whether the server is in a normal working state. Therefore, under the condition that the error information comprises the preset abnormal value, hardware information does not need to be compared, and the determination efficiency can be improved. In addition, the method for determining whether the server is in the normal working state or not through the error information and the hardware information is simple and quick and easy to realize.
In one embodiment, the method further comprises:
outputting error information corresponding to the preset abnormal value under the condition that the error information contains the preset abnormal value;
or outputting the currently tested hardware information under the condition that the hardware information is inconsistent with the corresponding hardware parameters.
In the above embodiment, when the server determines that the error information includes the preset abnormal data, or determines that the hardware information is inconsistent with the corresponding hardware parameter, the specific information that causes the server to be in a non-working state is positioned and output to the external terminal, so that a worker can repair or debug the server according to the test result, and the practicability of the server test method can be improved.
In one embodiment, before updating the disk array pattern to be tested, the method further comprises:
determining whether the test times reach the target times;
if not, returning to execute the step of testing the stability of the server under the disk array mode to be tested after restarting the power failure of the server, and determining whether the server is in a normal working state;
if so, continuing to execute the step of updating the disk array mode to be tested.
In the above embodiment, after performing a stability test on the server in the current disk array mode to be tested, before updating the current disk array mode to be tested, the current test times are judged, and if the test times reach the target times, the current disk array mode to be tested is updated; if the test times do not reach the target times, continuing to perform stability test in the current disk array mode to be tested. Therefore, the server can be ensured to be subjected to stability test for multiple times in the same disk array mode, test errors can be avoided, and the accuracy of the stability test of the server can be improved.
In one embodiment, after the stability test is performed on the server in the updated disk array mode, the method further includes:
determining whether the server is in a normal working state or not, and determining whether the server completes stability test in all disk array modes under the condition that the server is in the normal working state;
if not, returning to the step of executing updating the disk array mode to be tested;
if yes, stopping the test.
In the above embodiment, after the stability test is performed on the server in the updated disk array mode, and when it is determined that the server is in a normal working state, whether the stability test is completed in all the disk array modes is judged first, if yes, it means that the stability test is completed in all the disk array modes on the server, if not, the disk array mode is continuously updated, and the stability test is performed in the updated disk array mode. Therefore, the stability test of the server can be completed under all disk array modes supported by the server, the overall stability test of the server can be realized, and the overall stability of the server can be further ensured.
In a second aspect, one embodiment of the present application provides a server testing apparatus, the apparatus comprising:
the determining module is used for determining a disk array mode to be tested;
the testing module is used for testing the stability of the server in a disk array mode to be tested after the server is powered down and restarted, and determining whether the server is in a normal working state or not;
and the updating module is used for updating the disk array mode to be tested if the server is determined to be in a normal working state, and carrying out stability test on the server in the updated disk array mode.
In a third aspect, an embodiment of the present application provides a computer device comprising a memory storing a computer program and a processor implementing the steps of the method as provided in the first aspect above when the computer program is executed by the processor.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method as provided in the first aspect described above.
In a fifth aspect, an embodiment of the present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method as provided in the first aspect above.
Drawings
FIG. 1 is an application environment diagram of a server testing method in one embodiment;
FIG. 2 is a flowchart illustrating steps of a server testing method according to an embodiment;
FIG. 3 is a flowchart illustrating a server testing method according to another embodiment;
FIG. 4 is a flowchart illustrating steps of a server testing method according to another embodiment;
FIG. 5 is a flowchart illustrating steps of a server testing method according to another embodiment;
FIG. 6 is a flowchart illustrating steps of a server testing method according to another embodiment;
FIG. 7 is a flowchart illustrating steps of a server testing method according to another embodiment;
FIG. 8 is a flowchart illustrating steps of a server testing method according to another embodiment;
FIG. 9 is a schematic diagram of a server testing device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Before the technical scheme of the embodiment of the application is specifically described, the technical background or technical evolution context based on the embodiment of the application is described. With the rapid development of industries such as data centers and cloud computing, the rapid increase of cabinets in the data centers and the pursuit of computing power in the computing industry are increasingly high, so that the performance requirements on servers are also increasingly high. In order to ensure that the server can operate normally for a long time, the stability of the server needs to be tested. In the conventional technology, when testing a server, only stability test is performed in a single disk array mode, and all array modes supported by a disk array card cannot be covered. In view of the above, the present application provides a server testing method capable of performing a stability test on a server in a plurality of disk array modes supported by a disk array card.
The server testing method provided by the embodiment of the application can be applied to a server, and a system for installing the server is needed before the stability of the server is tested by using the server testing method provided by the application. After the server is started and BIOS (Basic Input Output System ) is entered, determining a disk array mode of a disk array card to be tested, and installing an operating system on the server to be tested under the disk array card through pxe (preboot execute environment, pre-starting execution environment); then installing the system environment in the server, namely the drive and firmware of the network card and the drive and firmware of the disk array card; and configuring the preset test script in the server. The internal structure of the server may be as shown in fig. 1. The server includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the server is configured to provide computing and control capabilities. The memory of the server includes nonvolatile storage medium and internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the server is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a server testing method.
Referring to fig. 2, an embodiment of the present application provides a server testing method, and the embodiment is specifically described by applying the method to a server as shown in fig. 1. In this embodiment, the steps of the server testing method include:
step 200, determining a disk array mode to be tested.
Disk array (Redundant Arrays of Independent Disks, RAID) modes include RAID0, RAID1 through RAID7, and RAID0+1. Typically, the most common disk array modes are RAID0, RAID1, RAID5, and RAID10.
After the operating system and the system environment are installed in the server, the disk array mode to be tested in the disk array card in the current server can be determined. The disk array pattern to be tested may be any one of a plurality of disk array patterns supported by the disk array card. Optionally, the disk array mode to be tested is a disk array mode commonly used by a worker.
And 210, after the server is powered down and restarted, performing stability test on the server in a disk array mode to be tested, and determining whether the server is in a normal working state.
After determining the disk array mode to be tested, restarting the current server after powering down, executing the internally configured test script by the server after restarting the current server, and testing the stability of the server in the disk array mode to be tested to determine whether the server is in a normal working state. That is, after the server is powered down and restarted, it is determined that various hardware or software in the server can work normally.
The stability test of the server can be to grasp the hardware information on the server for comparison or grasp the information such as hard disk error reporting and the like on the server for test. The specific procedure of the stability test is not limited in this embodiment as long as the function thereof can be realized.
Step 220, if it is determined that the server is in a normal working state, updating the disk array mode to be tested, and performing stability test on the server in the updated disk array mode.
If the server determines that the server is in a normal working state through the stability test of the server in the disk array mode to be tested, the disk array mode to be tested is updated, namely, any one of the disk array modes supported by the disk array except the disk array mode to be tested is used as a new disk array mode to be tested. After updating the disk array mode, the server executes the test script again, and performs a stability test on the server in the updated disk array mode, where the specific process of performing the stability test on the server at this time may be the same as the process of performing the stability test for the first time, and will not be described herein again.
If the server determines that the server is not in a normal working state through the stability test of the server in the disk array mode to be tested, stopping the test, and positioning hardware which is not in the normal working state in the server according to the information obtained by the test, so that corresponding measures can be conveniently taken for maintenance or debugging later.
In an alternative embodiment, after updating the disk array mode, an operating system and a system environment are required to be installed under a disk array card corresponding to the disk array mode through px, and after the operating system and the system environment are installed, stability test is performed on the server under the disk array mode.
The server testing method provided by the embodiment of the application comprises the steps of determining a disk array mode to be tested; after the server is powered down and restarted, performing stability test on the server in a disk array mode to be tested, and determining whether the server is in a normal working state; if the server is in the normal working state, updating the disk array mode to be tested, and performing stability test on the server in the updated disk array mode. After stability test is performed on the server in the disk array mode to be tested, and when the server is determined to be in a normal working state, the disk array mode to be tested is updated, and stability test is performed on the server again in the updated disk array mode. Compared with the prior art for testing the stability of a single disk array mode, the method can test the stability of the server in two disk array modes, and can better accord with the actual application scene, so that the overall stability of the server can be accurately tested, and the overall stability of the server is ensured. In addition, the server testing method provided by the embodiment can realize automatic testing of the overall stability of the server, can reduce manpower and material resources and cost investment, and has higher practicability.
Referring to fig. 3, in one embodiment, a method for determining whether a server is in a normal operating state by performing a stability test on the server in a disk array mode to be tested includes the steps of:
step 300, obtaining test information under a disk array mode to be tested.
When the server tests the server in the disk array mode to be tested, the server acquires the test information in the disk array mode to be tested by executing the corresponding test script. The test information is information that can be used to characterize whether various hardware within the server is in a normal operating state. The embodiment does not limit the specific content of the test information.
Optionally, the test information includes sensor information of various hardware on the server, error information of a physical link layer of the server, and the like. For example: temperature information and voltage information of the network card, temperature information and voltage information of the hard disk, temperature information and voltage information of the backboard, redundant error information of the server, and the like.
Step 310, determining whether the server is in a normal working state according to the test information.
After the server acquires the test information through the test script, the acquired test information is processed to determine whether the hardware corresponding to the test information is in a normal working state, so that whether the server is in the normal working state is determined. If the test information is different, the method for determining whether the corresponding hardware is in the normal working state according to the test information is different, which is not limited in this embodiment.
In this embodiment, by acquiring the test information of the server in the disk array mode to be tested, it is directly determined whether the server is in a normal working state according to the test information, and such a determination method is fast, simple and easy to implement.
In one embodiment, the test information in the disk array mode to be tested obtained by the server includes error information and hardware information of the link layer.
The error information of the link layer includes error information of a disk array (RAID) card, error information of a hard disk, and back plane error information.
The server sends an error information acquisition instruction to the garcili tool by executing the test script, and the garcili tool acquires the error information of the link layer according to the received instruction. Specifically, error information of the link layer is stored in a log, and a server uses a garcili tool to grasp the related error information in the log.
The hardware information includes component information and high-speed serial computer expansion bus standard information. The component information includes sensor information, power consumption, network card information, hard disk information, and RAID card information. The sensor information comprises temperature information, voltage information and the like; the hard disk information comprises the capacity of the hard disk, the firmware version of the hard disk, whether the hard disk can be identified and the like; the network card information comprises a firmware version of the network card, whether the network card can be identified, and the like; the RAID card information includes a RAID card name, a firmware version of the RAID card, a hard disk to which the RAID card is connected, and the like. The high-speed serial computer expansion bus standard information includes speed, bit width, cache size, etc.
The server obtains the standard information of the high-speed serial computer expansion bus of the network card and the RAID card by executing the lsPCi command in the test script; executing the lscpu command in the test script, and acquiring the standard information of the high-speed serial computer expansion bus of the CPU in the server. The test information may also include frequency, and the operating frequency of the CPU may also be obtained by executing the lscpu command in the test script.
And the server sends a sensor information acquisition instruction to the ipmitool tool by executing the test script, and the ipmitool tool acquires the sensor information according to the received instruction. Executing the test script, and sending an instruction for acquiring the hard disk information to a smart tool, wherein the smart tool acquires the hard disk information according to the received instruction; executing the test script, sending an instruction for acquiring the network card information to the etkool tool, and acquiring the network card information by the etkool tool according to the received instruction; and executing a storage/call show all command in the test script to acquire RAID card information.
Referring to fig. 4, in one embodiment, an implementation method for determining whether a server is in a normal working state according to test information includes the steps of:
step 400, determining whether the hardware information is consistent with the corresponding hardware parameters when the error information does not include the preset abnormal value.
The test information in this embodiment includes error information and hardware information of the link layer. The error information is represented by a value, i.e., if an error occurs, the value of the error information increases. For example: when the RAID card has errors, the value of error information of the RAID card is increased; when the hard disk is in error, the value of the error information of the hard disk is increased; when an error occurs in the back plane, the value of the error information of the back plane increases.
The server judges the obtained error information and determines that the error information does not contain preset abnormal values, namely, the error information of the RAID card, the error information of the hard disk and the error information of the backboard are not increased and still are initial values; the server judges the obtained hardware information, namely, compares the hardware information with the corresponding hardware parameters, and determines whether the hardware information is consistent with the corresponding hardware parameters.
The hardware parameters are parameters stored in the server in advance, and each piece of hardware information has the corresponding hardware parameters. For example: the name of the network card installed by the server is arranged in the server, the server compares the acquired name of the network card with the name of the network card corresponding to the inside of the server, and whether the acquired name of the network card is consistent with the name of the network card corresponding to the inside of the server is determined; the server is internally provided with the bit width of the network card in the server, and the server compares the acquired bit width of the network card with the bit width of the corresponding network card in the server to determine whether the acquired bit width of the network card is consistent with the bit width of the corresponding network card in the server.
The server judges the obtained error information, and under the condition that the error information contains preset abnormal values, namely the error information of the RAID card, the error information of the hard disk and the value of at least one error information in the error information of the backboard are increased, the server stops testing.
Step 410, if the server is consistent, determining that the server is in a normal working state.
If the server compares the obtained hardware information with the corresponding hardware parameters, it is determined that the hardware information is consistent with the corresponding hardware parameters, and the server can determine that the server is in a normal working state if the error information and the hardware information of the link layer obtained by the server are normal.
Step 420, if not, determining that the server is not in a normal working state.
If the server compares the obtained hardware information with the corresponding hardware parameters, it is determined that the hardware information is inconsistent with the corresponding hardware parameters, that is, at least one piece of information in the hardware information is inconsistent with the corresponding parameters, which means that the hardware information in the server has errors, and it can be determined that the server is not in a normal working state.
In this embodiment, when the test information includes the error information and the hardware information of the link layer, it is determined whether the error information includes a preset abnormal value, and if the error information does not include the preset abnormal value, it is further compared whether the hardware information is consistent with the corresponding hardware parameter to determine whether the server is in a normal working state. Therefore, under the condition that the error information comprises the preset abnormal value, hardware information does not need to be compared, and the determination efficiency can be improved. In addition, the method for determining whether the server is in the normal working state or not through the error information and the hardware information is simple and quick and easy to realize.
Referring to fig. 5, in one embodiment, the steps of the server testing method further include:
step 500, outputting error information corresponding to the preset abnormal value when the error information contains the preset abnormal value.
The server determines that the error information contains the preset abnormal value, and determines the error information corresponding to the preset abnormal value when stopping the test, namely, the error information can be positioned. After determining the error information corresponding to the preset abnormal value, the server transmits the error information to the external terminal through the external network so as to enable the staff to determine the test result of the server.
Step 510, outputting the currently tested hardware information when the hardware information is inconsistent with the corresponding hardware parameters.
When the server determines that the hardware information is inconsistent with the corresponding hardware parameters, the server stops testing and simultaneously determines the hardware information inconsistent with the hardware parameters, namely the currently tested hardware information, so that the inconsistent hardware information can be positioned. After the server determines the hardware information of the current test, the error information is transmitted to an external terminal through an external network, so that a worker determines the test result of the server.
In this embodiment, when the server determines that the error information includes the preset abnormal value, or determines that the hardware information is inconsistent with the corresponding hardware parameter, specific information that causes the server to be in a non-working state is positioned and output to the external terminal, so that a worker can repair or debug the server according to the test result, and the practicality of the server test method can be improved.
Referring to fig. 6, in one embodiment, before updating the disk array mode to be tested, the server testing method further includes:
step 600, determining whether the test number reaches the target number.
The target number of times is a numerical value preset in the test script. And the server performs stability test on the server in the disk array mode to be tested by executing the test script, determines whether the test times of the stability test on the server in the disk array mode to be tested reach the target times or not after determining that the server is in a normal working state and before updating the disk array mode to be tested. That is, in the disk array mode to be tested, the server is subjected to stability test multiple times, and the number of test times is increased by 1 each time the server is subjected to the stability test.
Optionally, there is an accumulated script in the test script, i.e. the initial value of the number of tests is zero, which is incremented by 1 for each stability test. And when determining whether the test times reach the target times, comparing the value of the test times with the target times.
If not, returning to execute the step of carrying out the stability test of the server under the disk array mode to be tested after the power-down restarting of the server, and determining whether the server is in a normal working state.
If the server determines that the current test number does not reach the target number, that is, the number of stability tests on the server in the disk array mode to be tested is less than the target number, step 210 and step 220 are performed in a return manner, and step 600 is performed before the step of updating the disk array mode to be tested in step 220 is performed.
If so, continuing to execute the step of updating the disk array mode to be tested.
If the server determines that the current test number of times reaches the target number of times, that is, the number of times of testing the stability of the server in the disk array mode to be tested is equal to the target number of times, the step of updating the disk array mode to be tested in step 220 is continuously performed.
In this embodiment, after performing a stability test on a server in a current disk array mode to be tested, before updating the current disk array mode to be tested, determining the current test times, and if the test times reach the target times, updating the current disk array mode to be tested; if the test times do not reach the target times, continuing to perform stability test in the current disk array mode to be tested. Therefore, the server can be ensured to be subjected to stability test for multiple times in the same disk array mode, test errors can be avoided, and the accuracy of the stability test of the server can be improved.
Referring to fig. 7, in one embodiment, after performing a stability test on the server in the updated disk array mode, the server test method further includes the steps of:
step 700, determining whether the server is in a normal working state, and determining whether the server completes the stability test in all disk array modes under the condition that the server is in the normal working state.
The method comprises the steps that a plurality of disk array modes supported by a disk array exist, a server performs stability test on the server in the updated disk array modes, after the server is determined to be in a normal working state, whether the server completes the stability test in all the disk array modes supported by the disk array is determined, namely, the disk array mode which performs the stability test before the disk array mode is updated is determined, and whether the disk array mode which performs the stability test after the disk array mode is updated is all the disk array modes supported by the disk array of the server.
If not, returning to execute the step of updating the disk array mode to be tested.
If the server determines that the stability test is not completed in all disk array modes, that is, there is a situation that the stability of the server is not tested in at least one disk array mode supported by the disk array, the step of updating the disk array mode to be tested in step 220 is executed, and the stability test is performed on the server in the updated disk array mode, so that the server completes the stability test in all disk array modes supported by the disk array.
And 710, if yes, stopping the test.
And if the server determines that the server completes the stability test in all disk array modes, the whole test process for carrying out the stability test on the server is finished, and the test is stopped.
In an alternative embodiment, after stopping the test, the server sends the test result and related information in the test process to the external terminal through the external network, so that the staff can know the test result and the test process of the test.
In this embodiment, after the stability test is performed on the server in the updated disk array mode, and when it is determined that the server is in a normal working state, whether the stability test is completed in all the disk array modes is determined first, if yes, it means that the stability test is completed in all the disk array modes on the server, if not, the disk array mode is continuously updated, and the stability test is performed in the updated disk array mode. Therefore, the stability test of the server can be completed under all disk array modes supported by the server, the overall stability test of the server can be realized, and the overall stability of the server can be further ensured.
Referring to fig. 8, an embodiment of the present application provides a server testing method, which includes the steps of:
step 800, installing an operating system and a system environment on a server;
step 810, determining a disk array mode to be tested;
step 820, after restarting the server after power failure, acquiring test information under a disk array mode to be tested; the test information comprises error information and hardware information of a link layer;
step 830, determining whether the hardware information is consistent with the corresponding hardware parameter if the error information does not include the preset abnormal value;
step 840, if the server is consistent, determining that the server is in a normal working state;
step 850, if the hardware information is inconsistent with the corresponding hardware parameters, determining that the server is not in a normal working state, and outputting the currently tested hardware information.
Step 860, when it is determined that the server is in a normal working state, determining whether the test frequency reaches the target frequency; if not, return to execute steps 820-860;
step 870, if the test result is reached, updating the disk array mode to be tested, and performing stability test on the server in the updated disk array mode to determine whether the server is in a normal working state;
Step 880, determining whether the server completes the stability test in all disk array modes under the condition that the server is in a normal working state; if not, return to execute step 860-step 880;
and step 890, if yes, stopping the test.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a server testing device for realizing the server testing method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the server testing device provided below may refer to the limitation of the server testing method hereinabove, and will not be repeated herein.
In one embodiment, as shown in FIG. 9, there is provided a server test apparatus 10 comprising: a determining module 11, a testing module 12 and an updating module 13, wherein:
the determining module 11 is configured to determine a disk array mode to be tested.
The test module 12 is configured to perform a stability test on the server in a disk array mode to be tested after the server is powered down and restarted, so as to determine whether the server is in a normal working state.
The updating module 13 is configured to update a disk array mode to be tested if it is determined that the server is in a normal working state, and perform a stability test on the server in the updated disk array mode.
In one embodiment, the test module 12 includes an acquisition unit and a determination unit. The acquisition unit is used for acquiring the test information under the disk array mode to be tested; the determining unit is used for determining whether the server is in a normal working state according to the test information.
In one embodiment, the determining unit is specifically configured to determine, if the error information does not include a preset abnormal value, whether the hardware information is consistent with the corresponding hardware parameter; if the server is consistent, determining that the server is in a normal working state; if the server is inconsistent, the server is determined to not be in a normal working state.
In one embodiment, the server testing device 10 further includes an output module, where the output module is configured to output, when the error information includes a preset abnormal value, error information corresponding to the preset abnormal value; or outputting the currently tested hardware information under the condition that the hardware information is inconsistent with the corresponding hardware parameters.
In one embodiment, the determining module 11 is further configured to determine whether the number of tests reaches the target number; if not, returning to execute the step of testing the stability of the server under the disk array mode to be tested after restarting the power failure of the server, and determining whether the server is in a normal working state; if so, continuing to execute the step of updating the disk array mode to be tested.
In one embodiment, the determining module 11 is further configured to determine whether the server is in a normal working state, and determine whether the server completes the stability test in all disk array modes if the server is in the normal working state; if not, returning to execute the step of updating the disk array mode to be tested; if yes, stopping the test.
The respective modules in the server test device described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in FIG. 1.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
determining a disk array mode to be tested;
after the server is powered down and restarted, performing stability test on the server in a disk array mode to be tested, and determining whether the server is in a normal working state;
if the server is in the normal working state, updating the disk array mode to be tested, and performing stability test on the server in the updated disk array mode.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring test information under a disk array mode to be tested; and determining whether the server is in a normal working state according to the test information.
In one embodiment, the processor when executing the computer program further performs the steps of: under the condition that the error information does not contain preset abnormal values, determining whether the hardware information is consistent with the corresponding hardware parameters; if the server is consistent, determining that the server is in a normal working state; if the server is inconsistent, the server is determined to not be in a normal working state.
In one embodiment, the processor when executing the computer program further performs the steps of: outputting error information corresponding to the preset abnormal value under the condition that the error information contains the preset abnormal value; or outputting the currently tested hardware information under the condition that the hardware information is inconsistent with the corresponding hardware parameters.
In one embodiment, the processor when executing the computer program further performs the steps of: determining whether the test times reach the target times; if not, returning to execute the step of testing the stability of the server under the disk array mode to be tested after restarting the power failure of the server, and determining whether the server is in a normal working state; if so, continuing to execute the step of updating the disk array mode to be tested.
In one embodiment, the processor when executing the computer program further performs the steps of: determining whether the server is in a normal working state or not, and determining whether the server completes stability test in all disk array modes under the condition that the server is in the normal working state; if not, returning to execute the step of updating the disk array mode to be tested; if yes, stopping the test.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
determining a disk array mode to be tested;
after the server is powered down and restarted, performing stability test on the server in a disk array mode to be tested, and determining whether the server is in a normal working state;
if the server is in the normal working state, updating the disk array mode to be tested, and performing stability test on the server in the updated disk array mode.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring test information under a disk array mode to be tested; and determining whether the server is in a normal working state according to the test information.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the condition that the error information does not contain preset abnormal values, determining whether the hardware information is consistent with the corresponding hardware parameters; if the server is consistent, determining that the server is in a normal working state; if the server is inconsistent, the server is determined to not be in a normal working state.
In one embodiment, the computer program when executed by the processor further performs the steps of: outputting error information corresponding to the preset abnormal value under the condition that the error information contains the preset abnormal value; or outputting the currently tested hardware information under the condition that the hardware information is inconsistent with the corresponding hardware parameters.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining whether the test times reach the target times; if not, returning to execute the step of testing the stability of the server under the disk array mode to be tested after restarting the power failure of the server, and determining whether the server is in a normal working state; if so, continuing to execute the step of updating the disk array mode to be tested.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining whether the server is in a normal working state or not, and determining whether the server completes stability test in all disk array modes under the condition that the server is in the normal working state; if not, returning to execute the step of updating the disk array mode to be tested; if yes, stopping the test.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
determining a disk array mode to be tested;
after the server is powered down and restarted, performing stability test on the server in a disk array mode to be tested, and determining whether the server is in a normal working state;
if the server is in the normal working state, updating the disk array mode to be tested, and performing stability test on the server in the updated disk array mode.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring test information under a disk array mode to be tested; and determining whether the server is in a normal working state according to the test information.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the condition that the error information does not contain preset abnormal values, determining whether the hardware information is consistent with the corresponding hardware parameters; if the server is consistent, determining that the server is in a normal working state; if the server is inconsistent, the server is determined to not be in a normal working state.
In one embodiment, the computer program when executed by the processor further performs the steps of: outputting error information corresponding to the preset abnormal value under the condition that the error information contains the preset abnormal value; or outputting the currently tested hardware information under the condition that the hardware information is inconsistent with the corresponding hardware parameters.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining whether the test times reach the target times; if not, returning to execute the step of testing the stability of the server under the disk array mode to be tested after restarting the power failure of the server, and determining whether the server is in a normal working state; if so, continuing to execute the step of updating the disk array mode to be tested. In one embodiment, the computer program when executed by the processor further performs the steps of: determining whether the server is in a normal working state or not, and determining whether the server completes stability test in all disk array modes under the condition that the server is in the normal working state; if not, returning to execute the step of updating the disk array mode to be tested; if yes, stopping the test.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method for testing a server, the method comprising:
determining a disk array mode to be tested;
after restarting a server after power failure, carrying out stability test on the server under the disk array mode to be tested, and determining whether the server is in a normal working state;
if the server is in the normal working state, updating the disk array mode to be tested, and performing the stability test on the server in the updated disk array mode.
2. The method of claim 1, wherein the performing the stability test on the server in the disk array to be tested mode to determine whether the server is in a normal operating state comprises:
acquiring test information of the disk array mode to be tested;
and determining whether the server is in a normal working state according to the test information.
3. The method of claim 2, wherein the test information includes error information and hardware information of a link layer, and the determining whether the server is in a normal operating state according to the test information includes:
determining whether the hardware information is consistent with the corresponding hardware parameters under the condition that the error information does not contain preset abnormal values;
if the server is consistent, determining that the server is in a normal working state;
if the server is inconsistent, the server is determined not to be in a normal working state.
4. A method according to claim 3, characterized in that the method further comprises:
outputting error information corresponding to a preset abnormal value under the condition that the error information contains the preset abnormal value;
Or outputting the currently tested hardware information under the condition that the hardware information is inconsistent with the corresponding hardware parameters.
5. The method of any of claims 1-4, wherein prior to said updating the disk array pattern to be tested, the method further comprises:
determining whether the test times reach the target times;
if not, returning to execute the step of performing the stability test of the server under the disk array mode to be tested after restarting the power failure of the server, and determining whether the server is in a normal working state;
if so, continuing to execute the step of updating the disk array mode to be tested.
6. The method of any of claims 1-4, wherein after the stability test is performed on the server in the updated disk array mode, the method further comprises:
determining whether the server is in a normal working state or not, and determining whether the server completes the stability test in all disk array modes under the condition that the server is in the normal working state;
if not, returning to the step of executing the updating of the disk array mode to be tested;
If yes, stopping the test.
7. A server testing apparatus, the apparatus comprising:
the determining module is used for determining a disk array mode to be tested;
the test module is used for carrying out stability test on the server under the disk array mode to be tested after the server is powered down and restarted, and determining whether the server is in a normal working state or not;
and the updating module is used for updating the disk array mode to be tested if the server is determined to be in a normal working state, and carrying out the stability test on the server in the updated disk array mode.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202211606220.XA 2022-12-12 2022-12-12 Server testing method, device, equipment, storage medium and program product Active CN116166485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211606220.XA CN116166485B (en) 2022-12-12 2022-12-12 Server testing method, device, equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211606220.XA CN116166485B (en) 2022-12-12 2022-12-12 Server testing method, device, equipment, storage medium and program product

Publications (2)

Publication Number Publication Date
CN116166485A true CN116166485A (en) 2023-05-26
CN116166485B CN116166485B (en) 2024-08-23

Family

ID=86413949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211606220.XA Active CN116166485B (en) 2022-12-12 2022-12-12 Server testing method, device, equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN116166485B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118260144A (en) * 2024-05-31 2024-06-28 济南浪潮数据技术有限公司 Hard disk testing method, device, storage medium and computer program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788943A (en) * 2009-01-22 2010-07-28 英业达股份有限公司 Test method and test system of disk array
CN111309535A (en) * 2020-02-14 2020-06-19 苏州浪潮智能科技有限公司 Method and system for testing hard disk in server, electronic equipment and storage medium
CN112463472A (en) * 2020-10-30 2021-03-09 苏州浪潮智能科技有限公司 Automatic testing method and device for disk array, electronic equipment and storage medium
CN115168125A (en) * 2022-07-22 2022-10-11 浪潮商用机器有限公司 Fault detection function test method of RAID card and related components thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788943A (en) * 2009-01-22 2010-07-28 英业达股份有限公司 Test method and test system of disk array
CN111309535A (en) * 2020-02-14 2020-06-19 苏州浪潮智能科技有限公司 Method and system for testing hard disk in server, electronic equipment and storage medium
CN112463472A (en) * 2020-10-30 2021-03-09 苏州浪潮智能科技有限公司 Automatic testing method and device for disk array, electronic equipment and storage medium
CN115168125A (en) * 2022-07-22 2022-10-11 浪潮商用机器有限公司 Fault detection function test method of RAID card and related components thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118260144A (en) * 2024-05-31 2024-06-28 济南浪潮数据技术有限公司 Hard disk testing method, device, storage medium and computer program product

Also Published As

Publication number Publication date
CN116166485B (en) 2024-08-23

Similar Documents

Publication Publication Date Title
CN107076797B (en) Testing semiconductor memory power consumption based on executed access commands
US11043269B2 (en) Performing a test of memory components with fault tolerance
CN116166485B (en) Server testing method, device, equipment, storage medium and program product
JP2019003637A (en) Field device commissioning system and field device commissioning method
CN115827636B (en) Method for storing and reading simulation data of logic system design from waveform database
CN109213505A (en) Server hard disc firmware method for refreshing and device
US20220188221A1 (en) Regression testing method and regression testing apparatus
CN112685275B (en) Algorithm policy search method and device, electronic equipment and storage medium
CN117827554A (en) Test method, test device, computer equipment and storage medium
CN117149550A (en) Solid state disk performance detection method and device and electronic equipment
CN115033439B (en) Server testing method and device
CN116430826A (en) Electronic controller working condition coupling test method based on offshore atmospheric environment laboratory
CN115391110A (en) Test method of storage device, terminal device and computer readable storage medium
CN114791868B (en) Fault type detection method and device, computer equipment and readable storage medium
CN117472291B (en) Data block verification method and device, storage medium and electronic equipment
CN115792582B (en) Chip testing method, device and equipment
CN113900843B (en) Detection repair method, device, equipment and readable storage medium
CN113986142B (en) Disk fault monitoring method, device, computer equipment and storage medium
CN117539697A (en) Storage controller testing method, device, computer equipment and storage medium
CN117472664B (en) Disk array card testing method and device and computer equipment
TWI777259B (en) Boot method
CN118377663A (en) Memory testing method and device and computer equipment
CN117370085A (en) Test method, test device, computer equipment and storage medium
CN117251361A (en) Method, device, equipment and storage medium for testing system stability
CN116010177A (en) Server pressure testing method, device, system and computer 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