RAID array test method and device, electronic equipment and storage medium

By pre -configuration and dividing the RAID array test data block on the server, parallel testing of multiple RAID arrays is realized, the problem of time -consuming time -consuming time and efficiency in the existing technology is solved, and the test efficiency and accuracy are improved.

CN119356961APending Publication Date: 2025-01-24TIANJIN JINHANG COMP TECH RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411498192.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In the prior art, testing RAID arrays one by one consumes a lot of manpower and time.

Method used

Provide a RAID array test method that pre -configures multiple test data to be tested by the RAID array through the server, and divides the data into multiple test data blocks to achieve parallel testing for multiple RAID arrays.

Benefits of technology

This method greatly shortens the test time, improves the test efficiency, reduces the burden of manpower testing, and ensures the accuracy and reliability of the test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356961A_ABST
    Figure CN119356961A_ABST
Patent Text Reader

Abstract

The invention discloses an RAID array test method and device, electronic equipment and a storage medium, and relates to the technical field of RAID array test.The method comprises the steps that test data corresponding to each to-be-tested RAID array is divided into N test data blocks; in the first test mode, N test data blocks of each test datum are written into N storage blocks of a test disk corresponding to each to-be-tested RAID array; indicating each to-be-tested RAID array to read N test data blocks in N storage blocks of a test disk corresponding to each to-be-tested RAID array; and if the reading result received by the server is that the nth test data block read by the mth to-be-tested RAID array is different from the nth data block written by the server, determining that the mth to-be-tested RAID array is abnormal. According to the method, the test time of the to-be-tested RAID array is greatly shortened, and the burden of manual test is relieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of RAID array testing, and in particular to a RAID array testing method, device, electronic equipment and storage medium. Background Art

[0002] RAID (Redundant Array of Independent Disks) technology is designed to replace expensive large-capacity hard disks with multiple relatively cheap small hard disks, while ensuring that the accuracy of data will not be affected if a single hard disk is damaged. After continuous development, RAID technology has been able to provide a complete storage device solution. While increasing the capacity of hard disks, it can also fully improve the speed of hard disks, making data more secure and easier to manage hard disks. It is precisely because of the high reliability and high fault tolerance of RAID technology that RAID technology is widely used in military storage systems.

[0003] RAID cards are used in servers, and servers have very high requirements for data reliability. Therefore, servers also have high requirements for the reliability and stability of RAID cards. In order to verify the high reliability of RAID cards, a large number of tests need to be performed on the RAID array of the RAID card. This process requires testing the RAID arrays one by one, which is extremely labor-intensive and time-consuming.

[0004] Therefore, testing RAID arrays one by one is extremely labor-intensive and time-consuming, which is an existing problem.

[0005] Application Contents In view of this, the purpose of the present application is to provide a RAID array testing method, device, electronic device and storage medium to solve the above-mentioned problems, realize parallel testing of multiple RAID arrays, shorten the testing time and save manpower.

[0006] In a first aspect, an embodiment of the present application provides a RAID array testing method, the method comprising: The server is pre-configured with M test data corresponding to M RAID arrays to be tested; The server divides the test data corresponding to each RAID array to be tested into N test data blocks; In the first test mode, the server writes N test data blocks of each test data into N storage blocks of the test disk corresponding to each RAID array to be tested; The server instructs each RAID array to be tested to read N test data blocks from N storage blocks of a test disk corresponding to each RAID array to be tested; If the reading result received by the server is that the nth test data block read by the mth RAID array to be tested is different from the nth data block written by the server, the server determines that the mth RAID array to be tested is abnormal.

[0007] Preferably, the method further comprises: If the reading result received by the server is that the nth test data block read by the mth RAID array to be tested is the same as the nth data block written by the server, the server determines that the mth RAID array to be tested is normal.

[0008] Preferably, the method further comprises: In the second test mode, the server writes J test data blocks out of N test data blocks of each test data into any J storage blocks out of N storage blocks of the test disk corresponding to each RAID array to be tested; The server instructs each RAID array to be tested to read J test data blocks in J storage blocks of the test disk corresponding to each RAID array to be tested; If the reading result received by the server is that the jth test data block read by the mth RAID array to be tested is different from the jth data block written by the server, the server determines that the mth RAID array to be tested is abnormal.

[0009] Preferably, the method further comprises: If the reading result received by the server is that the jth test data block read by the mth RAID array to be tested is the same as the jth data block written by the server, the server determines that the mth RAID array to be tested is normal.

[0010] Preferably, the M RAID arrays to be tested pregenerate M virtual test disk numbers corresponding to the M RAID arrays to be tested, and M virtual starting storage addresses corresponding to the M virtual test disk numbers; the method further comprises: The server obtains M test disk numbers corresponding to the M RAID arrays to be tested and M starting storage addresses corresponding to the M test disk numbers; If the M test disk numbers are the same as the M virtual test disk numbers and the M virtual start storage addresses are the same as the M start storage addresses, the server starts to test the M RAID arrays to be tested.

[0011] Preferably, the method further comprises: If the mth test disk number is not the same as the mth virtual test disk number and / or the mth virtual start storage address is not the same as the mth start storage address, the server stops testing the mth RAID array to be tested.

[0012] Preferably, the M RAID arrays to be tested are respectively arranged on I test machines; and each of the I test machines is connected to the server for communication via the SSH protocol.

[0013] The RAID array testing method provided by this application brings the following beneficial effects: The present application provides a RAID array testing method, in which a server instructs each RAID array to be tested to read N test data blocks in N storage blocks of a test disk corresponding to each RAID array to be tested; if the nth test data block read by the mth RAID array to be tested is different from the nth data block written by the server, the mth RAID array to be tested is abnormal; if the nth test data block read by the mth RAID array to be tested is the same as the nth data block written by the server, the mth RAID array to be tested is normal. The principle of the method is simple and easy to operate, and the reading result of the RAID array to be tested is obvious and easy to judge, which greatly shortens the test time of the RAID array to be tested, improves the test efficiency of the RAID array to be tested, and reduces the burden of human testing.

[0014] In a second aspect, the present application further provides a RAID array testing device, the device comprising: A configuration module, used for pre-configuring M test data corresponding to M RAID arrays to be tested; A test module, used for dividing the test data corresponding to each RAID array to be tested into N test data blocks; The test module is further used to, in the first test mode, write N test data blocks of each test data into N storage blocks of the test disk corresponding to each RAID array to be tested; instruct each RAID array to be tested to read N test data blocks in the N storage blocks of the test disk corresponding to each RAID array to be tested; if the read result received by the server is that the nth test data block read by the mth RAID array to be tested is different from the nth data block written by the server, then determine that the mth RAID array to be tested is abnormal.

[0015] The RAID array testing device provided in the embodiment of the present application has the same technical features as the RAID array testing method provided in the above embodiment, and can therefore solve the same technical problems and achieve the same technical effects.

[0016] In a third aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the beneficial effects of any of the methods described above are achieved, which will not be repeated here.

[0017] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the beneficial effects of any of the methods described above are achieved, which will not be repeated here.

[0018] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application are realized and obtained by the structures particularly pointed out in the description and the drawings.

[0019] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0021] Figure 1 A flowchart of a RAID array testing method provided in an embodiment of the present application; Figure 2 A schematic diagram of the connection relationship between the server and the test machine provided in the embodiment of the present application; Figure 3 A schematic diagram of the structure of a RAID array testing device provided in an embodiment of the present application; Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0023] To facilitate understanding of this embodiment, the embodiments of the present application are described in detail below.

[0024] The present application embodiment provides a RAID array testing method, such as Figure 1 As shown, Figure 1 A flowchart of a RAID array testing method provided in an embodiment of the present application. The method comprises the following steps: S101, the server pre-configures M test data corresponding to M RAID arrays to be tested.

[0025] Specifically, the above-mentioned RAID array to be tested is created by the server after the RAID card to be tested is inserted into the test disk. The server can create multiple RAID arrays to be tested, and M RAID arrays to be tested can be tested together. Before the test, the staff will input the test data corresponding to the RAID array to be tested into the server through the visual interface. The types of RAID arrays to be tested include RAID0, RAID1, RAID5 and RAID6. Each type of RAID array to be tested has corresponding test data. Each type of test data corresponds to a different test scenario (use case).

[0026] S102: The server divides the test data corresponding to each RAID array to be tested into N test data blocks.

[0027] Specifically, the server needs to process the test data in blocks, so that in the subsequent test process, the RAID array to be tested can read each data block.

[0028] S103, in the first test mode, the server writes N test data blocks of each test data into N storage blocks of the test disk corresponding to each RAID array to be tested.

[0029] Specifically, each test disk is composed of N storage blocks. In the first test mode, the server writes a test data block in each (N) storage block, so that the RAID array to be tested can read the test data block in each storage block of the test disk.

[0030] Such an arrangement can make the entire RAID to be tested be tested, thus achieving a comprehensive test and improving the accuracy and reliability of the test results.

[0031] S104: The server instructs each RAID array to be tested to read N test data blocks from N storage blocks of a test disk corresponding to each RAID array to be tested.

[0032] Specifically, in the first test mode, the RAID array to be tested needs to read from the first storage block to the last storage block through the pointer to implement a read test of the test data block in each storage block. The pointer is used to indicate the location (address) of the storage block currently read by the RAID array to be tested.

[0033] S105, the server determines whether the nth test data block read by the mth RAID array to be tested is the same as the nth data block written by the server, if so, execute S107, if not, execute S106.

[0034] Specifically, in the first test mode, the server may compare the test data block read from the RAID array to be tested with the test data block pre-written into the storage block to determine whether the function of the RAID array to be tested is normal.

[0035] With this setting, the test principle is simple and easy to operate, and the test results are obvious, making the test process more convenient.

[0036] S106: The server determines that the mth RAID array to be tested is abnormal.

[0037] Specifically, if the reading result is that the nth test data block read by the mth RAID array to be tested is different from the nth data block written by the server, it means that the mth RAID array to be tested is abnormal.

[0038] S107: The server determines that the mth RAID array to be tested is normal.

[0039] Specifically, if the reading result is that the nth test data block read by the mth RAID array to be tested is the same as the nth data block written by the server, it means that the mth RAID array to be tested is normal.

[0040] The embodiment of the present application provides a RAID array testing method, in which the server instructs each RAID array to be tested to read N test data blocks in the N storage blocks of the test disk corresponding to each RAID array to be tested; if the nth test data block read by the mth RAID array to be tested is different from the nth data block written by the server, the mth RAID array to be tested is abnormal; if the nth test data block read by the mth RAID array to be tested is the same as the nth data block written by the server, the mth RAID array to be tested is normal. In this method, multiple RAID arrays to be tested can be tested at the same time. Compared with the prior art, in which the RAID arrays are tested one by one, this method can pre-configure the test data (use case) in the server, and divide the test data into multiple test data blocks and write them into each storage block. During the test process, each RAID array to be tested can simultaneously read the test data blocks in each storage block, thereby completing the parallel test of multiple RAID arrays to be tested. The principle of this method is simple and easy to operate, and the reading results of the RAID array to be tested are obvious and easy to judge, which greatly shortens the test time of the RAID array to be tested, improves the efficiency of the test of the RAID array to be tested, and reduces the burden of manpower testing. In addition, the entire process of this method does not require human intervention, ensuring the accuracy and reliability of the test results.

[0041] The second test mode is introduced below. In the second test mode, the server writes J test data blocks out of N test data blocks of each test data into any J storage blocks out of N storage blocks of the test disk corresponding to each RAID array to be tested; instructs each RAID array to be tested to read J test data blocks out of J storage blocks of the test disk corresponding to each RAID array to be tested; if the read result received by the server is that the j-th test data block read by the m-th RAID array to be tested is different from the j-th data block written by the server, then it is determined that the m-th RAID array to be tested is abnormal; if the read result received by the server is that the j-th test data block read by the m-th RAID array to be tested is the same as the j-th data block written by the server, then it is determined that the m-th RAID array to be tested is normal.

[0042] Specifically, in the second test mode, the memory of the test disk is large and has more storage blocks, so the server randomly selects J storage blocks from the N storage blocks and writes the J test data blocks into the selected J storage blocks. The server compares the test data blocks read from the RAID array to be tested with the test data blocks pre-written into the storage blocks to determine whether the function of the RAID array to be tested is normal. If it is determined that the mth RAID array to be tested is abnormal, the server will record the position where the mth RAID array to be tested reads abnormally and generate an error report. Among them, the position where the mth RAID array to be tested reads abnormally is determined by the pointer used when reading the test data block. In addition, after any of the above test modes (the first test mode and the second test mode) ends, the server will automatically start the test of the next type of RAID array to be tested.

[0043] With such a setting, the RAID array to be tested can read the test data block in the randomly selected storage block. In the above-mentioned second test mode, the RAID array to be tested needs to use a pointer to the data block in the randomly selected storage block to realize a fast test of the RAID array to be tested. Among them, the pointer is used to indicate the location (address) of the storage block read by the current RAID array to be tested. The test speed of this method is faster, the test efficiency is improved, and the test time is saved. The error report includes the location of the abnormal reading of the mth RAID array to be tested, so that subsequent staff can correct the abnormal mth RAID array to be tested according to the error report.

[0044] In one embodiment, M RAID arrays to be tested pre-generate M virtual test disk numbers corresponding to the M RAID arrays to be tested, and M virtual starting storage addresses corresponding to the M virtual test disk numbers; the server obtains the M test disk numbers corresponding to the M RAID arrays to be tested and the M starting storage addresses corresponding to the M test disk numbers; if the M test disk numbers are the same as the M virtual test disk numbers and the M virtual starting storage addresses are the same as the M starting storage addresses, then start testing the M RAID arrays to be tested; if the m-th test disk number is not the same as the m-th virtual test disk number and / or the m-th virtual starting storage address is not the same as the m-th starting storage address, then the server stops testing the m-th RAID array to be tested.

[0045] Specifically, the above-mentioned M test disk numbers and the M starting storage addresses corresponding to the M test disk numbers are the standards for the server to determine whether to start testing the M RAID arrays to be tested. The server will start the test program only when the M virtual test disk numbers corresponding to the M RAID arrays to be tested correspond to the M test disk numbers one by one, and the M virtual starting storage addresses corresponding to the M virtual test disk numbers correspond to the M starting storage addresses corresponding to the M test disk numbers one by one. In addition, before the server starts testing the RAID array to be tested, it needs to clear the previously created RAID array to be tested in each test disk to prevent affecting the test results.

[0046] With such a configuration, the server can determine whether to test the RAID array to be tested based on the correspondence between the M virtual test disk numbers and the M test disk numbers corresponding to the M RAID arrays to be tested, and the correspondence between the M virtual starting storage addresses corresponding to the M virtual test disk numbers and the M starting storage addresses corresponding to the M test disk numbers, because if any of the above correspondences is wrong, the test result of the RAID array to be tested will be inaccurate. Therefore, this method ensures the accuracy of the test results and the normal operation of the test work.

[0047] In one embodiment, Figure 2 As shown, Figure 2 A schematic diagram of the connection relationship between the server and the test machine provided in the embodiment of the present application. M RAID arrays to be tested are respectively set on I test machine 300; I test machine 300 is connected to the server 200 through the SSH protocol.

[0048] Specifically, SSH (Secure Shell Protocol) is a confidentiality protocol used for communication between a test machine 300 and a server 200. The server 200 and each test machine 300 are connected via a network cable (not shown in the figure). The server 200 needs to obtain the IP address of each test machine 300 in advance, and send the test data to each test machine 300 based on the SSH protocol according to the IP address of each test machine 300. Each test machine 300 is equipped with multiple test disks.

[0049] In this way, the server 200 can simultaneously perform performance tests on multiple RAID arrays to be tested. The server 200 communicates with each test machine 300 via the SSH protocol, ensuring that test data will not be leaked during the test process, thereby ensuring the accuracy of the test results and the security of the test process.

[0050] Based on the above method embodiment, the present application embodiment also provides a RAID array testing device. Figure 3 As shown, Figure 3 This is a schematic diagram of the structure of a RAID array test device provided in an embodiment of the present application. The device includes a configuration module 31 and a test module 32; wherein the functions of each module are as follows: A configuration module 31, used for pre-configuring M test data corresponding to M RAID arrays to be tested; A testing module 32, used to divide the test data corresponding to each RAID array to be tested into N test data blocks; The test module 32 is further used to, in the first test mode, write N test data blocks of each test data into N storage blocks of the test disk corresponding to each RAID array to be tested; instruct each RAID array to be tested to read N test data blocks in the N storage blocks of the test disk corresponding to each RAID array to be tested; if the server receives a reading result that the nth test data block read by the mth RAID array to be tested is different from the nth test data block written by the server, then determine that the mth RAID array to be tested is abnormal.

[0051] Preferably, the testing module 32 is further configured to determine that the mth RAID array to be tested is normal if the reading result received by the server is that the nth test data block read by the mth RAID array to be tested is the same as the nth data block written by the server.

[0052] Preferably, the test module 32 is further used to, in the second test mode, write J test data blocks out of the N test data blocks of each test data into any J storage blocks out of the N storage blocks of the test disk corresponding to each RAID array to be tested; instruct each RAID array to be tested to read J test data blocks out of the J storage blocks of the test disk corresponding to each RAID array to be tested; and if the server receives a reading result that the j-th test data block read by the m-th RAID array to be tested is different from the j-th test data block written by the server, determine that the m-th RAID array to be tested is abnormal.

[0053] Preferably, the testing module 32 is further configured to determine that the mth RAID array to be tested is normal if the reading result received by the server is that the jth test data block read by the mth RAID array to be tested is the same as the jth data block written by the server.

[0054] Preferably, the M RAID arrays to be tested pregenerate M virtual test disk numbers corresponding to the M RAID arrays to be tested, and M virtual starting storage addresses corresponding to the M virtual test disk numbers; An acquisition module (not shown in the figure) is used to acquire M test disk numbers corresponding to the M RAID arrays to be tested and M starting storage addresses corresponding to the M test disk numbers; The testing module 32 is further configured to start testing the M RAID arrays to be tested if the M test disk numbers are the same as the M virtual test disk numbers and the M virtual start storage addresses are the same as the M start storage addresses.

[0055] Preferably, the testing module 32 is further configured to stop testing the mth RAID array to be tested if the mth test disk number is different from the mth virtual test disk number and / or the mth virtual starting storage address is different from the mth starting storage address.

[0056] Preferably, the M RAID arrays to be tested are respectively arranged on I test machines; and each of the I test machines is connected to the server for communication via the SSH protocol.

[0057] The RAID array testing device provided in the embodiment of the present application has the same technical features as the RAID array testing method provided in the above embodiment, and can therefore solve the same technical problems and achieve the same technical effects.

[0058] An embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned RAID array testing method.

[0059] See also Figure 4 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine executable instructions that can be executed by the processor 100. The processor 100 executes the machine executable instructions to implement the above-mentioned RAID array testing method.

[0060] Further, Figure 4 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .

[0061] Among them, the memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 102 can be an ISA (Industrial Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Enhanced Industry Standard Architecture) bus, etc. The above-mentioned bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0062] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.

[0063] This embodiment further provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned RAID array testing method.

[0064] The computer program product of the RAID array testing method, device, and electronic device provided in the embodiments of the present application includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can refer to the method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the previous method embodiment, which will not be repeated here.

[0065] In addition, in the description of the embodiments of the present application, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium that can be executed by a processor. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0066] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0067] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A RAID array testing method, characterized in that: The method comprises: The server is pre-configured with M test data corresponding to M RAID arrays to be tested; The server divides the test data corresponding to each RAID array to be tested into N test data blocks; In the first test mode, the server writes N test data blocks of each test data into N storage blocks of the test disk corresponding to each RAID array to be tested; The server instructs each RAID array to be tested to read N test data blocks from N storage blocks of a test disk corresponding to each RAID array to be tested; If the reading result received by the server is that the nth test data block read by the mth RAID array to be tested is different from the nth data block written by the server, the server determines that the mth RAID array to be tested is abnormal.

2. The RAID array testing method according to claim 1, characterized in that: The method further comprises: If the reading result received by the server is that the nth test data block read by the mth RAID array to be tested is the same as the nth data block written by the server, the server determines that the mth RAID array to be tested is normal.

3. The RAID array testing method according to claim 1, characterized in that: The method further comprises: In the second test mode, the server writes J test data blocks out of N test data blocks of each test data into any J storage blocks out of N storage blocks of the test disk corresponding to each RAID array to be tested; The server instructs each RAID array to be tested to read J test data blocks in J storage blocks of the test disk corresponding to each RAID array to be tested; If the reading result received by the server is that the jth test data block read by the mth RAID array to be tested is different from the jth data block written by the server, the server determines that the mth RAID array to be tested is abnormal.

4. The RAID array testing method according to claim 3, characterized in that: The method further comprises: If the reading result received by the server is that the jth test data block read by the mth RAID array to be tested is the same as the jth data block written by the server, the server determines that the mth RAID array to be tested is normal.

5. The RAID array testing method according to claim 1, characterized in that: The M RAID arrays to be tested pregenerate M virtual test disk numbers corresponding to the M RAID arrays to be tested, and M virtual starting storage addresses corresponding to the M virtual test disk numbers; The method further comprises: The server obtains M test disk numbers corresponding to the M RAID arrays to be tested and M starting storage addresses corresponding to the M test disk numbers; If the M test disk numbers are the same as the M virtual test disk numbers and the M virtual start storage addresses are the same as the M start storage addresses, the server starts to test the M RAID arrays to be tested.

6. The RAID array testing method according to claim 5, characterized in that: The method further comprises: If the mth test disk number is not the same as the mth virtual test disk number and / or the mth virtual start storage address is not the same as the mth start storage address, the server stops testing the mth RAID array to be tested.

7. The RAID array testing method according to claim 1, characterized in that: M RAID arrays to be tested are respectively set on I test machines; I test machines are connected to the server for communication via SSH protocol.

8. A RAID array testing device, characterized in that: The device comprises: A configuration module, used for pre-configuring M test data corresponding to M RAID arrays to be tested; A test module, used for dividing the test data corresponding to each RAID array to be tested into N test data blocks; The test module is further used to, in the first test mode, write N test data blocks of each test data into N storage blocks of the test disk corresponding to each RAID array to be tested; instruct each RAID array to be tested to read N test data blocks in the N storage blocks of the test disk corresponding to each RAID array to be tested; if the read result received by the server is that the nth test data block read by the mth RAID array to be tested is different from the nth data block written by the server, then determine that the mth RAID array to be tested is abnormal.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are executed.