CN107943633A - A kind of method and device of quick reproduction SAS card task abort problems - Google Patents
A kind of method and device of quick reproduction SAS card task abort problems Download PDFInfo
- Publication number
- CN107943633A CN107943633A CN201711216890.XA CN201711216890A CN107943633A CN 107943633 A CN107943633 A CN 107943633A CN 201711216890 A CN201711216890 A CN 201711216890A CN 107943633 A CN107943633 A CN 107943633A
- Authority
- CN
- China
- Prior art keywords
- read
- write
- hard disk
- task abort
- quick reproduction
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection 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
- G06F11/2221—Detection 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 to test input/output devices or peripheral units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Memory System Of A Hierarchy Structure (AREA)
- Debugging And Monitoring (AREA)
Abstract
A kind of method and device of quick reproduction SAS card task abort problems provided by the invention, the method include:S1:Build a linux system environment;S2:IO read-writes are carried out to hard disk;S3:Non- read-write IO is produced to hard disk;S4:Read-write IO and non-read-write IO is kept to be carried out at the same time, until producing task abort mistakes in system log.The device is arranged under linux system, and the device includes:IO generation modules are read and write, IO read-writes are carried out to hard disk for sending order;Non- read-write IO generation modules, for sending high-level command or complex command to hard disk, produce non-read-write IO.IO (fastpath) and non-read-write IO (nonfastpath) are read and write quickly to reappear task abort problems by fast parallel operation, improve test effect.
Description
Technical field
The present invention relates to server test field, specifically a kind of quick reproduction SAS card task abort problems
Method and device.
Background technology
With the rise of big data and the Internet, applications, the application range of server is more and more wider.Client is for high speed
The demand of data storage is increasing, and RAID card plays the role of that its is irreplaceable in secure data area, but relative to SAS
For card, to property loss of energy also bigger, so SAS cards are in practical applications because the high speed of its IO has irreplaceable work
With.
Task abort problems are typically all system or SAS controller for IO responses not in time, caused by order
Disconnected, it is formed with very big relation with processor of the SAS controller for FIFO (first in first out).
Existing traditional test methods, are all states when simulating normal use, but in actual application environment, it is non-
It is very low to read and write the frequency that IO is produced, causes the generation probability of task abort problems also than relatively low, for task abort problems
Test it is ineffective.
The content of the invention
To solve the above-mentioned problems, there is provided a kind of method and device of quick reproduction SAS card task abort problems, leads to
Cross that fast parallel operation read-write IO (fastpath) and non-read-write IO (nonfastpath) are quick to be reappeared task abort and ask
Topic, improves test effect.
An embodiment of the present invention provides a kind of method of quick reproduction SAS card task abort problems, the method bag
Include:
S1:Build a linux system environment;
S2:IO read-writes are carried out to hard disk;
S3:Non- read-write IO is produced to hard disk;
S4:Read-write IO and non-read-write IO is kept to be carried out at the same time, until producing task abort mistakes in system log.
Further, the specific implementation process of step S2 is:
S21:Configure FIO environment;
S22:Fio scripts are run, IO read-writes are carried out to hard disk by fio orders.
Further, the specific implementation process of step S3 is:Sync_cache is run, is sent out by sg_raw orders to hard disk
High-level command is sent, produces non-read-write IO.
Further, in step s3, the time of synchronous cache is adjusted by changing the sleep times.
The embodiment of the present invention additionally provides a kind of device of quick reproduction SAS card task abort problems, the device
It is arranged under linux system, the device includes:
IO generation modules are read and write, IO read-writes are carried out to hard disk for sending order;
Non- read-write IO generation modules, for sending high-level command or complex command to hard disk, produce non-read-write IO.
Further, the read-write IO generation modules are fio scripts, for generating fio orders.
Further, the non-read-write IO generation modules are sync_cache scripts, for generating sg_raw orders.
Further, the device further includes:
Clock synchronization module, for adjusting the time of non-read-write IO so that hard disk receive read-write IO and non-read-write IO when
Between put it is synchronous.
The effect provided in the content of the invention is only the effect of embodiment, rather than whole effects that invention is all, above-mentioned
A technical solution in technical solution has the following advantages that or beneficial effect:
1st, read and write by the actual IO of fio orders simulation, hard disk smart etc. is obtained in sg_raw orders simulation practical business
Non- read-write IO caused by information, is performed by the synchronization of fio and sg_raw, quickly reappears task abort problems, can be with
Fast verification for issue-resolution imports, and can be also used for quickly screening the SAS cards not gone wrong,
The failure for carrying out early stage is evaded.
2nd, the time of synchronous cache is adjusted by changing the sleep times, farthest improves sg_raw and produce non-reading
The frequency of IO is write, farthest to improve the probability of reproduction problem, improves test quality.
Brief description of the drawings
Fig. 1 is the method flow diagram of the embodiment of the present invention 1;
Fig. 2 is the schematic diagram of device of the embodiment of the present invention 1;
Fig. 3 is the method flow diagram of the embodiment of the present invention 2;
Fig. 4 is the schematic diagram of device of the embodiment of the present invention 2.
Embodiment
In order to clarify the technical characteristics of the invention, below by embodiment, and its attached drawing is combined, to this hair
It is bright to be described in detail.Following disclosure provides many different embodiments or example is used for realizing the different knots of the present invention
Structure.In order to simplify disclosure of the invention, hereinafter the component and setting of specific examples are described.In addition, the present invention can be with
Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated
Relation between various embodiments are discussed and/or are set.It should be noted that illustrated component is not necessarily to scale in the accompanying drawings
Draw.Present invention omits the description to known assemblies and treatment technology and process to avoid the present invention is unnecessarily limiting.
Embodiment 1
As shown in Figure 1, a kind of method of quick reproduction SAS card task abort problems of the embodiment of the present invention 1, the side
Method includes:
S1:Build a linux system environment.Environmental structure, installs Redhat systems, system disk is onboard or is installed on
Under SAS cards, to this no requirement (NR).
S2:IO read-writes are carried out to hard disk, specific implementation process is:
S21:Configure necessary FIO environment, such as the installation by the dependence bag such as libaio.
S22:Fio scripts are run, IO read-writes are carried out to hard disk by fio orders, give hard disk certain IO pressure.
S3:Non- read-write IO is produced to hard disk, specific implementation process is:Run sync_cache, by sg_raw orders to
Hard disk sends high-level command, produces non-read-write IO.In addition, non-read-write IO also has such as hard disk to reset, collect hard disk Smart information
Etc. complex command.
S4:Read-write IO and non-read-write IO is kept to be carried out at the same time, with the progress of read-write IO and non-read-write IO, at some
Between point hard disk can receive at the same time read-write IO and non-read-write I/O command, hard disk can not handle the read-write IO sent and non-read-write at the same time
IO, will see task abort mistakes in the message daily records of system at this time.
As shown in Fig. 2, the embodiment of the present invention additionally provides a kind of device of quick reproduction SAS card task abort problems,
The device is arranged under linux system, and the device includes read-write IO generation modules and non-read-write IO generation modules.
Read-write IO generation modules are mainly used for sending order to hard disk progress IO read-writes, herein using fio scripts, are used for
Generate fio orders.
Non- read-write IO generation modules are mainly used for sending high-level command or complex command to hard disk, produce non-read-write IO.
Here sync_cache scripts, for generating sg_raw orders.
Embodiment 2
As shown in figure 3, a kind of method of quick reproduction SAS card task abort problems of the embodiment of the present invention 2, the side
Method includes:
S1:Build a linux system environment.Environmental structure, installs Redhat systems, system disk is onboard or is installed on
Under SAS cards, to this no requirement (NR).
S2:IO read-writes are carried out to hard disk, specific implementation process is:
S21:Configure necessary FIO environment, such as the installation by the dependence bag such as libaio.
S22:Fio scripts are run, IO read-writes are carried out to hard disk by fio orders, give hard disk certain IO pressure.
S3:Non- read-write IO is produced to hard disk, and the time of synchronous cache is adjusted by changing the sleep times.It is specific real
Now process is:Sync_cache is run, high-level command is sent to hard disk by sg_raw orders, produces non-read-write IO, meanwhile, lead to
The modification sleep times are spent to adjust the time of synchronous cache so that the synchronous execution of fio and sg_raw, is farthest improved
Sg_raw produces the frequency of non-read-write IO.In addition, non-read-write IO also has such as hard disk to reset, collects hard disk Smart information etc. again
Miscellaneous order.
S4:Read-write IO and non-read-write IO is kept to be carried out at the same time, with the progress of read-write IO and non-read-write IO, at some
Between point hard disk can receive at the same time read-write IO and non-read-write I/O command, hard disk can not handle the read-write IO sent and non-read-write at the same time
IO, will see task abort mistakes in the message daily records of system at this time.
As shown in figure 4, the embodiment of the present invention 2 additionally provides a kind of device of quick reproduction SAS card task abort problems,
The device is arranged under linux system, and the device includes read-write IO generation modules and non-read-write IO generation modules.
Read-write IO generation modules are mainly used for sending order to hard disk progress IO read-writes, herein using fio scripts, are used for
Generate fio orders.
Non- read-write IO generation modules are mainly used for sending high-level command or complex command to hard disk, produce non-read-write IO.
Here sync_cache scripts, for generating sg_raw orders.
Clock synchronization module, for adjusting the time of non-read-write IO so that hard disk receive read-write IO and non-read-write IO when
Between put it is synchronous.Mainly by adjusting the time of synchronous cache by changing the sleep times.
Although specification and drawings and examples have been carried out being described in detail to the invention, this area skill
Art personnel should be appreciated that still can be to the invention technical scheme is modified or replaced equivalently;And all do not depart from wound of the present invention
The technical solution for the spirit and scope made and its improvement, it is encompassed by among the protection domain of the invention patent.
Claims (8)
1. a kind of method of quick reproduction SAS card task abort problems, it is characterized in that:The method includes:
S1:Build a linux system environment;
S2:IO read-writes are carried out to hard disk;
S3:Non- read-write IO is produced to hard disk;
S4:Read-write IO and non-read-write IO is kept to be carried out at the same time, until producing task abort mistakes in system log.
2. a kind of method of quick reproduction SAS card task abort problems according to claim 1, it is characterized in that:Step
The specific implementation process of S2 is:
S21:Configure FIO environment;
S22:Fio scripts are run, IO read-writes are carried out to hard disk by fio orders.
3. a kind of method of quick reproduction SAS card task abort problems according to claim 1, it is characterized in that:Step
The specific implementation process of S3 is:Sync_cache is run, high-level command is sent to hard disk by sg_raw orders, produces non-read-write
IO。
4. a kind of method of quick reproduction SAS card task abort problems according to claim 3, it is characterized in that:In step
In rapid S3, the time of synchronous cache can be adjusted by changing the sleep times.
5. a kind of device of quick reproduction SAS card task abort problems, it is characterized in that:The device is arranged on Linux systems
Under system, the device includes:
IO generation modules are read and write, IO read-writes are carried out to hard disk for sending order;
Non- read-write IO generation modules, for sending high-level command or complex command to hard disk, produce non-read-write IO.
6. a kind of device of quick reproduction SAS card task abort problems according to claim 5, it is characterized in that:It is described
Read-write IO generation modules be fio scripts, for generating fio orders.
7. a kind of device of quick reproduction SAS card task abort problems according to claim 5, it is characterized in that:It is described
Non- read-write IO generation modules be sync_cache scripts, for generating sg_raw orders.
8. a kind of device of quick reproduction SAS card task abort problems according to claim 5-7 any one, it is special
Sign is:The device further includes:
Clock synchronization module, for adjusting the time of non-read-write IO so that hard disk receives the time point of read-write IO and non-read-write IO
It is synchronous.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711216890.XA CN107943633B (en) | 2017-11-28 | 2017-11-28 | Method and device for rapidly reproducing task abort problem of SAS card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711216890.XA CN107943633B (en) | 2017-11-28 | 2017-11-28 | Method and device for rapidly reproducing task abort problem of SAS card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107943633A true CN107943633A (en) | 2018-04-20 |
CN107943633B CN107943633B (en) | 2021-06-29 |
Family
ID=61949431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711216890.XA Active CN107943633B (en) | 2017-11-28 | 2017-11-28 | Method and device for rapidly reproducing task abort problem of SAS card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107943633B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040210716A1 (en) * | 2003-04-21 | 2004-10-21 | Aaeon Technology Inc. | Apparatus and method for simulating virtual floppy disk and virtual hard disk |
US20050120004A1 (en) * | 2003-10-17 | 2005-06-02 | Stata Raymond P. | Systems and methods for indexing content for fast and scalable retrieval |
CN102984002A (en) * | 2012-11-27 | 2013-03-20 | 华为技术有限公司 | Method and device for processing input/output (I/O) overtime |
CN103390066A (en) * | 2013-08-08 | 2013-11-13 | 上海新炬网络技术有限公司 | Database overall automation optimizing early warning device and processing method thereof |
US20140090065A1 (en) * | 2012-09-26 | 2014-03-27 | International Business Machines Corporation | Method and Apparatus for Paralleling and Distributing Static Source Code Security Analysis Using Loose Synchronization |
CN104794043A (en) * | 2015-03-18 | 2015-07-22 | 深圳市杰和科技发展有限公司 | Control method for achieving light-up indication of server hard disk state |
CN106910532A (en) * | 2017-02-23 | 2017-06-30 | 郑州云海信息技术有限公司 | A kind of method of automatic test SSD performances |
CN106970866A (en) * | 2017-03-13 | 2017-07-21 | 郑州云海信息技术有限公司 | A kind of disk monitor system and method |
-
2017
- 2017-11-28 CN CN201711216890.XA patent/CN107943633B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040210716A1 (en) * | 2003-04-21 | 2004-10-21 | Aaeon Technology Inc. | Apparatus and method for simulating virtual floppy disk and virtual hard disk |
US20050120004A1 (en) * | 2003-10-17 | 2005-06-02 | Stata Raymond P. | Systems and methods for indexing content for fast and scalable retrieval |
US20140090065A1 (en) * | 2012-09-26 | 2014-03-27 | International Business Machines Corporation | Method and Apparatus for Paralleling and Distributing Static Source Code Security Analysis Using Loose Synchronization |
CN102984002A (en) * | 2012-11-27 | 2013-03-20 | 华为技术有限公司 | Method and device for processing input/output (I/O) overtime |
CN103390066A (en) * | 2013-08-08 | 2013-11-13 | 上海新炬网络技术有限公司 | Database overall automation optimizing early warning device and processing method thereof |
CN104794043A (en) * | 2015-03-18 | 2015-07-22 | 深圳市杰和科技发展有限公司 | Control method for achieving light-up indication of server hard disk state |
CN106910532A (en) * | 2017-02-23 | 2017-06-30 | 郑州云海信息技术有限公司 | A kind of method of automatic test SSD performances |
CN106970866A (en) * | 2017-03-13 | 2017-07-21 | 郑州云海信息技术有限公司 | A kind of disk monitor system and method |
Also Published As
Publication number | Publication date |
---|---|
CN107943633B (en) | 2021-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106708711B (en) | log information output control method and device | |
US20160320451A1 (en) | Simulation verification method for fpga function modules and system thereof | |
CN105335278A (en) | Testing method and device | |
CN105022656A (en) | Management method and device of virtual machine snapshot | |
CN109684150B (en) | Performance test system, test method and simulation platform of storage particle controller | |
WO2019137567A3 (en) | Method and device for avoiding double-spending problem in read-write set-model-based blockchain technology | |
CN108984331A (en) | A kind of server hard disc number display device, method in order | |
CN107943723A (en) | A kind of hard disc of computer recognition methods and system | |
CN114528792A (en) | Chip verification method and device, electronic equipment and storage medium | |
CN106371961A (en) | Device and method for testing bus recorder | |
CN109614035A (en) | A kind of method and system for supporting settlement server storage medium sequence flexible configuration | |
CN114077518A (en) | Data snapshot method, device, equipment and storage medium | |
CN107943633A (en) | A kind of method and device of quick reproduction SAS card task abort problems | |
CN107358980A (en) | A kind of method of automatic test SSD delays | |
US10176087B1 (en) | Autogenic test framework | |
CN101883019A (en) | Test method for verifying video application of storage server | |
US20220004594A1 (en) | Thin-layer webpage cloning for off-line demonstration | |
CN106066820B (en) | Verify automated testing method and system that carry restores volume | |
US10169076B2 (en) | Distributed batch job promotion within enterprise computing environments | |
CN109783032A (en) | A kind of distributed storage accelerating method and device based on Heterogeneous Computing | |
CN114218100A (en) | Business model testing method, device, system, equipment, medium and program product | |
CN111831502A (en) | Enterprise-level hard disk energy efficiency ratio testing method and system | |
CN112486460A (en) | Method, system, device and medium for automatically importing interface document | |
CN107153590A (en) | A kind of method of automatic test disk performance in the case of identification is out of order | |
CN104834613A (en) | Computer system and method used for accessing virtual machine |
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 |