CN104133750A - Method and system for testing compatibility adaptability of host and storage device - Google Patents
Method and system for testing compatibility adaptability of host and storage device Download PDFInfo
- Publication number
- CN104133750A CN104133750A CN201410410755.9A CN201410410755A CN104133750A CN 104133750 A CN104133750 A CN 104133750A CN 201410410755 A CN201410410755 A CN 201410410755A CN 104133750 A CN104133750 A CN 104133750A
- Authority
- CN
- China
- Prior art keywords
- storage device
- test
- host
- file
- traffic
- 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.)
- Pending
Links
- 238000003860 storage Methods 0.000 title claims abstract description 270
- 238000012360 testing method Methods 0.000 title claims abstract description 227
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000006978 adaptation Effects 0.000 claims abstract description 41
- 238000011056 performance test Methods 0.000 claims abstract description 19
- 238000011990 functional testing Methods 0.000 claims abstract description 14
- 238000013112 stability test Methods 0.000 claims abstract description 13
- 238000013095 identification testing Methods 0.000 claims description 22
- 238000010998 test method Methods 0.000 claims description 14
- 238000012217 deletion Methods 0.000 claims description 8
- 230000037430 deletion Effects 0.000 claims description 8
- 230000003044 adaptive effect Effects 0.000 claims description 6
- 230000004044 response Effects 0.000 claims 1
- 238000010606 normalization Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 7
- 238000011156 evaluation Methods 0.000 description 3
- 230000014759 maintenance of location Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000005192 partition Methods 0.000 description 1
- 238000010561 standard procedure Methods 0.000 description 1
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- For Increasing The Reliability Of Semiconductor Memories (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
本发明提供了一种主机与存储设备兼容适配测试方法和系统,其中方法包括:在主机与存储设备之间进行兼容适配的基础实施测试,基础实施测试包括连接存储设备的板卡驱动识别测试;在主机与存储设备之间进行兼容适配的功能测试,功能测试包括主机识别存储设备数据卷测试和存储设备磁盘上的文件操作测试;在主机与存储设备之间进行兼容适配的性能测试,性能测试包括存储设备磁盘负载测试、存储设备磁盘压力测试、存储设备磁盘并发测试和存储设备磁盘稳定性测试。本发明能够实现主机与存储设备之间兼容适配测试的通用化、标准化和规范化。
The present invention provides a host and storage device compatibility and adaptation testing method and system, wherein the method includes: performing a basic implementation test of compatibility and adaptation between the host and the storage device, and the basic implementation test includes board driver identification for connecting the storage device Test; perform a functional test of compatibility and adaptation between the host and the storage device, including the host identification storage device data volume test and the file operation test on the storage device disk; perform compatible adaptation performance between the host and the storage device Test, performance test includes storage device disk load test, storage device disk stress test, storage device disk concurrency test and storage device disk stability test. The invention can realize the generalization, standardization and normalization of the compatible adaptation test between the host computer and the storage device.
Description
技术领域technical field
本发明涉及测试技术领域,尤其涉及一种主机与存储设备兼容适配测试方法和系统。The invention relates to the technical field of testing, in particular to a host computer and a storage device compatibility test method and system.
背景技术Background technique
随着存储产品的大量普及和使用,主机和存储之间的兼容适配,存储和主机连接后的基础硬件环境的稳定性、可靠性和系统性能越来越为使用者所重视。With the popularization and use of storage products, the compatibility and adaptation between host and storage, and the stability, reliability and system performance of the basic hardware environment after storage and host connection are more and more valued by users.
兼容适配测试是指测试软件在特定的硬件平台上、不同的应用软件之间、不同的操纵系统平台上、不同的网络等环境中是否能够很友好的运行的测试。目前,主机和存储设备生产厂商众多、型号规格复杂,体系结构和操作方法差异性都比较大,而当前的兼容适配测试往往只针对特定品牌和型号,难以形成标准流程和测试规范,如此,不仅适应面窄,而且也难于对存储和主机互联后组成的硬件系统进行恰当和全面的评估,如果测试不充分,可能导致设备使用设备过程中存在兼容性隐患。Compatibility and adaptation testing refers to testing whether the software can run friendly on a specific hardware platform, between different application software, on different operating system platforms, and in different network environments. At present, there are many host and storage device manufacturers with complex models and specifications, and the differences in architecture and operation methods are relatively large. However, the current compatibility and adaptation tests are often only for specific brands and models, and it is difficult to form standard procedures and test specifications. In this way, Not only is the adaptability narrow, but it is also difficult to properly and comprehensively evaluate the hardware system formed by the interconnection of storage and hosts. If the test is not sufficient, there may be compatibility risks in the process of using the device.
有鉴于此,需要一种全面深入的主机与存储设备兼容适配测试方案来解决现有技术的问题。In view of this, a comprehensive and in-depth host and storage device compatibility and adaptation testing solution is needed to solve the problems in the prior art.
发明内容Contents of the invention
为了解决上述技术问题,本发明提供了一种主机与存储设备兼容适配测试方法和系统,能够实现主机与存储设备之间兼容适配测试的通用化、标准化和规范化。In order to solve the above technical problems, the present invention provides a host and storage device compatibility test method and system, which can realize the generalization, standardization and normalization of the compatibility test between the host and storage devices.
为了达到本发明目的,本发明提供了一种主机与存储设备兼容适配测试方法,包括:在主机与存储设备之间进行兼容适配的基础实施测试,基础实施测试包括连接存储设备的板卡驱动识别测试;在主机与存储设备之间进行兼容适配的功能测试,功能测试包括主机识别存储设备数据卷测试和存储设备磁盘上的文件操作测试;在机与存储设备之间进行兼容适配的性能测试,性能测试包括存储设备磁盘负载测试、存储设备磁盘压力测试、存储设备磁盘并发测试和存储设备磁盘稳定性测试。In order to achieve the purpose of the present invention, the present invention provides a host and storage device compatibility and adaptation test method, including: performing a basic implementation test of compatibility and adaptation between the host and the storage device, and the basic implementation test includes connecting the board of the storage device Driver identification test; functional test of compatibility and adaptation between the host and the storage device, the function test includes the host identification storage device data volume test and the file operation test on the storage device disk; compatibility and adaptation between the host and the storage device The performance test includes storage device disk load test, storage device disk stress test, storage device disk concurrency test and storage device disk stability test.
进一步地,连接存储设备的板卡驱动识别测试包括主机总线适配器HBA卡、串行连接SAS卡识别测试,存储区域网络SAN、SAS参数测试和存储设备文件测试;其中,HBA卡、SAS卡识别测试,具体包括:连接存储设备的HBA卡、SAS卡的板卡驱动信息,能否在主机端被正确识别;HBA卡、SAS卡的板卡驱动能否被正确加载;存储设备能否被正确识别,并被正常操作。Further, the board card drive identification test of the connected storage device includes host bus adapter HBA card, serial connection SAS card identification test, storage area network SAN, SAS parameter test and storage device file test; wherein, HBA card, SAS card identification test , including: whether the board driver information of the HBA card and SAS card connected to the storage device can be correctly identified on the host side; whether the board driver information of the HBA card and SAS card can be correctly loaded; whether the storage device can be correctly identified , and is operating normally.
进一步地,主机识别存储设备数据卷测试包括存储设备磁盘上的逻辑卷管理LVM卷操作测试;主机识别存储设备数据卷测试,具体包括:在主机中,为存储设备划分文件系统,测试能否正常划分;在主机中,为存储设备划分裸设备,测试能否正常划分;在主机中,查看存储设备上划分后的文件系统大小,数量是否正确;在主机中,查看划分后的裸设备大小,数量是否正确。Further, the host identification storage device data volume test includes the logical volume management LVM volume operation test on the storage device disk; the host identification storage device data volume test specifically includes: in the host, divide the file system for the storage device, and test whether it is normal Divide; in the host, divide the raw device for the storage device, and test whether it can be divided normally; in the host, check the size of the divided file system on the storage device, whether the number is correct; in the host, check the size of the divided raw device, Is the quantity correct.
进一步地,存储设备磁盘上的文件操作测试包括存储设备文件系统的拷贝、移动和删除操作测试;存储设备磁盘上的文件操作测试,具体包括:在存储设备上执行拷贝文件操作,测试拷贝过程及结果是否正常;在存储设备上执行拷贝目录操作,测试拷贝过程及结果是否正常;在存储设备上执行移动文件操作,测试移动过程及结果是否正常;在存储设备上执行移动目录操作,测试移动过程及结果是否正常;在存储设备上执行删除文件操作,测试删除过程及结果是否正常;在存储设备上执行删除目录操作,测试删除过程及结果是否正常。Further, the file operation test on the storage device disk includes the copy, move and delete operation test of the storage device file system; the file operation test on the storage device disk specifically includes: performing a copy file operation on the storage device, testing the copy process and Whether the result is normal; execute the copy directory operation on the storage device, and test whether the copy process and the result are normal; execute the moving file operation on the storage device, and test whether the moving process and the result are normal; execute the moving directory operation on the storage device, and test the moving process and whether the results are normal; execute the delete file operation on the storage device, and test whether the deletion process and results are normal; perform the delete directory operation on the storage device, and test whether the deletion process and results are normal.
进一步地,存储设备磁盘负载测试,具体包括:在主机上,向存储设备同时启动多个读取数据的任务,测试耗费的时间;在主机上,向存储设备同时启动多个写入数据的任务,测试耗费的时间;测试内存占用率、CPU占用率、作业成功率和IO流量,其中IO流量可以包括HBA卡、SAS卡流量;用图表显示所述内存占用率、CPU占用率、作业成功率和IO流量。Further, the disk load test of the storage device specifically includes: on the host, starting multiple tasks of reading data to the storage device at the same time, and testing the time spent; on the host, starting multiple tasks of writing data to the storage device at the same time , the time spent in testing; test the memory usage rate, CPU usage rate, job success rate and IO traffic, where the IO traffic can include HBA card, SAS card traffic; use a graph to display the memory usage rate, CPU usage rate, and job success rate and IO traffic.
进一步地,存储设备磁盘压力测试,具体包括:启动对于存储设备的数据读取任务,读取预设大小的文件或文件集合,并逐渐增大文件的大小,记录每次任务完成的时间,观察主机系统的CPU占有率和内存占有率;启动对于存储设备的数据写入任务,写入预先设置大小的文件或文件集合,并逐渐增大文件的大小,记录每次任务完成的时间,观察主机系统的CPU占有率和内存占有率;当至少出现下列情况之一时,记录当前的文件大小:CPU占有率持续100%;内存耗尽或占有率超过预设数置;写入任务出错或无响应;测试最大数据读写大小、内存占用率、CPU占用率、作业成功率和IO流量,其中IO流量可以包括HBA卡、SAS卡流量;用图表显示所述内存占用率、CPU占用率、作业成功率和IO流量。Further, the storage device disk stress test specifically includes: starting a data reading task for the storage device, reading a file or file collection of a preset size, and gradually increasing the size of the file, recording the completion time of each task, and observing The CPU occupancy rate and memory occupancy rate of the host system; start the data writing task for the storage device, write the file or file collection with the preset size, and gradually increase the file size, record the time when each task is completed, and observe the host The system's CPU occupancy rate and memory occupancy rate; when at least one of the following situations occurs, record the current file size: the CPU occupancy rate continues to be 100%; the memory is exhausted or the occupancy rate exceeds the preset number; the writing task fails or does not respond ;Test the maximum data read and write size, memory usage rate, CPU usage rate, job success rate and IO traffic, where the IO traffic can include HBA card and SAS card traffic; display the memory usage rate, CPU usage rate, and job success in graphs rate and IO traffic.
进一步地,存储设备磁盘并发测试,具体包括:启动对于存储设备的数据读取任务,在主机上同时运行对于同一预设大小的文件或文件集合的预设数量读取任务,并逐渐增加并发的任务数,最大任务数由HBA卡的性能或磁盘的性能决定;启动对于存储设备的数据写入任务,在主机上同时运行对于同一预设大小的文件或文件集合的预设数量读取任务,并逐渐增加并发的任务数,最大任务数由HBA卡的性能或磁盘的性能决定;测试最大并发数、内存占用率、CPU占用率、作业成功率和IO流量,其中IO流量可以包括HBA卡、SAS卡流量;用图表显示所述内存占用率、CPU占用率、作业成功率和IO流量。Further, the storage device disk concurrency test specifically includes: starting a data reading task for the storage device, simultaneously running a preset number of reading tasks for the same preset size of files or file collections on the host, and gradually increasing the concurrent The number of tasks, the maximum number of tasks is determined by the performance of the HBA card or the performance of the disk; start the task of writing data to the storage device, and simultaneously run the task of reading the preset number of files or file collections of the same preset size on the host, And gradually increase the number of concurrent tasks. The maximum number of tasks is determined by the performance of the HBA card or disk; test the maximum number of concurrent tasks, memory usage, CPU usage, job success rate, and IO traffic. IO traffic can include HBA cards, SAS card traffic; use graphs to display the memory usage, CPU usage, job success rate and IO traffic.
进一步地,存储设备磁盘稳定性测试,具体包括:在主机上启动对于存储设备的读取任务,连续运行预设时间的任务,测试其稳定性,查看读取任务运行是否正常;在主机上启动对于存储设备的写入任务,连续运行预设时间的任务,测试其稳定性,查看写入任务运行是否正常;测试内存占用率、CPU占用率和IO流量,其中IO流量可以包括HBA卡、SAS卡流量;用图表显示所述内存占用率、CPU占用率、IO流量和任务完成时间。Further, the disk stability test of the storage device specifically includes: starting the reading task for the storage device on the host, running the task for a preset time continuously, testing its stability, and checking whether the reading task is running normally; starting the task on the host For the writing task of the storage device, run the task for a preset time continuously, test its stability, and check whether the writing task is running normally; test the memory usage rate, CPU usage rate and IO traffic, where the IO traffic can include HBA cards, SAS Card traffic; use graphs to display the memory usage, CPU usage, IO traffic and task completion time.
本发明提供了一种主机与存储设备兼容适配测试系统,包括:主机和存储设备;其中,主机,用于在主机与存储设备之间进行兼容适配的基础实施测试,基础实施测试包括连接存储设备的板卡驱动识别测试;在主机与存储设备之间进行兼容适配的功能测试,功能测试包括主机识别存储设备数据卷测试和存储设备磁盘上的文件操作测试;在主机与存储设备之间进行兼容适配的性能测试,性能测试包括存储设备磁盘负载测试、存储设备磁盘压力测试、存储设备磁盘并发测试和存储设备磁盘稳定性测试。The present invention provides a host and storage device compatibility test system, including: a host and a storage device; wherein, the host is used to perform a basic implementation test of compatibility and adaptation between the host and the storage device, and the basic implementation test includes connection Board driver identification test of storage device; functional test of compatibility and adaptation between host and storage device, functional test includes host identification storage device data volume test and storage device disk file operation test; between host and storage device Compatible and adaptable performance tests between the two, including storage device disk load test, storage device disk stress test, storage device disk concurrency test and storage device disk stability test.
与现有技术相比,本发明包括:在主机与存储设备之间进行兼容适配的基础实施测试,基础实施测试包括连接存储设备的板卡驱动识别测试;在主机与存储设备之间进行兼容适配的功能测试,功能测试包括主机识别存储设备数据卷测试和存储设备磁盘上的文件操作测试;在主机与存储设备之间进行兼容适配的性能测试,性能测试包括存储设备磁盘负载测试、存储设备磁盘压力测试、存储设备磁盘并发测试和存储设备磁盘稳定性测试。本发明通过在主机与存储之间进行兼容适配的基础实施测试、功能测试和性能测试,可以为不同型号和规格的主机和存储之间的兼容适配找到一套通用可行、标准化、规范化的测试方法,不仅提供了主机和存储组成的底层硬件系统之间的兼容性测试,亦提供稳定可靠的功能测试和性能测试,对整个系统进行全面深入的评估,从而保障了系统运行稳定性。Compared with the prior art, the present invention includes: carrying out a basic implementation test of compatibility and adaptation between the host and the storage device, the basic implementation test including the identification test of the card driver connected to the storage device; performing a compatibility test between the host and the storage device Adaptive functional test, the functional test includes the host identification storage device data volume test and the file operation test on the storage device disk; the performance test of compatibility and adaptation between the host and the storage device, the performance test includes the storage device disk load test, Storage device disk stress test, storage device disk concurrency test and storage device disk stability test. The present invention can find a set of common, feasible, standardized and normalized compatibility and adaptation between hosts and storages of different models and specifications by performing the basic implementation test, function test and performance test of compatibility and adaptation between the host and the storage. The test method not only provides the compatibility test between the underlying hardware system composed of host and storage, but also provides stable and reliable functional test and performance test, and conducts a comprehensive and in-depth evaluation of the entire system, thus ensuring the stability of the system operation.
附图说明Description of drawings
图1是本发明主机与存储设备兼容适配测试方法的流程示意图。FIG. 1 is a schematic flowchart of a method for testing compatibility and adaptation between a host and a storage device according to the present invention.
图2是本发明主机与存储设备兼容适配测试系统的架构示意图。FIG. 2 is a schematic diagram of the structure of the host and storage device compatibility test system of the present invention.
具体实施方式Detailed ways
以下将结合附图所示的具体实施方式对本发明进行详细描述。The present invention will be described in detail below in conjunction with specific embodiments shown in the accompanying drawings.
图1是本发明主机与存储设备兼容适配测试方法的流程示意图,如图1所示,包括:Fig. 1 is a schematic flow chart of the method for testing compatibility between a host and a storage device according to the present invention, as shown in Fig. 1 , including:
步骤11,在主机与存储设备之间进行兼容适配的基础实施测试,该基础实施测试包括连接存储设备的板卡驱动识别测试。In step 11, a basic implementation test of compatibility and adaptation is performed between the host and the storage device, and the basic implementation test includes a board driver identification test for connecting the storage device.
在本步骤中,连接存储设备的板卡驱动识别测试可以包括主机总线适配器(HBA,Host Bus Adapter)卡、串行连接SCSI(SAS,Serial Attached SCSI)卡识别测试,存储区域网络(SAN,Storage Area Network)、SAS参数测试和存储设备文件测试。In this step, the board driver identification test for connecting the storage device may include a host bus adapter (HBA, Host Bus Adapter) card, a serial attached SCSI (SAS, Serial Attached SCSI) card identification test, a storage area network (SAN, Storage Area Network), SAS parameter test and storage device file test.
其中,以HBA卡、SAS卡等连接存储设备的板卡驱动识别测试为例,该测试具体检测:Among them, taking HBA card, SAS card and other board card driver identification tests connected to storage devices as an example, this test specifically detects:
连接存储设备的HBA卡、SAS卡的板卡驱动信息,能否在主机端被正确识别;Whether the card driver information of the HBA card and SAS card connected to the storage device can be correctly identified on the host side;
HBA卡、SAS卡的板卡驱动能否被正确加载;Whether the board driver of HBA card and SAS card can be loaded correctly;
存储设备能否被正确识别,并被正常操作。Whether the storage device can be correctly identified and operated normally.
步骤12,在主机与存储设备之间进行兼容适配的功能测试,该功能测试包括主机识别存储设备数据卷测试和存储设备磁盘上的文件操作测试。Step 12, perform a compatible and adaptive function test between the host and the storage device, the function test includes a test of the host identifying the data volume of the storage device and a file operation test on the disk of the storage device.
在本步骤中,主机识别存储设备数据卷测试可以是存储设备磁盘上的逻辑卷管理(LVM,Logical Volume Manager)卷操作测试;存储设备磁盘上的文件操作测试可以包括存储设备文件系统的拷贝、移动和删除操作测试。In this step, the host identification storage device data volume test can be a logical volume management (LVM, Logical Volume Manager) volume operation test on the storage device disk; the file operation test on the storage device disk can include a copy of the storage device file system, Move and delete operations tests.
其中,以主机识别存储设备数据卷测试为例,该测试具体检测:Among them, taking the host identification storage device data volume test as an example, the test specifically detects:
在主机中,为存储设备划分文件系统,测试能否正常划分;In the host, divide the file system for the storage device, and test whether it can be divided normally;
在主机中,为存储设备划分裸设备,测试能否正常划分;In the host, divide the raw device for the storage device, and test whether it can be divided normally;
在主机中,查看存储设备上划分后的文件系统大小,数量是否正确;On the host, check the size of the divided file system on the storage device and see if the number is correct;
在主机中,查看划分后的裸设备大小,数量是否正确;In the host, check the size of the divided raw device and see if the number is correct;
在划分时,若需要改变物理分区的大小测试,改变范围为16MB和32MB。When dividing, if you need to change the size test of the physical partition, the change range is 16MB and 32MB.
其中,以存储设备磁盘上的文件操作测试为例,该测试具体检测:Among them, taking the file operation test on the storage device disk as an example, the test specifically detects:
在存储设备上执行拷贝文件操作,测试拷贝过程及结果是否正常;Execute the copy file operation on the storage device, and test whether the copy process and results are normal;
在存储设备上执行拷贝目录操作,测试拷贝过程及结果是否正常;Execute the copy directory operation on the storage device, and test whether the copy process and results are normal;
在存储设备上执行移动文件操作,测试移动过程及结果是否正常;Execute the operation of moving files on the storage device, and test whether the moving process and results are normal;
在存储设备上执行移动目录操作,测试移动过程及结果是否正常;Execute the move directory operation on the storage device, and test whether the move process and results are normal;
在存储设备上执行删除文件操作,测试删除过程及结果是否正常;Execute the file deletion operation on the storage device, and test whether the deletion process and results are normal;
在存储设备上执行删除目录操作,测试删除过程及结果是否正常。Execute the delete directory operation on the storage device, and test whether the delete process and results are normal.
步骤13,在主机与存储设备之间进行兼容适配的性能测试,该性能测试包括存储设备磁盘负载测试、存储设备磁盘压力测试、存储设备磁盘并发测试和存储设备磁盘稳定性测试。Step 13, perform a compatible and adaptive performance test between the host and the storage device, the performance test includes a storage device disk load test, a storage device disk stress test, a storage device disk concurrency test, and a storage device disk stability test.
其中,存储设备磁盘负载测试检验系统在给定负载下的性能表现,资源利用情况,是否能达到预期性能指标等,并不强调系统的瓶颈和失败点,该测试具体包括:Among them, the storage device disk load test checks the performance of the system under a given load, resource utilization, whether it can meet the expected performance indicators, etc., and does not emphasize the bottleneck and failure point of the system. The test specifically includes:
在主机上,向存储设备同时启动多个读取数据的任务,测试耗费的时间,例如向存储设备同时启动3个读取400GB数据的任务,测试每个任务耗费的时间和总时间;On the host, start multiple tasks to read data from the storage device at the same time, and test the time spent, for example, start three tasks to read 400GB of data from the storage device at the same time, and test the time spent on each task and the total time;
在主机上,向存储设备同时启动多个写入数据的任务,测试耗费的时间,例如向存储设备同时启动3个写入400GB数据的任务,测试每个任务耗费的时间和总时间;On the host, start multiple tasks to write data to the storage device at the same time, and test the time spent. For example, start three tasks to write 400GB of data to the storage device at the same time, and test the time spent on each task and the total time;
测试内存占用率、CPU占用率、作业成功率和IO流量,其中IO流量可以包括HBA卡、SAS卡流量;Test memory usage, CPU usage, job success rate and IO traffic, where IO traffic can include HBA card, SAS card traffic;
用图表显示内存占用率、CPU占用率、作业成功率和IO流量。Use graphs to display memory usage, CPU usage, job success rate, and IO traffic.
其中,存储设备磁盘压力测试为对特定的软硬件环境不断施加“压力”,测试系统在压力情况下的性能表现,通过确定一个系统的瓶颈或者不能接受的性能点,来获得系统能提供的最大服务级别的测试,该测试具体包括:Among them, the storage device disk stress test is to continuously exert "pressure" on a specific software and hardware environment, test the performance of the system under stress, and obtain the maximum that the system can provide by determining a system bottleneck or an unacceptable performance point. Service-level testing, which specifically includes:
启动对于存储设备的数据读取任务,读取预设大小,例如1T的文件/文件集合,并逐渐增大文件的大小,记录每次任务完成的时间,观察主机系统的CPU占有率和内存占有率;Start the data reading task for the storage device, read the preset size, such as 1T files/file collections, and gradually increase the file size, record the completion time of each task, and observe the CPU occupancy rate and memory occupancy of the host system Rate;
启动对于存储设备的数据写入任务,写入预先设置大小,例如1T,的文件/文件集合,并逐渐增大文件的大小,记录每次任务完成的时间,观察主机系统的CPU占有率和内存占有率;Start the data writing task for the storage device, write the file/file collection with a preset size, such as 1T, and gradually increase the file size, record the time for each task completion, and observe the CPU occupancy rate and memory of the host system Occupancy;
当至少出现下列情况之一时,记录当前的文件大小:CPU占有率持续100%;内存耗尽或占有率超过预设数置;写入任务出错或无响应;When at least one of the following situations occurs, record the current file size: the CPU occupancy continues to be 100%; the memory is exhausted or the occupancy exceeds the preset number; the writing task fails or does not respond;
测试最大数据读写大小、内存占用率、CPU占用率、作业成功率和IO流量,其中IO流量可以包括HBA卡、SAS卡流量;Test the maximum data read and write size, memory usage, CPU usage, job success rate and IO traffic, where IO traffic can include HBA card, SAS card traffic;
用图表显示内存占用率、CPU占用率、作业成功率和IO流量。Use graphs to display memory usage, CPU usage, job success rate, and IO traffic.
其中,存储设备磁盘并发测试为模拟并发访问,测试多用户并发访问同一个应用、模块、数据时,是否产生隐藏的并发问题,如内存泄漏、线程锁、资源争用等问题,该测试具体包括:Among them, the storage device disk concurrency test is to simulate concurrent access to test whether there are hidden concurrency problems such as memory leaks, thread locks, and resource contention when multiple users access the same application, module, and data concurrently. The test specifically includes :
启动对于存储设备的数据读取任务,在主机上同时运行对于同一预设大小,例如10G的文件/文件集合的预设数量,例如2个读取任务,并逐渐增加并发的任务数,最大任务数由HBA卡的性能或磁盘的性能决定;Start the data reading task for the storage device, and run it on the host at the same time. For the same preset size, such as 10G, the preset number of files/file collections, such as 2 reading tasks, and gradually increase the number of concurrent tasks, the maximum task The number is determined by the performance of the HBA card or the performance of the disk;
启动对于存储设备的数据写入任务,在主机上同时运行对于同一预设大小,例如10G的文件/文件集合的预设数量,例如2个读取任务,并逐渐增加并发的任务数,最大任务数由HBA卡的性能或磁盘的性能决定;Start the data writing task for the storage device, and run it on the host at the same time. For the same preset size, such as 10G, the preset number of files/file collections, such as 2 read tasks, and gradually increase the number of concurrent tasks, the maximum task The number is determined by the performance of the HBA card or the performance of the disk;
测试最大并发数、内存占用率、CPU占用率、作业成功率和IO流量,其中IO流量可以包括HBA卡、SAS卡流量;Test the maximum number of concurrency, memory usage, CPU usage, job success rate and IO traffic, where IO traffic can include HBA card, SAS card traffic;
用图表显示内存占用率、CPU占用率、作业成功率和IO流量。Use graphs to display memory usage, CPU usage, job success rate, and IO traffic.
其中,存储设备磁盘稳定性测试为通过给系统加载一定的业务压力的情况下,让应用持续运行一段时间,测试系统在这种条件下是否能够稳定运行,该测试具体包括:Among them, the storage device disk stability test is to let the application continue to run for a period of time under the condition of loading a certain business pressure on the system, and test whether the system can run stably under this condition. The test specifically includes:
在主机系统上启动对于存储设备的读取任务,连续运行预设时间,例如24小时的任务,测试其稳定性,查看读取任务运行是否正常;Start the reading task for the storage device on the host system, run the task continuously for a preset time, such as 24 hours, test its stability, and check whether the reading task is running normally;
在主机系统上启动对于存储设备的写入任务,连续运行预设时间,例如24小时的任务,测试其稳定性,查看写入任务运行是否正常;Start the writing task for the storage device on the host system, run the task continuously for a preset time, such as 24 hours, test its stability, and check whether the writing task is running normally;
测试内存占用率、CPU占用率和IO流量,其中IO流量可以包括HBA卡、SAS卡流量;Test memory usage, CPU usage and IO traffic, where IO traffic can include HBA card, SAS card traffic;
用图表显示内存占用率、CPU占用率、IO流量和任务完成时间。Use graphs to display memory usage, CPU usage, IO traffic and task completion time.
本发明通过在主机与存储之间进行兼容适配的基础实施测试、功能测试和性能测试,可以为不同型号和规格的主机和存储之间的兼容适配找到一套通用可行、标准化、规范化的测试方法,不仅提供了主机和存储组成的底层硬件系统之间的兼容性测试,亦提供稳定可靠的功能测试和性能测试,对整个系统进行全面深入的评估,从而保障了系统运行稳定性。The present invention can find a set of common, feasible, standardized and normalized compatibility and adaptation between hosts and storages of different models and specifications by performing the basic implementation test, function test and performance test of compatibility and adaptation between the host and the storage. The test method not only provides the compatibility test between the underlying hardware system composed of host and storage, but also provides stable and reliable functional test and performance test, and conducts a comprehensive and in-depth evaluation of the entire system, thus ensuring the stability of the system operation.
图2是本发明主机与存储兼容适配测试系统的架构示意图,如图2所示,包括:主机和存储设备,其中,Fig. 2 is a schematic diagram of the architecture of the host and storage compatibility test system of the present invention, as shown in Fig. 2, including: a host and a storage device, wherein,
主机,用于在主机与存储设备之间进行兼容适配的基础实施测试,该基础实施测试包括连接存储设备的板卡驱动识别测试;在主机与存储设备之间进行兼容适配的功能测试,该功能测试包括主机识别存储设备数据卷测试和存储设备磁盘上的文件操作测试;在主机与存储设备之间进行兼容适配的性能测试,该性能测试包括存储设备磁盘负载测试、存储设备磁盘压力测试、存储设备磁盘并发测试和存储设备磁盘稳定性测试。The host is used to perform a basic implementation test of compatibility and adaptation between the host and the storage device. The basic implementation test includes a board driver identification test for connecting the storage device; a functional test of compatibility and adaptation between the host and the storage device, The function test includes the host identification storage device data volume test and the file operation test on the storage device disk; the performance test of compatibility and adaptation between the host and the storage device, the performance test includes the storage device disk load test, the storage device disk pressure Test, storage device disk concurrency test and storage device disk stability test.
具体地,连接存储设备的板卡驱动识别测试可以包括主机总线适配器HBA卡、SAS卡识别测试,SAN、SAS相关参数测试和存储设备文件测试。Specifically, the card driver identification test for connecting the storage device may include host bus adapter HBA card, SAS card identification test, SAN, SAS related parameter test and storage device file test.
HBA卡、SAS卡等连接存储设备的板卡驱动识别测试在主机与存储兼容适配测试方法中已详细阐述,在此不赘述。The card driver identification test for connecting storage devices such as HBA cards and SAS cards has been described in detail in the host and storage compatibility and adaptation test method, so I won’t go into details here.
具体地,主机识别存储设备数据卷测试可以是存储设备磁盘上的LVM卷操作测试;存储设备磁盘上的文件操作测试可以包括存储设备文件系统的拷贝、移动和删除操作测试。Specifically, the host identification storage device data volume test may be an LVM volume operation test on the storage device disk; the file operation test on the storage device disk may include the copy, move and delete operation tests of the storage device file system.
主机识别存储设备数据卷测试和存储设备磁盘上的文件操作测试在主机与存储兼容适配测试方法中已详细阐述,在此不赘述。The host identification storage device data volume test and the file operation test on the storage device disk have been described in detail in the host and storage compatibility and adaptation test method, and will not be repeated here.
具体地,存储设备磁盘负载测试、存储设备磁盘压力测试、存储设备磁盘并发测试和存储设备磁盘稳定性测试在主机与存储兼容适配测试方法中已详细阐述,在此不赘述。Specifically, the storage device disk load test, storage device disk stress test, storage device disk concurrency test, and storage device disk stability test have been described in detail in the host-storage compatibility and adaptation test method, and will not be repeated here.
本发明通过在主机与存储之间进行兼容适配的基础实施测试、功能测试和性能测试,可以为不同型号和规格的主机和存储之间的兼容适配找到一套通用可行、标准化、规范化的测试方法,不仅提供了主机和存储组成的底层硬件系统之间的兼容性测试,亦提供稳定可靠的功能测试和性能测试,对整个系统进行全面深入的评估,从而保障了系统运行稳定性。The present invention can find a set of common, feasible, standardized and normalized compatibility and adaptation between hosts and storages of different models and specifications by performing the basic implementation test, function test and performance test of compatibility and adaptation between the host and the storage. The test method not only provides the compatibility test between the underlying hardware system composed of host and storage, but also provides stable and reliable functional test and performance test, and conducts a comprehensive and in-depth evaluation of the entire system, thus ensuring the stability of the system operation.
应当理解,虽然本说明书根据实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施方式中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。上文所列出的一系列的详细说明仅仅是针对本发明的可行性实施方式的具体说明,它们并非用于限制本发明的保护范围,凡未脱离本发明技艺精神所作的等效实施方式或变更均应包含在本发明的保护范围之内。It should be understood that although the description is described according to the implementations, not each implementation includes only an independent technical solution. This description of the description is only for clarity, and those skilled in the art should take the description as a whole, and each The technical solutions in the embodiments can also be properly combined to form other embodiments that can be understood by those skilled in the art. The series of detailed descriptions listed above are only specific descriptions for the feasible implementation modes of the present invention, and they are not used to limit the protection scope of the present invention. All changes should be included within the protection scope of the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410410755.9A CN104133750A (en) | 2014-08-20 | 2014-08-20 | Method and system for testing compatibility adaptability of host and storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410410755.9A CN104133750A (en) | 2014-08-20 | 2014-08-20 | Method and system for testing compatibility adaptability of host and storage device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104133750A true CN104133750A (en) | 2014-11-05 |
Family
ID=51806433
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410410755.9A Pending CN104133750A (en) | 2014-08-20 | 2014-08-20 | Method and system for testing compatibility adaptability of host and storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104133750A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106407016A (en) * | 2016-10-19 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Method and device for simulating multi-threading resource competition |
CN107423185A (en) * | 2017-08-04 | 2017-12-01 | 郑州云海信息技术有限公司 | A kind of method of testing and device of disk array and compatible mainframe adaptation |
CN108431778A (en) * | 2015-12-28 | 2018-08-21 | 亚马逊科技公司 | Management to virtual desktop Instances Pool |
CN109189333A (en) * | 2018-08-15 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of method, apparatus and system of hard disk adaptation |
CN109256173A (en) * | 2018-08-13 | 2019-01-22 | 中国航空无线电电子研究所 | On-board memory devices test macro |
CN109684137A (en) * | 2017-10-19 | 2019-04-26 | 航天信息股份有限公司 | A kind of method and system for being detected to target device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1760839A (en) * | 2004-10-12 | 2006-04-19 | 国际商业机器公司 | Apparatus, system, and method for facilitating port testing of a multi-port host adapter |
WO2011117528A1 (en) * | 2010-03-26 | 2011-09-29 | Bull Sas | Method, computer program, and device for validating task execution in scaleable computer systems |
CN102306121A (en) * | 2011-08-09 | 2012-01-04 | 广东电网公司电力科学研究院 | Virtual storage test method in intelligent scheduling technology |
CN103970570A (en) * | 2014-05-16 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Testing method for compatibility adaptation between disk array and mainframe |
-
2014
- 2014-08-20 CN CN201410410755.9A patent/CN104133750A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1760839A (en) * | 2004-10-12 | 2006-04-19 | 国际商业机器公司 | Apparatus, system, and method for facilitating port testing of a multi-port host adapter |
WO2011117528A1 (en) * | 2010-03-26 | 2011-09-29 | Bull Sas | Method, computer program, and device for validating task execution in scaleable computer systems |
CN102306121A (en) * | 2011-08-09 | 2012-01-04 | 广东电网公司电力科学研究院 | Virtual storage test method in intelligent scheduling technology |
CN103970570A (en) * | 2014-05-16 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Testing method for compatibility adaptation between disk array and mainframe |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108431778A (en) * | 2015-12-28 | 2018-08-21 | 亚马逊科技公司 | Management to virtual desktop Instances Pool |
CN106407016A (en) * | 2016-10-19 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Method and device for simulating multi-threading resource competition |
CN106407016B (en) * | 2016-10-19 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Method and device for simulating multithreading contention and robbery of resources |
CN107423185A (en) * | 2017-08-04 | 2017-12-01 | 郑州云海信息技术有限公司 | A kind of method of testing and device of disk array and compatible mainframe adaptation |
CN107423185B (en) * | 2017-08-04 | 2021-07-16 | 郑州云海信息技术有限公司 | A test method and device for compatibility and adaptation of disk array and host |
CN109684137A (en) * | 2017-10-19 | 2019-04-26 | 航天信息股份有限公司 | A kind of method and system for being detected to target device |
CN109256173A (en) * | 2018-08-13 | 2019-01-22 | 中国航空无线电电子研究所 | On-board memory devices test macro |
CN109189333A (en) * | 2018-08-15 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of method, apparatus and system of hard disk adaptation |
CN109189333B (en) * | 2018-08-15 | 2021-10-15 | 郑州云海信息技术有限公司 | A method, device and system for hard disk adaptation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104133750A (en) | Method and system for testing compatibility adaptability of host and storage device | |
US10198318B2 (en) | Storage apparatus having nonvolatile memory device, and nonvolatile memory device | |
KR101547317B1 (en) | System for detecting fail block using logic block address and data buffer address in storage test device | |
CN101373446B (en) | File system stress testing method | |
US10324794B2 (en) | Method for storage management and storage device | |
CN105893230A (en) | Method and device for detecting IOPS performance of hard disks | |
US20110040516A1 (en) | Test apparatus and test method for universal serial bus interface | |
CN103970570A (en) | Testing method for compatibility adaptation between disk array and mainframe | |
CN103927126B (en) | The collocation method of a kind of Disk Array and assembling and disk insertion process method | |
WO2016177067A1 (en) | Mobile phone memory expanding method and terminal | |
CN114518981A (en) | eMMC test method, device, readable storage medium and electronic equipment | |
US20140164845A1 (en) | Host computer and method for testing sas expanders | |
US8219858B2 (en) | Method for testing hard disks under an extensible firmware interface | |
CN102262589B (en) | Application server for realizing copying of hard disc driver and method | |
CN109445691A (en) | A kind of method and device improving FTL algorithm development and verification efficiency | |
CN114706719B (en) | A disk testing method and device based on FIO testing tool | |
CN114664372B (en) | A performance testing method, device, equipment and product for shingled hard disk | |
CN102567151A (en) | SAS (serial attached SCSI (small computer system interface)) hard disc test system and method under EFI (extensible firmware interface) environment | |
CN102305906B (en) | Chip testing method and device | |
CN111209146B (en) | RAID card aging test method and system | |
US20110296119A1 (en) | Stored Data Reading Apparatus, Method and Computer Apparatus | |
CN115373922A (en) | Device, method, terminal and medium for automatically testing SMR hard disks of different manufacturers | |
CN104102515A (en) | Method and server for processing logical unit number of plug-in storage equipment | |
CN106021081B (en) | A kind of device, server and method for testing RAID card performance | |
EP3557422A1 (en) | Method for accessing code sram, and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20141105 |