Method, device, equipment and medium for screening Raid slow disc

文档序号:1627683 发布日期:2020-01-14 浏览:6次 中文

阅读说明:本技术 一种Raid的慢盘筛选方法、装置、设备及介质 (Method, device, equipment and medium for screening Raid slow disc ) 是由 王少磊 郭静 于 2019-09-05 设计创作,主要内容包括:本申请公开了一种Raid的慢盘筛选方法,包括:对待测Raid进行测试,得到目标测试结果;对目标测试结果进行解析,得到目标解析结果;其中,目标解析结果包括待测Raid在测试状态下的IOPS、带宽以及最大响应延时;将目标解析结果与预设标准进行比较,以筛选得到待测Raid的慢盘;其中,预设标准为预先对待测Raid的IOPS、带宽以及最大响应延时所设置的标准。显然,通过本申请所提供的方法,可以对待测Raid进行更为全面的解析与筛选,由此就可以进一步提高在对待测Raid中的慢盘进行筛选过程中筛选结果的准确度。相应的,本申请所提供的一种Raid的慢盘筛选装置、设备及介质,同样具有上述有益效果。(The application discloses a method for screening a Raid slow disc, which comprises the following steps: testing the Raid to be tested to obtain a target test result; analyzing the target test result to obtain a target analysis result; the target analysis result comprises an IOPS (input/output System) of the Raid to be tested in a test state, a bandwidth and a maximum response delay; comparing the target analysis result with a preset standard to screen a slow disc of the Raid to be detected; the preset standard is a standard which is preset for the IOPS, the bandwidth and the maximum response delay of the Raid to be tested. Obviously, through the method provided by the application, the Raid to be tested can be analyzed and screened more comprehensively, so that the accuracy of the screening result in the screening process of the slow disk in the Raid to be tested can be further improved. Correspondingly, the Raid slow disc screening device, equipment and medium provided by the application also have the beneficial effects.)

1. A method for screening a Raid slow disc is characterized by comprising the following steps:

testing the Raid to be tested to obtain a target test result;

analyzing the target test result to obtain a target analysis result; the target analysis result comprises an IOPS (input/output System) of the Raid to be tested in a test state, a bandwidth and a maximum response delay;

comparing the target analysis result with a preset standard to screen and obtain the slow disc of the Raid to be detected; the preset standard is a standard which is preset for the IOPS, the bandwidth and the maximum response delay of the Raid to be tested.

2. The slow disc screening method according to claim 1, wherein the process of testing the Raid to be tested to obtain the target test result comprises:

and testing the Raid to be tested by using the HD Tune to obtain the target test result.

3. The slow disc screening method according to claim 1, wherein the process of testing the Raid to be tested to obtain the target test result comprises:

and testing the Raid to be tested by using FIO to obtain the target test result.

4. The slow disc screening method according to claim 3, wherein the step of testing the Raid to be tested by using the FIO to obtain the target test result comprises:

and testing the Raid to be tested by using the FIO under a Linux operating system to obtain the target test result.

5. The slow disc screening method according to claim 4, wherein the step of testing the Raid to be tested by using the FIO under the Linux operating system to obtain the target test result includes:

and under the Linux operating system, building a Python development platform, and testing the Raid to be tested by using the FIO to obtain the target test result.

6. The slow disc screening method according to claim 1, wherein after the step of comparing the target analysis result with a preset standard to screen the slow disc of the Raid to be tested, the method further comprises:

and storing a comparison result obtained by comparing the target analysis result with the preset standard in a log.

7. The slow disc screening method according to any one of claims 1 to 6, wherein after the step of comparing the target analysis result with a preset standard to screen the slow disc with the Raid to be tested, the method further comprises:

and if the slow disk exists in the Raid to be tested, acquiring a serial number of the slow disk in the Raid to be tested.

8. A Raid's slow disc screening device characterized in that includes:

the disk test module is used for testing the Raid to be tested to obtain a target test result;

the result analysis module is used for analyzing the target test result to obtain a target analysis result; the target analysis result comprises an IOPS (input/output System) of the Raid to be tested in a test state, a bandwidth and a maximum response delay;

the slow disc screening module is used for comparing the target analysis result with a preset standard so as to screen the slow disc of the Raid to be detected; the preset standard is a standard which is preset for the IOPS, the bandwidth and the maximum response delay of the Raid to be tested.

9. A Raid's slow disc screening apparatus, comprising:

a memory for storing a computer program;

a processor for implementing the steps of a method of slow disc screening by Raid according to any one of claims 1 to 7 when said computer program is executed.

10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the Raid slow disk screening method of any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of computer storage, in particular to a method, a device, equipment and a medium for screening a slow disk of Raid.

Background

Raid (Redundant Arrays of Independent Drives) can store and read data on a plurality of disks at the same time, so that Raid has a large data storage space and data throughput, and therefore Raid is widely applied in practical applications. However, if a slow disk appears in Raid, the overall operation performance of Raid is severely affected. In the prior art, in order to determine whether a slow disc exists in a Raid, an IOPS (Input/Output Operations Per Second) is generally used to screen the slow disc in the Raid, but the screening parameter of the slow disc screening method is single, so that the accuracy of the screening result of the slow disc in the Raid cannot be ensured. At present, no effective solution exists for the technical problem.

Therefore, how to further improve the accuracy of the screening result in the screening process of the Raid slow disk is a technical problem to be solved urgently by the technical personnel in the field.

Disclosure of Invention

In view of this, the present invention provides a method, an apparatus, a device and a medium for screening a Raid slow disc, so as to further improve the accuracy of a screening result in the screening process of the Raid slow disc. The specific scheme is as follows:

a method for slow disc screening of Raid comprises the following steps:

testing the Raid to be tested to obtain a target test result;

analyzing the target test result to obtain a target analysis result; the target analysis result comprises an IOPS (input/output System) of the Raid to be tested in a test state, a bandwidth and a maximum response delay;

comparing the target analysis result with a preset standard to screen and obtain the slow disc of the Raid to be detected; the preset standard is a standard which is preset for the IOPS, the bandwidth and the maximum response delay of the Raid to be tested.

Preferably, the process of testing the Raid to be tested to obtain the target test result includes:

and testing the Raid to be tested by using the HD Tune to obtain the target test result.

Preferably, the process of testing the Raid to be tested to obtain the target test result includes:

and testing the Raid to be tested by using FIO to obtain the target test result.

Preferably, the step of testing the Raid to be tested by using the FIO to obtain the target test result includes:

and testing the Raid to be tested by using the FIO under a Linux operating system to obtain the target test result.

Preferably, the step of testing the Raid to be tested by using the FIO under the Linux operating system to obtain the target test result includes:

and under the Linux operating system, building a Python development platform, and testing the Raid to be tested by using the FIO to obtain the target test result.

Preferably, after the process of comparing the target analysis result with a preset standard to screen and obtain the slow disk of the Raid to be detected, the method further includes:

and storing a comparison result obtained by comparing the target analysis result with the preset standard in a log.

Preferably, after the process of comparing the target analysis result with a preset standard to screen and obtain the slow disk of the Raid to be detected, the method further includes:

and if the slow disk exists in the Raid to be tested, acquiring a serial number of the slow disk in the Raid to be tested.

Correspondingly, the invention also discloses a Raid slow disc screening device, which comprises:

the disk test module is used for testing the Raid to be tested to obtain a target test result;

the result analysis module is used for analyzing the target test result to obtain a target analysis result; the target analysis result comprises an IOPS (input/output System) of the Raid to be tested in a test state, a bandwidth and a maximum response delay;

the slow disc screening module is used for comparing the target analysis result with a preset standard so as to screen the slow disc of the Raid to be detected; the preset standard is a standard which is preset for the IOPS, the bandwidth and the maximum response delay of the Raid to be tested.

Correspondingly, the invention also discloses a Raid slow disc screening device, which comprises:

a memory for storing a computer program;

a processor for implementing the steps of a Raid slow disk screening method as disclosed above when executing the computer program.

Accordingly, the present invention also discloses a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for slow disk screening of Raid as disclosed in the foregoing.

Therefore, in the invention, firstly testing the Raid to be tested to obtain a target test result; then, analyzing the target test result to obtain a target analysis result comprising the IOPS, the bandwidth and the maximum response delay of the Raid to be tested in the test state; and finally, comparing the target analysis result with a preset standard to screen and obtain a slow disc in the Raid to be tested. Obviously, in the invention, because the Raid to be tested is analyzed and screened from three parameter dimensions of the IOPS, the bandwidth and the maximum response delay, compared with the prior art in which the Raid to be tested is analyzed and screened from only one parameter dimension of the IOPS, the Raid to be tested can be more comprehensively screened, so that the accuracy of the screening result in the screening process of the slow disk in the Raid to be tested can be further improved. Correspondingly, the Raid slow disc screening device, equipment and medium provided by the invention also have the beneficial effects.

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 a method for screening a Slow pan of Raid according to an embodiment of the present invention;

FIG. 2 is a block diagram of a Raid slow disc screening device according to an embodiment of the present invention;

fig. 3 is a structural diagram of a Raid slow disc screening device according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1, fig. 1 is a flowchart of a slow disc screening method for Raid according to an embodiment of the present invention, where the slow disc screening method includes:

step S11: testing the Raid to be tested to obtain a target test result;

step S12: analyzing the target test result to obtain a target analysis result;

the target analysis result comprises an IOPS (input/output System) of the Raid to be tested in a test state, a bandwidth and a maximum response delay;

step S13: comparing the target analysis result with a preset standard to screen a slow disc of the Raid to be detected;

the preset standard is a standard which is preset for the IOPS, the bandwidth and the maximum response delay of the Raid to be tested.

In the embodiment, a method for screening a slow disc by Raid is provided. Specifically, firstly, testing the Raid to be tested to obtain a target test result; then, analyzing the target test result to obtain a target analysis result containing the IOPS, the bandwidth and the maximum response delay of the Raid to be tested in the test state; and finally, comparing the target analysis result with a preset standard, namely comparing the IOPS, the bandwidth and the maximum response delay in the target analysis result with the IOPS, the bandwidth and the maximum response delay preset in the preset standard for the Raid to be tested so as to screen and obtain the slow disk in the Raid to be tested.

It can be understood that, because the IOPS can represent the throughput capacity of the Raid to be tested on data, and the bandwidth and the maximum response delay can represent the data transmission capacity of the Raid to be tested, when the Raid to be tested is analyzed and screened from the IOPS, the bandwidth and the maximum response delay of the Raid to be tested in a test state, it is equivalent to detecting and analyzing the Raid to be tested from more dimensions, and thus, a more accurate and reliable target analysis result of the Raid to be tested can be obtained; and then, comparing the target analysis result with a preset standard to obtain a screening result, so that the accuracy of the screening result in the process of screening the slow disk in the Raid to be tested can be further improved.

Specifically, in practical application, the preset criteria may be set as: the IOPS of a single hard disk in the Raid to be measured cannot be lower than 200, the bandwidth of the single hard disk in the Raid to be measured cannot be lower than 200MBps, and under the specified conditions, the maximum response delay of the single hard disk in the Raid to be measured cannot be higher than 300 ms. It should be noted that the setting mode of the preset standard may be adaptively adjusted according to parameters such as the specific type of the Raid to be measured, the actual service requirement, and the like, and the adjustment mode is well known by those skilled in the art, so details thereof are not described herein.

As can be seen, in this embodiment, firstly, the Raid to be tested is tested, and a target test result is obtained; then, analyzing the target test result to obtain a target analysis result comprising the IOPS, the bandwidth and the maximum response delay of the Raid to be tested in the test state; and finally, comparing the target analysis result with a preset standard to screen and obtain a slow disc in the Raid to be tested. Obviously, in this embodiment, because the Raid to be tested is analyzed and screened from three parameter dimensions, i.e., the IOPS, the bandwidth, and the maximum response delay, compared with the prior art in which the Raid to be tested is analyzed and screened from only one parameter dimension of the IOPS, the Raid to be tested can be more comprehensively screened, so that the accuracy of the screening result in the process of screening the slow disk in the Raid to be tested can be further improved.

Based on the foregoing embodiments, this embodiment further describes and optimizes the technical solution, specifically, in step S11: the process of testing the Raid to be tested to obtain the target test result includes:

and testing the Raid to be tested by using the HD Tune to obtain a target test result.

Specifically, in practical application, the Raid to be tested can be tested through the HD Tune, and since the HD Tune can detect information such as the hard disk transmission speed, the health state, and the occupancy rate of the CPU of the Raid to be tested, and the HD Tune is also a piece of free software, when the HD Tune is used to test the Raid to be tested, the test cost required for testing the Raid to be tested can be relatively reduced.

Based on the foregoing embodiments, this embodiment further describes and optimizes the technical solution, specifically, in step S11: the process of testing the Raid to be tested to obtain the target test result includes:

and testing the Raid to be tested by using FIO to obtain a target test result.

In practical application, besides testing the Raid to be tested by using the HD Tune, testing the Raid to be tested by using the FIO (Flexible I/O Tester) because the FIO can support 19 different types of I/O engines, and the installation process of the FIO is simple, that is, the FIO is directly downloaded from the official website and decompressed, and then, a simple calling statement is input, so that the FIO can be directly used. Obviously, the arrangement mode can relatively improve the usability and universality in the process of testing the Raid to be tested.

Therefore, by the technical scheme provided by the embodiment, the testing process of the Raid to be tested is more flexible and diversified, and the testing process of the Raid to be tested is simpler and easier to perform.

Accordingly, the above step S12: the process of testing the Raid to be tested by using the FIO to obtain the target test result includes:

and testing the Raid to be tested by using FIO under a Linux operating system to obtain a target test result.

In this embodiment, the Raid to be tested is tested by using the FIO under the Linux operating system, and because the source code of the Linux operating system is completely open, the compiling amount required by the worker in the actual operating process can be greatly reduced, so that in the Linux operating system, when the Raid to be tested is tested by using the FIO, the testing process is simpler and easier, and therefore, the testing efficiency of the worker in testing the Raid to be tested can be relatively improved.

As a preferred embodiment, the above steps: the method comprises the following steps of testing the Raid to be tested by using FIO under a Linux operating system to obtain a target test result, wherein the process comprises the following steps:

and under a Linux operating system, building a Python development platform, and testing the Raid to be tested by using FIO to obtain a target test result.

Specifically, a Python development platform can be built under a Linux operating system, and the Raid to be tested is tested by using FIO, because the syntax of the Python script language is simple and flexible to edit, when the development platform is built by using the Python script language, a large amount of compiling work of workers can be reduced, and the compiling efficiency of the workers is improved.

In practical application, a Linux operating system can be filled in a storage system where the Raid to be tested is located, a Python development platform and an FIO are installed, then a preset IOPS and bandwidth requirement are input into an FIO test configuration script, and a preset maximum response delay and delay distribution requirement are input into a Python analysis script; then, the device identifier corresponding to the Raid to be tested is input into the test configuration script of the FIO, and the test period and the test model (for example, the block size, the sequence model, or the random module) are input into the test configuration script of the FIO. And finally, operating the FIO, and starting a test process to obtain a target test result when testing the Raid to be tested.

Therefore, the technical scheme provided by the embodiment can further improve the usability in the process of testing the Raid to be tested.

Based on the above embodiments, this embodiment further describes and optimizes the technical solution, specifically, the steps are as follows: comparing the target analysis result with a preset standard to screen the process of obtaining the slow disk of the Raid to be tested, the method further comprises the following steps:

and storing a comparison result obtained by comparing the target analysis result with a preset standard in a log.

In practical application, after the target analysis result is compared with the preset standard to obtain a corresponding comparison result, the comparison result can be stored in the log, so that a worker can further judge and analyze the working performance of the Raid to be detected according to the data stored in the log. In addition, the data stored in the log contains various state information of the Raid to be tested in the test state, so that when the Raid to be tested is abnormal, a worker can analyze the Raid to be tested more accurately according to the log.

Therefore, by the technical scheme provided by the embodiment, the overall performance of the Raid to be tested can be more conveniently evaluated and analyzed by a worker in the subsequent process.

Based on the foregoing embodiments, this embodiment further describes and optimizes the technical solution, specifically, in step S13: comparing the target analysis result with a preset standard to screen the process of obtaining the slow disk of the Raid to be tested, the method further comprises the following steps:

and if the to-be-detected Raid has the slow disc, acquiring a serial number of the slow disc in the to-be-detected Raid.

It can be understood that if a slow disk exists in the Raid to be measured, the operation efficiency of the Raid to be measured is greatly affected, and at this time, the slow disk in the Raid to be measured needs to be found and replaced by a normal disk, so that the overall operation efficiency of the Raid to be measured is improved.

Therefore, in practical application, if the serial number of the slow disc in the Raid to be measured is determined to exist in the Raid to be measured, at this time, the serial number of the slow disc in the Raid to be measured can be continuously obtained. When the worker obtains the serial number of the slow disc from the Raid to be tested, the worker can directly replace the slow disc in the Raid to be tested according to the serial number, so that a complicated step that the worker needs to manually find the position of the slow disc in the Raid to be tested can be omitted, and therefore the working efficiency of the worker can be further improved.

Referring to fig. 2, fig. 2 is a structural diagram of a Raid slow disc screening apparatus according to an embodiment of the present invention, where the slow disc screening apparatus includes:

the disk test module 21 is used for testing the Raid to be tested to obtain a target test result;

the result analysis module 22 is used for analyzing the target test result to obtain a target analysis result; the target analysis result comprises an IOPS (input/output System) of the Raid to be tested in a test state, a bandwidth and a maximum response delay;

the slow disc screening module 23 is used for comparing the target analysis result with a preset standard so as to screen a slow disc of the Raid to be detected; the preset standard is a standard which is preset for the IOPS, the bandwidth and the maximum response delay of the Raid to be tested.

The slow disc screening device for Raid provided by the embodiment of the invention has the beneficial effects of the slow disc screening method for Raid disclosed in the foregoing.

Referring to fig. 3, fig. 3 is a structural diagram of a Raid slow disc screening apparatus according to an embodiment of the present invention, where the slow disc screening apparatus includes:

a memory 32 for storing a computer program;

a processor 32 for implementing the steps of a Raid slow disk screening method as disclosed above when executing the computer program.

The slow disc screening equipment for Raid provided by the embodiment of the invention has the beneficial effects of the slow disc screening method for Raid disclosed in the foregoing.

Correspondingly, the embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when being executed by a processor, the computer program realizes the steps of the Raid slow disk screening method disclosed in the foregoing.

The computer-readable storage medium provided by the embodiment of the invention has the beneficial effects of the method for screening the slow disk of Raid disclosed in the foregoing.

The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.

Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The method, the device, the equipment and the medium for screening the Raid slow disk provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the above embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种虚拟磁盘迁移方法、装置、设备及可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类