CN112667452B - Disk array testing method, system and medium - Google Patents

Disk array testing method, system and medium Download PDF

Info

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
test
disk array
virtual disk
level
hot spare
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011512797.5A
Other languages
Chinese (zh)
Other versions
CN112667452A (en
Inventor
李建鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011512797.5A priority Critical patent/CN112667452B/en
Publication of CN112667452A publication Critical patent/CN112667452A/en
Application granted granted Critical
Publication of CN112667452B publication Critical patent/CN112667452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明公开了一种磁盘阵列测试方法,根据磁盘阵列卡的层级建立对应层级的虚拟磁盘阵列;根据虚拟磁盘阵列的层级选取该虚拟磁盘阵列中对应的热备用磁盘;设定测试步骤,根据测试步骤对虚拟磁盘阵列进行压力测试及对该虚拟磁盘阵列中的热备用磁盘进行热备用测试,得到该测试步骤的测试结果;设定后备措施,根据测试结果执行对应的后备措施,根据后备措施检测虚拟磁盘阵列的测试情况;根据测试情况执行循环措施;本发明能够通过各个指令和单元互相配合,完全自动化的对服务器的磁盘阵列卡建立虚拟磁盘阵列并进行测试,极大的提高了磁盘阵列卡的测试效率,降低了测试成本。

Figure 202011512797

The invention discloses a disk array test method. According to the level of the disk array card, a virtual disk array corresponding to the level is established; according to the level of the virtual disk array, the corresponding hot spare disk in the virtual disk array is selected; the test steps are set, and according to the test The step is to carry out a stress test on the virtual disk array and a hot spare disk in the virtual disk array to obtain the test result of the test step; set a backup measure, execute the corresponding backup measure according to the test result, and detect according to the backup measure The test situation of the virtual disk array; according to the test situation, the loop measures are executed; the present invention can fully automate the disk array card of the server to establish a virtual disk array and test it through the mutual cooperation of various instructions and units, which greatly improves the performance of the disk array card. High test efficiency and reduced test cost.

Figure 202011512797

Description

一种磁盘阵列测试方法、系统及介质A disk array test method, system and medium

技术领域technical field

本发明涉及磁盘测试技术领域,特别是涉及一种磁盘阵列测试方法、系统及介质。The invention relates to the technical field of disk testing, in particular to a disk array testing method, system and medium.

背景技术Background technique

目前很多存储设备中都运用到了磁盘阵列卡对数据进行存储,防止数据的故障和消失,为了保证磁盘阵列卡的准确性和稳定性,需要对磁盘阵列卡的磁盘阵列进行测试。At present, many storage devices use disk array cards to store data to prevent data failure and disappearance. In order to ensure the accuracy and stability of disk array cards, it is necessary to test the disk array of disk array cards.

目前,有以下三种测试方法:Currently, there are three testing methods:

测试方法一:通过硬盘信息读取模块抓取存储系统硬盘信息,并确认该硬盘信息中的硬盘配置是否正确,然后进行硬盘的插拔测试,当所有硬盘都经过插拔测试后,储存对应的测试记录;其中所述的插拔测试是人工操作的,且所述插拔测试具体步骤为:通过人工随机抽取硬盘阵列组中的硬盘后进行读写测试;其中人工操作和随机抽取不符合系统化的测试要求;Test method 1: Use the hard disk information reading module to capture the hard disk information of the storage system, and confirm whether the hard disk configuration in the hard disk information is correct, and then perform the hard disk plug-in test. After all hard disks have passed the plug-in test, store the corresponding Test records; wherein the plug-in test is manually operated, and the specific steps of the plug-in test are: manually randomly extract the hard disks in the hard disk array group and then perform the read-write test; wherein the manual operation and random extraction do not conform to the system standardized testing requirements;

测试方法二:通过控制器对固态硬盘进行读写交互测试,通过该测试来判断固态硬盘的工作状态,生成并保存与其工作状态对应的测试结果,并将测试结果通过语音播报的形式进行反馈,这种反馈方式无便利性且适用性很差;Test method 2: Use the controller to perform an interactive test of reading and writing on the solid-state hard disk, judge the working status of the solid-state hard disk through this test, generate and save the test results corresponding to its working status, and give feedback on the test results in the form of voice broadcast, This feedback method is inconvenient and has poor applicability;

测试方法三:通过人工进入系统,通过图形化界面建立对应的磁盘阵列,之后进行测试,并在测试过程中通过手动插拔磁盘完成磁盘阵列的热备用替换测试;其中很多步骤参与人工设置,效率低且成本高;Test method 3: enter the system manually, establish the corresponding disk array through the graphical interface, and then conduct the test, and complete the hot spare replacement test of the disk array by manually plugging and unplugging the disk during the test; many steps involve manual settings, and the efficiency low and high cost;

在所述的三种方法中,都存在人工操作,且面对多台服务器的磁盘阵列卡,测试效率会大大降低,人工操作操作的不可控因素较多,所以测试成本也会大大增高。In the above three methods, there is manual operation, and in the face of disk array cards of multiple servers, the test efficiency will be greatly reduced, and there are many uncontrollable factors in manual operation, so the test cost will also be greatly increased.

发明内容Contents of the invention

本发明主要解决的是在磁盘阵列进行测试时,通过人工测试导致测试效率降低和测试成本提高的问题。The invention mainly solves the problems of reduced testing efficiency and increased testing cost caused by manual testing when the disk array is tested.

为解决上述技术问题,本发明采用的一个技术方案是:提供一种磁盘阵列测试方法,包括以下步骤:In order to solve the above-mentioned technical problems, a technical solution adopted by the present invention is to provide a disk array testing method, comprising the following steps:

建立虚拟磁盘阵列:根据磁盘阵列卡的层级建立对应层级的虚拟磁盘阵列;Create a virtual disk array: Create a virtual disk array of the corresponding level according to the level of the disk array card;

选取热备用磁盘:根据所述虚拟磁盘阵列的所述层级选取所述虚拟磁盘阵列中对应的热备用磁盘;Selecting a hot spare disk: selecting a corresponding hot spare disk in the virtual disk array according to the level of the virtual disk array;

测试并获取测试结果:设定测试步骤,根据所述测试步骤对所述虚拟磁盘阵列进行压力测试及对所述虚拟磁盘阵列中的所述热备用磁盘进行热备用测试,得到所述测试步骤的测试结果;Test and obtain test results: set the test steps, perform a stress test on the virtual disk array according to the test steps and perform a hot spare test on the hot spare disk in the virtual disk array, and obtain the results of the test steps Test Results;

检测测试情况:设定后备措施,根据所述测试结果执行对应的所述后备措施,根据所述后备措施检测所述虚拟磁盘阵列的测试情况;Detecting test conditions: setting backup measures, executing the corresponding backup measures according to the test results, and detecting the test conditions of the virtual disk array according to the backup measures;

根据所述测试情况执行循环措施。Cyclic measures are carried out according to the test situation described.

进一步,所述检测测试情况的步骤具体为:Further, the step of detecting the test situation is specifically:

所述后备措施包括未完成指示措施和循环判断措施;The backup measures include unfinished indication measures and circular judgment measures;

当所述测试结果为测试成功时,所述测试步骤结束,并执行所述循环判断措施,根据所述循环判断措施检测所有所述虚拟磁盘阵列的所述测试情况;When the test result is that the test is successful, the test step ends, and the loop judgment measure is executed, and the test conditions of all the virtual disk arrays are detected according to the loop judgment measure;

当所述测试结果为测试失败时,所述测试步骤结束,并执行所述未完成指示措施。When the test result is a test failure, the test step ends, and the incomplete indication measure is executed.

进一步,所述测试步骤为:Further, the test steps are:

调用格式化指令,生成与所述虚拟磁盘阵列对应的日志式文件系统;Invoking a formatting command to generate a log file system corresponding to the virtual disk array;

在所述虚拟磁盘阵列的所述日志式文件系统生成后,设定测试时间,所述测试时间包括初始时间段和降阶时间段;After the log-type file system of the virtual disk array is generated, a test time is set, and the test time includes an initial time period and a step-down time period;

执行压测步骤,根据所述压测步骤对所述虚拟磁盘阵列进行所述压力测试及对所述虚拟磁盘阵列中的所述热备用磁盘进行所述热备用测试;Executing a stress testing step, performing the stress test on the virtual disk array according to the stress testing step and performing the hot spare test on the hot spare disk in the virtual disk array;

在执行所述压测步骤后,根据所述测试时间,执行测试完成判断步骤,得到所述测试结果,并将所述测试结果打包成测试日志文件,存储至所述日志式文件系统。After the stress testing step is executed, the test completion judging step is executed according to the test time to obtain the test result, and the test result is packaged into a test log file and stored in the log file system.

进一步,在进行所述热备用测试后,经过所述降阶时间段,所述热备用测试结束,执行所述测试完成判断步骤;Further, after the hot standby test is performed, after the downscaling time period, the hot standby test ends, and the test completion judging step is performed;

所述测试完成判断步骤为:The steps for determining the completion of the test are:

调用测试完成判断指令,获取所述压测步骤的完成情况,调用状态检测指令,获取所述虚拟磁盘阵列的指标级别;Invoking the test completion judgment instruction to obtain the completion status of the pressure test step, and invoking the state detection instruction to obtain the index level of the virtual disk array;

根据所述压测步骤的所述完成情况和所述虚拟磁盘阵列的所述指标级别,判断所述测试结果,其具体步骤为:According to the completion situation of the pressure testing step and the index level of the virtual disk array, the test result is judged, and the specific steps are:

当所述压测步骤的所述完成情况为未完成或所述虚拟磁盘阵列的所述指标级别为未达标时,所述测试结果为测试失败;When the completion status of the pressure testing step is incomplete or the index level of the virtual disk array is not up to standard, the test result is a test failure;

当所述压测步骤的所述完成情况为完成且所述虚拟磁盘阵列的所述指标级别为达标时,所述测试结果为测试成功。When the completion status of the pressure testing step is completed and the index level of the virtual disk array is up to standard, the test result is a successful test.

进一步,所述循环判断措施为:Further, the loop judgment measures are:

标记所述测试步骤所对应的所述虚拟磁盘阵列的所述测试情况为测试完成,并检测所有所述虚拟磁盘阵列的所述测试情况是否均为测试完成,若否,则执行所述循环措施;所述循环措施为:对除所述测试情况为测试完成以外的所述虚拟磁盘阵列执行所述测试步骤;Mark the test condition of the virtual disk array corresponding to the test step as test completion, and detect whether the test conditions of all the virtual disk arrays are test completion, if not, execute the loop measure ; The loop measure is: execute the test step on the virtual disk array except that the test is completed;

若是,则执行完成指示措施。If so, perform the indicated action to complete.

进一步,所述建立虚拟磁盘阵列的步骤具体为:Further, the steps of establishing a virtual disk array are specifically:

调用与所述磁盘阵列卡的所述层级对应的阵列指令,采用与所述阵列指令对应的磁盘建立与所述磁盘阵列卡的所述层级对应的所述虚拟磁盘阵列;Calling an array command corresponding to the level of the disk array card, using the disk corresponding to the array command to establish the virtual disk array corresponding to the level of the disk array card;

若所述磁盘阵列卡的所述层级为初级,则建立初级虚拟磁盘阵列;若所述磁盘阵列卡的所述层级为中级,则建立中级虚拟磁盘阵列;若所述磁盘阵列卡的所述层级为高级,则建立高级虚拟磁盘阵列。If the level of the disk array card is primary, a primary virtual disk array is established; if the level of the disk array card is an intermediate level, an intermediate virtual disk array is established; if the level of the disk array card is If it is advanced, create an advanced virtual disk array.

进一步,所述压测步骤为:Further, the pressure measurement steps are:

调用压力测试开始指令,对所述虚拟磁盘阵列进行所述压力测试,在经过所述初始时间段后,对所述虚拟磁盘阵列中的所述热备用磁盘进行所述热备用测试;calling a stress test start command, performing the stress test on the virtual disk array, and performing the hot spare test on the hot spare disk in the virtual disk array after the initial time period;

所述压力测试为:对所述虚拟磁盘阵列进行与所述压力测试开始指令对应的测试;The stress test is: performing a test corresponding to the stress test start instruction on the virtual disk array;

所述热备用测试为:判断所述虚拟磁盘阵列是否为所述初级虚拟磁盘阵列,若是,则执行所述测试完成判断步骤;若否,则调用降阶指令,根据所述降阶指令移除所述虚拟磁盘阵列中与所述降阶指令对应的磁盘,并对所述虚拟磁盘阵列进行所述压力测试。The hot standby test is: judging whether the virtual disk array is the primary virtual disk array, and if so, executing the test to complete the judging step; if not, calling the step-down command, and removing The disk in the virtual disk array corresponding to the downscaling instruction, and performing the stress test on the virtual disk array.

进一步,所述选取热备用磁盘的步骤具体为:Further, the step of selecting a hot spare disk is specifically:

当判断所述虚拟磁盘阵列的所述层级为所述初级虚拟磁盘阵列时,执行所述测试步骤;performing the testing step when it is determined that the level of the virtual disk array is the primary virtual disk array;

当判断所述虚拟磁盘阵列的所述层级为所述中级虚拟磁盘阵列时,调用与所述中级虚拟磁盘阵列对应的热备用指令,选取所述中级虚拟磁盘阵列中与所述热备用指令对应的磁盘作为所述热备用磁盘;When it is judged that the level of the virtual disk array is the intermediate virtual disk array, call the hot spare instruction corresponding to the intermediate virtual disk array, and select the hot spare instruction corresponding to the intermediate virtual disk array disk as said hot spare disk;

当判断所述虚拟磁盘阵列的所述层级为所述高级虚拟磁盘阵列时,调用与所述高级虚拟磁盘阵列对应的所述热备用指令,选取所述高级虚拟磁盘阵列中与所述热备用指令对应的磁盘作为所述热备用磁盘。When it is judged that the level of the virtual disk array is the advanced virtual disk array, call the hot spare instruction corresponding to the advanced virtual disk array, and select the hot spare instruction corresponding to the advanced virtual disk array The corresponding disk is used as the hot spare disk.

本发明还提供一种磁盘阵列测试系统,包括:The present invention also provides a disk array testing system, comprising:

初始化单元、安装单元、测试单元和处理单元;initialization unit, installation unit, test unit and processing unit;

所述初始化单元用于初始化磁盘阵列卡的层级和测试时间,并将所述测试时间发送给所述测试单元;The initialization unit is used to initialize the level of the disk array card and the test time, and send the test time to the test unit;

所述安装单元用于建立层级与所述磁盘阵列卡的所述层级对应的虚拟磁盘阵列,并选取所述虚拟磁盘阵列中与所述虚拟磁盘阵列的所述层级对应的热备用磁盘;The installation unit is used to establish a virtual disk array whose level corresponds to the level of the disk array card, and select a hot spare disk corresponding to the level of the virtual disk array in the virtual disk array;

所述测试单元用于设定测试步骤;所述测试单元通过所述测试步骤对所述虚拟磁盘阵列进行压力测试及对所述虚拟磁盘阵列中的所述热备用磁盘进行热备用测试,得到所述测试步骤的测试结果;The test unit is used to set the test steps; the test unit performs a stress test on the virtual disk array and a hot spare test on the hot spare disk in the virtual disk array through the test steps, and obtains the the test results of the above test steps;

所述处理单元用于设定后备措施,并执行与所述测试结果对应的所述后备措施;The processing unit is used to set backup measures and execute the backup measures corresponding to the test results;

所述处理单元通过所述后备措施检测所述虚拟磁盘阵列的测试情况,并执行与所述测试情况对应的循环措施。The processing unit detects a test condition of the virtual disk array through the backup measure, and executes a loop measure corresponding to the test condition.

本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现所述磁盘阵列测试方法的步骤。The present invention also provides 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 realized.

本发明的有益效果是:The beneficial effects of the present invention are:

1、本发明所述的磁盘阵列测试方法,可以实现完全自动化的对服务器的磁盘阵列卡建立虚拟磁盘阵列并进行测试,极大的提高了磁盘阵列卡的测试效率,降低了测试成本。1. The disk array testing method of the present invention can realize fully automatic establishment of a virtual disk array on the disk array card of the server and test it, which greatly improves the test efficiency of the disk array card and reduces the test cost.

2、本发明所述的磁盘阵列测试系统,可以实现通过初始化单元、安装单元、测试单元和处理单元的相互配合对服务器的磁盘阵列卡自动建立虚拟磁盘阵列并进行测试,极大的提高了磁盘阵列卡的测试效率,降低了测试成本。2. The disk array test system of the present invention can realize that the disk array card of the server is automatically established and tested by the mutual cooperation of the initialization unit, the installation unit, the test unit and the processing unit, which greatly improves the performance of the disk array. The test efficiency of the array card reduces the test cost.

3、本发明所述的计算机可读存储介质,可以实现引导初始化单元、安装单元、测试单元和处理单元进行相互配合,并对服务器的磁盘阵列卡自动建立虚拟磁盘阵列,然后进行测试,提高了所述的磁盘阵列测试方法的可操作性。3. The computer-readable storage medium of the present invention can realize that the boot initialization unit, the installation unit, the test unit and the processing unit cooperate with each other, and automatically establish a virtual disk array for the disk array card of the server, and then test it, which improves the performance of the virtual disk array. The operability of the described disk array test method.

附图说明Description of drawings

图1是本发明实施例1提供的一种磁盘阵列测试方法的流程图;Fig. 1 is the flow chart of a kind of disk array test method provided by embodiment 1 of the present invention;

图2是本发明实施例1提供的一种磁盘阵列测试方法的操作流程图;FIG. 2 is an operation flowchart of a disk array testing method provided in Embodiment 1 of the present invention;

图3是本发明实施例2提供的一种磁盘阵列测试系统的结构示意图。FIG. 3 is a schematic structural diagram of a disk array testing system provided in Embodiment 2 of the present invention.

具体实施方式detailed description

下面结合附图对本发明的较佳实施例进行详细阐述,以使本发明的优点和特征能更易于被本领域技术人员理解,从而对本发明的保护范围做出更为清楚明确的界定。The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, so that the advantages and features of the present invention can be more easily understood by those skilled in the art, so as to define the protection scope of the present invention more clearly.

在本发明的描述中,需要说明的是,术语“初级”、“中级”、“高级”仅用于描述目的,而不能理解为指示或暗示相对重要性。需要说明的是,在本发明的描述中,RAID(RedundantArray of Independent Disks)是磁盘阵列、RAID0(RAID Level 0)是磁盘阵列层级0、RAID1(RAID Level 1)是磁盘阵列层级1、RAID5(RAID Level 5)是磁盘阵列层级5、RAID10(RAID Level 10)是磁盘阵列层级10、RAID6(RAID Level 6)是磁盘阵列层级6、NVRAM(Non-Volatile Random Access Memory)是非易失性随机访问存储器、Disk Striping是硬盘分割技术、EXT4(Fourth EXTended filesystem)是第四代扩展文件系统、ipmitool是一种可用在 Linux 系统下的命令行方式的 IPMI 平台管理工具、IPMI(IntelligentPlatform Management Interface)是代表智能平台管理接口是使硬件管理具备“智能化”的新一代通用接口标准、Linux(GNU/Linux)是一种免费使用和自由传播的类UNIX操作系统、LED是发光二极管。In the description of the present invention, it should be noted that the terms "primary", "intermediate" and "advanced" are only used for descriptive purposes, and should not be understood as indicating or implying relative importance. It should be noted that, in the description of the present invention, RAID (RedundantArray 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 disk array level 5, RAID10 (RAID Level 10) is disk array level 10, RAID6 (RAID Level 6) is disk array level 6, NVRAM (Non-Volatile Random Access Memory) is non-volatile random access memory, Disk Striping is a hard disk partitioning technology, EXT4 (Fourth EXTended filesystem) is the fourth-generation extended file system, ipmitool is a command-line IPMI platform management tool that can be used in Linux systems, and IPMI (IntelligentPlatform Management Interface) is a representative intelligent platform The management interface is a new generation of general interface standard that makes hardware management "intelligent". Linux (GNU/Linux) is a UNIX-like operating system that is free to use and spread freely. LED is a light-emitting diode.

实施例1Example 1

本实施例提供一种磁盘阵列测试方法,如图1和图2所示,包括以下步骤:The present embodiment provides a disk array test method, as shown in Figure 1 and Figure 2, comprising the following steps:

S100、初始化;设定测试系统,在系统初始化成功后,开始进行测试;在本实施例中,选择Linux系统进行操作;S100, initialization; set the test system, after the system initialization is successful, start testing; in the present embodiment, select the Linux system to operate;

在本实施例中,使用自动化脚本实现本方法,具体实现流程见图2;In this embodiment, the method is implemented using an automated script, and the specific implementation process is shown in Figure 2;

S200、建立虚拟磁盘阵列;根据磁盘阵列卡的层级,选择不同数量的磁盘,通过虚拟化存储技术,调用对应的阵列指令,建立与磁盘阵列卡的层级对应的若干虚拟磁盘阵列;若系统中磁盘数量为N,则当磁盘阵列卡的层级为RAID0(即初级磁盘阵列卡)时,使用系统中N个磁盘建立初级虚拟磁盘阵列;当磁盘阵列卡的层级为RAID1或RAID5或RAID10(即中级磁盘阵列卡)时,使用(N-1)个磁盘建立中级虚拟磁盘阵列;当磁盘阵列卡的层级为RAID6(即高级磁盘阵列卡)时,使用(N-2)个磁盘建立高级虚拟磁盘阵列;S200, establish a virtual disk array; according to the level of the disk array card, select different numbers of disks, and use the virtualization storage technology to call the corresponding array command to establish a number of virtual disk arrays corresponding to the level of the disk array card; if the disk in the system If the quantity is N, when the level of the disk array card is RAID0 (that is, the primary disk array card), use N disks in the system to establish a primary virtual disk array; when the level of the disk array card is RAID1 or RAID5 or array card), use (N-1) disks to build a mid-level virtual disk array; when the level of the disk array card is RAID6 (that is, an advanced disk array card), use (N-2) disks to build an advanced virtual disk array;

其中,磁盘阵列卡有以下特点:磁盘阵列卡上设有处理器,不用依靠服务器的CPU进行数据处理。其读写性能快,不占用服务器资源,可用于任何操作系统,也能在系统断电后,将磁盘读写日志包含的剩余读写作业先记录在存储器中,等待电力供应撤销后,再由NVRAM取回日志资料,之后完成读写作业,以确保读写完整性;Among them, the disk array card has the following characteristics: the disk array card is provided with a processor, and does not rely on the CPU of the server for data processing. It has fast read and write performance, does not occupy server resources, and can be used in any operating system. It can also record the remaining read and write operations contained in the disk read and write log in the memory after the system is powered off. NVRAM retrieves the log data, and then completes the read and write operations to ensure the integrity of the read and write;

虚拟磁盘阵列有以下特点:虚拟磁盘阵列的产生是通过虚拟化存储技术把多个磁盘组合起来,成为一个或多个磁盘阵列组,可以提升性能或资料冗余,或是两者同时提升;具体运行中,根据 RAID 层级的不同,资料会以多种模式分散于各个硬盘,RAID 层级的命名会以 RAID 开头并带数字,例如:RAID 0、RAID 1、RAID 5、RAID 6、RAID 01、RAID 10、RAID 50、RAID 60。每种等级都有其理论上的优缺点,不同的等级在两个目标间获取平衡,分别是增加资料可靠性以及增加存储器的读写性能;The virtual disk array has the following characteristics: the virtual disk array is generated by combining multiple disks through virtual storage technology to form one or more disk array groups, which can improve performance or data redundancy, or both at the same time; During operation, data will be scattered across hard disks in various modes depending on the RAID level. The name of the RAID level will start with RAID and include numbers, for example: RAID 0, RAID 1, RAID 5, RAID 6, RAID 01, RAID 10. RAID 50, RAID 60. Each level has its theoretical advantages and disadvantages. Different levels achieve a balance between two goals, which are to increase data reliability and increase memory read and write performance;

其中,RAID0层级的磁盘阵列卡有以下特点:它将两个以上的磁盘并联起来,成为一个大容量的磁盘;它将需要存储的数据分段后分散存储在这些磁盘中,因为读写时都可以并行处理,所以在所有的级别中,RAID 0的速度是最快的;但是RAID 0既没有冗余功能,也不具备容错能力,若一个磁盘损坏,则所有数据都会丢失;Among them, the RAID0-level disk array card has the following characteristics: it connects more than two disks in parallel to form a large-capacity disk; Parallel processing is possible, so among all levels, RAID 0 is the fastest; but RAID 0 has neither redundancy nor fault tolerance, and if one disk is damaged, all data will be lost;

其中,RAID1层级的磁盘阵列卡有以下特点:它是两组以上的N个磁盘相互作镜像,在一些多线程操作系统中能有很好的读取速度,理论上它的读取速度等于磁盘数量的倍数,与RAID 0相同;另外RAID1层级的磁盘阵列卡的写入速度有微小的降低,但其只要一个磁盘正常即可维持运作,可靠性最高;其原理为在主磁盘上存放数据的同时也在镜像磁盘上写一样的数据,当主磁盘损坏时,镜像磁盘则代替主磁盘的工作;因为有镜像磁盘做数据备份,所以RAID1层级的磁盘阵列卡的数据安全性在所有的RAID层级上来说是最好的;但无论用多少磁盘组成RAID1层级的磁盘阵列卡,仅算一个磁盘的容量,是所有RAID中磁盘利用率最低的一个级别;Among them, the RAID1 level disk array card has the following characteristics: it is more than two sets of N disks mirroring each other, and it can have a good reading speed in some multi-threaded operating systems. In theory, its reading speed is equal to that of the disk. The multiple of the number is the same as RAID 0; in addition, the writing speed of the disk array card at the RAID1 level is slightly reduced, but it can maintain operation as long as one disk is normal, and the reliability is the highest; the principle is to store data on the main disk At the same time, the same data is also written on the mirror disk. When the primary disk is damaged, the mirror disk will replace the work of the primary disk; because there is a mirror disk for data backup, the data security of the RAID1-level disk array card is at all RAID levels. It is said to be the best; but no matter how many disks are used to form a RAID1 level disk array card, only the capacity of one disk is counted, which is the lowest level of disk utilization among all RAIDs;

其中,RAID5层级的磁盘阵列卡有以下特点:RAID5层级的磁盘阵列卡是一种储存性能、数据安全和存储成本兼顾的存储解决方案;它使用的是Disk Striping技术;RAID5层级的磁盘阵列卡至少需要三个磁盘,RAID5层级的磁盘阵列卡会将数据和数据相对应的奇偶校验信息存储到RAID5磁盘阵列的各个磁盘上,且该奇偶校验信息和相对应的数据分别存储于不同的磁盘上;当RAID5层级的磁盘阵列卡中的一个磁盘数据发生损坏后,可以利用剩下的数据和相应的奇偶校验信息去恢复被损坏的数据;RAID 5层级的磁盘阵列卡可以理解为是RAID 0和RAID 1层级的磁盘阵列卡的折中选择;Among them, RAID5-level disk array cards have the following characteristics: RAID5-level disk array cards are a storage solution that balances storage performance, data security, and storage costs; it uses Disk Striping technology; RAID5-level disk array cards are at least Three disks are required, and the RAID5 level disk array card will store the data and the parity information corresponding to the data on each disk of the RAID5 disk array, and the parity information and the corresponding data will be stored on different disks. Above; when one of the disk data in the RAID 5-level disk array card is damaged, the remaining data and the corresponding parity information can be used to restore the damaged data; the RAID 5-level disk array card can be understood as RAID A compromise between RAID 0 and RAID 1 level disk array cards;

RAID10层级的磁盘阵列卡有以下特点:RAID10层级的磁盘阵列卡为先分割资料再镜像,再将所有磁盘分为两组,其可以视为以RAID 1层级的磁盘阵列卡作为最低组合,然后将每组RAID 1层级的磁盘阵列卡视为一个磁盘组合,为RAID 0层级的磁盘阵列卡运作;当RAID 10层级的磁盘阵列卡中有一个磁盘受损,其余磁盘会继续运作;RAID 10-level disk array cards have the following characteristics: RAID 10-level disk array cards first divide data and then mirror images, and then divide all disks into two groups. It can be regarded as the minimum combination of RAID 1-level disk array cards, and then Each group of RAID 1 disk array cards is regarded as a disk combination and operates as a RAID 0 disk array card; when one disk in a RAID 10 disk array card is damaged, the remaining disks will continue to operate;

RAID6层级的磁盘阵列卡有以下特点:与RAID 5层级的磁盘阵列卡相比,RAID 6层级的磁盘阵列卡增加了第二个独立的奇偶校验信息块;两个独立的奇偶系统使用不同的算法,数据的可靠性非常高,任意两块磁盘同时失效时不会影响数据完整性;RAID 6层级的磁盘阵列卡需要分配给奇偶校验信息更大的磁盘空间和额外的校验计算,相对于RAID 5层级的磁盘阵列卡有更大的操作量和计算量;RAID6-level disk array cards have the following characteristics: Compared with RAID 5-level disk array cards, RAID 6-level disk array cards add a second independent parity check information block; two independent parity systems use different Algorithm, the reliability of the data is very high, when any two disks fail at the same time, the data integrity will not be affected; the RAID 6 disk array card needs to allocate more disk space and additional check calculation for the parity information, relatively The disk array card at the RAID 5 level has a greater amount of operations and calculations;

其中,磁盘阵列的层级RAID50、RAID60使用门槛过高,在本实施例中不再过多描述;Among them, the level RAID50 and RAID60 of the disk array use the threshold too high, and will not be described too much in this embodiment;

对应的建立磁盘阵列的阵列指令为:“arcconf CREATE 磁盘阵列卡代号LOGICALDRIVE 磁盘阵列卡层级代号 N noprompt”,例如,若磁盘阵列卡代号为3,磁盘阵列卡的层级为RAID5,系统中的磁盘数量为3,则对应的建立磁盘阵列的阵列指令为:“arcconfCREATE 3 LOGICALDRIVE 5 01 02 03 noprompt”,其中,“01 02 03”分别为虚拟磁盘阵列中3个磁盘的代号,磁盘阵列卡代号对应磁盘阵列卡的层级,RAID0对应的磁盘阵列卡代号为1,RAID1或RAID5或RAID10对应的磁盘阵列卡代号为2,RAID6对应的磁盘阵列卡代号为3;The corresponding array command for creating a disk array is: "arcconf CREATE disk array card code LOGICALDRIVE disk array card level code N noprompt", for example, if the disk array card code is 3, the disk array card level is RAID5, and the number of disks in the system If it is 3, the corresponding array command for creating a disk array is: "arcconfCREATE 3 LOGICALDRIVE 5 01 02 03 noprompt", where "01 02 03" are the codes of the three disks in the virtual disk array, and the disk array card code corresponds to the disk Array card level, RAID0 corresponds to the disk array card code 1, RAID1 or RAID5 or RAID10 corresponds to the disk array card code 2, RAID6 corresponds to the disk array card code 3;

S300、判断磁盘阵列卡的层级,根据判断结果,调用对应的热备用指令,选取该虚拟磁盘阵列中对应的磁盘作为热备用磁盘;若磁盘阵列卡的层级为RAID0,则直接进行测试步骤;若磁盘阵列卡的层级为RAID1或RAID5或RAID10时,则选取中级磁盘阵列卡中第N个磁盘为热备用磁盘,并进行测试步骤;若磁盘阵列卡的层级为RAID6,则选取高级磁盘阵列卡中第N个和第(N-1)个磁盘为热备用磁盘,并进行测试步骤;S300, judge the level of the disk array card, according to the judgment result, call the corresponding hot standby command, select the corresponding disk in the virtual disk array as the hot spare disk; if the level of the disk array card is RAID0, then directly perform the test step; if When the level of the disk array card is RAID1, RAID5 or RAID10, select the Nth disk in the mid-level disk array card as a hot spare disk, and perform the test procedure; if the level of the disk array card is RAID6, select The Nth and (N-1)th disks are hot spare disks, and the test steps are performed;

对应的建立热备用磁盘的热备用指令为:“arcconf setstate 1 device 0 8 hsparray 1 sparetype 1”,其中,device 0 8代表作为热备用磁盘的磁盘代号,hsp array1代表将此磁盘给虚拟磁盘阵列中第1个磁盘阵列作为热备用磁盘; sparetype 1代表将此磁盘限定为一个对应的磁盘阵列的热备用磁盘,若热备用指令中是sparetype 2,则此磁盘可作为每个磁盘阵列的热备用磁盘;The corresponding hot spare command to create a hot spare disk is: "arcconf setstate 1 device 0 8 hsparray 1 sparetype 1", where device 0 8 represents the disk code of the hot spare disk, and hsp array1 represents the disk to the virtual disk array The first disk array is used as a hot spare disk; sparetype 1 means that this disk is limited to a hot spare disk of a corresponding disk array, if the hot spare instruction is sparetype 2, this disk can be used as a hot spare disk for each disk array ;

测试步骤具体为:The test steps are as follows:

S301、进行格式化步骤;调用格式化指令,生成虚拟磁盘阵列的日志式文件系统,在本实施例中,使用Linux下的EXT4,对应的格式化指令为“mkfs.ext4 /dev/sdb”;S301, perform a formatting step; call a formatting command to generate a log file system of a virtual disk array, in this embodiment, use EXT4 under Linux, and the corresponding formatting command is "mkfs.ext4/dev/sdb";

S302、格式化步骤完成后,设定测试时间,对虚拟磁盘阵列开始执行压测步骤:S302. After the formatting step is completed, set the test time and start the pressure test step for the virtual disk array:

S303、调用压力测试开始指令,对虚拟磁盘阵列开始压力测试;S303. Invoke a stress test start command to start a stress test on the virtual disk array;

压力测试开始指令为:The stress 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”;"fio-filename=/dev/sdb1-direct=1-iodepth1-rw=randread-ioengine=psync-bs=16k -size=200G -numjobs=10 -runtime=86400 --output TestResult.log";

其中,-filename=/dev/sdb1代表测试文件目录;-size=200G代表测试文件大小;numjobs=10代表测试线程为10线程;-runtime=86400代表完成时间段为24小时,即86400秒;--output TestResult.log代表产生日志文档;Among them, -filename=/dev/sdb1 represents the test file directory; -size=200G represents the test file size; numjobs=10 represents the test thread is 10 threads; -runtime=86400 represents the completion time period is 24 hours, that is, 86400 seconds;- -output TestResult.log means to generate log files;

上述所设定的测试时间为初始时间段与降阶时间段的和;The test time set above is the sum of the initial time period and the step-down time period;

S304、在压力测试开始后,经过初始时间段,执行热备用测试,其具体为:S304. After the stress test starts, after an initial period of time, perform a hot standby test, specifically:

判断虚拟磁盘阵列是否为初级虚拟磁盘阵列,若是,则直接进入测试完成判断步骤;若否,则调用降阶指令,根据降阶指令移除与降阶指令对应的虚拟磁盘阵列中的磁盘,并对移出磁盘后的虚拟磁盘阵列进行压力测试;Judging whether the virtual disk array is a primary virtual disk array, if so, then directly enter the test to complete the judgment step; if not, then call the downgrade command, remove the disk in the virtual disk array corresponding to the downgrade command according to the downgrade command, and Perform a stress test on the virtual disk array after removing the disk;

移出指令为:“arcconf setstate 1 device 0 0 ddd”;其中,降阶指令中包含与虚拟磁盘阵列对应的代号;The move-out command is: "arcconf setstate 1 device 0 0 ddd"; where, the step-down command contains the code corresponding to the virtual disk array;

其中,在执行热备用测试后,虚拟磁盘阵列将与其对应的热备用磁盘加入到其阵列中,替换掉在热备用测试措施中移出的磁盘,并继续进行压力测试;Among them, after performing the hot spare test, the virtual disk array will add its corresponding hot spare disk to its array, replace the disk removed in the hot spare test measures, and continue the stress test;

S305、在执行热备用测试后,经过降阶时间段,热备用测试结束,产生测试日志文件,测试日志文件保存至日志式文件系统,之后进入测试完成判断步骤;S305. After performing the hot standby test, after the de-escalation period, the hot standby test ends, a test log file is generated, the test log file is saved to the log file system, and then enters the test to complete the judgment step;

测试完成判断步骤具体为:The test completion judgment steps are as follows:

调用测试完成判断指令,获取压测步骤是否完成,并调用状态检测指令,获取压测步骤的虚拟磁盘阵列的指标级别;若压测步骤完成且该进行压测步骤的虚拟磁盘阵列的指标级别为达标,则测试步骤结束,并执行循环判断措施;若压测步骤未完成或该进行压测步骤的虚拟磁盘阵列的指标级别为未达标,则测试步骤结束,并执行未完成指示措施;Call the test completion judgment command to obtain whether the stress test step is completed, and call the status detection command to obtain the index level of the virtual disk array in the stress test step; if the stress test step is completed and the index level of the virtual disk array in the stress test step is If the standard is met, the test step ends, and the cyclic judgment measures are executed; if the pressure test step is not completed or the indicator level of the virtual disk array for the stress test step is not up to the standard, the test step ends, and the incomplete indication measures are executed;

测试完成判断指令为“cat TesResult.log | grep -i error”;状态检测指令为“arcconfgetconfig1pd|grep state”;The test completion judgment command is "cat TesResult.log | grep -i error"; the state detection command is "arcconfgetconfig1pd|grep state";

其中,系统中预先设定有初始文件,当调用测试完成判断指令时,如果屏幕输出“error”,则压测步骤未完成,反之则压测步骤完成;Among them, the initial file is pre-set in the system. When calling the test completion judgment command, if the screen outputs "error", the stress test step is not completed, otherwise, the stress test step is completed;

当调用状态检测指令时,将测试日志文件与初始文件对比,若日志文件的数据与初始文件的数据相等,则压测步骤的虚拟磁盘阵列的指标级别为达标,反之,压测步骤的虚拟磁盘阵列的指标级别为未达标。When the state detection command is invoked, compare the test log file with the initial file. If the data in the log file is equal to the data in the initial file, the indicator level of the virtual disk array in the pressure test step is up to standard. Otherwise, the virtual disk in the pressure test step The metric level of the array is not met.

循环判断措施具体为:标记该测试步骤所对应的虚拟磁盘阵列的测试情况为测试完成,并判断所有虚拟磁盘阵列的测试情况是否都为测试完成,若否,则判断循环未完成,执行循环措施:建立除测试完成类之外的虚拟磁盘阵列和对应的热备用磁盘,并进行对应的测试步骤;The loop judgment measures are specifically: mark the test status of the virtual disk array corresponding to the test step as the test completion, and judge whether the test status of all virtual disk arrays is the test completion, if not, then judge that the loop is not completed, and execute the loop measure : Establish virtual disk arrays and corresponding hot spare disks except for the test completion class, and carry out corresponding test steps;

若所有虚拟磁盘阵列的测试情况都为测试完成,则判断循环完成,执行完成指示措施。If the test status of all the virtual disk arrays is that the test is completed, it is judged that the cycle is completed, and the completion indicating measure is executed.

完成指示措施具体为:调用ipmitool指令点亮基板管理控制器上的LED为恒亮状态;The specific measures for completing the instructions are: call the ipmitool command to light up the LED on the baseboard management controller to a constant light state;

未完成指示措施具体为:调用ipmitool指令点亮基板管理控制器上的LED为闪烁状态。The unfinished indication measures are as follows: call the ipmitool command to turn on the LED on the baseboard management controller to blink.

本实施例仅表示在Linux系统中进行磁盘阵列测试的情况,但本方法可应用于若干不同用户在不同系统中对磁盘阵列进行测试。This embodiment only shows the situation of testing the disk array in the Linux system, but this method can be applied to several different users testing the disk array in different systems.

实施例2Example 2

本实施例提供一种磁盘阵列测试系统,如图3所示,包括:初始化单元、安装单元、测试单元和处理单元;This embodiment provides a disk array testing system, as shown in FIG. 3 , including: an initialization unit, an installation unit, a test unit, and a processing unit;

所述初始化单元用于初始化磁盘阵列卡的层级和测试时间,并将测试时间发送给所述测试单元;The initialization unit is used to initialize the level of the disk array card and the test time, and send the test time to the test unit;

所述安装单元用于建立层级与所述磁盘阵列卡的层级对应的虚拟磁盘阵列,并选取该虚拟磁盘阵列中与该虚拟磁盘阵列的层级对应的热备用磁盘;The installation unit is used to establish a virtual disk array whose level corresponds to the level of the disk array card, and select a hot spare disk corresponding to the level of the virtual disk array in the virtual disk array;

所述测试单元用于设定测试步骤;所述测试单元通过所述测试步骤对所述虚拟磁盘阵列进行压力测试及对该虚拟磁盘阵列中的热备用磁盘进行热备用测试,得到该测试步骤的测试结果;The test unit is used to set a test step; the test unit performs a stress test on the virtual disk array and a hot spare disk in the virtual disk array through the test step to obtain the test step Test Results;

所述处理单元用于设定后备措施,并执行与所述测试结果对应的后备措施;The processing unit is used to set backup measures and execute the backup measures corresponding to the test results;

所述处理单元通过所述后备措施检测虚拟磁盘阵列的测试情况,并执行与该测试情况对应的循环措施。The processing unit detects a test condition of the virtual disk array through the backup measure, and executes a loop measure corresponding to the test condition.

基于与前述实施例中一种磁盘阵列测试方法同样的发明构思,本说明书实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现所述磁盘阵列测试方法的步骤。Based on the same inventive concept as the disk array testing method in the preceding embodiments, the embodiment of this specification also provides a computer-readable storage medium, on which a computer program is stored, and the computer program is processed The step of implementing the disk array testing method when the controller is executed.

区别于现有技术,采用本申请一种磁盘阵列测试方法、系统及介质可以通过各个单元和各种指令的相互配合,实现服务器系统内磁盘阵列的完全自动化测试,且会对不同磁盘阵列卡的类型建立完全的磁盘阵列体系并进行循环测试,根据测试结果做出对应的指示,大大提高了磁盘阵列的测试效率,节省了测试成本。Different from the prior art, the disk array test method, system and medium of the present application can realize the complete automatic test of the disk array in the server system through the mutual cooperation of each unit and various instructions, and will test the different disk array cards. The type establishes a complete disk array system and conducts a cyclic test, and makes corresponding instructions according to the test results, which greatly improves the test efficiency of the disk array and saves the test cost.

以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only an embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technologies fields, all of which are equally included in the scope of patent protection of the present invention.

Claims (9)

1.一种磁盘阵列测试方法,其特征在于,包括以下步骤:1. A disk array testing method, is characterized in that, comprises the following steps: 建立虚拟磁盘阵列:根据磁盘阵列卡的层级建立对应层级的虚拟磁盘阵列;Create a virtual disk array: Create a virtual disk array of the corresponding level according to the level of the disk array card; 选取热备用磁盘:根据所述虚拟磁盘阵列的所述层级选取所述虚拟磁盘阵列中对应的热备用磁盘;Selecting a hot spare disk: selecting a corresponding hot spare disk in the virtual disk array according to the level of the virtual disk array; 测试并获取测试结果:设定测试步骤,根据所述测试步骤对所述虚拟磁盘阵列进行压力测试及对所述虚拟磁盘阵列中的所述热备用磁盘进行热备用测试,得到所述测试步骤的测试结果;Test and obtain test results: set the test steps, perform a stress test on the virtual disk array according to the test steps and perform a hot spare test on the hot spare disk in the virtual disk array, and obtain the results of the test steps Test Results; 检测测试情况:设定后备措施,根据所述测试结果执行对应的所述后备措施,根据所述后备措施检测所述虚拟磁盘阵列的测试情况;Detecting test conditions: setting backup measures, executing the corresponding backup measures according to the test results, and detecting the test conditions of the virtual disk array according to the backup measures; 根据所述测试情况执行循环措施;Carry out cyclical measures according to the test situation; 所述检测测试情况的步骤具体为:The steps for the detection and test situation are specifically: 所述后备措施包括未完成指示措施和循环判断措施;The backup measures include unfinished indication measures and circular judgment measures; 当所述测试结果为测试成功时,所述测试步骤结束,并执行所述循环判断措施,根据所述循环判断措施检测所有所述虚拟磁盘阵列的所述测试情况;When the test result is that the test is successful, the test step ends, and the loop judgment measure is executed, and the test conditions of all the virtual disk arrays are detected according to the loop judgment measure; 当所述测试结果为测试失败时,所述测试步骤结束,并执行所述未完成指示措施;所述未完成指示措施为:调用ipmitool指令点亮基板管理控制器上的LED为闪烁状态。When the test result is a test failure, the test step ends, and the unfinished indication measure is executed; the unfinished indication measure is: calling the ipmitool command to turn on the LED on the baseboard management controller in a blinking state. 2.根据权利要求1中所述的磁盘阵列测试方法,其特征在于,所述测试步骤为:2. according to the disk array test method described in claim 1, it is characterized in that, described test step is: 调用格式化指令,生成与所述虚拟磁盘阵列对应的日志式文件系统;Invoking a formatting command to generate a log file system corresponding to the virtual disk array; 在所述虚拟磁盘阵列的所述日志式文件系统生成后,设定测试时间,所述测试时间包括初始时间段和降阶时间段;After the log-type file system of the virtual disk array is generated, a test time is set, and the test time includes an initial time period and a step-down time period; 执行压测步骤,根据所述压测步骤对所述虚拟磁盘阵列进行所述压力测试及对所述虚拟磁盘阵列中的所述热备用磁盘进行所述热备用测试;Executing a stress testing step, performing the stress test on the virtual disk array according to the stress testing step and performing the hot spare test on the hot spare disk in the virtual disk array; 在执行所述压测步骤后,根据所述测试时间,执行测试完成判断步骤,得到所述测试结果,并将所述测试结果打包成测试日志文件,存储至所述日志式文件系统。After the stress testing step is executed, the test completion judging step is executed according to the test time to obtain the test result, and the test result is packaged into a test log file and stored in the log file system. 3.根据权利要求2中所述的磁盘阵列测试方法,其特征在于,在进行所述热备用测试后,经过所述降阶时间段,所述热备用测试结束,执行所述测试完成判断步骤;3. according to the disk array test method described in claim 2, it is characterized in that, after carrying out described hot spare test, through described step-down time period, described hot spare test finishes, and execution described test completes judging step ; 所述测试完成判断步骤为:The steps for determining the completion of the test are: 调用测试完成判断指令,获取所述压测步骤的完成情况,调用状态检测指令,获取所述虚拟磁盘阵列的指标级别;Invoking the test completion judgment instruction to obtain the completion status of the pressure test step, and invoking the state detection instruction to obtain the index level of the virtual disk array; 根据所述压测步骤的所述完成情况和所述虚拟磁盘阵列的所述指标级别,判断所述测试结果,其具体步骤为:According to the completion situation of the pressure testing step and the index level of the virtual disk array, the test result is judged, and the specific steps are: 当所述压测步骤的所述完成情况为未完成或所述虚拟磁盘阵列的所述指标级别为未达标时,所述测试结果为测试失败;When the completion status of the pressure testing step is incomplete or the index level of the virtual disk array is not up to standard, the test result is a test failure; 当所述压测步骤的所述完成情况为完成且所述虚拟磁盘阵列的所述指标级别为达标时,所述测试结果为测试成功。When the completion status of the pressure testing step is completed and the index level of the virtual disk array is up to standard, the test result is a successful test. 4.根据权利要求2中所述的磁盘阵列测试方法,其特征在于,所述循环判断措施为:4. according to the disk array testing method described in claim 2, it is characterized in that, described loop judgment measure is: 标记所述测试步骤所对应的所述虚拟磁盘阵列的所述测试情况为测试完成,并检测所有所述虚拟磁盘阵列的所述测试情况是否均为测试完成,若否,则执行所述循环措施;所述循环措施为:对除所述测试情况为测试完成以外的所述虚拟磁盘阵列执行所述测试步骤;Mark the test condition of the virtual disk array corresponding to the test step as test completion, and detect whether the test conditions of all the virtual disk arrays are test completion, if not, execute the loop measure ; The loop measure is: execute the test step on the virtual disk array except that the test is completed; 若是,则执行完成指示措施。If so, perform the indicated action to complete. 5.根据权利要求2中所述的磁盘阵列测试方法,其特征在于,所述建立虚拟磁盘阵列的步骤具体为:5. according to the disk array testing method described in claim 2, it is characterized in that, the described step of establishing virtual disk array is specifically: 调用与所述磁盘阵列卡的所述层级对应的阵列指令,采用与所述阵列指令对应的磁盘建立与所述磁盘阵列卡的所述层级对应的所述虚拟磁盘阵列;Calling an array command corresponding to the level of the disk array card, using the disk corresponding to the array command to establish the virtual disk array corresponding to the level of the disk array card; 若所述磁盘阵列卡的所述层级为初级,则建立初级虚拟磁盘阵列;若所述磁盘阵列卡的所述层级为中级,则建立中级虚拟磁盘阵列;若所述磁盘阵列卡的所述层级为高级,则建立高级虚拟磁盘阵列。If the level of the disk array card is primary, a primary virtual disk array is established; if the level of the disk array card is an intermediate level, an intermediate virtual disk array is established; if the level of the disk array card is If it is advanced, create an advanced virtual disk array. 6.根据权利要求5中所述的磁盘阵列测试方法,其特征在于,所述压测步骤为:6. The disk array testing method according to claim 5, wherein the pressure testing step is: 调用压力测试开始指令,对所述虚拟磁盘阵列进行所述压力测试,在经过所述初始时间段后,对所述虚拟磁盘阵列中的所述热备用磁盘进行所述热备用测试;calling a stress test start command, performing the stress test on the virtual disk array, and performing the hot spare test on the hot spare disk in the virtual disk array after the initial time period; 所述压力测试为:对所述虚拟磁盘阵列进行与所述压力测试开始指令对应的测试;The stress test is: performing a test corresponding to the stress test start instruction on the virtual disk array; 所述热备用测试为:判断所述虚拟磁盘阵列是否为所述初级虚拟磁盘阵列,若是,则执行所述测试完成判断步骤;若否,则调用降阶指令,根据所述降阶指令移除所述虚拟磁盘阵列中与所述降阶指令对应的磁盘,并对所述虚拟磁盘阵列进行所述压力测试。The hot standby test is: judging whether the virtual disk array is the primary virtual disk array, and if so, executing the test to complete the judging step; if not, calling the step-down command, and removing The disk in the virtual disk array corresponding to the downscaling instruction, and performing the stress test on the virtual disk array. 7.根据权利要求5中所述的磁盘阵列测试方法,其特征在于,所述选取热备用磁盘的步骤具体为:7. according to the disk array test method described in claim 5, it is characterized in that, the step of described selecting hot spare disk is specifically: 当判断所述虚拟磁盘阵列的所述层级为所述初级虚拟磁盘阵列时,执行所述测试步骤;performing the testing step when it is determined that the level of the virtual disk array is the primary virtual disk array; 当判断所述虚拟磁盘阵列的所述层级为所述中级虚拟磁盘阵列时,调用与所述中级虚拟磁盘阵列对应的热备用指令,选取所述中级虚拟磁盘阵列中与所述热备用指令对应的磁盘作为所述热备用磁盘;When it is judged that the level of the virtual disk array is the intermediate virtual disk array, call the hot spare instruction corresponding to the intermediate virtual disk array, and select the hot spare instruction corresponding to the intermediate virtual disk array disk as said hot spare disk; 当判断所述虚拟磁盘阵列的所述层级为所述高级虚拟磁盘阵列时,调用与所述高级虚拟磁盘阵列对应的所述热备用指令,选取所述高级虚拟磁盘阵列中与所述热备用指令对应的磁盘作为所述热备用磁盘。When it is judged that the level of the virtual disk array is the advanced virtual disk array, call the hot spare instruction corresponding to the advanced virtual disk array, and select the hot spare instruction corresponding to the advanced virtual disk array The corresponding disk is used as the hot spare disk. 8.一种磁盘阵列测试系统,其特征在于,包括:初始化单元、安装单元、测试单元和处理单元;8. A disk array test system, characterized in that, comprising: an initialization unit, an installation unit, a test unit and a processing unit; 所述初始化单元用于初始化磁盘阵列卡的层级和测试时间,并将所述测试时间发送给所述测试单元;The initialization unit is used to initialize the level of the disk array card and the test time, and send the test time to the test unit; 所述安装单元用于建立层级与所述磁盘阵列卡的所述层级对应的虚拟磁盘阵列,并选取所述虚拟磁盘阵列中与所述虚拟磁盘阵列的所述层级对应的热备用磁盘;The installation unit is used to establish a virtual disk array whose level corresponds to the level of the disk array card, and select a hot spare disk corresponding to the level of the virtual disk array in the virtual disk array; 所述测试单元用于设定测试步骤;所述测试单元通过所述测试步骤对所述虚拟磁盘阵列进行压力测试及对所述虚拟磁盘阵列中的所述热备用磁盘进行热备用测试,得到所述测试步骤的测试结果;The test unit is used to set the test steps; the test unit performs a stress test on the virtual disk array and a hot spare test on the hot spare disk in the virtual disk array through the test steps, and obtains the the test results of the above test steps; 所述处理单元用于设定后备措施,并执行与所述测试结果对应的所述后备措施;The processing unit is used to set backup measures and execute 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 loop measure corresponding to the test condition; 所述后备措施包括未完成指示措施和循环判断措施;当所述测试结果为测试成功时,所述测试步骤结束,并执行所述循环判断措施,根据所述循环判断措施检测所有所述虚拟磁盘阵列的所述测试情况;当所述测试结果为测试失败时,所述测试步骤结束,并执行所述未完成指示措施;所述未完成指示措施为:调用ipmitool指令点亮基板管理控制器上的LED为闪烁状态。The backup measures include an unfinished indication measure and a loop judgment measure; when the test result is a successful test, the test step ends, and the loop judgment measure is executed, and all virtual disks are detected according to the loop judgment measure The test situation of the array; when the test result is a test failure, the test step ends, and the unfinished indication measure is executed; the unfinished indication measure is: call the ipmitool command to light up the baseboard management controller LED is blinking. 9.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1~7中任一项所述磁盘阵列测试方法的步骤。9. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the disk array described in any one of claims 1 to 7 is realized The steps of the test method.
CN202011512797.5A 2020-12-20 2020-12-20 Disk array testing method, system and medium Active CN112667452B (en)

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 (3)

* Cited by examiner, † Cited by third party
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
CN119493694A (en) * 2023-08-21 2025-02-21 富联精密电子(天津)有限公司 Hard disk plugging and unplugging method, system and server
CN117472664B (en) * 2023-10-17 2024-11-01 宁畅信息产业(北京)有限公司 Disk array card testing method and device and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055780A (en) * 2009-11-04 2011-05-11 英业达股份有限公司 Disk array test system and method
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055780A (en) * 2009-11-04 2011-05-11 英业达股份有限公司 Disk array test system and method
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
JP5657766B2 (en) Error code management method and apparatus for storage system coupled to external storage system
CN115793985B (en) A safe storage method, device, equipment and storage medium
CN101118508A (en) Safe data storage method
CN103744764A (en) Crontab based whole computer memory stability test method
CN110618892B (en) Bug location method, device, electronic equipment and medium of a solid-state hard disk
US8799595B1 (en) Eliminating duplicate data in storage systems with boot consolidation
US9442814B2 (en) Systems and methods for improved fault tolerance in RAID configurations
CN116339644B (en) Method, device, equipment and medium for creating redundant array of independent disks
US20170270000A1 (en) Method for storage management and storage device
CN112000574A (en) Pressure testing method, device, equipment and storage medium
CN108874312B (en) Data storage method and storage device
US9104575B2 (en) Reduced-impact error recovery in multi-core storage-system components
WO2021088423A1 (en) Memory management method and system for raid io, terminal and storage medium
US7996707B2 (en) Method to recover from ungrouped logical path failures
JP2001075741A (en) Disk control system and data maintenance method
US9164838B2 (en) Disk array device and disk array device control method
US8069364B2 (en) Method to recover from logical path failures
US11507482B2 (en) Recovering consistency of a raid (redundant array of independent disks) metadata database
CN115391106A (en) Method, system and device for pooling backup resources
CN102541668A (en) Method for analyzing reliability of flash file system
CN1297910C (en) Method and device for storing and recoverying computer system information
Zeng et al. HerpRap: a hybrid array architecture providing any point-in-time data tracking for datacenter
CN114791868B (en) Fault type detection method and device, computer equipment and readable storage medium
Han et al. An efficient and parallel bad block checker for parallelism of storage devices

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