Disk array card testing method, device and computer equipment
Through automated testing tools, we obtain management tools, form hard disk array groups and conduct tests, solving the problem of complexity of disk array card testing in the server, achieving an efficient and accurate test process, and supporting multiple types of disk array cards.
Patent Information
- Application Number
- CN202311344630.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-17
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2043-10-17
AI Technical Summary
In the prior art, the disk array card test of the storage system in the server is difficult and the test time is long, mainly due to the compatibility, functionality and performance testing complexity caused by the diversity of Raid cards and hard disk types.
Use the automated testing tool to obtain the disk array card management tools, form a hard disk array group, and conduct pressure and performance testing, support different types of disk array card testing, and improve the degree of test automation and scalability.
Simplifies the disk array card testing process, reduces the difficulty and time of testing, improves testing efficiency and accuracy, supports testing of multiple types of disk array cards, and enhances scalability and portability.
Smart Images

Figure CN117472664B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a disk array card testing method, device and computer equipment. Background Art
[0002] As an electronic device that provides computing or application services, the server is a key device for the efficient operation of computer networks. To ensure the stable operation of the server, each system in the server needs to be tested before the server is mass-produced.
[0003] Taking the storage system in the server as an example, the storage system includes a redundant array of independent disks (Raid) card and a hard disk. In the related technology, when testing the storage system of the server, it is necessary to perform multi-dimensional testing tasks such as compatibility, functionality, and operating performance. There are many types of Raid cards and hard disks tested, which makes the testing of the Raid card more difficult and takes a long time. Summary of the invention
[0004] Based on this, it is necessary to provide a disk array card testing method, device and computer equipment to address the above technical problems, simplify the disk array card testing process, and thereby reduce the testing difficulty and testing time of the disk array card.
[0005] In a first aspect, the present application provides a disk array card testing method, which is applied to a server, and the method comprises:
[0006] In response to the disk array card test instruction, obtaining a management tool corresponding to at least one type of disk array card to be tested by executing a pre-deployed automated test tool;
[0007] By executing each management tool to build a hard disk for each type of disk array card to be tested, a hard disk array group corresponding to each disk array card to be tested is obtained;
[0008] The hard disk array group corresponding to each disk array card to be tested is tested to obtain the test result of each disk array card to be tested.
[0009] In the technical solution provided by the embodiment of the present application, the server responds to the disk array card test instruction, firstly obtains the management tool corresponding to at least one type of disk array card to be tested by executing the pre-deployed automated test tool, then performs hard disk assembly on each type of disk array card to be tested by executing each management tool, obtains the hard disk array group corresponding to each disk array card to be tested, and finally tests the hard disk array group corresponding to each disk array card to be tested, and obtains the test result of each disk array card to be tested. In this method, the server obtains the management tool corresponding to the disk array card to be tested by the automated test tool, and assembles the hard disk array group by the management tool, so as to test the hard disk array group corresponding to each disk array card to be tested, improves the automation degree of the test process of the disk array card to be tested, simplifies the test process of the disk array card to be tested, and thus reduces the test difficulty and test time of the disk array card. In addition, in the entire test process, the server determines the type of disk array card to be tested and the corresponding management tool according to the automated test tool, which means that the disk array card test method provided by the embodiment of the present application can also support the testing of different types of disk array cards, further improving the scalability and portability of the disk array card test method.
[0010] In one embodiment, obtaining a management tool corresponding to at least one type of disk array card to be tested by executing a pre-deployed automated performance testing tool includes:
[0011] The automated performance test tool is executed to obtain the model information of each disk array card to be tested through the automated performance test tool, and a management tool matching each model information is determined from a preset configuration tool set to obtain a management tool corresponding to each disk array card to be tested.
[0012] In the technical solution provided in the embodiment of the present application, the server presets and installs the management tools corresponding to different types of disk array cards in a preset configuration tool set, so that the server can quickly obtain the corresponding management tools from the preset configuration tool set according to the model information of different disk array cards to be tested, thereby improving the test efficiency of the disk array cards to be tested.
[0013] In one embodiment, each management tool is executed to perform hard disk assembly on each type of disk array card to be tested, so as to obtain a hard disk array group corresponding to each disk array card to be tested, including:
[0014] For any disk array card to be tested, executing an automated testing tool to obtain multiple configuration modes of the disk array card to be tested;
[0015] Arrange and combine multiple configuration modes of the disk array card to be tested to obtain multiple configuration mode combination results;
[0016] Input each configuration mode combination result into the management tool corresponding to the disk array card to be tested, so as to obtain the hard disk array group corresponding to each configuration mode combination result through the management tool corresponding to the disk array card to be tested, and obtain the hard disk array group corresponding to the disk array card to be tested.
[0017] In the technical solution provided by the embodiment of the present application, the hard disk array group corresponding to each configuration combination result is equivalent to a test scenario of the disk array card to be tested. By performing various permutations and combinations on the multiple configuration modes of the disk array card to be tested, multiple configuration mode combination results are obtained. Then, according to the configuration mode combination results, a hard disk array group is formed, which is equivalent to simulating various test scenarios of the disk array card to be tested, so as to fully test the performance of the disk array card to be tested in different test scenarios.
[0018] In one embodiment, obtaining the hard disk array group corresponding to each configuration mode combination result through the management tool corresponding to the disk array card to be tested includes:
[0019] For any configuration mode combination result, the management tool cyclically assembles all hard disks under the disk array card to be tested according to the combination order of each configuration mode in the configuration mode combination result, the number of hard disks required for each configuration mode, and the hard disk read and write rules, and obtains the hard disk array group corresponding to the configuration level mode result.
[0020] In the technical solution provided in the embodiment of the present application, the hard disks are cyclically assembled based on the combination order of each configuration mode in the configuration mode combination result, the number of hard disks required for each configuration mode, and the hard disk reading and writing rules, so that each hard disk can participate in the process of assembling the hard disk array group under each configuration mode, so as to fully test the compatibility and reliability of the disk array card to be tested.
[0021] In one embodiment, before looping and assembling all hard disks under the disk array card to be tested, the method further includes:
[0022] The management tool disassembles the hard disk array group corresponding to the previous configuration mode combination result of the configuration mode combination result to restore all hard disks under the disk array card to be tested to an initial state.
[0023] In the technical solution provided in the embodiment of the present application, before the management tool forms a hard disk array group under the configuration mode combination result each time, it restores the hard disk state to the initial state before the test, which is equivalent to uniformly setting the initial conditions for forming the hard disk array groups under different configuration mode combination results, thereby improving the objectivity and accuracy of the test results of the hard disk array groups under different configuration mode combination results.
[0024] In one embodiment, the test result includes a stress test result, and the hard disk array group corresponding to each disk array card to be tested is tested to obtain the test result of each disk array card to be tested, including:
[0025] Execute the automated test tool to obtain the disk test tool;
[0026] The disk test tool is executed to test the compatibility between each disk array card to be tested and the corresponding hard disk array group, and the stress test result of the disk array card to be tested of each hard disk is obtained.
[0027] In the technical solution provided in the embodiment of the present application, the compatibility between each disk array card to be tested and the corresponding hard disk array group is tested by executing the disk test tool, and the stress test result of each disk array card to be tested is obtained, so that the test result of whether each hard disk under the disk array card to be tested can normally form the corresponding configuration mode can be viewed intuitively and quickly in the subsequent process.
[0028] In one embodiment, the test result includes a performance test result, and the hard disk array group corresponding to each disk array card to be tested is tested to obtain the test result of each disk array card to be tested, including:
[0029] Execute the automated test tool to obtain the disk test tool;
[0030] For any hard disk array group, execute the disk test tool to obtain the hard disk type of the hard disk array group and the test method of the hard disk array group, and test the hard disk array group according to the test method of the hard disk array group to obtain the performance test result of the disk array card to be tested.
[0031] In the technical solution provided in the embodiment of the present application, by executing the disk test tool, the corresponding performance test method is flexibly selected according to different types of hard disks, and the performance test of the hard disk array group under the disk array card to be tested is performed. Such a performance test method supports testing the array cards to be tested corresponding to different types of hard disks, and to a certain extent improves the scalability of the test method of the disk array card to be tested.
[0032] In one embodiment, the hard disk array group is tested according to the test method of the hard disk array group to obtain the performance test result of the disk array card to be tested, including:
[0033] If the hard disk type is a mechanical hard disk, a sequential steady-state test is performed on each hard disk in the hard disk array group to obtain a performance test result of the disk array card to be tested;
[0034] If the hard disk type is a solid-state hard disk, a sequential steady-state test and a random steady-state test are performed on each hard disk in the hard disk array group in turn to obtain a performance test result of the disk array card to be tested.
[0035] In the technical solution provided in the embodiment of the present application, the performance test is divided into two test schemes, namely, mechanical hard disk test and solid state hard disk test, for different hard disk types. In the test of the solid state hard disk, the test is further carried out in two ways, namely, sequential steady state test and random steady state test, so that the performance test results are more comprehensive.
[0036] In a second aspect, the present application also provides a disk array card testing device, the device comprising:
[0037] A response module, configured to respond to a disk array card test instruction and obtain a management tool corresponding to at least one type of disk array card to be tested by executing a pre-deployed automated performance test tool;
[0038] A construction module is used to perform hard disk assembly on each type of disk array card to be tested by executing various management tools to obtain a hard disk array group corresponding to each disk array card to be tested;
[0039] The test module is used to test the hard disk array group corresponding to each disk array card to be tested, and obtain the test result of each disk array card to be tested.
[0040] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in any one of the embodiments of the first aspect when executing the computer program.
[0041] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method in any one of the embodiments of the first aspect.
[0042] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the method in any one of the embodiments of the first aspect are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 is an internal structure diagram of a server in one embodiment;
[0045] Figure 2A schematic diagram of a process flow of a disk array card testing method in one embodiment;
[0046] Figure 3 A schematic diagram of a flow chart of a hard disk array group acquisition step in one embodiment;
[0047] Figure 4 A schematic diagram of a process for obtaining a stress test result in one embodiment;
[0048] Figure 5 A flowchart of the steps for obtaining performance test results in one embodiment;
[0049] Figure 6 A schematic diagram of a flow chart of a disk array card testing method in another embodiment;
[0050] Figure 7 A schematic flow chart of a step of obtaining a stress test result in another embodiment;
[0051] Figure 8 A flowchart of the steps of obtaining performance test results in another embodiment;
[0052] Fig. 9 FIG. 4 is a structural block diagram of a disk array card testing device in an embodiment. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0054] The disk array card testing method provided in the embodiment of the present application can be applied to Figure 1 The server shown in the figure. The server includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the server is used to provide computing and control capabilities. The memory of the server includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the server is used to store disk array card test data. The input / output interface of the server is used to exchange information between the processor and an external device. The communication interface of the server is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a disk array card testing method is implemented.
[0055] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0056] Before the server is mass-produced and shipped, the functions and performance of multiple modules including the storage subsystem need to be strictly tested. The disk array (Redundant Arrays of Independent Disks, RAID) cards and hard disks, which are the main components of the storage system, need to perform multi-dimensional testing tasks such as compatibility, functionality, and operating performance.
[0057] It should be noted that, unlike the Raid card, Raid is a huge hard disk array group composed of many independent hard disks with the same capacity, also known as a Raid disk. By assembling the hard disks under the Raid card according to the Raid card, a set of hard disk array groups corresponding to the Raid card can be obtained, and the hard disk array group can include one Raid disk or multiple Raid disks.
[0058] In actual scenarios, the performance of the entire hard disk system is improved by using the additive effect of data provided by individual hard disks, such as increasing the transmission rate, providing fault tolerance through data verification, etc. However, since there are many types of Raid cards and hard disks that need to be tested in the server, and different test scenarios need to be matched, the test is difficult and takes a long time.
[0059] Based on this, in the embodiment of the present application, in response to the disk array card test instruction, a management tool corresponding to at least one type of disk array card to be tested is obtained by executing a pre-deployed automated test tool, and a fully automated test is implemented for different types of disk array cards of the server to simplify the test process of the disk array card, thereby reducing the test difficulty and test time of the disk array card.
[0060] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0061] It should be noted that the beneficial effects brought about by the embodiments of the present application or the technical problems solved are not limited to this one, but may also include other implicit or related problems. For details, please refer to the description of the following embodiments.
[0062] In an exemplary embodiment, Figure 2 As shown, a disk array card testing method is provided, and the method is applied to Figure 1 The server in the example is used to illustrate the following steps:
[0063] S201 , in response to a disk array card test instruction, obtaining a management tool corresponding to at least one type of disk array card to be tested by executing a pre-deployed automated test tool.
[0064] Among them, the disk array card (hereinafter referred to as Raid card) is the main component of the storage system, which is used as the controller of the independent redundant disk array. Correspondingly, the management tool of the Raid card is used to obtain the actuator of the independent redundant disk array and is deployed on the server. In the embodiment of the present application, the hard disk under the Raid card is disassembled through the management tool of the Raid card to construct a hard disk array group of various Raid modes such as Raid0, Raid1, Raid5, and Raid6.
[0065] The automated testing tool refers to a tool that performs automated testing on the compatibility, functionality, and operating performance of each Raid card in the server. The automated testing tool in the embodiment of the present application is deployed on the server, and the server performs multi-dimensional testing on each Raid card under the server by running the automated testing tool.
[0066] Taking into account that in actual applications the Raid card test is performed when a Raid card exists in the server, the automated testing tool in the embodiment of the present application also has the judgment function of "detecting whether a Raid card exists in the server".
[0067] In one embodiment, the server determines whether there is a Raid card in the server by executing a pre-deployed automated testing tool. If there is, further Raid card testing process is executed; if not, the Raid card testing process is exited.
[0068] In the scenario where the server includes a Raid card, the server determines the Raid card to be tested from multiple Raid cards in the server by executing a pre-deployed automated test tool, and then determines the management tool corresponding to the Raid card to be tested. Of course, the Raid card to be tested and the corresponding management tool can also be determined at the same time, and the embodiment of the present application does not limit the order of determining the two.
[0069] Exemplarily, the disk array card test instruction carries the identification information of the Raid card to be tested. The server determines the Raid card to be tested that matches the identification information from all Raid cards on the server by executing the automated testing tool, and determines the management tool corresponding to the Raid card to be tested from the server.
[0070] It should be noted that the Raid card to be tested may be one or more specified Raid cards, or may be all Raid cards in the server.
[0071] In one scenario, in response to a disk array card test instruction, a pre-deployed automated test tool is executed to sequentially traverse all Raid cards in the server and determine a management tool corresponding to each Raid card.
[0072] S202, performing hard disk assembly on each type of disk array card to be tested by executing various management tools to obtain a hard disk array group corresponding to each disk array card to be tested.
[0073] Different types of Raid cards support different types of management tools. For example, BCM 9560 series cards support storcli tool for command operations such as disassembling Raid, and support multiple Raid modes such as Raid0, Raid1, Raid5, Raid10, etc.; LSI3008 series cards support sas3ircu tool for command operations such as disassembling Raid, and only support four Raid modes: Raid0, Raid1, Raid5, Raid10.
[0074] Taking a Raid card that supports Raid0, Raid1 and Raid5 modes as an example, a method for obtaining a hard disk array group is described: by executing the management tool of the Raid card, all hard disks are constructed according to the Raid0 mode, and a group of hard disk array groups corresponding to the Raid card is obtained; then, the hard disk array group is disassembled by executing the management tool of the Raid card, and all hard disks are constructed according to the Raid1 mode, and a group of hard disk array groups corresponding to the Raid card to be tested is obtained; the hard disk array group is disassembled by continuing to execute the management tool of the Raid card, and all hard disks are constructed according to the Raid5 mode, and a group of hard disk array groups corresponding to the Raid card to be tested is obtained.
[0075] S203, testing the hard disk array group corresponding to each disk array card to be tested, and obtaining the test result of each disk array card to be tested.
[0076] Take multiple hard disk array groups corresponding to a Raid card to be tested as a test case, test the hard disk array groups corresponding to each Raid card to be tested in turn, and obtain the test results of each Raid card to be tested, until the hard disk array groups corresponding to all Raid cards to be tested are traversed to obtain the test results of each Raid card to be tested.
[0077] For any hard disk array group of the Raid card to be tested, load testing, and / or performance testing, and / or stress testing, etc. can be performed according to actual needs to characterize the stability and reliability of the hard disk array group corresponding to the Raid card to be tested from different dimensions.
[0078] Optionally, the disk array card test instruction carries a test method, and the server can call the corresponding test tool according to the test method carried in the disk array card test instruction to implement the test of the hard disk array group corresponding to the Raid card to be tested, and obtain the test result of the Raid card to be tested.
[0079] In the embodiment of the present application, the server responds to the disk array card test instruction, firstly obtains the management tool corresponding to at least one type of disk array card to be tested by executing the pre-deployed automated test tool, then performs hard disk assembly on each type of disk array card to be tested by executing each management tool, obtains the hard disk array group corresponding to each disk array card to be tested, and finally tests the hard disk array group corresponding to each disk array card to be tested, and obtains the test result of each disk array card to be tested. In this method, the server obtains the management tool corresponding to the disk array card to be tested through the automated test tool, and assembles the hard disk array group through the management tool, so as to test the hard disk array group corresponding to each disk array card to be tested, thereby improving the automation degree of the test process of the disk array card to be tested, simplifying the test process of the disk array card to be tested, and thus reducing the test difficulty and test time of the disk array card. In addition, in the entire test process, the server determines the type of disk array card to be tested and the corresponding management tool according to the automated test tool, which means that the disk array card test method provided in the embodiment of the present application can also support the testing of different types of disk array cards, further improving the scalability and portability of the disk array card test method.
[0080] When obtaining the management tool, the corresponding management tool can be determined through the technical manuals of different Raid cards, and the management tool can be installed on the server in real time, or a variety of different management tools can be installed on the server in advance so that the server can call them flexibly according to needs. Based on this, an embodiment is used below to illustrate an achievable way to obtain the management tool.
[0081] In an exemplary embodiment, obtaining a management tool corresponding to at least one type of disk array card to be tested by executing a pre-deployed automated performance testing tool includes:
[0082] Execute the automated performance test tool to obtain the model information of each Raid card to be tested through the automated performance test tool, and determine the management tool matching each model information from the preset configuration tool set to obtain the management tool corresponding to each Raid card to be tested.
[0083] Different types of Raid cards support different types of management tools. In an embodiment of the present application, before performing a Raid card test, the server pre-installs multiple management tools corresponding to different types of Raid cards, and stores the installed multiple management tools in a preset configuration tool set.
[0084] For any Raid card to be tested, the information of the Raid card to be tested is read by executing the automated performance testing tool to obtain the model information of the Raid card to be tested, that is, the type of the Raid card to be tested, and then, a management tool matching the type of the Raid card to be tested is determined from the preset configuration tool set.
[0085] In the embodiment of the present application, the server presets and installs management tools corresponding to different types of disk array cards in a preset configuration tool set, so that the server can quickly obtain the corresponding management tools from the preset configuration tool set according to the model information of different disk array cards to be tested, thereby improving the testing efficiency of the server for the disk array cards to be tested.
[0086] According to the management tool of the Raid card to be tested, there are multiple ways to build hard disks and obtain the hard disk array group of the Raid card to be tested. For example, as mentioned in the above embodiment, based on the Raid mode supported by the Raid card to be tested, the hard disks are organized into hard disk array groups of the same Raid mode through the management tool, and the hard disks under the Raid card to be tested are polled and disassembled until all hard disk array groups in the Raid mode are obtained. Below, another way to build a hard disk array group is described through an embodiment.
[0087] In an exemplary embodiment, Figure 3 As shown, by executing each management tool to build a hard disk for each type of disk array card to be tested, a hard disk array group corresponding to each disk array card to be tested is obtained, including:
[0088] S301, for any disk array card to be tested, executing an automated testing tool to obtain multiple configuration modes of the disk array card to be tested.
[0089] The configuration mode (Raid mode) of the Raid card to be tested refers to a data storage technology composed of multiple hard disks. Specifically, it improves data security and read and write speed by distributing data on multiple disks. Common Raid modes include Raid0, Raid1, Raid5, Raid6, Raid10, etc.
[0090] For any Raid card to be tested, the configuration information of the Raid card to be tested is parsed by executing an automated testing tool to obtain multiple configuration modes of the Raid card to be tested.
[0091] S302, arranging and combining multiple configuration modes of the disk array card to be tested to obtain multiple configuration mode combination results.
[0092] A Raid card to be tested can support multiple configuration modes. The multiple configuration modes are arranged and combined once to obtain a corresponding set of configuration mode combination results, until all the arrangement and combination methods of the configuration modes are traversed to obtain multiple configuration mode combination results.
[0093] That is to say, each configuration mode combination result includes the hard disk array groups under multiple configuration modes supported by the Raid card to be tested, and the multiple configuration mode combination results of the disk array card to be tested include the configuration mode combination results under all permutations and combinations.
[0094] Exemplarily, the configuration modes of the Raid card to be tested include three configuration modes: 2-disk Raid1, 2-disk Raid0, and 4-disk Raid5. Among them, 2-disk Raid1 means that a hard disk array group is formed by two hard disks, and the hard disk array group reads and writes in the form of Raid1; 2-disk Raid0 means that a hard disk array group is formed by two hard disks, and the hard disk array group reads and writes in the form of Raid0; 4-disk Raid5 means that a hard disk array group is formed by four hard disks, and the hard disk array group reads and writes in the form of Raid5.
[0095] Then, there are six ways to arrange and combine the three configuration modes, and the corresponding configuration mode combinations are: [2 disks Raid1, 2 disks Raid0, 4 disks Raid5]; [2 disks Raid1, 4 disks Raid5, 2 disks Raid0]; [4 disks Raid5, 2 disks Raid1, 2 disks Raid0]; [4 disks Raid5, 2 disks Raid0, 2 disks Raid1]; [2 disks Raid0, 4 disks Raid5, 2 disks Raid1]; [2 disks Raid0, 2 disks Raid1, 4 disks Raid5].
[0096] S303, inputting the configuration mode combination results into the management tool corresponding to the disk array card to be tested respectively, so as to obtain the hard disk array group corresponding to each configuration mode combination result through the management tool corresponding to the disk array card to be tested, and obtain the hard disk array group corresponding to the disk array card to be tested.
[0097] Input each configuration mode combination result to the management tool corresponding to the Raid card to be tested, instruct the management tool to build all hard disks under the Raid card to be tested according to each configuration mode in the configuration mode combination result, and obtain the hard disk array group corresponding to each configuration mode combination result.
[0098] Since the management tool builds all hard disks under the Raid card to be tested and obtains the hard disk array group, before the hard disk array group building process of the next configuration mode combination result is carried out, the previously established hard disk array group needs to be disassembled so as to be rebuilt again according to the next configuration mode combination result, and so on, until all configuration mode combination results are traversed to obtain the hard disk array group corresponding to the Raid card to be tested. In the embodiment of the present application, when all configuration mode combination results are traversed, there is no restriction on the order in which the configuration mode combination results are input into the management tool.
[0099] In the embodiment of the present application, the hard disk array group corresponding to each configuration combination result is equivalent to a test scenario of the disk array card to be tested. By performing various permutations and combinations on the multiple configuration modes of the disk array card to be tested, multiple configuration mode combination results are obtained. Then, according to the configuration mode combination results, a hard disk array group is formed, which is equivalent to simulating various test scenarios of the disk array card to be tested, so as to fully test the performance of the disk array card to be tested in different test scenarios.
[0100] The following is an example of an implementation method for "obtaining the disk array group corresponding to each configuration mode combination result through the management tool corresponding to the disk array card to be tested" in S303 in the above-mentioned embodiment. The method includes:
[0101] For any configuration mode combination result, the management tool cyclically assembles all hard disks under the Raid card to be tested according to the combination order of each configuration mode in the configuration mode combination result, the number of hard disks required for each configuration mode, and the hard disk read and write rules to obtain the hard disk array group corresponding to the configuration level mode result.
[0102] For any configuration mode combination result, a corresponding group includes a combination sequence of multiple configuration modes, and each configuration mode corresponds to the number of hard disks and hard disk reading and writing rules.
[0103] Taking the configuration mode combination result [2-disk Raid1, 2-disk Raid0, 4-disk Raid5] as an example, the combination order of the configuration modes is: Raid1, Raid0 and Raid5; Raid1 requires two hard disks. When writing data, the same data is copied twice and the two copies are written to the two hard disks without distinction; Raid0 requires two hard disks. The two hard disks are composed of a Raid0 disk. When writing data, the data to be written is divided into two copies, and the reading and writing of the two disks are realized independently; Raid5 requires four hard disks. When writing data, the data to be written is divided into four copies, and written to the four hard disks concurrently. At the same time, the data verification code information is also written to the four disks.
[0104] Furthermore, the management tool follows the combination order of each configuration mode in the configuration mode combination result, the number of hard disks required for each configuration mode, and the hard disk read and write rules, and follows the circular assembly method according to the number of hard disks and the number of hard disks required for the configuration mode combination result, and simultaneously assembles multiple hard disk array groups under the configuration combination mode result.
[0105] In one scenario, after determining the total number of hard disks under the Raid card to be tested and the number of configurations required for the configuration mode combination results, multiple hard disk array groups are formed for all the hard disks under the disk array card to be tested at the same time according to the configuration mode combination results. The formation process is described as follows: calculate the value of the total number of hard disks / number of configurations, the quotient represents the number of times each configuration mode in the same configuration combination result is repeatedly constructed, and the remainder represents the remaining hard disks. In the embodiment of the present application, the remaining hard disks are grouped as 1 Raid0 or set to UGood mode.
[0106] Taking the configuration mode combination result [2-disk Raid1, 2-disk Raid0, 4-disk Raid5], that is, the total number of hard disks configured at this time is 8, and the Raid card to be tested includes 18 hard disks as an example, the steps for simultaneously forming multiple hard disk array groups are explained: calculate the quotient and remainder of 18 divided by 8. Since the quotient in the calculation result is 2, it means that 2 2-disk Raid1, 2 2-disk Raid0, and 2 4-disk Raid5 can be formed under the Raid card to be tested. Since the remainder in the calculation result is 2, it means that the remaining 2 disks need to be grouped into 1 Raid0 or both set to UGood.
[0107] In the embodiment of the present application, based on the combination order of each configuration mode in the configuration mode combination result, the number of hard disks required for each configuration mode, and the hard disk read and write rules, the hard disks under the disk array card to be tested are cyclically assembled, so that each hard disk can participate in the process of assembling the hard disk array group under each configuration mode, so as to fully test the compatibility and reliability of the disk array card to be tested.
[0108] It can be seen from the above embodiments that the management tool disassembles all hard disks under the Raid card to be tested, which means that each time a configuration mode combination result is obtained, all hard disks under the Raid card to be tested are assembled once to obtain the hard disk array group corresponding to the configuration mode combination result. Then, in the case where the disk array card to be tested includes multiple configuration mode combination results, multiple assemblies are required, and naturally multiple disassemblies are required. Based on this, the steps of disassembling the hard disk by the management tool are described below through an embodiment.
[0109] In an exemplary embodiment, before looping and assembling all hard disks under the disk array card to be tested, the method further includes:
[0110] The management tool disassembles the hard disk array group corresponding to the previous configuration mode combination result of the configuration mode combination result to restore all hard disks under the Raid card to be tested to an initial state.
[0111] Before executing hard disk assembly, the server executes the automated test tool to obtain the initial status of all hard disks under the Raid card to be tested before the test, which can be JBOD / UGood / Raid disk, and sends the initial status to the management tool.
[0112] Before assembling all the hard disks each time, the management tool disassembles the hard disk array group corresponding to the previous configuration mode combination result of the configuration mode combination result according to the initial state to restore all the hard disks under the Raid card to be tested to the initial state.
[0113] In the embodiment of the present application, before the management tool forms a hard disk array group under the configuration mode combination result each time, it restores the hard disk state to the initial state before the test, which is equivalent to uniformly setting the initial conditions for forming the hard disk array groups under different configuration mode combination results, thereby improving the objectivity and accuracy of the test results of the hard disk array groups under different configuration mode combination results.
[0114] During the disk array card testing process, the compatibility and stability of the disk array card can be tested from the dimensions of stress testing, performance testing, etc. Based on this, the stress testing steps of the disk array card are described below through an embodiment.
[0115] In an exemplary embodiment, Figure 4 As shown, the test results include stress test results. The hard disk array group corresponding to each disk array card to be tested is tested to obtain the test results of each disk array card to be tested, including:
[0116] S401, executing an automated testing tool to obtain a disk testing tool.
[0117] The stress test focuses on whether each hard disk under the Raid card to be tested can normally form a corresponding Raid mode. In the embodiment of the present application, the Raid card to be tested can be stress tested by a disk test tool deployed on the server.
[0118] The server executes the automated testing tool to call the disk testing tool.
[0119] S402, executing a disk test tool to test the compatibility between each disk array card to be tested and the corresponding hard disk array group, and obtaining a stress test result of each hard disk array card to be tested.
[0120] For any hard disk array group, execute the disk test tool to determine whether each hard disk under the Raid card to be tested can normally form the corresponding Raid mode for testing, or cannot normally form the corresponding Raid mode for testing.
[0121] In an embodiment of the present application, the compatibility between each Raid card to be tested and the corresponding hard disk array group is tested by executing a disk testing tool to obtain the stress test results of each Raid card to be tested, so that the test results of whether each hard disk under the Raid card to be tested can normally form the corresponding configuration mode can be viewed intuitively and quickly in the subsequent process.
[0122] During the disk array card testing process, the compatibility and stability of the disk array card can be tested from the dimensions of stress testing, performance testing, etc. Based on this, the performance testing steps of the disk array card are described below through an embodiment.
[0123] In an exemplary embodiment, Figure 5 As shown, the test results include performance test results. The hard disk array group corresponding to each disk array card to be tested is tested to obtain the test results of each disk array card to be tested, including:
[0124] S501, executing an automated testing tool to obtain a disk testing tool.
[0125] The performance test focuses on whether the hard disk performance (such as hard disk read / write bandwidth, IOPS, etc.) under different Raid modes can reach the established standards. In the embodiment of the present application, the performance test can be performed on the Raid card to be tested through a disk test tool deployed on the server.
[0126] S502, for any hard disk array group, execute a disk test tool to obtain the hard disk type of the hard disk array group and the test method of the hard disk array group, and test the hard disk array group according to the test method of the hard disk array group to obtain a performance test result of the disk array card to be tested.
[0127] Performance testing needs to distinguish the hard disk types under the Raid card to be tested. Different hard disk types correspond to different testing methods. Whether each hard disk under the Raid card to be tested can form the corresponding Raid mode normally is tested.
[0128] For any hard disk array group, execute the disk test tool to read the hard disk type of the hard disk array group, and determine the test method of the hard disk array group according to the hard disk type, obtain the hard disk operation performance parameters of each hard disk array group, and compare the hard disk operation performance with the standard operation performance parameters. If the hard disk operation performance parameters under the Raid mode are better than the standard operation performance parameters, it is determined that the Raid card to be tested has passed the test, otherwise, it is determined that the Raid card to be tested has not passed the test.
[0129] It should be noted that during the test, the embodiment of the present application Figure 5 The performance tests shown can be compared with the above Figure 4 The stress tests shown can be performed sequentially or one at a time.
[0130] In the embodiment of the present application, by executing the disk test tool, the corresponding performance test method is flexibly selected according to different types of hard disks to perform performance test on the hard disk array group under the disk array card to be tested. Such a performance test method supports testing the disk array cards to be tested corresponding to different types of hard disks, and to a certain extent improves the scalability of the test method for the disk array card to be tested.
[0131] In the computer field, the types of hard disks in a server include solid state disks (SSD) and hard disk drives (HDD), and the hard disk types under each hard disk array group are of the same type, that is, one hard disk array group corresponds to one hard disk type and one test method. Based on this, the following describes the steps of testing different types of hard disk array groups through an embodiment.
[0132] In an exemplary embodiment, the hard disk array group is tested according to the test method of the hard disk array group to obtain the performance test result of the disk array card to be tested, including:
[0133] If the hard disk type is a mechanical hard disk, a sequential steady-state test is performed on each hard disk in the hard disk array group to obtain a performance test result of the disk array card to be tested;
[0134] If the hard disk type is a solid state hard disk, a sequential steady-state test and a random steady-state test are performed on each hard disk in the hard disk array group in turn to obtain a performance test result of the Raid card to be tested.
[0135] In an embodiment of the present application, the performance test is divided into two test schemes, namely, a mechanical hard disk test and a solid-state hard disk test, for different hard disk types. In the test of the solid-state hard disk, the test is further performed in two ways, namely, a sequential steady-state test and a random steady-state test, so that the performance test results are more comprehensive.
[0136] In one embodiment, Figure 6 As shown, a schematic diagram of the overall process of a disk array card testing method is provided, such as Figure 6 As shown, the method is applied to the server and includes the following steps:
[0137] S601. In response to a disk array card test instruction, configure test parameters.
[0138] The server is equipped with automated testing tools, disk array card management tools, and disk testing tools.
[0139] The test parameters include the configuration of group Raid in each mode, as well as parameters related to the automated test tool, the disk array card management tool, and the disk test tool.
[0140] S602: Determine whether there is a disk array card under the server.
[0141] By executing the automated test tool, check whether there is a disk array card in the current server. If not, exit the test directly.
[0142] S603: If yes, further determine whether the disk array card test instruction specifies the disk array card to be tested.
[0143] S604: If yes, test the specified disk array card to be tested.
[0144] S605, if not, then test all disk array cards in a loop.
[0145] S606, obtaining the model of the disk array card to be tested and the corresponding management tool.
[0146] S607, recording the initial status of the hard disk of the disk array card to be tested.
[0147] S608, determining whether the disk array card test instruction specifies a performance test.
[0148] S609: If not, execute the disk test tool to perform a stress test on the disk array card to be tested.
[0149] Take a disk array card to be tested as an example. Figure 7 As shown, Figure 7 The following is a flow chart of the stress test. The corresponding stress test methods include:
[0150] S701, obtaining the configuration mode of the disk array card to be tested.
[0151] S702, determine whether all pressure configuration modes of the disk array card to be tested have been read. If not, return to step S701.
[0152] S703: If yes, the current pressure configuration modes are arranged and combined to obtain multiple configuration mode combination results.
[0153] S704, according to the combination order of each configuration mode in the configuration mode combination result, the number of hard disks required by each configuration mode, and the hard disk read and write rules, all hard disks under the disk array card to be tested are cyclically assembled to obtain a hard disk array group corresponding to the configuration mode combination result.
[0154] S705, executing a disk test tool, performing a stress test, and obtaining a stress test result.
[0155] S706, after the stress test is completed, all current hard disk array groups are deleted.
[0156] S707, determining whether all configuration mode combination results have been traversed.
[0157] If not, continue to execute steps S704-S706.
[0158] S708: If yes, execute the disk test tool to perform performance test on the disk array card to be tested.
[0159] S709, the test ends.
[0160] Repeat the above cycle until the stress test of the disk array card to be tested under all configuration mode combination results is completed, and the stress test result is obtained.
[0161] S610: If yes, execute the disk test tool to perform performance test on the disk array card to be tested.
[0162] The performance test focuses on whether the hard disk performance (such as hard disk read / write bandwidth, IOPS, etc.) under different Raid modes can meet the established standards. The performance test needs to distinguish the hard disk types under the disk array card to be tested, which are mainly divided into HDD and SSD.
[0163] Let's continue with a disk array card to be tested as an example. Figure 8 As shown, Figure 8 The following is a flow chart of performance testing. The corresponding performance testing methods include:
[0164] S801. Determine the hard disk type of the disk array card to be tested.
[0165] S802: If the hard disk type is a mechanical hard disk, the configuration modes of the disk array card to be tested are read cyclically, and the configuration modes are arranged and combined to obtain multiple configuration mode combination results.
[0166] This step can be seen in Figure 7 S701-S704 in the description will not be described in detail here.
[0167] S803, obtaining the combination order of each configuration mode in the configuration mode combination result, the number of hard disks required by each configuration mode, and the hard disk reading and writing rules.
[0168] S804, according to the combination order of each configuration mode in the configuration mode combination result, the number of hard disks required by each configuration mode, and the hard disk read and write rules, all hard disks under the disk array card to be tested are cyclically assembled to obtain a hard disk array group corresponding to the configuration mode combination result.
[0169] S805, executing a disk test tool, performing a performance test, and obtaining a performance test result.
[0170] S806, dismantle all current hard disk array groups.
[0171] S807, determining whether all configuration mode combination results have been traversed.
[0172] S808, if yes, the mechanical hard disk performance test ends; if no, execute steps S803-S807 in a loop.
[0173] S809: If the hard disk type is a solid state hard disk, a sequential steady-state test is performed.
[0174] S810, build a disk array group.
[0175] This step is the same as the above-mentioned S802-S807 and will not be repeated here.
[0176] S811, execute a disk test tool to perform a sequential read and write performance test and obtain a performance test result.
[0177] S812, perform random steady-state testing.
[0178] S813, forming a disk array group.
[0179] This step is the same as the above-mentioned S802-S807 and will not be repeated here.
[0180] S814, executing a disk test tool to perform a random read and write performance test and obtain a performance test result.
[0181] S815, hard disk performance test ends.
[0182] S816, test ends.
[0183] S611, restoring the hard disk of the disk array card to be tested to an initial state by executing a management tool of the disk array card to be tested.
[0184] The initial state refers to the initial state of the hard disk of the disk array card to be tested recorded in S607.
[0185] In the embodiment of the present application, the initial state of the hard disk of the disk array card to be tested is obtained by executing the automated test tool, and is sent to the management tool of the disk array card to be tested, instructing the management tool to restore the hard disk of the disk array card to be tested to the initial state.
[0186] S612, collect test results and generate a data report.
[0187] S613, the test ends.
[0188] In the embodiment of the present application, the server obtains the management tool corresponding to the disk array card to be tested through the automated testing tool, and forms a hard disk array group through the management tool, so as to test the hard disk array group corresponding to each disk array card to be tested. In the entire testing process, there is no need to manually install the management tool or manually set the disassembly parameters to form the hard disk array group, thereby improving the automation level of the testing process of the disk array card to be tested, simplifying the testing process of the disk array card to be tested, and reducing the testing difficulty and testing time of the disk array card.
[0189] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0190] Based on the same inventive concept, the embodiment of the present application also provides a disk array card testing device for implementing the disk array card testing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more disk array card testing device embodiments provided below can refer to the limitations of the disk array card testing method above, and will not be repeated here.
[0191] In an exemplary embodiment, Fig. 9 As shown, a disk array card testing device is provided, including: a response module 901, a construction module 902 and a test module 903, wherein:
[0192] The response module 901 is used to respond to the disk array card test instruction and obtain a management tool corresponding to at least one type of disk array card to be tested by executing a pre-deployed automated performance test tool;
[0193] A construction module 902 is used to perform hard disk assembly on each type of disk array card to be tested by executing various management tools to obtain a hard disk array group corresponding to each disk array card to be tested;
[0194] The testing module 903 is used to test the hard disk array group corresponding to each disk array card to be tested, and obtain the test result of each disk array card to be tested.
[0195] In an exemplary embodiment, the response module 901 includes a tool acquisition unit, which is used to execute an automated performance testing tool to obtain model information of each disk array card to be tested through the automated performance testing tool, and determine a management tool matching each model information from a preset configuration tool set to obtain a management tool corresponding to each disk array card to be tested.
[0196] In an exemplary embodiment, the construction module 902 includes a pattern acquisition unit, a pattern combination unit and an array group acquisition unit, wherein:
[0197] A mode acquisition unit, used for executing an automated test tool for any disk array card to be tested, to acquire multiple configuration modes of the disk array card to be tested;
[0198] A mode combination unit is used to arrange and combine multiple configuration modes of the disk array card to be tested to obtain multiple configuration mode combination results;
[0199] The array group acquisition unit is used to input each configuration mode combination result into the management tool corresponding to the disk array card to be tested, so as to obtain the hard disk array group corresponding to each configuration mode combination result through the management tool corresponding to the disk array card to be tested, and obtain the hard disk array group corresponding to the disk array card to be tested.
[0200] In an exemplary embodiment, the mode combination unit includes a loop assembly subunit, which is used to loop assemble all hard disks under the disk array card to be tested for any configuration mode combination result according to the combination order of each configuration mode in the configuration mode combination result and the number of hard disks required for each configuration mode and the hard disk reading and writing rules, so as to obtain a hard disk array group corresponding to the configuration level mode result.
[0201] In an exemplary embodiment, the disk array card testing device further includes: a recovery module, which is used to disassemble the hard disk array group corresponding to the previous configuration mode combination result of the configuration mode combination result to restore all hard disks under the disk array card to be tested to an initial state.
[0202] In an exemplary embodiment, the test module 903 includes a first execution unit and a stress test unit, wherein:
[0203] A first execution unit is used to execute the automated test tool to obtain a disk test tool;
[0204] The stress test unit is used to execute the disk test tool to test the compatibility between each disk array card to be tested and the corresponding hard disk array group, and obtain the stress test result of each hard disk disk array card to be tested.
[0205] In an exemplary embodiment, the test module 903 includes a second execution unit and a performance test unit, wherein:
[0206] The second execution unit is used to execute the automated test tool to obtain the disk test tool;
[0207] The performance test unit is used to execute a disk test tool for any hard disk array group to obtain the hard disk type of the hard disk array group and the test method of the hard disk array group, and test the hard disk array group according to the test method of the hard disk array group to obtain the performance test result of the disk array card to be tested.
[0208] In an exemplary embodiment, the performance testing unit includes a first acquisition subunit and a second acquisition subunit, wherein:
[0209] The first acquisition subunit is used to perform a sequential steady-state test on each hard disk in the hard disk array group if the hard disk type is a mechanical hard disk, and obtain a performance test result of the disk array card to be tested;
[0210] The second acquisition subunit is used to perform a sequential steady-state test and a random steady-state test on each hard disk in the hard disk array group in turn if the hard disk type is a solid-state hard disk, so as to obtain a performance test result of the disk array card to be tested.
[0211] Each module in the above disk array card testing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0212] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0213] The above embodiment provides a computer device, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0214] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in each method embodiment are implemented.
[0215] The above embodiment provides a computer-readable storage medium, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0216] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in each method embodiment when executed by a processor.
[0217] The above embodiment provides a computer program product, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0218] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0219] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0220] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0221] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A disk array card testing method, characterized in that: Applied to a server, the method comprises: In response to the disk array card test instruction, obtaining a management tool corresponding to at least one type of disk array card to be tested by executing a pre-deployed automated test tool; For any disk array card to be tested, multiple configuration modes of the disk array card to be tested are arranged and combined by executing a management tool corresponding to the disk array card to be tested, so as to obtain configuration mode combination results under multiple arrangement and combination modes; for any configuration mode combination result, all hard disks under the disk array card to be tested are disassembled and cyclically assembled according to the combination order of each configuration mode in the configuration mode combination result, the number of hard disks required by the configuration mode, and the hard disk read and write rules, so as to obtain a hard disk array group corresponding to the configuration mode combination result; The hard disk array groups corresponding to the disk array cards to be tested are tested to obtain test results of the disk array cards to be tested.
2. The method according to claim 1, characterized in that The step of obtaining a management tool corresponding to at least one type of disk array card to be tested by executing a pre-deployed automated performance testing tool includes: The automated performance testing tool is executed to obtain the model information of each disk array card to be tested through the automated performance testing tool, and a management tool matching each model information is determined from a preset configuration tool set to obtain a management tool corresponding to each disk array card to be tested.
3. The method according to claim 1 or 2, characterized in that: The method of performing permutations and combinations on the multiple configuration modes of the disk array card to be tested by executing the management tool corresponding to the disk array card to be tested to obtain configuration mode combination results in multiple permutations and combinations includes: Executing the automated testing tool to obtain multiple configuration modes of the disk array card to be tested; Arrange and combine the multiple configuration modes of the disk array card to be tested to obtain configuration mode combination results in multiple arrangement and combination modes.
4. The method according to claim 1 or 2, characterized in that: According to the combination order of each configuration mode in the configuration mode combination result, the number of hard disks required by the configuration mode, and the hard disk read and write rules, all hard disks under the disk array card to be tested are disassembled and cyclically assembled to obtain a hard disk array group corresponding to the configuration mode combination result, including: The configuration mode combination result is input into a management tool corresponding to the disk array card to be tested, so that the management tool can cyclically assemble all hard disks under the disk array card to be tested according to the combination order of each configuration mode in the configuration mode combination result, the number of hard disks required by each configuration mode, and hard disk reading and writing rules, to obtain a hard disk array group corresponding to the configuration mode combination result.
5. The method according to claim 4, characterized in that Before the cyclic assembly of all hard disks under the disk array card to be tested, the method further comprises: The management tool disassembles the hard disk array group corresponding to the previous configuration mode combination result of the configuration mode combination result, so as to restore all hard disks under the disk array card to be tested to an initial state.
6. The method according to claim 1 or 2, characterized in that: The test result includes a stress test result. The hard disk array group corresponding to each disk array card to be tested is tested to obtain the test result of each disk array card to be tested, including: Execute the automated testing tool to obtain a disk testing tool; The disk testing tool is executed to test the compatibility between each of the disk array cards to be tested and the corresponding hard disk array group, and the stress test result of each of the disk array cards to be tested is obtained.
7. The method according to claim 1 or 2, characterized in that: The test results include performance test results. The hard disk array groups corresponding to the disk array cards to be tested are tested to obtain test results of the disk array cards to be tested, including: Execute the automated testing tool to obtain a disk testing tool; For any hard disk array group, the disk test tool is executed to obtain the hard disk type of the hard disk array group and the test method of the hard disk array group, and the hard disk array group is tested according to the test method of the hard disk array group to obtain the performance test result of the disk array card to be tested.
8. The method according to claim 7, characterized in that The step of testing the hard disk array group according to the test method of the hard disk array group to obtain the performance test result of the disk array card to be tested includes: If the hard disk type is a mechanical hard disk, a sequential steady-state test is performed on each hard disk in the hard disk array group to obtain a performance test result of the disk array card to be tested; If the hard disk type is a solid state hard disk, a sequential steady-state test and a random steady-state test are performed on each hard disk in the hard disk array group in turn to obtain a performance test result of the disk array card to be tested.
9. A disk array card testing device, characterized in that: The device comprises: A response module, configured to respond to a disk array card test instruction and obtain a management tool corresponding to at least one type of disk array card to be tested by executing a pre-deployed automated performance test tool; A construction module is used for, for any disk array card to be tested, arranging and combining multiple configuration modes of the disk array card to be tested by executing a management tool corresponding to the disk array card to be tested, so as to obtain configuration mode combination results under multiple arrangement and combination modes; for any configuration mode combination result, according to the combination order of each configuration mode in the configuration mode combination result, the number of hard disks required by the configuration mode, and the hard disk reading and writing rules, all hard disks under the disk array card to be tested are disassembled and cyclically assembled to obtain a hard disk array group corresponding to the configuration mode combination result; The testing module is used to test the hard disk array group corresponding to each of the disk array cards to be tested, and obtain the test results of each of the disk array cards to be tested.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
