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
link block
detected value
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.)
Inspur Electronic Information Industry 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

The invention provides a method and a device for detecting a hard disc. The method comprises the following steps: S1, determining a target hard disc; S2, respectively detecting a first detection value of performance parameters of the target hard disc when the target hard disc is connected with each hard disc connection module of a server to be detected; S3, according to the first detection value corresponding to each hard disc connection module, judging whether each hard disc connection module on the server to be detected meets the requirement or not, if each hard disc connection module meets the requirement, executing the step S4, otherwise, adjusting the hard disc connection module that does not meet the requirement, and after the adjustment is completed, returning to the step S2; S4, connecting each hard disc connection module with a corresponding hard disc to be detected; S5, detecting each hard disc to be detected, and determining a second detection value of the performance parameter of each hard disc to be detected. By adopting the method and device, the detected performance of the hard disc is more accurate.

Description

A kind of method and device detecting hard disk
Technical field
The present invention relates to field of computer technology, particularly a kind of method and device detecting hard disk.
Background technology
Along with the fast development of computer technology and network technology, all producing a large amount of data all the time.Hard disk is as the most frequently used medium storing data, and when data are transmitted between the individual devices, need to read data from hard disk fast and write data to hard disk, the requirement of user to the performance of hard disk is more and more higher.In order to ensure that the performance of hard disk can meet the requirement of user, need to detect hard disk.
In prior art, in conventional hard disk performance detection method, generally just some parameters of hard disk itself are detected, the rotating speed etc. of such as hard disk.And hard disk in actual applications, except being subject to the impact of the performance of hard disk itself, the impact of surrounding environment also to be subject to, along with the difference of surrounding environment, hard disk performance in the application also can be different, for example, if the temperature of surrounding environment is too high, the read or write speed etc. of hard disk may be reduced.In the prior art, owing to not taking into full account the impact of hard disk applications environment on hard disk performance, make testing result not accurate enough.
Summary of the invention
In view of this, the invention provides a kind of method and the device that detect hard disk, the hard disk performance that detects can be made more accurate.
On the one hand, the invention provides a kind of method detecting hard disk, 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.
Further, 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.
Further, before described S3, also comprise: 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.
Further, 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.
Further, the method also comprises: 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.
On the other hand, the invention provides a kind of device detecting hard disk, 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.
Further, 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.
Further, this device 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.
Further, described second detecting unit, for regulating the rotating speed of the fan of described server to be measured, detecting each hard disk to be measured respectively, determining the second detected value of the performance parameter of each hard disk to be measured under often kind of wind speed respectively under often kind of wind speed.
Further, this device 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.
Hard disk is linked in server by being connected with hard disk link block, if hard disk link block is undesirable, then can affect the accuracy of the testing result to hard disk, a kind of method and device detecting hard disk that the embodiment of the present invention provides, determine on server to be measured, whether each hard disk link block meets the requirements by the performance of target hard disk, undesirable hard disk link block is adjusted, after all hard disk link blocks referred to meet the requirements, carry out detecting the hard disk all to be measured on server to be measured, eliminate the impact of hard disk link block on the testing result of hard disk to be measured, the hard disk performance that detects can be made more accurate.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of process flow diagram detecting the method for hard disk that one embodiment of the invention provides;
Fig. 2 is the process flow diagram of the method for the another kind detection hard disk that one embodiment of the invention provides;
Fig. 3 is a kind of schematic diagram detecting the device of hard disk that one embodiment of the invention provides;
Fig. 4 is the schematic diagram of the device of the another kind detection hard disk that one embodiment of the invention provides.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly; below in conjunction with the accompanying drawing in the embodiment of the present invention; technical scheme in the embodiment of the present invention is clearly and completely described; obviously; described embodiment is the present invention's part embodiment, instead of whole embodiments, based on the embodiment in the present invention; the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belongs to the scope of protection of the invention.
As shown in Figure 1, embodiments provide a kind of method detecting hard disk, the method can comprise the following steps:
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.
Hard disk is linked in server by being connected with hard disk link block, if hard disk link block is undesirable, then can affect the accuracy of the testing result to hard disk, a kind of method detecting hard disk that the embodiment of the present invention provides, determine on server to be measured, whether each hard disk link block meets the requirements by the performance of target hard disk, undesirable hard disk link block is adjusted, after all hard disk link blocks referred to meet the requirements, carry out detecting the hard disk all to be measured on server to be measured, eliminate the impact of hard disk link block on the testing result of hard disk to be measured, the hard disk performance that detects can be made more accurate.
In order to make measurement result more accurate, can using the hard disk of in hard disk to be measured as target hard disk, in a kind of possible implementation, 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.
Target hard disk is used to verify hard disk link block, and hard disk to be measured mates more with the hard disk link block in server to be measured, adopts in hard disk to be measured one as target hard disk, the result can be made more accurate.Target hard disk should be able to represent the performance condition of each hard disk to be measured, therefore selectivity can be positioned at the hard disk to be measured of average level.
In a kind of possible implementation, before described S3, also comprise: 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.
In this implementation, 3rd detected value detects acquisition outward at server to be measured, not by the impact of hard disk link block, reference value is selected from these the 3rd detected values, the threshold value obtained by reference value and the first detected value recorded when being subject to the impact of hard disk link block are compared, determine whether hard disk link block meets the requirements, the result so more obtained is more accurate.If by the data recorded when being subject to the impact of hard disk link block as reference value, when comparing, all contain the factor of the impact being subject to hard disk link block in first detected value and reference value, accurately cannot judge whether hard disk link block meets the requirements.In addition, in order to make testing result more accurate, when target hard disk being connected with hard disk link block, hard disk corresponding to other hard disk link blocks also runs in the server, follows the running status that more can accurately reflect hard disk place in server like this.Further, when definite threshold, can using 80% of reference value as threshold value.
In S5, in order to detect the performance of hard disk to be measured more accurately, when detecting current hard disk to be measured, keeping other hard disks to be measured normally to run, reflecting the running environment of hard disk in server more accurately.
In a kind of possible implementation, 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.
The performance of hard disk can be subject to the impact of hard disk vibrations, and in the server, major part vibrations derive from the fan of server, therefore, by measuring the performance of hard disk to be measured under different wind speed, more accurately comprehensively can present the performance of hard disk to be measured.
When condition rotation speed of the fan, respectively the rotating speed of fan can be transferred to 30%, 40%, 50%, 60%, 70%, 80%, 90%, 100% of maximum (top) speed, often kind of situation is detected.
In a kind of possible implementation, comprise: described performance parameter comprises: the IOPS under IOPS (Input/OutputOperationsPerSecond, the number of times carrying out read-write operation per second), the 256k order read-write mode under 4k random read-write pattern.
In a kind of possible implementation, described hard disk link block comprises: hard disk slot, hard disk backboard.
In addition, to when determining target hard disk, each hard disk to be measured carries out monomer when detecting, in order to reduce external environment, particularly shaking the impact on hard disk performance, can hard disk to be measured is fixed on tool, to alleviate the vibrations of outer bound pair hard disk, and alleviate hard disk self vibration.
Detect target hard disk is put in server to be measured, with to hard disk to be measured is put into server to be measured detect time, in order to reduce the vibration influence that outer bound pair server causes, can server be placed in marble platform, keep plane relative smooth smooth, quality is comparatively large again to external world for this marble platform, gets rid of extraneous vibratory output and conducts on server, such measurement result is mainly subject to the impact of server itself, more accurately.
When detecting hard disk, can be realized by IOMeter software.When detecting the IOPS under IOPS and the 256k order read-write mode under 4k random read-write pattern, all running more than 2 minutes under often kind of pattern, measurement result can be made so more accurate.
In a kind of possible implementation, after S4, also comprise: the fan of described server to be measured is set to automatic shaping modes, detect each hard disk to be measured, determine the metewand value of the performance parameter of 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.
By this implementation, after the second detected value determining each hard disk to be measured, can evaluate each hard disk to be measured according to the second detected value.Evaluation threshold also can realize in the following manner: the wind speed arranging fan is in nature wind speed, namely fan has server normal regulating as required, in this case, measure the evaluation detected value of the performance parameter of each hard disk to be measured, using the evaluation detected value of each hard disk to be measured as its metewand value, that is, the metewand value of each hard disk to be measured may be different, relevant with the performance of hard disk self.According to this metewand value determination Evaluation threshold, such as: for SATA (SerialATA, serial port hard disk) hard disk of type, can using 80% of its metewand value as its Evaluation threshold, for SAS (SerialAttachedSCSI, Serial Attached SCSI (SAS) interface) hard disk of type, can using 85% of its metewand value as its Evaluation threshold.Then, Evaluation threshold corresponding with it for the second detected value of each hard disk to be measured is compared, if be more than or equal to its Evaluation threshold, then determine that this hard disk performance to be measured is good, if be less than its Evaluation threshold, then determine that this hard disk performance to be measured is poor, need to carry out improving its performance.
When improving hard disk performance, can in the following manner: the Machine Design of hard disk front window is improved, reduce the conduct vibrations energy of fan High Rotation Speed; The circuit design of hard disk backboard is optimized, reduces impedance and Signal transmissions interference, improve disk read-write performance number.
In addition, in a kind of possible implementation, 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.
By this implementation, the performance of each hard disk to be measured outside server and the performance of each hard disk to be measured in server are contrasted, the impact of hard disk link block on the performance of hard disk to be measured can be reflected, and then adjustment can be optimized to hard disk link block.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
In embodiments of the present invention, need to carry out Performance Detection to the hard disk to be measured of 8 in server A, 8 hard disks to be measured are hard disk 1, hard disk 2, hard disk 3, hard disk 4, hard disk 5, hard disk 6, hard disk 7, hard disk 8 respectively.The performance parameter obtained is the IOPS of 4k random read-write pattern.
As shown in Figure 2, embodiments provide a kind of method detecting hard disk, the method can comprise the following steps:
Step 201: to the hard disk each to be measured be deployed in outside server A carry out 4k random read-write pattern place an order health check-up survey.
In order to avoid server A is on the impact of the performance of each hard disk to be measured, hard disk to be measured is deployed in server A outside and detects, respectively independent detection is carried out to hard disk 1 to hard disk 8.
Step 202: the 3rd detected value obtaining the IOPS of each hard disk to be measured.
For example, the detected value of the IOPS of hard disk 1 to hard disk 8 is followed successively by 6000,4500,4000,3500,3000,2500,2000,1000.
Step 203: using with immediate 3rd detected value of the mean value of all 3rd detected values as reference value, 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, using 80% of reference value as threshold value, and determine that reference value is 3500, target hard disk is hard disk 4, threshold value is 2800.
For example, the mean value of all 3rd detected values is 3312.5, and be the 3rd detected value 3500 of hard disk 4 with 3312.5 immediate 3rd detected values, therefore, reference value is 3500, target hard disk is hard disk 4.
Step 204: detect the hard disk 4 when being connected with each hard disk link block of server A respectively.
Each hard disk is linked in server A by hard disk link block, and the hard disk link block that hard disk 1 to hard disk 8 connects is followed successively by: hard disk link block 1, hard disk link block 2, hard disk link block 3, hard disk link block 4, hard disk link block 5, hard disk link block 6, hard disk link block 7, hard disk link block 8.Hard disk 4 is connected with hard disk link block 1 to hard disk link block 8 respectively, is linked in server A, then detects, that is, hard disk 4 is connected with hard disk link block 1, hard disk 4 is detected; Hard disk 4 is connected with hard disk link block 2, hard disk 4 is detected; The like.
In addition, when hard disk 4 is connected with arbitrary hard disk link block, other hard disk link blocks also connect with corresponding hard disk, and each hard disk normally runs.Particularly, when hard disk 4 is connected with hard disk link block 1, hard disk link block 2 to hard disk link block 8 connects successively: hard disk 2, hard disk 3, hard disk 1, hard disk 5, hard disk 6, hard disk 7, hard disk 8, or, hard disk link block 4 does not connect hard disk, and other hard disk link blocks connect with corresponding hard disk.
Step 205: the first detected value obtaining the IOPS of hard disk 4 when being connected with each hard disk link block respectively.
For example, first detected value of IOPS when hard disk 4 is connected with hard disk link block 1 to hard disk link block 8 is respectively successively: 4000,3800,3200,3500,3000,2900,2995,2895.
Step 206: judge whether each first detected value is all more than or equal to threshold value 2800, judged result is yes, determines that each hard disk link block all meets the requirements.
In addition, 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, adjusts undesirable hard disk link block, after having adjusted, returns step 204.Particularly, if first detected value of IOPS when hard disk 4 is connected with hard disk link block 5 is 2500, then hard disk link block 5 is undesirable, adjusts hard disk link block 5, after having adjusted, is returning step 204, is again detecting.
Step 207: each hard disk link block is connected with corresponding hard disk to be measured.
Particularly, by the hard disk that is connected with hard disk link block 1 to hard disk link block 8 successively: hard disk 1, hard disk 2, hard disk 3, hard disk 4, hard disk 5, hard disk 6, hard disk 7, hard disk 8.
Step 208: the rotating speed of the fan of regulation server A, detects each hard disk to be measured respectively under often kind of wind speed, determines the second detected value of the performance parameter of each hard disk to be measured under often kind of wind speed respectively.
Particularly, respectively the wind speed of fan is adjusted to 30%, 40%, 50%, 60%, 70%, 80%, 90%, 100% of maximum wind velocity, the second detected value of each hard disk to be measured under detecting often kind of wind speed.
As shown in Figure 3, Figure 4, a kind of device detecting hard disk is embodiments provided.Device embodiment can pass through software simulating, also can be realized by the mode of hardware or software and hardware combining.Say from hardware view; as shown in Figure 3; for a kind of a kind of hardware structure diagram detecting the device place equipment of hard disk that the embodiment of the present invention provides; except the processor shown in Fig. 3, internal memory, network interface and nonvolatile memory; in embodiment, the equipment at device place can also comprise other hardware usually, as the forwarding chip etc. of responsible process message.For software simulating, as shown in Figure 4, as the device on a logical meaning, be by the CPU of its place equipment, computer program instructions corresponding in nonvolatile memory is read operation in internal memory to be formed.A kind of device detecting hard disk that the present embodiment provides, comprising:
Determining unit 401, for determining target hard disk;
First detecting unit 402, 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 403, 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 404, when judged result is no, adjusts undesirable hard disk link block, after having adjusted, notify described first detecting unit 402;
Linkage unit 404, for connecting each hard disk link block with corresponding hard disk to be measured;
Second detecting unit 405, for detecting each hard disk to be measured, determines the second detected value of the performance parameter of each hard disk to be measured.
In a kind of possible implementation, described determining unit 401, 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.
In a kind of possible implementation, this device 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.
This device also comprises: threshold value determination unit, for according to described reference value definite threshold.
Described judging unit 403, 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.
In a kind of possible implementation, described second detecting unit 405, for regulating the rotating speed of the fan of described server to be measured, under often kind of wind speed, detecting each hard disk to be measured respectively, determining the second detected value of the performance parameter of each hard disk to be measured under often kind of wind speed respectively.
In a kind of possible implementation, this device 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.
The content such as information interaction, implementation between each unit in said apparatus, due to the inventive method embodiment based on same design, particular content can see in the inventive method embodiment describe, repeat no more herein.
A kind of method and device detecting hard disk that the embodiment of the present invention provides, has following beneficial effect:
1, hard disk is linked in server by being connected with hard disk link block, if hard disk link block is undesirable, then can affect the accuracy of the testing result to hard disk, a kind of method and device detecting hard disk that the embodiment of the present invention provides, determine on server to be measured, whether each hard disk link block meets the requirements by the performance of target hard disk, undesirable hard disk link block is adjusted, after all hard disk link blocks referred to meet the requirements, carry out detecting the hard disk all to be measured on server to be measured, eliminate the impact of hard disk link block on the testing result of hard disk to be measured, the hard disk performance that detects can be made more accurate.
2, target hard disk is used to detection hard disk link block, hard disk to be measured mates more with the hard disk link block in server to be measured, a kind of method and device detecting hard disk that the embodiment of the present invention provides, adopt in hard disk to be measured one as target hard disk, testing result can be made more accurate, so make the testing result of hard disk to be measured more accurate.
3, because the performance of hard disk can be subject to the impact of hard disk vibrations, and in the server, major part vibrations derive from the fan of server, a kind of method and device detecting hard disk that the embodiment of the present invention provides, by measuring the performance of hard disk to be measured under different wind speed, the performance of hard disk to be measured more accurately comprehensively can be presented.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element " being comprised " limited by statement, and be not precluded within process, method, article or the equipment comprising described key element and also there is other same factor.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium in.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for illustration of technical scheme of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in 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 英业达股份有限公司 Test device of SAS channel and test method thereof
CN102567156A (en) * 2010-12-31 2012-07-11 鸿富锦精密工业(深圳)有限公司 Test set for server hard disk backplane
CN102955502B (en) * 2011-08-25 2017-05-17 赛恩倍吉科技顾问(深圳)有限公司 Backplane interface circuit, hard disk backplane 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
US10310749B2 (en) System and method for predicting disk failure
CN100386802C (en) Method for tuning write strategy parameters of an optical storage device, and system thereof
CN102521092A (en) Hard disk test method and device
US20150095723A1 (en) Detection system for detecting fail block using logic block address and data buffer address in a storage tester
TW201719411A (en) Software test system, method and non-transitory computer readable medium of the same
CN107068199B (en) Performance test method of SSD (solid State disk)
CN115248757A (en) Hard disk health assessment method and storage device
CN110196688A (en) A kind of disk detection method, device, equipment and medium
WO2023050671A1 (en) Server fault locating method and apparatus, electronic device, and storage medium
CN105204967A (en) Method and device for detecting hard disc
US10032476B2 (en) Magnetic storage system multi-sensor signal prediction health controller
TWI426284B (en) System and method for measuring signal integrity of sas signals from sas ports
US8913458B2 (en) Integrity check of measured signal trace data
CN107301109B (en) Hard disk quality screening method and device
TWI621943B (en) A hard disk monitering method and a hard disk monitering system
US7484221B2 (en) Method and apparatus for logging the execution history of an operating system kernel
CN116682479A (en) Method and system for testing enterprise-level solid state disk time delay index
CN106155866A (en) A kind of method and device of monitoring CPU core frequency
US20210397508A1 (en) Localization of potential issues to objects
CN110471802A (en) Store equipment health degree detection method, device and storage medium
US20120331344A1 (en) Quasi Disk Drive for Testing Disk Interface Performance
CN113628675A (en) SSD solid state disk testing method
CN109491870A (en) A kind of detection method and device of the access state of sensor
CN118398071B (en) Semiconductor unit serial flash memory signal testing method and computer program product
CN113806149B (en) Memory read-write test method and device and storage medium

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