CN112667452B - Disk array testing method, system and medium - Google Patents
Disk array testing method, system and medium Download PDFInfo
- Publication number
- CN112667452B CN112667452B CN202011512797.5A CN202011512797A CN112667452B CN 112667452 B CN112667452 B CN 112667452B CN 202011512797 A CN202011512797 A CN 202011512797A CN 112667452 B CN112667452 B CN 112667452B
- Authority
- CN
- China
- Prior art keywords
- disk array
- test
- virtual disk
- testing
- hot standby
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 299
- 238000010998 test method Methods 0.000 claims abstract description 9
- 238000003491 array Methods 0.000 claims description 8
- 238000009434 installation Methods 0.000 claims description 8
- 125000004122 cyclic group Chemical group 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims description 4
- 238000004806 packaging method and process Methods 0.000 claims 1
- 238000009530 blood pressure measurement Methods 0.000 description 11
- 238000000034 method Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 4
- 101100226364 Arabidopsis thaliana EXT1 gene Proteins 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 241000282326 Felis catus Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000008034 disappearance Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
Images
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a disk array test method, which comprises the steps of establishing a virtual disk array of a corresponding level according to the level of a disk array card; selecting a corresponding hot standby disk in the virtual disk array according to the hierarchy of the virtual disk array; setting a testing step, namely performing pressure testing on the virtual disk array and performing hot standby testing on a hot standby disk in the virtual disk array according to the testing step to obtain a testing result of the testing step; setting a backup measure, executing the corresponding backup measure according to the test result, and detecting the test condition of the virtual disk array according to the backup measure; executing a circulation measure according to the test condition; the invention can establish the virtual disk array for the disk array card of the server and test the virtual disk array completely and automatically through the mutual cooperation of all the instructions and the units, thereby greatly improving the test efficiency of the disk array card and reducing the test cost.
Description
Technical Field
The invention relates to the technical field of disk testing, in particular to a disk array testing method, a disk array testing system and a disk array testing medium.
Background
At present, a plurality of storage devices store data by using a disk array card, so that data failure and disappearance are prevented, and in order to ensure the accuracy and stability of the disk array card, the disk array of the disk array card needs to be tested.
Currently, there are three test methods:
the test method comprises the following steps: the method comprises the steps that hard disk information of a storage system is captured through a hard disk information reading module, whether hard disk configuration in the hard disk information is correct or not is confirmed, then, the hard disks are subjected to plug-in and pull tests, and corresponding test records are stored when all the hard disks are subjected to the plug-in and pull tests; the plugging test is manually operated, and the plugging test comprises the following specific steps: performing read-write test after manually and randomly extracting the hard disks in the hard disk array group; wherein manual operation and random extraction do not meet the systematic testing requirements;
and a second testing method comprises the following steps: the method comprises the steps that a controller is used for carrying out read-write interactive test on the solid state disk, the working state of the solid state disk is judged through the test, a test result corresponding to the working state is generated and stored, and the test result is fed back in a voice broadcasting mode, and the feedback mode is inconvenient and poor in applicability;
the third test method comprises the following steps: establishing a corresponding disk array through a graphical interface by manually entering a system, then testing, and completing hot standby replacement testing of the disk array by manually plugging and unplugging the disk array in the testing process; many steps participate in manual setting, so that the efficiency is low and the cost is high;
in the three methods, manual operation exists, the testing efficiency is greatly reduced when the disk array cards of a plurality of servers face, uncontrollable factors of the manual operation are more, and therefore the testing cost is greatly increased.
Disclosure of Invention
The invention mainly solves the problems of reduced testing efficiency and improved testing cost caused by manual testing when the disk array is tested.
In order to solve the technical problems, the invention adopts a technical scheme that: a disk array test method is provided, which comprises the following steps:
establishing a virtual disk array: establishing a virtual disk array of a corresponding hierarchy according to the hierarchy of the disk array card;
selecting a hot spare disk: selecting a corresponding hot standby disk in the virtual disk array according to the hierarchy of the virtual disk array;
testing and obtaining a test result: setting a test step, performing pressure test on the virtual disk array and performing hot standby test on the hot standby disk in the virtual disk array according to the test step to obtain a test result of the test step;
detecting the test condition: setting a backup measure, executing the corresponding backup measure according to the test result, and detecting the test condition of the virtual disk array according to the backup measure;
and executing a circulation measure according to the test condition.
Further, the step of detecting the test condition specifically comprises:
the backup measures comprise incomplete indication measures and cyclic judgment measures;
when the test result is that the test is successful, the test step is finished, the circulation judgment measure is executed, and the test conditions of all the virtual disk arrays are detected according to the circulation judgment measure;
and when the test result is that the test fails, finishing the test step and executing the unfinished indication measure.
Further, the testing step is as follows:
calling a formatting instruction to generate a log file system corresponding to the virtual disk array;
after the log file system of the virtual disk array is generated, setting test time, wherein the test time comprises an initial time period and a reduced order time period;
executing a pressure test step, namely performing the pressure test on the virtual disk array and performing the hot standby test on the hot standby disk in the virtual disk array according to the pressure test step;
and after the step of pressure testing is executed, the step of judging the completion of testing is executed according to the testing time to obtain the testing result, and the testing result is packaged into a testing log file and stored in the log file system.
Further, after the hot standby test is carried out, the hot standby test is finished after the order reduction time period, and the test completion judgment step is executed;
the test completion judging step comprises the following steps:
calling a test completion judgment instruction, acquiring the completion condition of the pressure test step, calling a state detection instruction, and acquiring the index level of the virtual disk array;
judging the test result according to the completion condition of the pressure test step and the index level of the virtual disk array, wherein the specific steps are as follows:
when the completion condition of the pressure testing step is not completed or the index level of the virtual disk array is not reached, the testing result is testing failure;
and when the completion condition of the pressure testing step is completion and the index level of the virtual disk array is standard reaching, the testing result is successful.
Further, the circulation judgment measures are as follows:
marking the test condition of the virtual disk array corresponding to the test step as test completion, detecting whether the test conditions of all the virtual disk arrays are test completion, and if not, executing the circulation measure; the circulation measures are as follows: executing the testing step on the virtual disk array except the testing condition is the testing completion;
and if so, executing a finishing indication measure.
Further, the step of establishing the virtual disk array specifically includes:
calling an array instruction corresponding to the hierarchy of the disk array card, and establishing the virtual disk array corresponding to the hierarchy of the disk array card by adopting a disk corresponding to the array instruction;
if the hierarchy of the disk array card is primary, establishing a primary virtual disk array; if the hierarchy of the disk array card is a middle level, establishing a middle level virtual disk array; if the hierarchy of the disk array card is high-level, a high-level virtual disk array is established.
Further, the pressure measurement step is as follows:
calling a pressure test starting instruction, carrying out the pressure test on the virtual disk array, and carrying out the hot standby test on the hot standby disk in the virtual disk array after the initial time period;
the pressure test is as follows: testing the virtual disk array corresponding to the pressure test starting instruction;
the hot standby test is as follows: judging whether the virtual disk array is the primary virtual disk array or not, if so, executing the test and finishing the judgment step; if not, calling a order reduction instruction, removing the disk corresponding to the order reduction instruction in the virtual disk array according to the order reduction instruction, and carrying out the pressure test on the virtual disk array.
Further, the step of selecting the hot spare disk specifically includes:
executing the testing step when the hierarchy of the virtual disk array is judged to be the primary virtual disk array;
when the hierarchy of the virtual disk array is judged to be the middle-level virtual disk array, calling a hot standby instruction corresponding to the middle-level virtual disk array, and selecting a disk corresponding to the hot standby instruction in the middle-level virtual disk array as the hot standby disk;
when the level of the virtual disk array is judged to be the advanced virtual disk array, calling the hot standby instruction corresponding to the advanced virtual disk array, and selecting a disk corresponding to the hot standby instruction in the advanced virtual disk array as the hot standby disk.
The invention also provides a disk array test system, comprising:
the device comprises an initialization unit, an installation unit, a test unit and a processing unit;
the initialization unit is used for initializing the level and the test time of the disk array card and sending the test time to the test unit;
the installation unit is used for establishing a virtual disk array with a hierarchy corresponding to the hierarchy of the disk array card and selecting a hot standby disk in the virtual disk array corresponding to the hierarchy of the virtual disk array;
the test unit is used for setting a test step; the test unit performs pressure test on the virtual disk array and performs hot standby test on the hot standby disk in the virtual disk array through the test step to obtain a test result of the test step;
the processing unit is used for setting backup measures and executing the backup measures corresponding to the test results;
and the processing unit detects the test condition of the virtual disk array through the backup measure and executes a circulating measure corresponding to the test condition.
The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the disk array testing method.
The invention has the beneficial effects that:
1. the disk array test method can realize the fully automatic establishment and test of the virtual disk array for the disk array card of the server, greatly improves the test efficiency of the disk array card and reduces the test cost.
2. The disk array test system can automatically establish and test the virtual disk array for the disk array card of the server through the mutual cooperation of the initialization unit, the installation unit, the test unit and the processing unit, greatly improves the test efficiency of the disk array card and reduces the test cost.
3. The computer readable storage medium can realize the mutual cooperation of the guide initialization unit, the installation unit, the test unit and the processing unit, automatically establishes the virtual disk array for the disk array card of the server, and then tests, thereby improving the operability of the disk array test method.
Drawings
Fig. 1 is a flowchart of a disk array testing method provided in embodiment 1 of the present invention;
fig. 2 is an operation flowchart of a disk array testing method according to embodiment 1 of the present invention;
fig. 3 is a schematic structural diagram of a disk array test system according to embodiment 2 of the present invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
In the description of the present invention, it should be noted that the terms "primary", "intermediate" and "high" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. It should be noted that, in the description of the present invention, RAID (Redundant Array of Independent Disks) is a Disk Array, RAID0 (RAID Level 0) is a Disk Array Level 0, RAID1 (RAID Level 1) is a Disk Array Level 1, RAID5 (RAID Level 5) is a Disk Array Level 5, RAID10 (RAID Level 10) is a Disk Array Level 10, RAID6 (RAID Level 6) is a Disk Array Level 6, NVRAM (Non-Volatile Random Access Memory) is a nonvolatile Random Access Memory, disk Striping is a hard Disk Striping technology, EXT4 (Fourth generation EXTended file system), ipool is a command line mode Platform Management tool that can be used in the Linux system, IPMI (Intelligent Platform Management plane) is a hardware Management Interface that can be used in the Linux system, and an IPMI (Intelligent Platform Management Interface) is a new generation of Intelligent Platform Management Interface, and Linux free-emission diode is a new generation of lighting Interface.
Example 1
The embodiment provides a disk array testing method, as shown in fig. 1 and fig. 2, including the following steps:
s100, initializing; setting a test system, and starting to test after the system is initialized successfully; in the embodiment, a Linux system is selected for operation;
in this embodiment, the method is implemented by using an automated script, and the specific implementation flow is shown in fig. 2;
s200, establishing a virtual disk array; selecting different numbers of disks according to the hierarchy of the disk array card, calling corresponding array instructions through a virtualization storage technology, and establishing a plurality of virtual disk arrays corresponding to the hierarchy of the disk array card; if the number of the disks in the system is N, when the level of the disk array card is RAID0 (namely a primary disk array card), establishing a primary virtual disk array by using the N disks in the system; when the level of the disk array card is RAID1, RAID5 or RAID10 (namely a middle-level disk array card), establishing a middle-level virtual disk array by using (N-1) disks; when the level of the disk array card is RAID6 (namely an advanced disk array card), establishing an advanced virtual disk array by using (N-2) disks;
the disk array card has the following characteristics: the disk array card is provided with a processor, and data processing is not carried out by a CPU of a server. The method has the advantages that the read-write performance is high, server resources are not occupied, the method can be used for any operating system, the residual read-write operation contained in the read-write log of the disk can be recorded in the memory firstly after the system is powered off, the log data is retrieved by the NVRAM after the power supply is cancelled, and then the read-write operation is completed to ensure the read-write integrity;
the virtual disk array has the following characteristics: the virtual disk array is generated by combining a plurality of disks into one or a plurality of disk array groups through a virtualization storage technology, so that the performance or the data redundancy can be improved, or the performance and the data redundancy can be improved simultaneously; in specific operation, according to different RAID levels, data may be distributed in various modes on each hard disk, and the naming of the RAID level may begin with RAID and be numbered, for example: RAID0, RAID1, RAID5, RAID6, RAID 01, RAID10, RAID50, RAID 60. Each grade has theoretical advantages and disadvantages, and different grades obtain balance between two targets, namely, the data reliability is increased and the read-write performance of the memory is increased;
the RAID0 level disk array card has the following characteristics: more than two magnetic disks are connected in parallel to form a large-capacity magnetic disk; the data to be stored is stored in the disks in a scattered way after being segmented, and because the data can be processed in parallel during reading and writing, the RAID0 speed is the fastest in all levels; however, RAID0 has neither a redundancy function nor a fault-tolerant capability, and if one disk is damaged, all data will be lost;
the RAID1 level disk array card has the following characteristics: the method is characterized in that more than two groups of N disks are mutually mirrored, and a good reading speed can be realized in a multi-thread operating system, and the reading speed is theoretically equal to the multiple of the number of the disks and is the same as RAID 0; in addition, the writing speed of the RAID1 level disk array card is slightly reduced, but the operation can be maintained as long as one disk is normal, and the reliability is highest; the principle is that the same data is written on a mirror image disk while the data is stored on a main disk, and when the main disk is damaged, the mirror image disk replaces the main disk to work; because the mirror disk is used for data backup, the data security of the disk array card of the RAID1 level is the best on all RAID levels; however, no matter how many disks are used to form the disk array card of the RAID1 level, the capacity of only one disk is calculated and is a level with the lowest disk utilization rate in all the RAIDs;
the RAID5 level disk array card has the following characteristics: the RAID5 level disk array card is a storage solution with storage performance, data security and storage cost taken into consideration; it uses Disk Striping technology; the RAID5 level disk array card needs at least three disks, stores data and parity information corresponding to the data on each disk of the RAID5 disk array, and respectively stores the parity information and the corresponding data on different disks; when one disk data in the RAID5 level disk array card is damaged, the damaged data can be recovered by using the remaining data and the corresponding parity check information; a RAID5 level disk array card may be understood as a compromise between RAID0 and RAID1 level disk array cards;
the RAID10 level disk array card has the following characteristics: the RAID10 level disk array card divides data and then mirrors the data, and then divides all disks into two groups, wherein the two groups can be regarded as the lowest combination by taking the RAID1 level disk array card, and then each group of RAID1 level disk array cards is regarded as a disk combination to operate as the RAID0 level disk array card; when one disk in the RAID10 level disk array card is damaged, the other disks can continue to operate;
the RAID6 level disk array card has the following characteristics: compared with a RAID 5-level disk array card, a RAID 6-level disk array card is added with a second independent parity check information block; the two independent parity systems use different algorithms, the reliability of data is very high, and the integrity of the data cannot be influenced when any two disks fail simultaneously; the RAID6 level disk array card needs larger disk space allocated to parity check information and extra check calculation, and has larger operation amount and calculation amount compared with the RAID5 level disk array card;
the usage thresholds of the RAID50 and RAID60 of the tier level of the disk array are too high, and are not described in this embodiment too much;
the corresponding array instruction for establishing the disk array is as follows: for example, if the code number of the disk array card is 3, the hierarchy of the disk array card is RAID5, and the number of disks in the system is 3, then the corresponding array instruction for establishing the disk array is: "arcconf CREATE 3 logical drive 5 01 02 noprompt", wherein "01 02 03" is the code number of 3 disks in the virtual disk array, the code number of the disk array card corresponds to the hierarchy of the disk array card, the code number of the disk array card corresponding to RAID0 is 1, the code number of the disk array card corresponding to RAID1 or RAID5 or RAID10 is 2, the code number of the disk array card corresponding to RAID6 is 3;
s300, judging the level of the disk array card, calling a corresponding hot standby instruction according to a judgment result, and selecting a corresponding disk in the virtual disk array as a hot standby disk; if the level of the disk array card is RAID0, directly carrying out a testing step; if the level of the disk array card is RAID1, RAID5 or RAID10, selecting the Nth disk in the middle-level disk array card as a hot spare disk, and carrying out a test step; if the level of the disk array card is RAID6, selecting the Nth disk and the (N-1) th disk in the high-level disk array card as hot spare disks, and performing a test step;
the corresponding hot standby instruction for establishing the hot standby disk is as follows: "arcconf setsite 1 device 0 8 hsp array1 spartype 1", wherein device 0 represents the disk code number as hot spare disk, and hsp array1 represents that the disk is given to the 1 st disk array in the virtual disk array as hot spare disk; sparetype 1 represents a hot standby disk which limits the disk to be a corresponding disk array, and if the hot standby instruction is sparetype 2, the disk can be used as the hot standby disk of each disk array;
the testing steps are as follows:
s301, formatting is carried out; calling a formatting instruction to generate a log file system of the virtual disk array, in this embodiment, EXT4 under Linux is used, and the corresponding formatting instruction is "mkfs.ext4/dev/sdb";
s302, after the formatting step is completed, setting test time, and starting to execute a pressure test step on the virtual disk array:
s303, calling a pressure test starting instruction to start a pressure test on the virtual disk array;
the pressure test start command is:
“fio-filename=/dev/sdb1-direct=1-iodepth1-rw=randread-ioengine=psync-bs=16k -size=200G -numjobs=10 -runtime=86400 --output TestResult.log”;
wherein, -filename =/dev/sdb1 represents a test file directory; -size =200G represents the test file size; numjobs =10 represents that the test thread is a 10 thread; runtime =86400 represents a completion period of 24 hours, i.e. 86400 seconds; log represents the production of a log document;
the set testing time is the sum of the initial time period and the reduced-order time period;
s304, after the pressure test is started, executing a hot standby test after an initial time period, wherein the hot standby test specifically comprises the following steps:
judging whether the virtual disk array is a primary virtual disk array or not, if so, directly entering a test completion judgment step; if not, calling a order reduction instruction, removing the disk in the virtual disk array corresponding to the order reduction instruction according to the order reduction instruction, and carrying out pressure test on the virtual disk array after the disk is removed;
the move-out instruction is: "arcconf setstar 1 device 0 ddd"; wherein, the order-reducing instruction comprises a code number corresponding to the virtual disk array;
after executing the hot standby test, the virtual disk array adds the hot standby disk corresponding to the virtual disk array into the array, replaces the disk removed in the hot standby test measure, and continues to perform the pressure test;
s305, after the hot standby test is executed, after the order reduction time period, the hot standby test is finished, a test log file is generated and stored in a log file system, and then a test completion judgment step is carried out;
the test completion judging step specifically comprises the following steps:
calling a test completion judgment instruction to acquire whether the pressure measurement step is completed or not, and calling a state detection instruction to acquire the index level of the virtual disk array in the pressure measurement step; if the pressure measurement step is completed and the index level of the virtual disk array subjected to the pressure measurement step reaches the standard, the test step is finished, and a cyclic judgment measure is executed; if the pressure measurement step is not finished or the index level of the virtual disk array in the pressure measurement step does not reach the standard, the test step is finished, and unfinished indication measures are executed;
the test completion judges the instruction to be cat TesResult. Log grep-i error; the state detection instruction is 'arccondfgetconfig 1pd | grep state';
the system is preset with an initial file, and when a test completion judgment instruction is called, if a screen outputs 'error', the pressure measurement step is not completed, otherwise, the pressure measurement step is completed;
and when the state detection instruction is called, comparing the test log file with the initial file, if the data of the log file is equal to the data of the initial file, determining that the index level of the virtual disk array in the pressure measurement step reaches the standard, and otherwise, determining that the index level of the virtual disk array in the pressure measurement step does not reach the standard.
The circulation judgment measures are specifically as follows: marking the test condition of the virtual disk array corresponding to the test step as test completion, judging whether the test conditions of all the virtual disk arrays are test completion, if not, judging that the circulation is not completed, and executing circulation measures: establishing a virtual disk array except for the test completion class and a corresponding hot spare disk, and performing corresponding test steps;
if the test conditions of all the virtual disk arrays are the test completion, judging that the circulation is completed, and executing a completion indication measure.
The finishing indication measures are specifically as follows: calling an ipmitool instruction to light an LED on the substrate management controller to be in a constant-light state;
the incomplete indication measures are specifically as follows: and calling an ipmitool instruction to light the LED on the baseboard management controller to be in a flashing state.
The embodiment only shows the case of testing the disk array in the Linux system, but the method can be applied to a plurality of different users for testing the disk array in different systems.
Example 2
The present embodiment provides a disk array test system, as shown in fig. 3, including: the device comprises an initialization unit, an installation unit, a test unit and a processing unit;
the initialization unit is used for initializing the level and the test time of the disk array card and sending the test time to the test unit;
the installation unit is used for establishing a virtual disk array with a hierarchy corresponding to the hierarchy of the disk array card and selecting a hot standby disk in the virtual disk array corresponding to the hierarchy of the virtual disk array;
the test unit is used for setting a test step; the test unit performs pressure test on the virtual disk array and performs hot standby test on a hot standby disk in the virtual disk array through the test step to obtain a test result of the test step;
the processing unit is used for setting backup measures and executing the backup measures corresponding to the test results;
and the processing unit detects the test condition of the virtual disk array through the backup measure and executes a circulating measure corresponding to the test condition.
Based on the same inventive concept as that of one disk array testing method in the foregoing embodiments, embodiments of the present specification further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the disk array testing method are implemented.
Different from the prior art, the disk array testing method, the disk array testing system and the disk array testing medium can realize the fully automatic testing of the disk array in the server system through the mutual matching of each unit and each instruction, can establish a complete disk array system for different types of disk array cards and carry out cyclic testing, and make corresponding instructions according to testing results, thereby greatly improving the testing efficiency of the disk array and saving the testing cost.
The above description is only an embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are included in the scope of the present invention.
Claims (9)
1. A disk array test method is characterized by comprising the following steps:
establishing a virtual disk array: establishing a virtual disk array of a corresponding hierarchy according to the hierarchy of the disk array card;
selecting a hot standby disk: selecting a corresponding hot standby disk in the virtual disk array according to the hierarchy of the virtual disk array;
testing and obtaining a test result: setting a test step, performing pressure test on the virtual disk array and performing hot standby test on the hot standby disk in the virtual disk array according to the test step to obtain a test result of the test step;
detecting the test condition: setting a backup measure, executing the corresponding backup measure according to the test result, and detecting the test condition of the virtual disk array according to the backup measure;
executing a cyclic measure according to the test condition;
the steps of detecting the test condition are specifically as follows:
the backup measures comprise incomplete indication measures and cyclic judgment measures;
when the test result is that the test is successful, the test step is finished, the circulation judgment measures are executed, and the test conditions of all the virtual disk arrays are detected according to the circulation judgment measures;
when the test result is test failure, the test step is finished, and the unfinished indication measure is executed; the incomplete indication measures are as follows: and calling an ipmitool instruction to light the LED on the baseboard management controller to be in a flashing state.
2. The disk array testing method of claim 1, wherein the testing step is:
calling a formatting command to generate a log file system corresponding to the virtual disk array;
after the log file system of the virtual disk array is generated, setting test time, wherein the test time comprises an initial time period and a reduced order time period;
executing a pressure test step, namely performing the pressure test on the virtual disk array and performing the hot standby test on the hot standby disk in the virtual disk array according to the pressure test step;
and after the pressure testing step is executed, executing a testing completion judging step according to the testing time to obtain the testing result, packaging the testing result into a testing log file, and storing the testing log file into the log file system.
3. The disk array testing method according to claim 2, wherein after the hot standby test is performed, the hot standby test is ended after the reduced-order time period elapses, and the test completion determination step is executed;
the test completion judging step comprises the following steps:
calling a test completion judgment instruction, acquiring the completion condition of the pressure test step, calling a state detection instruction, and acquiring the index level of the virtual disk array;
judging the test result according to the completion condition of the pressure test step and the index level of the virtual disk array, wherein the specific steps are as follows:
when the completion condition of the pressure testing step is not completed or the index level of the virtual disk array is not reached, the testing result is testing failure;
and when the completion condition of the pressure testing step is completion and the index level of the virtual disk array is standard reaching, the testing result is successful.
4. The disk array test method according to claim 2, wherein the loop judgment means is:
marking the test condition of the virtual disk array corresponding to the test step as test completion, detecting whether the test conditions of all the virtual disk arrays are test completion, and if not, executing the circulation measure; the circulation measures are as follows: executing the testing step on the virtual disk array except the testing condition is the testing completion;
and if so, executing a finishing indication measure.
5. The disk array testing method according to claim 2, wherein the step of establishing the virtual disk array specifically comprises:
calling an array instruction corresponding to the hierarchy of the disk array card, and establishing the virtual disk array corresponding to the hierarchy of the disk array card by adopting a disk corresponding to the array instruction;
if the hierarchy of the disk array card is primary, establishing a primary virtual disk array; if the hierarchy of the disk array card is a middle level, establishing a middle level virtual disk array; if the hierarchy of the disk array card is high-level, a high-level virtual disk array is established.
6. The disk array testing method of claim 5, wherein the pressure testing step is:
calling a pressure test starting instruction, carrying out the pressure test on the virtual disk array, and carrying out the hot standby test on the hot standby disk in the virtual disk array after the initial time period;
the pressure test is as follows: testing the virtual disk array corresponding to the pressure test starting instruction;
the hot standby test is as follows: judging whether the virtual disk array is the primary virtual disk array or not, if so, executing the test completion judging step; if not, calling a order reduction instruction, removing the disk corresponding to the order reduction instruction in the virtual disk array according to the order reduction instruction, and carrying out the pressure test on the virtual disk array.
7. The disk array testing method of claim 5, wherein the step of selecting the hot spare disk specifically comprises:
executing the testing step when the hierarchy of the virtual disk array is judged to be the primary virtual disk array;
when the hierarchy of the virtual disk array is judged to be the middle-level virtual disk array, calling a hot standby instruction corresponding to the middle-level virtual disk array, and selecting a disk corresponding to the hot standby instruction in the middle-level virtual disk array as the hot standby disk;
when the level of the virtual disk array is judged to be the advanced virtual disk array, calling the hot standby instruction corresponding to the advanced virtual disk array, and selecting a disk corresponding to the hot standby instruction in the advanced virtual disk array as the hot standby disk.
8. A disk array test system, comprising: the device comprises an initialization unit, an installation unit, a test unit and a processing unit;
the initialization unit is used for initializing the level and the test time of the disk array card and sending the test time to the test unit;
the installation unit is used for establishing a virtual disk array with a hierarchy corresponding to the hierarchy of the disk array card and selecting a hot standby disk in the virtual disk array corresponding to the hierarchy of the virtual disk array;
the test unit is used for setting a test step; the test unit performs pressure test on the virtual disk array and performs hot standby test on the hot standby disk in the virtual disk array through the test step to obtain a test result of the test step;
the processing unit is used for setting backup measures and executing the backup measures corresponding to the test results;
the processing unit detects the test condition of the virtual disk array through the backup measure and executes a circulating measure corresponding to the test condition;
the backup measures comprise incomplete indication measures and cyclic judgment measures; when the test result is that the test is successful, the test step is finished, the circulation judgment measures are executed, and the test conditions of all the virtual disk arrays are detected according to the circulation judgment measures; when the test result is test failure, the test step is finished, and the unfinished indication measure is executed; the incomplete indication measures are as follows: and calling an ipmitool instruction to light up an LED on the baseboard management controller to be in a flashing state.
9. A computer readable storage medium, having stored thereon, a computer program which, when executed by a processor, performs the steps of the disk array testing method of any of claims 1~7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011512797.5A CN112667452B (en) | 2020-12-20 | 2020-12-20 | Disk array testing method, system and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011512797.5A CN112667452B (en) | 2020-12-20 | 2020-12-20 | Disk array testing method, system and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112667452A CN112667452A (en) | 2021-04-16 |
CN112667452B true CN112667452B (en) | 2022-12-16 |
Family
ID=75406254
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011512797.5A Active CN112667452B (en) | 2020-12-20 | 2020-12-20 | Disk array testing method, system and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112667452B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115562588B (en) * | 2022-10-19 | 2024-10-08 | 中科可控信息产业有限公司 | Virtual disk array configuration method, device, computer equipment and storage medium |
CN117472664A (en) * | 2023-10-17 | 2024-01-30 | 宁畅信息产业(北京)有限公司 | Disk array card testing method and device and computer equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102055780A (en) * | 2009-11-04 | 2011-05-11 | 英业达股份有限公司 | System and method for testing disk array |
CN102637141A (en) * | 2011-02-14 | 2012-08-15 | 鸿富锦精密工业(深圳)有限公司 | RAID (redundant array of independent disk) automation test system and method |
CN103279408A (en) * | 2013-06-20 | 2013-09-04 | 曙光信息产业(北京)有限公司 | RAID (redundant array of inexpensive disk) performance testing method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080209259A1 (en) * | 2007-02-27 | 2008-08-28 | Inventec Corporation | Method and system for testing reliability of data stored in raid |
-
2020
- 2020-12-20 CN CN202011512797.5A patent/CN112667452B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102055780A (en) * | 2009-11-04 | 2011-05-11 | 英业达股份有限公司 | System and method for testing disk array |
CN102637141A (en) * | 2011-02-14 | 2012-08-15 | 鸿富锦精密工业(深圳)有限公司 | RAID (redundant array of independent disk) automation test system and method |
CN103279408A (en) * | 2013-06-20 | 2013-09-04 | 曙光信息产业(北京)有限公司 | RAID (redundant array of inexpensive disk) performance testing method |
Also Published As
Publication number | Publication date |
---|---|
CN112667452A (en) | 2021-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112667452B (en) | Disk array testing method, system and medium | |
US8943358B2 (en) | Storage system, apparatus, and method for failure recovery during unsuccessful rebuild process | |
CN100530125C (en) | Safety storage method for data | |
US20040078663A1 (en) | Information processing system and disk control method used in the same | |
CN102439565B (en) | Method and device for starting recovery | |
US20110173491A1 (en) | Failure recovery method | |
CN1300696C (en) | Memory controller and data storage method | |
CN101593083B (en) | device, computer and method for protecting and restoring computer configuration information | |
CN105138432A (en) | Solid state disk data fast backup method and system used under abnormal power failure | |
CN111105840A (en) | Method, device and system for testing abnormal power failure of solid state disk | |
US9639441B2 (en) | Solid-state storage system, apparatus and method of writing data | |
CA2282019C (en) | I/o controller software using groups of threads | |
US8782465B1 (en) | Managing drive problems in data storage systems by tracking overall retry time | |
CN108874312B (en) | Data storage method and storage device | |
CN111240887A (en) | Error page identification method based on three-dimensional flash memory storage structure | |
CN116107516B (en) | Data writing method and device, solid state disk, electronic equipment and storage medium | |
CN115359834B (en) | Disk arbitration region detection method, device, equipment and readable storage medium | |
CN104050014B (en) | Efficient storage management method based on virtual platform | |
US9442814B2 (en) | Systems and methods for improved fault tolerance in RAID configurations | |
CN1882919A (en) | System, apparatus, and method for automatic copy function selection | |
CN102369513A (en) | Method for improving stability of computer system and computer system | |
WO2021088367A1 (en) | Data recovery method and related device | |
CN110704287A (en) | RAID card abnormal log collection method and system under Linux system and storage medium | |
US20120011395A1 (en) | Boot method under boot sector failure in hard disk and computer device using the same | |
US20090319822A1 (en) | Apparatus and method to minimize performance degradation during communication path failure in a data processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |