CN111124773A - Batch volume IO read-write test method, system and equipment based on vdbech - Google Patents

Batch volume IO read-write test method, system and equipment based on vdbech Download PDF

Info

Publication number
CN111124773A
CN111124773A CN201911156651.9A CN201911156651A CN111124773A CN 111124773 A CN111124773 A CN 111124773A CN 201911156651 A CN201911156651 A CN 201911156651A CN 111124773 A CN111124773 A CN 111124773A
Authority
CN
China
Prior art keywords
volume
read
write
batch
vdbech
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.)
Withdrawn
Application number
CN201911156651.9A
Other languages
Chinese (zh)
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 CN201911156651.9A priority Critical patent/CN111124773A/en
Publication of CN111124773A publication Critical patent/CN111124773A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Abstract

The invention provides a batch volume IO read-write test method, a system and equipment based on a vdbech, which comprises the following steps: creating volumes in batches according to test requirements; mapping the volume created in batch to a host; modifying the vbtech configuration file on the host; and operating the vdbech, and performing IO read-write on the batch volume. According to the invention, a simple program is written in the shell language, the creation of the batch volume and the IO reading and writing of the batch volume are realized, the manual creation time is saved, and the research, development and test efficiency is improved.

Description

Batch volume IO read-write test method, system and equipment based on vdbech
Technical Field
The invention relates to the technical field of storage device testing, in particular to a method, a system and a device for IO read-write testing of batch volumes based on a vdbech.
Background
Creating a large number of multiple types of volumes on a storage device and performing IO read and write operations on these volumes in bulk, respectively, is a very time consuming matter.
The storage system is Linux based and Shell is a command line interpreter that provides the user with an interface system level program that sends requests to the Linux kernel to run programs, which the user can use to start, suspend, stop or even write programs. Shell is also a programming language with quite powerful functions, and is easy to write, debug and have stronger flexibility. Shell is a script language for explaining execution, and Linux system commands can be directly called in the Shell. The vdbech is an I/O workload generator that verifies data integrity and measures the performance of direct attach and network attached storage. The method is a free tool, is easy to use, is often used for testing and benchmark testing, and can also use the vdbech to test the read-write performance of a disk and a file system.
Based on the above problems and theoretical support, how to create multiple types of volumes in a storage system in batch by using shell language, and perform automatic IO read-write and test on the batch volumes by using a Vdbench tool is a problem to be solved urgently.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a method, a system, and a device for testing IO read-write of batch volumes based on vddback, which can implement creation of batch volumes and IO read-write of batch volumes, save manual creation time, and improve research and development and testing efficiency.
In order to achieve the purpose, the invention is realized by the following technical scheme: a batch volume IO read-write test method based on vdbech comprises the following steps:
creating volumes in batches according to test requirements;
mapping the volume created in batch to a host;
modifying the vbtech configuration file on the host;
and operating the vdbech, and performing IO read-write on the batch volume.
Further, the batch creating of the volumes according to the test requirements includes:
creating a volume on a storage GUI according to a preset volume type and volume capacity according to test requirements;
acquiring a creating parameter and a command according to the page popup frame;
and writing a program for creating the volume in batches by using the shell language and executing the program.
Further, the bulk creation of volumes includes:
creating ordinary volumes in batches and/or creating compressed volumes in batches.
Further, the mapping the volume created in batch to the host specifically includes:
the volume is mapped to the host of the client on the storage GUI.
Further, the modifying of the vddnch configuration file on the host specifically includes:
inquiring the name of the mapping volume through a mulutipath-ll command;
the parameters of the vddnch profile are modified on the host,
sd=default,openflags=o_direct
sd=sd1,lun=/dev/dm-*,count=(2,200),
and taking dm-2 as a first mapping volume, and performing IO read-write on 200 mapping volumes from dm-2 to dm-201 in total.
Further, the operating of the vdbech, and the IO reading and writing of the batch volume specifically comprises:
and operating the vdbench, and executing IO read-write on 200 mapping volumes from dm-2 to dm-201 by the vdbench according to the parameters of the configuration file.
Correspondingly, the invention also discloses a batch volume IO read-write test system based on the vdbech, which comprises the following components:
the creating unit is used for creating the volumes in batches according to the test requirements;
the mapping unit is used for mapping the volume created in batches to the host;
the configuration unit is used for modifying the vbtech configuration file on the host computer;
and the read-write execution unit is used for operating the vdbech and carrying out IO read-write on the batch volume.
Correspondingly, the invention also discloses batch volume IO read-write test equipment based on the vdbech, which comprises the following components:
a memory for storing a computer program;
and the processor is used for realizing the steps of the batch volume IO read-write test method based on the vddbench when the computer program is executed.
Compared with the prior art, the invention has the beneficial effects that: the invention provides a batch volume IO read-write test method, system and device based on a vdbench, wherein a simple program is compiled by a shell language to realize the creation of batch volumes; a large number of volumes are mapped to a client side (simulation can be carried out by a server) on a storage, and then the client side is provided with the vdbech to carry out IO read-write operation of the batch volumes. The method and the device realize the creation of the batch volumes and the IO read-write of the batch volumes, save the manual creation time and improve the research, development and test efficiency.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of the method of the present invention.
Fig. 2 is a system block diagram of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings.
As shown in fig. 1, a batch volume IO read-write test method based on vddbech includes the following steps:
s1: and creating volumes in batches according to the test requirements.
Firstly, a needed volume is created on a storage GUI according to needs, and the type, the volume capacity and the like of the volume can be specified according to actual needs; and acquiring creating parameters and commands according to the page popup frame.
Then, a program for creating volumes in batches is written in the shell language. The program script content is as follows:
bulk creation of ordinary volumes (100 50G):
for i in{1..100}
do
mcsop mdvdisk–mdiskgrp 0–name vol$i–size 536870912000–unit b
done
volume creation compressed volumes (100 50G):
for i in{1..100}
do
mcsop mkvdisk–autoexpand–compressed–mdiskgrp 1–name cmppool1_$i–rsize
2%-size 536870912000–unit b–warning 80%
Done
s2: the volume created in bulk is mapped to the host. Specifically a host that maps volumes to clients on a storage GUI.
S3: the vddbech configuration file is modified on the host.
Firstly, inquiring the name of a mapping volume through a mulutipath-ll command; the vddnch configuration file is then modified. Taking dm-2 as the first mapping volume, and 200 mapping volumes in total as an example, the specific parameters are:
sd=default,openflags=o_direct
sd=sd1,lun=/dev/dm-*,count=(2,200)
and modifying the configuration file according to the parameters to realize IO reading and writing from dm-2 to dm-201.
S4: and operating the vdbech, and performing IO read-write on the batch volume.
And operating the vdbench, and executing IO read-write on 200 mapping volumes from dm-2 to dm-201 by the vdbench according to the parameters of the configuration file modified in the last step.
Correspondingly, as shown in fig. 2, the present invention also discloses a batch volume IO read-write test system based on the vdbech, which includes:
and the creating unit is used for creating the volumes in batches according to the test requirements.
And the mapping unit is used for mapping the volume created in batches to the host.
And the configuration unit is used for modifying the vbtech configuration file on the host.
And the read-write execution unit is used for operating the vdbech and carrying out IO read-write on the batch volume.
Correspondingly, the invention also discloses batch volume IO read-write test equipment based on the vdbech, which comprises the following components:
a memory for storing a computer program;
and the processor is used for realizing the steps of the batch volume IO read-write test method based on the vddbench when the computer program is executed.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention. The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided by the present invention, it should be understood that the disclosed system, system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units are integrated into one functional module.
The invention is further described with reference to the accompanying drawings and specific embodiments. It should be understood that these examples are for illustrative purposes only and are not intended to limit the scope of the present invention. Further, it should be understood that various changes or modifications of the present invention may be made by those skilled in the art after reading the teaching of the present invention, and these equivalents also fall within the scope of the present application.

Claims (8)

1. A batch volume IO read-write test method based on vdbech is characterized by comprising the following steps:
creating volumes in batches according to test requirements;
mapping the volume created in batch to a host;
modifying the vbtech configuration file on the host;
and operating the vdbech, and performing IO read-write on the batch volume.
2. The vdbech-based batch volume IO read-write testing method according to claim 1, wherein the batch volume creation according to the testing requirement comprises:
creating a volume on a storage GUI according to a preset volume type and volume capacity according to test requirements;
acquiring a creating parameter and a command according to the page popup frame;
and writing a program for creating the volume in batches by using the shell language and executing the program.
3. The vdbech-based bulk volume IO read-write testing method according to claim 1 or 2, wherein the bulk creation of the volume includes:
creating ordinary volumes in batches and/or creating compressed volumes in batches.
4. The vdbech-based batch volume IO read-write testing method according to claim 1, wherein the mapping the volume created in batch to the host specifically comprises:
the volume is mapped to the host of the client on the storage GUI.
5. The mdbench-based batch volume IO read-write testing method according to claim 1, wherein the modifying of the mdbench configuration file on the host specifically is:
inquiring the name of the mapping volume through a mulutipath-ll command;
the parameters of the vddnch profile are modified on the host,
sd=default,openflags=o_direct
sd=sd1,lun=/dev/dm-*,count=(2,200),
and taking dm-2 as a first mapping volume, and performing IO read-write on 200 mapping volumes from dm-2 to dm-201 in total.
6. The mdbench-based batch volume IO read-write testing method according to claim 5, wherein the operating of the mdbench and the IO read-write of the batch volume specifically include:
and operating the vdbench, and executing IO read-write on 200 mapping volumes from dm-2 to dm-201 by the vdbench according to the parameters of the configuration file.
7. The utility model provides a volume IO reads and writes test system based on vdbech, its characterized in that includes:
the creating unit is used for creating the volumes in batches according to the test requirements;
the mapping unit is used for mapping the volume created in batches to the host;
the configuration unit is used for modifying the vbtech configuration file on the host computer;
and the read-write execution unit is used for operating the vdbech and carrying out IO read-write on the batch volume.
8. The utility model provides a volume IO reads and writes test equipment based on vdbech, its characterized in that includes:
a memory for storing a computer program;
a processor for implementing the steps of the vdbench-based batch volume IO read-write test method according to any one of claims 1 to 6 when executing the computer program.
CN201911156651.9A 2019-11-22 2019-11-22 Batch volume IO read-write test method, system and equipment based on vdbech Withdrawn CN111124773A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911156651.9A CN111124773A (en) 2019-11-22 2019-11-22 Batch volume IO read-write test method, system and equipment based on vdbech

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911156651.9A CN111124773A (en) 2019-11-22 2019-11-22 Batch volume IO read-write test method, system and equipment based on vdbech

Publications (1)

Publication Number Publication Date
CN111124773A true CN111124773A (en) 2020-05-08

Family

ID=70496310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911156651.9A Withdrawn CN111124773A (en) 2019-11-22 2019-11-22 Batch volume IO read-write test method, system and equipment based on vdbech

Country Status (1)

Country Link
CN (1) CN111124773A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597058A (en) * 2021-01-08 2021-04-02 北京联创信安科技股份有限公司 Web page testing method, device, equipment and storage medium based on volume creation
CN112749069A (en) * 2020-12-25 2021-05-04 河南创新科信息技术有限公司 Method for detecting file stability by utilizing vbbech circular running and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112749069A (en) * 2020-12-25 2021-05-04 河南创新科信息技术有限公司 Method for detecting file stability by utilizing vbbech circular running and computer readable storage medium
CN112597058A (en) * 2021-01-08 2021-04-02 北京联创信安科技股份有限公司 Web page testing method, device, equipment and storage medium based on volume creation

Similar Documents

Publication Publication Date Title
US10296217B2 (en) Techniques to configure a solid state drive to operate in a storage mode or a memory mode
US9507688B2 (en) Execution history tracing method
CN103049375B (en) A kind of camera on-line debugging method
CN110941395B (en) Dynamic random access memory, memory management method, system and storage medium
CN111124773A (en) Batch volume IO read-write test method, system and equipment based on vdbech
CN101739289A (en) Method and device for setting display mode in Linux virtual machine
CN109324874B (en) Method, system and device for importing virtual machine memory snapshot into block device
CN105512031A (en) Mobile terminal and automatic test method
CN114168397A (en) Method, device and equipment for testing performance of solid state disk and storage medium
CN113032246B (en) SSD firmware operation method and device, readable storage medium and electronic equipment
CN205983448U (en) A control chip and solid state hard drives for solid state hard drives
CN103907108A (en) Flash sharing method, controller and system
JP2006221630A (en) Log acquisition method and program, and storage medium
CN109344083B (en) Program debugging method, device and equipment and readable storage medium
CN114138424B (en) Virtual machine memory snapshot generation method and device and electronic equipment
CN109165174A (en) A kind of hardware information acquisition method, system and electronic equipment and storage medium
CN112417802B (en) Method, system, equipment and storage medium for simulating storage chip
CN114442930A (en) Method and device for controlling group disk array, electronic equipment and readable storage medium
CN203720863U (en) Large-capacity-USIM mass-storage issuing device
CN113220368A (en) Storage client resource isolation method, system, terminal and storage medium
CN111813673A (en) Hard disk filling test method and system
CN112885403A (en) Function test method, device and equipment of Flash controller
CN112463645A (en) Test case scheduling method, device, terminal and storage medium
CN111078384A (en) Method and device for migrating core data, computer equipment and storage medium
CN203241856U (en) Desktop terminal based on cloud computing service

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200508