CN105204967A - Method and device for detecting hard disc - Google Patents

Method and device for detecting hard disc Download PDF

Info

Publication number
CN105204967A
CN105204967A CN201510603061.1A CN201510603061A CN105204967A CN 105204967 A CN105204967 A CN 105204967A CN 201510603061 A CN201510603061 A CN 201510603061A CN 105204967 A CN105204967 A CN 105204967A
Authority
CN
China
Prior art keywords
hard disk
measured
tested
value
detected value
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
Application number
CN201510603061.1A
Other languages
Chinese (zh)
Other versions
CN105204967B (en
Inventor
梁志春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
IEIT Systems Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510603061.1A priority Critical patent/CN105204967B/en
Publication of CN105204967A publication Critical patent/CN105204967A/en
Application granted granted Critical
Publication of CN105204967B publication Critical patent/CN105204967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

本发明提供了一种检测硬盘的方法及装置,该方法,包括:S1:确定目标硬盘;S2:分别检测所述目标硬盘与待测服务器的每个硬盘连接模块连接时的性能参数的第一检测值;S3:根据每个硬盘连接模块对应的第一检测值,判断所述待测服务器上的每个硬盘连接模块是否均符合要求,如果是,则执行步骤S4,否则,调整不符合要求的硬盘连接模块,调整完成后,返回步骤S2;S4:将每个硬盘连接模块与对应的待测硬盘连接;S5:检测每个待测硬盘,确定每个待测硬盘的性能参数的第二检测值。本发明提供了一种检测硬盘的方法及装置,能够使得检测出的硬盘性能更加准确。

The present invention provides a method and device for detecting a hard disk. The method includes: S1: determining the target hard disk; S2: respectively detecting the first performance parameter when the target hard disk is connected to each hard disk connection module of the server to be tested. Detection value; S3: According to the first detection value corresponding to each hard disk connection module, judge whether each hard disk connection module on the server to be tested meets the requirements, if yes, perform step S4, otherwise, the adjustment does not meet the requirements After the adjustment is completed, return to step S2; S4: connect each hard disk connection module to the corresponding hard disk to be tested; S5: detect each hard disk to be tested, and determine the second step of the performance parameter of each hard disk to be tested detection value. The invention provides a method and device for detecting a hard disk, which can make the detected performance of the hard disk more accurate.

Description

一种检测硬盘的方法及装置Method and device for detecting hard disk

技术领域 technical field

本发明涉及计算机技术领域,特别涉及一种检测硬盘的方法及装置。 The invention relates to the technical field of computers, in particular to a method and device for detecting a hard disk.

背景技术 Background technique

随着计算机技术和网络技术的快速发展,每时每刻都在产生大量的数据。硬盘作为存储数据的最常用的介质,数据在各个设备之间传输时,需要快速的从硬盘读取数据和向硬盘写入数据,用户对硬盘的性能的要求越来越高。为了保证硬盘的性能能够满足用户的要求,需要对硬盘进行检测。 With the rapid development of computer technology and network technology, a large amount of data is generated every moment. Hard disk is the most commonly used medium for storing data. When data is transmitted between various devices, it is necessary to quickly read data from and write data to the hard disk, and users have higher and higher requirements for the performance of the hard disk. In order to ensure that the performance of the hard disk can meet the user's requirements, it is necessary to test the hard disk.

现有技术中,常用的硬盘性能检测方法中,一般只是对硬盘本身的一些参数进行检测,例如硬盘的转速等。而硬盘在实际应用中,除了受到硬盘本身的性能的影响,还要受到周围环境的影响,随着周围环境的不同,硬盘在应用中的性能也会不同,举例来说,如果周围环境的温度过高,可能会降低硬盘的读写速度等。在现有技术中,由于没有充分考虑硬盘应用环境对硬盘性能的影响,使得检测结果不够准确。 In the prior art, commonly used hard disk performance detection methods generally only detect some parameters of the hard disk itself, such as the rotational speed of the hard disk. In practical applications, the hard disk is not only affected by the performance of the hard disk itself, but also by the surrounding environment. With the difference of the surrounding environment, the performance of the hard disk in the application will also be different. For example, if the temperature of the surrounding environment If the value is too high, the read and write speed of the hard disk may be reduced. In the prior art, because the impact of the hard disk application environment on the performance of the hard disk is not fully considered, the detection result is not accurate enough.

发明内容 Contents of the invention

有鉴于此,本发明提供了一种检测硬盘的方法及装置,能够使得检测出的硬盘性能更加准确。 In view of this, the present invention provides a method and device for detecting a hard disk, which can make the detected performance of the hard disk more accurate.

一方面,本发明提供了一种检测硬盘的方法,包括: In one aspect, the present invention provides a method for detecting a hard disk, comprising:

S1:确定目标硬盘; S1: determine the target hard disk;

S2:分别检测所述目标硬盘与待测服务器的每个硬盘连接模块连接时的性能参数的第一检测值; S2: respectively detecting the first detection value of the performance parameter when the target hard disk is connected to each hard disk connection module of the server to be tested;

S3:根据每个硬盘连接模块对应的第一检测值,判断所述待测服务器上的每个硬盘连接模块是否均符合要求,如果是,则执行步骤S4,否则,调整不符合要求的硬盘连接模块,调整完成后,返回步骤S2; S3: According to the first detection value corresponding to each hard disk connection module, determine whether each hard disk connection module on the server to be tested meets the requirements, if yes, perform step S4, otherwise, adjust the hard disk connection that does not meet the requirements module, after the adjustment is completed, return to step S2;

S4:将每个硬盘连接模块与对应的待测硬盘连接; S4: Connect each hard disk connection module to the corresponding hard disk to be tested;

S5:检测每个待测硬盘,确定每个待测硬盘的性能参数的第二检测值。 S5: Detect each hard disk to be tested, and determine a second detection value of a performance parameter of each hard disk to be tested.

进一步地,所述S1,包括: Further, said S1 includes:

对部署在所述待测服务器外的每个待测硬盘进行单体检测; Carrying out monomer detection for each hard disk to be tested deployed outside the server to be tested;

获取每个待测硬盘的性能参数的第三检测值; Obtain the third detection value of the performance parameter of each hard disk to be tested;

将与所有第三检测值的平均值最接近的第三检测值对应的待测硬盘作为所述目标硬盘。 The hard disk to be tested corresponding to the third detection value closest to the average value of all the third detection values is used as the target hard disk.

进一步地,在所述S3之前,还包括:将与所有第三检测值的平均值最接近的第三检测值作为基准值; Further, before the S3, it also includes: taking the third detection value closest to the average value of all third detection values as the reference value;

在所述S3之前,还包括:根据所述基准值确定阈值; Before the S3, it also includes: determining a threshold according to the reference value;

所述S3,包括: The S3, including:

判断每个第一检测值是否均大于等于所述阈值,如果是,则确定每个硬盘连接模块均符合要求,执行步骤S4,否则,确定小于所述阈值的第一检测值对应的硬盘连接模块不符合要求,调整不符合要求的硬盘连接模块,调整完成后,返回步骤S2。 Judging whether each first detection value is greater than or equal to the threshold, if yes, then determining that each hard disk connection module meets the requirements, and performing step S4, otherwise, determining the hard disk connection module corresponding to the first detection value smaller than the threshold If it does not meet the requirements, adjust the hard disk connection module that does not meet the requirements. After the adjustment is completed, return to step S2.

进一步地,所述S5,包括: Further, said S5 includes:

调节所述待测服务器的风扇的转速,分别在每种风速下检测每个待测硬盘,分别确定每个待测硬盘在每种风速下的性能参数的第二检测值。 Adjust the rotation speed of the fan of the server to be tested, detect each hard disk to be tested at each wind speed, and determine the second detection value of the performance parameter of each hard disk to be tested at each wind speed.

进一步地,该方法还包括:将每个待测硬盘的性能参数的第三检测值作为每个待测硬盘对应的评价基准值,根据每个待测硬盘对应的评价基准值,确定每个待测硬盘对应的评价阈值; Further, the method further includes: taking the third detection value of the performance parameter of each hard disk to be tested as the evaluation reference value corresponding to each hard disk to be tested, and determining each Measure the evaluation threshold corresponding to the hard disk;

在S5之后,还包括:根据每个待测硬盘的第二检测值是否大于等于对应的评价阈值,对每个待测硬盘进行性能评价。 After S5, the method further includes: performing performance evaluation on each hard disk to be tested according to whether the second detection value of each hard disk to be tested is greater than or equal to a corresponding evaluation threshold.

另一方面,本发明提供了一种检测硬盘的装置,包括: In another aspect, the present invention provides a device for detecting a hard disk, comprising:

确定单元,用于确定目标硬盘; A determination unit is used to determine the target hard disk;

第一检测单元,用于分别检测所述目标硬盘与待测服务器的每个硬盘连接模块连接时的性能参数的第一检测值; A first detection unit, configured to respectively detect first detection values of performance parameters when the target hard disk is connected to each hard disk connection module of the server to be tested;

判断单元,用于根据每个硬盘连接模块对应的第一检测值,判断所述待测服务器上的每个硬盘连接模块是否均符合要求,当判断结果为是时,通知连接单元,当判断结果为否时,调整不符合要求的硬盘连接模块,调整完成后,通知所述第一检测单元; The judgment unit is used to judge whether each hard disk connection module on the server to be tested meets the requirements according to the first detection value corresponding to each hard disk connection module, and when the judgment result is yes, notify the connection unit, and when the judgment result is If no, adjust the hard disk connection module that does not meet the requirements, and notify the first detection unit after the adjustment is completed;

连接单元,用于将每个硬盘连接模块与对应的待测硬盘连接; A connection unit, used to connect each hard disk connection module with the corresponding hard disk to be tested;

第二检测单元,用于检测每个待测硬盘,确定每个待测硬盘的性能参数的第二检测值。 The second detection unit is configured to detect each hard disk to be tested, and determine a second detection value of a performance parameter of each hard disk to be tested.

进一步地,所述确定单元,用于对部署在所述待测服务器外的每个待测硬盘进行单体检测,获取每个待测硬盘的性能参数的第三检测值,将与所有第三检测值的平均值最接近的第三检测值对应的待测硬盘作为所述目标硬盘。 Further, the determining unit is configured to perform individual detection on each hard disk to be tested deployed outside the server to be tested, obtain a third detection value of a performance parameter of each hard disk to be tested, and compare it with all third The hard disk to be tested corresponding to the third detection value with the closest average value of the detection values is used as the target hard disk.

进一步地,该装置还包括:基准值确定单元,用于将与所有第三检测值的平均值最接近的第三检测值作为基准值; Further, the device further includes: a reference value determining unit, configured to use the third detection value closest to the average value of all third detection values as the reference value;

还包括:阈值确定单元,用于根据所述基准值确定阈值; It also includes: a threshold determination unit, configured to determine a threshold according to the reference value;

所述判断单元,用于判断每个第一检测值是否均大于等于所述阈值,当判断结果为是时,则确定每个硬盘连接模块均符合要求,通知所述连接单元,当判断结果为否时,确定小于所述阈值的第一检测值对应的硬盘连接模块不符合要求,调整不符合要求的硬盘连接模块,调整完成后,通知所述第一检测单元。 The judging unit is used to judge whether each first detection value is greater than or equal to the threshold, and when the judging result is yes, then determine that each hard disk connection module meets the requirements, and notify the connecting unit, when the judging result is If not, determine that the hard disk connection module corresponding to the first detection value smaller than the threshold does not meet the requirements, adjust the hard disk connection module that does not meet the requirements, and notify the first detection unit after the adjustment is completed.

进一步地,所述第二检测单元,用于调节所述待测服务器的风扇的转速,分别在每种风速下检测每个待测硬盘,分别确定每个待测硬盘在每种风速下的性能参数的第二检测值。 Further, the second detection unit is configured to adjust the rotational speed of the fan of the server to be tested, respectively detect each hard disk to be tested at each wind speed, and determine the performance of each hard disk to be tested at each wind speed The second detection value of the parameter.

进一步地,该装置还包括: Further, the device also includes:

第一评价单元,用于将每个待测硬盘的性能参数的第三检测值作为每个待测硬盘对应的评价基准值,根据每个待测硬盘对应的评价基准值,确定每个待测硬盘对应的评价阈值; The first evaluation unit is configured to use the third detection value of the performance parameter of each hard disk to be tested as the evaluation reference value corresponding to each hard disk to be tested, and determine each test value according to the evaluation reference value corresponding to each hard disk to be tested The evaluation threshold corresponding to the hard disk;

第二评价单元,用于根据每个待测硬盘的第二检测值是否大于等于对应的评价阈值,对每个待测硬盘进行性能评价。 The second evaluation unit is configured to evaluate the performance of each hard disk to be tested according to whether the second detection value of each hard disk to be tested is greater than or equal to a corresponding evaluation threshold.

硬盘通过与硬盘连接模块相连来接入到服务器中,如果硬盘连接模块不符合要求,则会影响对硬盘的检测结果的准确性,本发明实施例提供的一种检测硬盘的方法及装置,通过目标硬盘的性能来确定待测服务器上每个硬盘连接模块是否符合要求,对不符合要求的硬盘连接模块进行调整,指的所有的硬盘连接模块符合要求后,进行对待测服务器上的所有待测硬盘进行检测,消除了硬盘连接模块对待测硬盘的检测结果的影响,能够使得检测出的硬盘性能更加准确。 The hard disk is connected to the server by being connected to the hard disk connection module. If the hard disk connection module does not meet the requirements, it will affect the accuracy of the detection result of the hard disk. A method and device for detecting a hard disk provided by the embodiment of the present invention, through The performance of the target hard disk is used to determine whether each hard disk connection module on the server to be tested meets the requirements, and the hard disk connection modules that do not meet the requirements are adjusted. After all the hard disk connection modules meet the requirements, all the hard disk connection modules on the server to be tested The detection of the hard disk eliminates the influence of the hard disk connection module on the detection result of the hard disk to be tested, and can make the performance of the detected hard disk more accurate.

附图说明 Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明一实施例提供的一种检测硬盘的方法的流程图; Fig. 1 is a flow chart of a method for detecting a hard disk provided by an embodiment of the present invention;

图2是本发明一实施例提供的另一种检测硬盘的方法的流程图; 2 is a flowchart of another method for detecting a hard disk provided by an embodiment of the present invention;

图3是本发明一实施例提供的一种检测硬盘的装置的示意图; Fig. 3 is a schematic diagram of a device for detecting a hard disk provided by an embodiment of the present invention;

图4是本发明一实施例提供的另一种检测硬盘的装置的示意图。 Fig. 4 is a schematic diagram of another device for detecting a hard disk provided by an embodiment of the present invention.

具体实施方式 Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例,基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。 In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the protection of the present invention. scope.

如图1所示,本发明实施例提供了一种检测硬盘的方法,该方法可以包括以下步骤: As shown in Figure 1, an embodiment of the present invention provides a method for detecting a hard disk, which may include the following steps:

S1:确定目标硬盘; S1: determine the target hard disk;

S2:分别检测所述目标硬盘与待测服务器的每个硬盘连接模块连接时的性能参数的第一检测值; S2: respectively detecting the first detection value of the performance parameter when the target hard disk is connected to each hard disk connection module of the server to be tested;

S3:根据每个硬盘连接模块对应的第一检测值,判断所述待测服务器上的每个硬盘连接模块是否均符合要求,如果是,则执行步骤S4,否则,调整不符合要求的硬盘连接模块,调整完成后,返回步骤S2; S3: According to the first detection value corresponding to each hard disk connection module, determine whether each hard disk connection module on the server to be tested meets the requirements, if yes, perform step S4, otherwise, adjust the hard disk connection that does not meet the requirements module, after the adjustment is completed, return to step S2;

S4:将每个硬盘连接模块与对应的待测硬盘连接; S4: Connect each hard disk connection module to the corresponding hard disk to be tested;

S5:检测每个待测硬盘,确定每个待测硬盘的性能参数的第二检测值。 S5: Detect each hard disk to be tested, and determine a second detection value of a performance parameter of each hard disk to be tested.

硬盘通过与硬盘连接模块相连来接入到服务器中,如果硬盘连接模块不符合要求,则会影响对硬盘的检测结果的准确性,本发明实施例提供的一种检测硬盘的方法,通过目标硬盘的性能来确定待测服务器上每个硬盘连接模块是否符合要求,对不符合要求的硬盘连接模块进行调整,指的所有的硬盘连接模块符合要求后,进行对待测服务器上的所有待测硬盘进行检测,消除了硬盘连接模块对待测硬盘的检测结果的影响,能够使得检测出的硬盘性能更加准确。 The hard disk is connected to the server by connecting with the hard disk connection module. If the hard disk connection module does not meet the requirements, it will affect the accuracy of the detection result of the hard disk. A method for detecting the hard disk provided by the embodiment of the present invention uses the target hard disk The performance of each hard disk connection module on the server to be tested is determined whether it meets the requirements, and the hard disk connection modules that do not meet the requirements are adjusted. After all the hard disk connection modules meet the requirements, all the hard disks to be tested on the server to be tested are adjusted. The detection eliminates the influence of the hard disk connection module on the detection result of the hard disk to be tested, and can make the detected performance of the hard disk more accurate.

为了使得测量结果更加准确,可以将待测硬盘中的一个硬盘作为目标硬盘,在一种可能的实现方式中,所述S1,包括: In order to make the measurement result more accurate, one of the hard disks to be tested can be used as the target hard disk. In a possible implementation, the S1 includes:

对部署在所述待测服务器外的每个待测硬盘进行单体检测; Carrying out monomer detection for each hard disk to be tested deployed outside the server to be tested;

获取每个待测硬盘的性能参数的第三检测值; Obtain the third detection value of the performance parameter of each hard disk to be tested;

将与所有第三检测值的平均值最接近的第三检测值对应的待测硬盘作为所述目标硬盘。 The hard disk to be tested corresponding to the third detection value closest to the average value of all the third detection values is used as the target hard disk.

目标硬盘是用来验证硬盘连接模块的,待测硬盘与待测服务器中的硬盘连接模块更加匹配,采用待测硬盘中的一个作为目标硬盘,可以使得验证结果更加准确。目标硬盘应该能够代表每个待测硬盘的性能状况,因此可以选择性能位于平均水平的待测硬盘。 The target hard disk is used to verify the hard disk connection module. The hard disk to be tested is more compatible with the hard disk connection module in the server to be tested. Using one of the hard disks to be tested as the target hard disk can make the verification result more accurate. The target hard disk should be able to represent the performance status of each hard disk to be tested, so the hard disk to be tested with average performance can be selected.

在一种可能的实现方式中,在所述S3之前,还包括:将与所有第三检测值的平均值最接近的第三检测值作为基准值; In a possible implementation manner, before the step S3, it also includes: using the third detection value closest to the average value of all third detection values as a reference value;

在所述S3之前,还包括:根据所述基准值确定阈值; Before the S3, it also includes: determining a threshold according to the reference value;

所述S3,包括: The S3, including:

判断每个第一检测值是否均大于等于所述阈值,如果是,则确定每个硬盘连接模块均符合要求,执行步骤S4,否则,确定小于所述阈值的第一检测值对应的硬盘连接模块不符合要求,调整不符合要求的硬盘连接模块,调整完成后,返回步骤S2。 Judging whether each first detection value is greater than or equal to the threshold, if yes, then determining that each hard disk connection module meets the requirements, and performing step S4, otherwise, determining the hard disk connection module corresponding to the first detection value smaller than the threshold If it does not meet the requirements, adjust the hard disk connection module that does not meet the requirements. After the adjustment is completed, return to step S2.

在该实现方式中,第三检测值是在待测服务器外检测获得的,不受硬盘连接模块的影响,从这些第三检测值中选出基准值,将通过基准值得到的阈值与受到硬盘连接模块的影响的情况下测得的第一检测值进行比较,来确定硬盘连接模块是否符合要求,这样更加得到的结果更加准确。如果用受到硬盘连接模块的影响的情况下测得的数据作为基准值,在进行比较时,第一检测值和基准值中都包含了受到硬盘连接模块的影响的因素,无法准确判断硬盘连接模块是否符合要求。另外,为了使得检测结果更加准确,在将目标硬盘与硬盘连接模块连接时,其他硬盘连接模块对应的硬盘也在服务器中运行,这样跟更能准确的反映服务器中硬盘所在的运行状态。还有,在确定阈值时,可以将基准值的80%作为阈值。 In this implementation, the third detection value is obtained by detection outside the server to be tested, and is not affected by the hard disk connection module. A reference value is selected from these third detection values, and the threshold value obtained through the reference value is compared with the threshold value received by the hard disk. The first detection value measured under the influence of the connection module is compared to determine whether the hard disk connection module meets the requirements, so that the obtained result is more accurate. If the data measured under the influence of the hard disk connection module is used as the reference value, the first detected value and the reference value both include the factors affected by the hard disk connection module, and the hard disk connection module cannot be accurately judged. does it reach the requirement. In addition, in order to make the detection result more accurate, when the target hard disk is connected to the hard disk connection module, the hard disks corresponding to other hard disk connection modules are also running in the server, so that it can more accurately reflect the running status of the hard disk in the server. Also, when determining the threshold, 80% of the reference value may be used as the threshold.

在S5中,为了更加准确的检测待测硬盘的性能,在对当前待测硬盘进行检测时,保持其他待测硬盘正常运行,更加准确的反映服务器中硬盘的运行环境。 In S5, in order to detect the performance of the hard disk to be tested more accurately, when the current hard disk to be tested is tested, the other hard disks to be tested are kept running normally, so as to more accurately reflect the operating environment of the hard disk in the server.

在一种可能的实现方式中,所述S5,包括: In a possible implementation manner, the S5 includes:

调节所述待测服务器的风扇的转速,分别在每种风速下检测每个待测硬盘,分别确定每个待测硬盘在每种风速下的性能参数的第二检测值。 Adjust the rotation speed of the fan of the server to be tested, detect each hard disk to be tested at each wind speed, and determine the second detection value of the performance parameter of each hard disk to be tested at each wind speed.

硬盘的性能会受到硬盘震动的影响,而在服务器中,大部分震动来源于服务器的风扇,因此,通过测量在不同风速下待测硬盘的性能,能够更加准确全面的呈现待测硬盘的性能。 The performance of the hard disk will be affected by the vibration of the hard disk, and in the server, most of the vibration comes from the fan of the server. Therefore, by measuring the performance of the hard disk to be tested under different wind speeds, the performance of the hard disk to be tested can be presented more accurately and comprehensively.

在条件风扇转速时,可以分别将风扇的转速调到最大转速的30%,40%,50%,60%,70%,80%,90%,100%,对每种情况进行检测。 When adjusting the fan speed, the fan speed can be adjusted to 30%, 40%, 50%, 60%, 70%, 80%, 90%, 100% of the maximum speed, and each situation can be detected.

在一种可能的实现方式中,包括:所述性能参数包括:4k随机读写模式下的IOPS(Input/OutputOperationsPerSecond,每秒进行读写操作的次数)、256k顺序读写模式下的IOPS。 In a possible implementation, it includes: the performance parameters include: IOPS (Input/OutputOperationsPerSecond, the number of read and write operations per second) in 4k random read and write mode, and IOPS in 256k sequential read and write mode.

在一种可能的实现方式中,所述硬盘连接模块包括:硬盘插槽、硬盘背板。 In a possible implementation manner, the hard disk connection module includes: a hard disk slot and a hard disk backplane.

另外,在对确定目标硬盘时,每个待测硬盘进行单体检测时,为了降低外界环境,特别是震动对硬盘性能的影响,可以将待测硬盘固定在治具上,以减轻外界对硬盘的震动,并减轻硬盘自身震动。 In addition, when determining the target hard disk, when each hard disk to be tested is tested individually, in order to reduce the impact of the external environment, especially vibration, on the performance of the hard disk, the hard disk to be tested can be fixed on the fixture to reduce the impact of the external environment on the hard disk. vibration, and reduce the vibration of the hard disk itself.

在将目标硬盘放到待测服务器中进行检测,和对将待测硬盘放到待测服务器进行检测时,为了降低外界对服务器造成的震动影响,可以将服务器放置在大理石平台上,保持平面相对光滑平整,这个大理石平台对外界又质量较大,排除外界的振动量传导至服务器上,这样测量结果主要受到服务器本身的影响,更加准确。 When putting the target hard disk into the server to be tested and testing the hard disk to be tested on the server to be tested, in order to reduce the impact of external vibration on the server, the server can be placed on a marble platform, keeping the planes facing each other. Smooth and flat, this marble platform has a large mass to the outside world, eliminating the transmission of external vibrations to the server, so that the measurement results are mainly affected by the server itself and are more accurate.

在对硬盘进行检测时,可以通过IOMeter软件来实现。在对4k随机读写模式下的IOPS和256k顺序读写模式下的IOPS进行检测时,每种模式下均运行超过2分钟,这样能够使得测量结果更准确。 When detecting the hard disk, it can be realized by IOMeter software. When testing the IOPS in the 4k random read and write mode and the IOPS in the 256k sequential read and write mode, each mode runs for more than 2 minutes, which can make the measurement results more accurate.

在一种可能的实现方式中,在S4之后,还包括:将所述待测服务器的风扇设置为自动调节模式,检测每个待测硬盘,确定每个待测硬盘的性能参数的评价基准值;根据每个待测硬盘对应的评价基准值,确定每个待测硬盘对应的评价阈值。 In a possible implementation, after S4, it also includes: setting the fan of the server to be tested to an automatic adjustment mode, detecting each hard disk to be tested, and determining the evaluation reference value of the performance parameter of each hard disk to be tested ; Determine the evaluation threshold corresponding to each hard disk to be tested according to the evaluation reference value corresponding to each hard disk to be tested.

在S5之后,还包括:根据每个待测硬盘的第二检测值是否大于等于对应的评价阈值,对每个待测硬盘进行性能评价。 After S5, the method further includes: performing performance evaluation on each hard disk to be tested according to whether the second detection value of each hard disk to be tested is greater than or equal to a corresponding evaluation threshold.

通过该实现方式,在确定出每个待测硬盘的第二检测值后,可以根据第二检测值对每个待测硬盘进行评价。评价阈值也可以通过以下方式实现:设置风扇的风速处于自然风速,也就是风扇有服务器根据需要正常调节,在这种情况下,测量每个待测硬盘的性能参数的评价检测值,将每个待测硬盘的评价检测值作为其评价基准值,也就是说,每个待测硬盘的评价基准值可能互不相同,与硬盘自身的性能有关。根据该评价基准值确定评价阈值,例如:对于SATA(SerialATA,串口硬盘)类型的硬盘,可以将其评价基准值的80%作为其评价阈值,对于SAS(SerialAttachedSCSI,串行连接SCSI接口)类型的硬盘,可以将其评价基准值的85%作为其评价阈值。然后,将每个待测硬盘的第二检测值与其对应的评价阈值进行比较,如果大于等于其评价阈值,则确定该待测硬盘性能良好,如果小于其评价阈值,则确定该待测硬盘性能较差,需要进行改善其性能。 Through this implementation, after the second detection value of each hard disk to be tested is determined, each hard disk to be tested can be evaluated according to the second detection value. The evaluation threshold can also be realized in the following way: set the wind speed of the fan at the natural wind speed, that is, the fan is normally adjusted by the server according to the needs. The evaluation detection value of the hard disk to be tested is used as its evaluation reference value, that is to say, the evaluation reference value of each hard disk to be tested may be different from each other, which is related to the performance of the hard disk itself. Determine the evaluation threshold value according to the evaluation reference value, for example: for the hard disk of SATA (SerialATA, serial port hard disk) type, 80% of its evaluation reference value can be used as its evaluation threshold value; For a hard disk, 85% of its evaluation reference value can be used as its evaluation threshold. Then, compare the second detection value of each hard disk to be tested with its corresponding evaluation threshold, if it is greater than or equal to its evaluation threshold, it is determined that the performance of the hard disk to be tested is good, and if it is less than its evaluation threshold, then it is determined that the performance of the hard disk to be tested is Poor, need to improve its performance.

在改善硬盘性能时,可以通过以下方式:对硬盘前窗的机械设计进行改善,降低风扇高速旋转的振动传导能量;对硬盘背板的电路设计进行优化,减小阻抗及信号传输干扰,提高硬盘读写性能值。 When improving the performance of the hard disk, the following methods can be adopted: improve the mechanical design of the front window of the hard disk to reduce the vibration transmission energy of the high-speed rotation of the fan; optimize the circuit design of the hard disk backplane to reduce impedance and signal transmission interference, and improve the hard disk performance. Read and write performance values.

另外,在一种可能的实现方式中,还包括:将每个待测硬盘的性能参数的第三检测值作为每个待测硬盘对应的评价基准值,根据每个待测硬盘对应的评价基准值,确定每个待测硬盘对应的评价阈值。 In addition, in a possible implementation manner, it also includes: taking the third detection value of the performance parameter of each hard disk to be tested as the evaluation reference value corresponding to each hard disk to be tested, and according to the evaluation standard value corresponding to each hard disk to be tested value to determine the evaluation threshold corresponding to each hard disk to be tested.

在S5之后,还包括:根据每个待测硬盘的第二检测值是否大于等于对应的评价阈值,对每个待测硬盘进行性能评价。 After S5, the method further includes: performing performance evaluation on each hard disk to be tested according to whether the second detection value of each hard disk to be tested is greater than or equal to a corresponding evaluation threshold.

通过该实现方式,将每个待测硬盘在服务器外的性能与每个待测硬盘在服务器内的性能进行对比,可以反映出硬盘连接模块对待测硬盘的性能的影响,进而可以对硬盘连接模块进行优化调整。 Through this implementation method, the performance of each hard disk to be tested outside the server is compared with the performance of each hard disk to be tested in the server, which can reflect the impact of the hard disk connection module on the performance of the hard disk to be tested, and then the hard disk connection module. Make optimization adjustments.

为使本发明的目的、技术方案和优点更加清楚,下面结合附图及具体实施例对本发明作进一步地详细描述。 In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

在本发明实施例中,需要对服务器A中的8个待测硬盘进行性能检测,8个待测硬盘分别是硬盘1、硬盘2、硬盘3、硬盘4、硬盘5、硬盘6、硬盘7、硬盘8。要获取的性能参数为4k随机读写模式的IOPS。 In the embodiment of the present invention, performance testing needs to be performed on 8 hard disks to be tested in server A, and the 8 hard disks to be tested are hard disk 1, hard disk 2, hard disk 3, hard disk 4, hard disk 5, hard disk 6, hard disk 7, hard drive8. The performance parameter to be obtained is IOPS in 4k random read/write mode.

如图2所示,本发明实施例提供了一种检测硬盘的方法,该方法可以包括以下步骤: As shown in Figure 2, the embodiment of the present invention provides a method for detecting a hard disk, the method may include the following steps:

步骤201:对部署在服务器A外的每个待测硬盘进行4k随机读写模式下单体检测。 Step 201: Perform individual detection in 4k random read-write mode on each hard disk to be tested deployed outside server A.

为了避免服务器A对每个待测硬盘的性能的影响,将待测硬盘部署在服务器A外部进行检测,分别对硬盘1至硬盘8进行独立检测。 In order to avoid the impact of server A on the performance of each hard disk to be tested, the hard disk to be tested is deployed outside server A for detection, and hard disks 1 to 8 are independently tested.

步骤202:获取每个待测硬盘的IOPS的第三检测值。 Step 202: Obtain a third detection value of the IOPS of each hard disk to be tested.

举例来说,硬盘1至硬盘8的IOPS的检测值依次为6000、4500、4000、3500、3000、2500、2000、1000。 For example, the detected IOPS values of the hard disks 1 to 8 are 6000, 4500, 4000, 3500, 3000, 2500, 2000, and 1000 in sequence.

步骤203:将与所有第三检测值的平均值最接近的第三检测值作为基准值,将与所有第三检测值的平均值最接近的第三检测值对应的待测硬盘作为所述目标硬盘,将基准值的80%作为阈值,并确定出基准值为3500、目标硬盘为硬盘4,阈值为2800。 Step 203: Taking the third detection value closest to the average value of all third detection values as a reference value, and taking the hard disk to be tested corresponding to the third detection value closest to the average value of all third detection values as the target For the hard disk, 80% of the reference value is used as the threshold, and the reference value is determined to be 3500, the target hard disk is hard disk 4, and the threshold is 2800.

举例来说,所有第三检测值的平均值为3312.5,与3312.5最接近的第三检测值为硬盘4的第三检测值3500,因此,基准值为3500、目标硬盘为硬盘4。 For example, the average value of all the third detection values is 3312.5, and the third detection value closest to 3312.5 is the third detection value 3500 of the hard disk 4. Therefore, the reference value is 3500 and the target hard disk is the hard disk 4.

步骤204:分别检测与服务器A的每个硬盘连接模块连接时的硬盘4。 Step 204: Detect the hard disk 4 connected to each hard disk connection module of the server A respectively.

每个硬盘通过硬盘连接模块接入到服务器A中,硬盘1至硬盘8连接的硬盘连接模块依次为:硬盘连接模块1、硬盘连接模块2、硬盘连接模块3、硬盘连接模块4、硬盘连接模块5、硬盘连接模块6、硬盘连接模块7、硬盘连接模块8。将硬盘4分别与硬盘连接模块1至硬盘连接模块8连接,接入到服务器A中,然后进行检测,也就是说,将硬盘4与硬盘连接模块1连接,对硬盘4进行检测;将硬盘4与硬盘连接模块2连接,对硬盘4进行检测;依次类推。 Each hard disk is connected to server A through a hard disk connection module. The hard disk connection modules connected from hard disk 1 to hard disk 8 are: hard disk connection module 1, hard disk connection module 2, hard disk connection module 3, hard disk connection module 4, and hard disk connection module. 5. A hard disk connection module 6 , a hard disk connection module 7 , and a hard disk connection module 8 . Connect the hard disk 4 to the hard disk connection module 1 to the hard disk connection module 8 respectively, connect it to the server A, and then perform detection, that is to say, connect the hard disk 4 to the hard disk connection module 1, and detect the hard disk 4; connect the hard disk 4 Connect with the hard disk connection module 2 to detect the hard disk 4; and so on.

另外,当硬盘4与任一硬盘连接模块连接时,其他硬盘连接模块也与对应的硬盘连接,并每个硬盘正常运行。具体地,当硬盘4与硬盘连接模块1连接时,硬盘连接模块2至硬盘连接模块8依次连接:硬盘2、硬盘3、硬盘1、硬盘5、硬盘6、硬盘7、硬盘8,或者,硬盘连接模块4不连接硬盘,其他硬盘连接模块与对应的硬盘连接。 In addition, when the hard disk 4 is connected to any hard disk connection module, other hard disk connection modules are also connected to corresponding hard disks, and each hard disk operates normally. Specifically, when the hard disk 4 is connected to the hard disk connection module 1, the hard disk connection module 2 is connected to the hard disk connection module 8 in sequence: hard disk 2, hard disk 3, hard disk 1, hard disk 5, hard disk 6, hard disk 7, hard disk 8, or hard disk The connection module 4 is not connected to a hard disk, and other hard disk connection modules are connected to corresponding hard disks.

步骤205:分别获取与每个硬盘连接模块连接时硬盘4的IOPS的第一检测值。 Step 205: Obtain the first detection value of the IOPS of the hard disk 4 when connected to each hard disk connection module.

举例来说,硬盘4分别与硬盘连接模块1至硬盘连接模块8连接时的IOPS的第一检测值依次是:4000、3800、3200、3500、3000、2900、2995、2895。 For example, the first detection values of IOPS when the hard disk 4 is respectively connected to the hard disk connection module 1 to the hard disk connection module 8 are: 4000, 3800, 3200, 3500, 3000, 2900, 2995, 2895.

步骤206:判断每个第一检测值是否均大于等于阈值2800,判断结果为是,确定每个硬盘连接模块均符合要求。 Step 206: Judging whether each first detection value is greater than or equal to the threshold 2800, if the judging result is yes, it is determined that each hard disk connection module meets the requirements.

另外,判断结果为否时,确定小于所述阈值的第一检测值对应的硬盘连接模块不符合要求,调整不符合要求的硬盘连接模块,调整完成后,返回步骤204。具体地,如果硬盘4与硬盘连接模块5连接时的IOPS的第一检测值为2500,则硬盘连接模块5不符合要求,对硬盘连接模块5进行调整,调整完成后,在返回步骤204,重新检测。 In addition, when the judgment result is negative, it is determined that the hard disk connection module corresponding to the first detection value smaller than the threshold does not meet the requirements, and the hard disk connection module that does not meet the requirements is adjusted. After the adjustment is completed, return to step 204 . Specifically, if the first detection value of the IOPS when the hard disk 4 is connected to the hard disk connection module 5 is 2500, then the hard disk connection module 5 does not meet the requirements, and the hard disk connection module 5 is adjusted. After the adjustment is completed, return to step 204 and start again. detection.

步骤207:将每个硬盘连接模块与对应的待测硬盘连接。 Step 207: Connect each hard disk connection module with the corresponding hard disk to be tested.

具体地,将与硬盘连接模块1至硬盘连接模块8连接的硬盘依次是:硬盘1、硬盘2、硬盘3、硬盘4、硬盘5、硬盘6、硬盘7、硬盘8。 Specifically, the hard disks to be connected to the hard disk connection module 1 to the hard disk connection module 8 are: hard disk 1, hard disk 2, hard disk 3, hard disk 4, hard disk 5, hard disk 6, hard disk 7, and hard disk 8.

步骤208:调节服务器A的风扇的转速,分别在每种风速下检测每个待测硬盘,分别确定每个待测硬盘在每种风速下的性能参数的第二检测值。 Step 208: Adjust the rotation speed of the fan of server A, detect each hard disk under test at each wind speed, and determine the second detection value of the performance parameter of each hard disk under test at each wind speed.

具体地,分别将风扇的风速调节为最大风速的30%,40%,50%,60%,70%,80%,90%,100%,检测每种风速下每个待测硬盘的第二检测值。 Specifically, adjust the wind speed of the fan to 30%, 40%, 50%, 60%, 70%, 80%, 90%, and 100% of the maximum wind speed, and detect the second speed of each hard disk to be tested at each wind speed. detection value.

如图3、图4所示,本发明实施例提供了一种检测硬盘的装置。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。从硬件层面而言,如图3所示,为本发明实施例提供的一种检测硬盘的装置所在设备的一种硬件结构图,除了图3所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的设备通常还可以包括其他硬件,如负责处理报文的转发芯片等等。以软件实现为例,如图4所示,作为一个逻辑意义上的装置,是通过其所在设备的CPU将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。本实施例提供的一种检测硬盘的装置,包括: As shown in FIG. 3 and FIG. 4 , an embodiment of the present invention provides a device for detecting a hard disk. The device embodiments can be implemented by software, or by hardware or a combination of software and hardware. From the perspective of hardware, as shown in Figure 3, it is a hardware structure diagram of a device where a device for detecting a hard disk provided by an embodiment of the present invention is located, except for the processor, memory, network interface, and non- In addition to the volatile memory, the device where the device in the embodiment is located may generally include other hardware, such as a forwarding chip responsible for processing packets, and the like. Taking software implementation as an example, as shown in Figure 4, as a device in a logical sense, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory for operation by the CPU of the device where it is located. A device for detecting a hard disk provided in this embodiment includes:

确定单元401,用于确定目标硬盘; A determining unit 401, configured to determine a target hard disk;

第一检测单元402,用于分别检测所述目标硬盘与待测服务器的每个硬盘连接模块连接时的性能参数的第一检测值; The first detection unit 402 is configured to respectively detect first detection values of performance parameters when the target hard disk is connected to each hard disk connection module of the server to be tested;

判断单元403,用于根据每个硬盘连接模块对应的第一检测值,判断所述待测服务器上的每个硬盘连接模块是否均符合要求,当判断结果为是时,通知连接单元404,当判断结果为否时,调整不符合要求的硬盘连接模块,调整完成后,通知所述第一检测单元402; The judging unit 403 is used to judge whether each hard disk connection module on the server to be tested meets the requirements according to the first detection value corresponding to each hard disk connection module, and when the judgment result is yes, notify the connection unit 404. When the judgment result is no, adjust the hard disk connection module that does not meet the requirements, and notify the first detection unit 402 after the adjustment is completed;

连接单元404,用于将每个硬盘连接模块与对应的待测硬盘连接; A connection unit 404, configured to connect each hard disk connection module to the corresponding hard disk to be tested;

第二检测单元405,用于检测每个待测硬盘,确定每个待测硬盘的性能参数的第二检测值。 The second detection unit 405 is configured to detect each hard disk to be tested, and determine a second detection value of a performance parameter of each hard disk to be tested.

在一种可能的实现方式中,所述确定单元401,用于对部署在所述待测服务器外的每个待测硬盘进行单体检测,获取每个待测硬盘的性能参数的第三检测值,将与所有第三检测值的平均值最接近的第三检测值对应的待测硬盘作为所述目标硬盘。 In a possible implementation manner, the determination unit 401 is configured to perform individual detection on each hard disk to be tested deployed outside the server to be tested, and obtain a third detection of the performance parameter of each hard disk to be tested value, and the hard disk to be tested corresponding to the third detection value closest to the average value of all the third detection values is used as the target hard disk.

在一种可能的实现方式中,该装置还包括:基准值确定单元,用于将与所有第三检测值的平均值最接近的第三检测值作为基准值。 In a possible implementation manner, the device further includes: a reference value determining unit, configured to use a third detection value closest to an average value of all third detection values as the reference value.

该装置还包括:阈值确定单元,用于根据所述基准值确定阈值。 The device further includes: a threshold determining unit, configured to determine the threshold according to the reference value.

所述判断单元403,用于判断每个第一检测值是否均大于等于所述阈值,当判断结果为是时,则确定每个硬盘连接模块均符合要求,通知所述连接单元,当判断结果为否时,确定小于所述阈值的第一检测值对应的硬盘连接模块不符合要求,调整不符合要求的硬盘连接模块,调整完成后,通知所述第一检测单元。 The judging unit 403 is configured to judge whether each first detection value is greater than or equal to the threshold, and when the judging result is yes, then determine that each hard disk connection module meets the requirements, and notify the connecting unit, when the judging result is If no, determine that the hard disk connection module corresponding to the first detection value smaller than the threshold does not meet the requirements, adjust the hard disk connection module that does not meet the requirements, and notify the first detection unit after the adjustment is completed.

在一种可能的实现方式中,所述第二检测单元405,用于调节所述待测服务器的风扇的转速,分别在每种风速下检测每个待测硬盘,分别确定每个待测硬盘在每种风速下的性能参数的第二检测值。 In a possible implementation manner, the second detection unit 405 is configured to adjust the rotation speed of the fan of the server to be tested, detect each hard disk to be tested at each wind speed, and determine the speed of each hard disk to be tested respectively. A second detected value of the performance parameter at each wind speed.

在一种可能的实现方式中,该装置还包括: In a possible implementation manner, the device also includes:

第一评价单元,用于将每个待测硬盘的性能参数的第三检测值作为每个待测硬盘对应的评价基准值,根据每个待测硬盘对应的评价基准值,确定每个待测硬盘对应的评价阈值; The first evaluation unit is configured to use the third detection value of the performance parameter of each hard disk to be tested as the evaluation reference value corresponding to each hard disk to be tested, and determine each test value according to the evaluation reference value corresponding to each hard disk to be tested The evaluation threshold corresponding to the hard disk;

第二评价单元,用于根据每个待测硬盘的第二检测值是否大于等于对应的评价阈值,对每个待测硬盘进行性能评价。 The second evaluation unit is configured to evaluate the performance of each hard disk to be tested according to whether the second detection value of each hard disk to be tested is greater than or equal to a corresponding evaluation threshold.

上述装置内的各单元之间的信息交互、执行过程等内容,由于与本发明方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。 The information exchange and execution process among the units in the above-mentioned device are based on the same concept as the method embodiment of the present invention, and the specific content can refer to the description in the method embodiment of the present invention, and will not be repeated here.

本发明实施例提供的一种检测硬盘的方法及装置,具有如下有益效果: A method and device for detecting a hard disk provided by an embodiment of the present invention has the following beneficial effects:

1、硬盘通过与硬盘连接模块相连来接入到服务器中,如果硬盘连接模块不符合要求,则会影响对硬盘的检测结果的准确性,本发明实施例提供的一种检测硬盘的方法及装置,通过目标硬盘的性能来确定待测服务器上每个硬盘连接模块是否符合要求,对不符合要求的硬盘连接模块进行调整,指的所有的硬盘连接模块符合要求后,进行对待测服务器上的所有待测硬盘进行检测,消除了硬盘连接模块对待测硬盘的检测结果的影响,能够使得检测出的硬盘性能更加准确。 1. The hard disk is connected to the server by connecting with the hard disk connection module. If the hard disk connection module does not meet the requirements, it will affect the accuracy of the detection result of the hard disk. A method and device for detecting a hard disk provided by the embodiment of the present invention , use the performance of the target hard disk to determine whether each hard disk connection module on the server to be tested meets the requirements, and adjust the hard disk connection modules that do not meet the requirements. After all the hard disk connection modules meet the requirements, perform all The detection of the hard disk to be tested eliminates the influence of the hard disk connection module on the detection result of the hard disk to be tested, which can make the performance of the detected hard disk more accurate.

2、目标硬盘是用来检测硬盘连接模块的,待测硬盘与待测服务器中的硬盘连接模块更加匹配,本发明实施例提供的一种检测硬盘的方法及装置,采用待测硬盘中的一个作为目标硬盘,可以使得检测结果更加准确,进而使得对待测硬盘的检测结果更加准确。 2. The target hard disk is used to detect the hard disk connection module. The hard disk to be tested is more compatible with the hard disk connection module in the server to be tested. A method and device for detecting a hard disk provided by the embodiment of the present invention uses one of the hard disks to be tested. As the target hard disk, the detection result can be made more accurate, thereby making the detection result of the hard disk to be tested more accurate.

3、由于硬盘的性能会受到硬盘震动的影响,而在服务器中,大部分震动来源于服务器的风扇,本发明实施例提供的一种检测硬盘的方法及装置,通过测量在不同风速下待测硬盘的性能,能够更加准确全面的呈现待测硬盘的性能。 3. Since the performance of the hard disk will be affected by the vibration of the hard disk, and in the server, most of the vibration comes from the fan of the server. The method and device for detecting the hard disk provided by the embodiment of the present invention are tested under different wind speeds by measuring The performance of the hard disk can more accurately and comprehensively present the performance of the hard disk to be tested.

需要说明的是,在本文中,诸如第一和第二之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个······”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同因素。 It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or sequence. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional same elements in the process, method, article or apparatus comprising said element.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储在计算机可读取的存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质中。 Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned programs can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

最后需要说明的是:以上所述仅为本发明的较佳实施例,仅用于说明本发明的技术方案,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所做的任何修改、等同替换、改进等,均包含在本发明的保护范围内。 Finally, it should be noted that the above descriptions are only preferred embodiments of the present invention, and are only used to illustrate the technical solution of the present invention, and are not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (10)

1. detect a method for hard disk, it is characterized in that, comprising:
S1: determine target hard disk;
S2: the first detected value detecting performance parameter when described target hard disk is connected with each hard disk link block of server to be measured respectively;
S3: first detected value corresponding according to each hard disk link block, judges whether each hard disk link block on described server to be measured all meets the requirements, if, then perform step S4, otherwise, adjust undesirable hard disk link block, after having adjusted, return step S2;
S4: each hard disk link block is connected with corresponding hard disk to be measured;
S5: detect each hard disk to be measured, determines the second detected value of the performance parameter of each hard disk to be measured.
2. method according to claim 1, is characterized in that, described S1, comprising:
Monomer detection is carried out to the hard disk each to be measured be deployed in outside described server to be measured;
Obtain the 3rd detected value of the performance parameter of each hard disk to be measured;
Using the to be measured hard disk corresponding with immediate 3rd detected value of the mean value of all 3rd detected values as described target hard disk.
3. method according to claim 2, is characterized in that, before described S3, also comprises: using with immediate 3rd detected value of the mean value of all 3rd detected values as reference value;
Before described S3, also comprise: according to described reference value definite threshold;
Described S3, comprising:
Judge whether each first detected value is all more than or equal to described threshold value, if, then determine that each hard disk link block all meets the requirements, perform step S4, otherwise the hard disk link block determining to be less than the first detected value of described threshold value corresponding is undesirable, adjusts undesirable hard disk link block, after having adjusted, return step S2.
4., according to described method arbitrary in claim 1-3, it is characterized in that, described S5, comprising:
Regulate the rotating speed of the fan of described server to be measured, under often kind of wind speed, detect each hard disk to be measured respectively, determine the second detected value of the performance parameter of each hard disk to be measured under often kind of wind speed respectively.
5. method according to claim 2, it is characterized in that, also comprise: using the 3rd detected value of the performance parameter of each hard disk to be measured as metewand value corresponding to each hard disk to be measured, the metewand value corresponding according to each hard disk to be measured, determines the Evaluation threshold that each hard disk to be measured is corresponding;
After S5, also comprise: whether be more than or equal to corresponding Evaluation threshold according to the second detected value of each hard disk to be measured, performance evaluation is carried out to each hard disk to be measured.
6. detect a device for hard disk, it is characterized in that, comprising:
Determining unit, for determining target hard disk;
First detecting unit, for detecting the first detected value of performance parameter when described target hard disk is connected with each hard disk link block of server to be measured respectively;
Judging unit, for first detected value corresponding according to each hard disk link block, judge whether each hard disk link block on described server to be measured all meets the requirements, when judged result is for being, notice linkage unit, when judged result is no, adjusts undesirable hard disk link block, after having adjusted, notify described first detecting unit;
Linkage unit, for connecting each hard disk link block with corresponding hard disk to be measured;
Second detecting unit, for detecting each hard disk to be measured, determines the second detected value of the performance parameter of each hard disk to be measured.
7. device according to claim 6, it is characterized in that, described determining unit, for carrying out monomer detection to the hard disk each to be measured be deployed in outside described server to be measured, obtain the 3rd detected value of the performance parameter of each hard disk to be measured, using the to be measured hard disk corresponding with immediate 3rd detected value of the mean value of all 3rd detected values as described target hard disk.
8. device according to claim 7, is characterized in that, also comprises: reference value determining unit, for using with immediate 3rd detected value of the mean value of all 3rd detected values as reference value;
Also comprise: threshold value determination unit, for according to described reference value definite threshold;
Described judging unit, for judging whether each first detected value is all more than or equal to described threshold value, when judged result is for being, then determine that each hard disk link block all meets the requirements, notify described linkage unit, when judged result is no, the hard disk link block determining to be less than the first detected value of described threshold value corresponding is undesirable, adjust undesirable hard disk link block, after having adjusted, notify described first detecting unit.
9. according to described device arbitrary in claim 6-8, it is characterized in that, described second detecting unit, for regulating the rotating speed of the fan of described server to be measured, under often kind of wind speed, detect each hard disk to be measured respectively, determine the second detected value of the performance parameter of each hard disk to be measured under often kind of wind speed respectively.
10. device according to claim 7, is characterized in that, also comprises:
First evaluation unit, for the 3rd detected value of the performance parameter using each hard disk to be measured as metewand value corresponding to each hard disk to be measured, the metewand value corresponding according to each hard disk to be measured, determines the Evaluation threshold that each hard disk to be measured is corresponding;
Second evaluation unit, for whether being more than or equal to corresponding Evaluation threshold according to the second detected value of each hard disk to be measured, carries out performance evaluation to each hard disk to be measured.
CN201510603061.1A 2015-09-21 2015-09-21 A kind of method and device detecting hard disk Active CN105204967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510603061.1A CN105204967B (en) 2015-09-21 2015-09-21 A kind of method and device detecting hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510603061.1A CN105204967B (en) 2015-09-21 2015-09-21 A kind of method and device detecting hard disk

Publications (2)

Publication Number Publication Date
CN105204967A true CN105204967A (en) 2015-12-30
CN105204967B CN105204967B (en) 2019-05-14

Family

ID=54952661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510603061.1A Active CN105204967B (en) 2015-09-21 2015-09-21 A kind of method and device detecting hard disk

Country Status (1)

Country Link
CN (1) CN105204967B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038031A (en) * 2017-12-07 2018-05-15 郑州云海信息技术有限公司 A kind of method and device for monitoring hard disk presence in real time
CN111274098A (en) * 2018-12-05 2020-06-12 杭州海康威视数字技术股份有限公司 IoT-based storage device alarm method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359307B (en) * 2007-08-03 2010-12-08 英业达股份有限公司 SAS channel testing device and method
CN102567156A (en) * 2010-12-31 2012-07-11 鸿富锦精密工业(深圳)有限公司 Test set for server hard disk backplane
CN102955502B (en) * 2011-08-25 2017-05-17 赛恩倍吉科技顾问(深圳)有限公司 Backboard interface circuit, hard disk backboard and server system
CN104239189A (en) * 2013-06-24 2014-12-24 鸿富锦精密电子(天津)有限公司 Hard disk backplane monitoring device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038031A (en) * 2017-12-07 2018-05-15 郑州云海信息技术有限公司 A kind of method and device for monitoring hard disk presence in real time
CN111274098A (en) * 2018-12-05 2020-06-12 杭州海康威视数字技术股份有限公司 IoT-based storage device alarm method and device
CN111274098B (en) * 2018-12-05 2023-10-10 杭州海康威视数字技术股份有限公司 Storage device alarm method and device based on internet of things (IoT)

Also Published As

Publication number Publication date
CN105204967B (en) 2019-05-14

Similar Documents

Publication Publication Date Title
CN110111835B (en) A kind of NVMe solid-state hard disk IOPS testing method, system and device
CN104660471A (en) Method for automatically testing PCIE-SSD transmission rate and bandwidth under Linux
CN105955858A (en) Method and device for testing log recording function of BMC (Baseboard Management Controller)
US10643736B2 (en) Method, apparatus and electronic device for read/write speed testing
CN111274078A (en) Method, system and device for testing performance of hard disk
US10055366B2 (en) Method for data transmission and server for implementing the method
CN104317684A (en) Method for synchronously and automatically testing bandwidths and transmission rates of multiple USB interfaces
TW201301292A (en) System and method for testing memory of server
CN107068199B (en) Performance test method of SSD (solid State disk)
CN106815110A (en) One kind accelerates card test method and device
CN114325534A (en) Signal testing method, device, equipment and readable storage medium
WO2023050671A1 (en) Server fault locating method and apparatus, electronic device, and storage medium
CN105204967A (en) Method and device for detecting hard disc
TWI621943B (en) A hard disk monitering method and a hard disk monitering system
CN106776254A (en) A kind of automated testing method for assessing rack vibration to hard disk performance influence
CN112269696A (en) A computer storage system performance testing device, method and storage medium thereof
CN108052441A (en) A kind of test method, system, device and the storage medium of hard disk performance level
CN106648969B (en) A method and system for inspecting damaged data in a disk
CN107943652A (en) Hard disk control method, device and readable storage medium storing program for executing in a kind of storage system
CN105068924A (en) Method and apparatus for testing performance of application
CN106155866A (en) A kind of method and device of monitoring CPU core frequency
CN114646559A (en) Method and device for detecting service life of connector, electronic equipment and storage medium
JPWO2010047134A1 (en) Deterministic component model determination apparatus, deterministic component model determination method, program, storage medium, test system, and electronic device
CN104637541A (en) Test method of storage device
CN114936905A (en) Flash memory screening method and device, storage medium and computer equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant