[go: up one dir, main page]

CN106875980A - Method for testing hard disk and device - Google Patents

Method for testing hard disk and device Download PDF

Info

Publication number
CN106875980A
CN106875980A CN201710087520.4A CN201710087520A CN106875980A CN 106875980 A CN106875980 A CN 106875980A CN 201710087520 A CN201710087520 A CN 201710087520A CN 106875980 A CN106875980 A CN 106875980A
Authority
CN
China
Prior art keywords
hard disk
test
measured
color
hard
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.)
Pending
Application number
CN201710087520.4A
Other languages
Chinese (zh)
Inventor
沈刚
邱浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
Unis Huashan Information Technologies 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 Unis Huashan Information Technologies Co Ltd filed Critical Unis Huashan Information Technologies Co Ltd
Priority to CN201710087520.4A priority Critical patent/CN106875980A/en
Publication of CN106875980A publication Critical patent/CN106875980A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
    • G11C29/56004Pattern generation
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/18Error detection or correction; Testing, e.g. of drop-outs
    • G11B20/1816Testing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/18Error detection or correction; Testing, e.g. of drop-outs
    • G11B20/1816Testing
    • G11B20/182Testing using test patterns
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
    • G11C29/56016Apparatus features

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a kind of method for testing hard disk and device, and methods described is applied to server, and methods described includes:It is determined that being inserted into the hard disk type of hard disk to be measured on local hard drive backboard;The hard disk test scheme that the hard disk to be measured is matched is obtained according to the hard disk type;The hard disk to be measured is tested according to the hard disk test scheme.Therefore, the application can be different according to hard disk type, configure different testing schemes and be tested, it is achieved thereby that polytypic hard disk with inserting with test function, also achieve the automatic test to hard disk, shorten the testing time, improve testing efficiency.

Description

Method for testing hard disk and device
Technical field
The application is related to cloud field, more particularly to a kind of method for testing hard disk and device.
Background technology
In cloud computing and big data epoch, hard disk is the core component of cloud data center, and codes or data during with big data It is more and more, it is necessary to hard disk it is more, and for manufacturer server, the quantity of hard disk of delivering can also increase, and its is automatic Change test and efficiency also becomes more and more important.
At present, in hard disk test, generally require and all plug hard disk, Ran Houjin on all disk ends of hard disk backboard Tested while row full configuration hard disk.After test terminates, according to test result manual identified, which is problematic hard disk, and will be had The hard disk of problem is changed, then is reinserted new hard disk and carried out full configuration test.
But, full configuration realizes single, underaction when testing, and the problematic hard disk of manual identified is also easy to error, Efficiency is very low.
The content of the invention
The application provides a kind of method for testing hard disk and device, with unitary function when solving that full configuration is tested in the prior art, Underaction, and the problematic hard disk of manual identified is also easy to error, the very low problem of efficiency.
According to the first aspect of the embodiment of the present application, there is provided a kind of method for testing hard disk, methods described is applied to service Device, methods described includes:
It is determined that being inserted into the hard disk type of hard disk to be measured on local hard drive backboard;
The hard disk test scheme that the hard disk to be measured is matched is obtained according to the hard disk type;
The hard disk to be measured is tested according to the hard disk test scheme.
According to the second aspect of the embodiment of the present application, there is provided a kind of hard disk test device, described device is applied to service Device, described device includes:
First determining unit, the hard disk type of hard disk to be measured on local hard drive backboard is inserted into for determination;
First acquisition unit, for obtaining the hard disk test scheme that the hard disk to be measured is matched according to the hard disk type;
Test cell, for being tested the hard disk to be measured according to the hard disk test scheme.
Using the embodiment of the present application, can be different according to hard disk type, configure different testing schemes and tested, so that Realize polytypic hard disk also achieves the automatic test to hard disk with slotting with test function, shortens the testing time, carries Testing efficiency high.
Brief description of the drawings
Fig. 1 is the application scenarios schematic diagram of the application method for testing hard disk;
Fig. 2 is one embodiment flow chart of the application method for testing hard disk;
Fig. 3 is another embodiment flow chart of the application method for testing hard disk;
Fig. 4 is a kind of hardware architecture diagram of equipment where the application hard disk test device;
Fig. 5 is one embodiment block diagram of the application hard disk test device.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in implementation method do not represent all implementation methods consistent with the application.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting the application. " one kind ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps May be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other open same type of information.For example, not departing from In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining ".
Fig. 1 is the application scenarios schematic diagram of the application method for testing hard disk.As shown in figure 1, the application scenarios include PXE (Preboot Execute Environment, Pre-boot Execution Environment) server, interchanger, server and hard disk to be measured.
Wherein, PXE server is used to provide hard disk test configuration file and hard disk test program, and allows to specify itself All hard disk test configuration files and hard disk test program under catalogue are remotely mounted under the system directory of each server.
Interchanger is used to support multiple servers testing hard disk simultaneously.
Server is connected by interchanger with PXE server, can be by all hard disks under PXE server assigned catalogue Test profile and hard disk test program are remotely mounted under local system catalogue;Polytypic hard disk to be measured can also be supported With inserting current test state is intuitively shown with test function and by local backboard indicator lamp.
The application hard disk test embodiment is described in detail below in conjunction with the accompanying drawings.
Fig. 2 is one embodiment flow chart of the application method for testing hard disk, and the method for testing hard disk can apply to clothes Business device, server as shown in Figure 1.As shown in Fig. 2 the method for testing hard disk comprises the following steps 210-230:
Step 210, it is determined that being inserted into the hard disk type of hard disk to be measured on local hard drive backboard.
In the embodiment of the present application, hard disk type has many kinds.Such as:HDD (Hard Disk Drive, mechanical hard disk), SSD (Solid State Drives, solid state hard disc) etc..
In one embodiment, it is determined that be inserted into the hard disk type of hard disk to be measured on local hard drive backboard, can include:
Detect that instrument obtains the hard disk type of hard disk to be measured by specified hard disk.
Wherein, the hard disk detection instrument specified can be Smartctl instruments, can be automatic by the Smartctl instruments Obtain the hard disk type of hard disk to be measured.
In one embodiment, it is determined that be inserted on local hard drive backboard before the hard disk type of hard disk to be measured, can be with Including:
All hard disk test configuration files and hard disk test program under PXE server assigned catalogue are remotely mounted to this Under ground system directory;
Start hard disk test program.
Step 220, the hard disk type according to hard disk to be measured obtains the hard disk test scheme of hard disk matching to be measured.
In the embodiment of the present application, for the hard disk to be measured of different hard disk types provides different testing schemes, and test Scheme includes corresponding testing process and testing standard, so after hard disk to be measured has been tested, can be by test result and survey Test-object standard is contrasted, if reaching testing standard, it is possible to determine that be successfully tested, that is, shows that hard disk to be measured is qualified hard disk;If It is not reaching to testing standard, it can be determined that test crash, that is, shows that hard disk to be measured is underproof hard disk.
In one embodiment, according to the hard disk type of hard disk to be measured obtain hard disk test scheme that hard disk to be measured matches it Before, can also include:
Obtain the hard-disk capacity and the rotation speed of hard disk of hard disk to be measured.
Such as:Detect that instrument obtains the hard-disk capacity and the rotation speed of hard disk of hard disk to be measured by specified hard disk.Wherein, specify Hard disk detection instrument can be Smartctl instruments, the hard disk of hard disk to be measured can be automatically obtained by the Smartctl instruments Capacity and the rotation speed of hard disk.
In addition, the rotation speed of hard disk for obtaining hard disk to be measured can also be obtained by following two methods:One kind is to pass through Sginfo instruments, another kind is by sg_vpd instruments.
In one embodiment, according to the hard disk type of hard disk to be measured obtain hard disk test scheme that hard disk to be measured matches it Before, can include:
The hard disk type of hard disk to be measured, hard-disk capacity and the rotation speed of hard disk are constituted one by the configuration file name format according to setting Individual configuration filename;
All hard disk test configuration files under traversal local system catalogue, obtain hard disk corresponding with configuration filename and survey Examination configuration file, the hard disk test scheme that the hard disk test configuration file that will be obtained is matched as hard disk to be measured.Wherein, in hard disk In test profile, be stored with testing hard disk when required relevant information, including the execution method of test and normal hard The criterion of disk.By obtaining hard disk test configuration file, the test process of hard disk and the shape of determination hard disk are able to carry out State.Such as the execution method tested, the queue depth of input and output can be included, input and output engine is asked defeated every time Enter the configuration such as size of output, for criterion, can be including minimum read rate and minimum writing speed etc..Based on test When execution method carries out hard disk test, if meeting criterion, can determine to be successfully tested, the hard disk to be measured is defined as Normal hard disk, and if be unsatisfactory for, then can determine test crash, the hard disk to be measured is abnormal hard disk.
Wherein, all hard disk test configuration files under local system catalogue can be that PXE server is remotely mounted to this Ground.
Step 230, tests the hard disk to be measured according to the hard disk test scheme that hard disk to be measured is matched.
In one embodiment, when the hard disk test scheme matched according to hard disk to be measured is tested the hard disk to be measured, Current test state can be indicated by local backboard indicator lamp, it is specific as follows:
Determine the slot number of hard disk to be measured;
When test is had started to hard disk to be measured, and when not obtaining test result, then the slot number correspondence of hard disk to be measured is controlled The color of lighting of backboard indicator lamp be the first color for representing first state;
Finished when to hard disk test to be measured, and test result is when being successfully tested, then to control the slot number pair of hard disk to be measured The color of lighting of the backboard indicator lamp answered is the second color for representing the second state;
Finished when to hard disk test to be measured, and test result be test crash when, then control the slot number pair of hard disk to be measured The color of lighting of the backboard indicator lamp answered is the 3rd color for representing the third state;First color, second face Color is differed with the 3rd color.
In the embodiment of the present application, in order to intuitively show current test state, it is possible to use indicator lamp light color and/or Flicker frequency represents different test modes.Wherein, different test modes at least includes following one kind:In test, test Success or test crash;Test mode is corresponding with the color that indicator lamp is lighted, the corresponding indicator lamp point of different test modes Bright color is also different.Also, it is successfully tested and shows that hard disk to be measured is qualified hard disk, test crash shows hard disk to be measured for not Qualified hard disk.
As seen from the above-described embodiment, can be different according to hard disk type, configure different testing schemes and tested, so that Realize polytypic hard disk also achieves the automatic test to hard disk with slotting with test function, shortens the testing time, carries Testing efficiency high.
Fig. 3 is another embodiment flow chart of the application method for testing hard disk, and the method for testing hard disk can apply to Server, server as shown in Figure 1.As shown in figure 3, the method for testing hard disk is set up on the basis of method shown in Fig. 2, can To comprise the following steps 310-330:
Step 310, start-up operation system.
Step 320, performs carry order, and by all hard disk test configuration files under PXE server assigned catalogue and Hard disk test program is remotely mounted under local system catalogue.
Step 330, starts hard disk test program.
Such as:Hard disk test configuration file and hard disk test program are stored in the diagnosis catalogue D of PXE server:\tools Under, remotely can be mounted to diagnosis catalogue under local system catalogue by server, then call init.sh script automatic hard disks Test program.
Step 340, it is determined that be inserted into the hard disk type of hard disk to be measured, hard-disk capacity and hard disk on local hard drive backboard turning Speed.
In the embodiment of the present application, when inserting hard disk to be measured on local hard drive backboard is detected, examined by specified hard disk Survey instrument can be with information such as the hard disk type of direct access hard disk to be measured, hard-disk capacity and the rotation speeds of hard disk.
Wherein, the hard disk detection instrument specified can be Smartctl instruments, can be automatic by the Smartctl instruments Obtain the information such as hard disk serial number, hard disk type, hard-disk capacity and the rotation speed of hard disk.
Such as:Hard disk to be measured is SATA (Serial Advanced Technology Attachment, serial senior skill Art annex) interface mechanical hard disk, the hard-disk capacity of the mechanical hard disk is known for 500G by the Smartctl instruments, hard disk turns Speed is 7200 turns, and hard disk type is HDD SATA.
Step 350, turns the hard disk type of hard disk to be measured, hard-disk capacity and hard disk according to the configuration file name format of setting Speed one configuration filename of composition.
In the embodiment of the present application, the configuration file name format of setting can be:Hard disk type+hard-disk capacity+rotation speed of hard disk.
Such as:Hard disk to be measured is the mechanical hard disk of SATA interface, and its hard-disk capacity is 500G, and the rotation speed of hard disk is 7200 turns, Hard disk type is HDD SATA, and the configuration filename of composition is specific as follows:
HDDSATA_500G_7200.conf。
Step 360, all hard disk test configuration files under traversal local system catalogue are obtained and the configuration text for being constituted The corresponding hard disk test configuration file of part name, the hard disk test that the hard disk test configuration file that will be obtained is matched as hard disk to be measured Scheme.
In the embodiment of the present application, the every class hard disk test configuration file under local system catalogue has the filename of oneself, All configuration filenames under local system catalogue can be so traveled through, according to the hard disk type, the rotation speed of hard disk and hard disk that get Capacity is matched, if after the match is successful, the corresponding method of testing of hard disk to be measured and test are obtained from the configuration file of matching Standard, so can match different configuration files and test for the hard disk of different size.
Step 370, tests the hard disk to be measured according to the hard disk test scheme that hard disk to be measured is matched.
Step 380, determines the slot number of hard disk to be measured.
In one embodiment, it is determined that hard disk to be measured slot number when, can determine in the following ways:
Obtain SN (Serial Number, product ID) code of hard disk to be measured;
SN yards according to the hard disk to be measured slot number for determining hard disk to be measured.
In the embodiment of the present application, SN yards of instrument acquisition hard disk to be measured can be detected by specified hard disk.
Such as:The hard disk detection instrument specified is Smartctl instruments, and can be obtained automatically by the Smartctl instruments Take SN yards of hard disk to be measured.
Step 390, the current test shape of hard disk to be measured is indicated by the corresponding backboard indicator lamp of the slot number of hard disk to be measured State.
In the embodiment of the present application, local hard drive backboard includes multiple groove positions for inserting hard disk to be measured, and each groove position There is corresponding backboard indicator lamp.After inserting a hard disk to be measured, and start to test, can be by the corresponding backboard in insertion groove position Indicator lamp indicates current test state in test;When test result, and test result is obtained to be successfully tested, can also pass through The corresponding backboard indicator lamp in insertion groove position indicates current test state to be successfully tested;When test result is test crash, It is test crash that current test state can be indicated by the corresponding backboard indicator lamp in insertion groove position.In addition, when on certain groove position After the completion of hard disk test, it is possible to extract the hard disk for having completed test from groove position, it is easy to insert next on groove position Individual hard disk is tested, it is achieved thereby that hard disk with insert with test function.
In one embodiment, current test state is indicated in the corresponding backboard indicator lamp of slot number by hard disk to be measured When, different test modes can be indicated by the different colours of backboard indicator lamp, specifically include:Opened when to hard disk to be measured Begin to test, and when not obtaining test result, then the color of lighting for controlling the corresponding backboard indicator lamp of slot number for surveying hard disk is use In the first color of expression first state, and line flicker is entered with assigned frequency;
Finished when to hard disk test to be measured, and test result is for when being successfully tested, then the slot number correspondence of hard disk is surveyed in control Backboard indicator lamp light color be for represent the second state the second color;
Finished when to hard disk test to be measured, and test result be test crash when, then control survey hard disk slot number correspondence The color of lighting of backboard indicator lamp be the 3rd color for representing the third state;First color, the second color and the 3rd face Color is differed.
Such as:When test is had started to hard disk to be measured, and when not obtaining test result, then control indicator lamp lights color It is green, and line flicker is entered with 2HZ frequencies;Finished when to hard disk test to be measured, and test result is when being successfully tested, then to control The color of lighting of indicator lamp is blueness;Finished when to hard disk test to be measured, and test result be test crash when, then control indicate The color of lighting of lamp is red.
As seen from the above-described embodiment, surveyed by by all hard disk test configuration files under server assigned catalogue and hard disk Examination program is remotely mounted under local system catalogue, and hard disk type according to hard disk to be measured, hard-disk capacity and the rotation speed of hard disk time All hard disk test configuration files under almanac ground system directory, obtain the hard disk test configuration file matched with hard disk to be measured, And hard disk to be measured is tested according to the hard disk test scheme for being matched, and determine the slot number of hard disk to be measured, by treating The corresponding backboard indicator lamp of slot number for surveying hard disk indicates the current test state of the hard disk to be measured, it is achieved thereby that to hard disk Automatic test and display test result directly perceived, improve test accuracy.
It is corresponding with foregoing method for testing hard disk embodiment, present invention also provides the embodiment of hard disk test device.
The embodiment of the application hard disk test device can be using on the server.Device embodiment can be by software reality It is existing, it is also possible to be realized by way of hardware or software and hardware combining.As a example by implemented in software, as on a logical meaning Device, is that corresponding computer program instructions in nonvolatile memory are read into internal memory by the processor of equipment where it What middle operation was formed.From for hardware view, as shown in figure 4, being a kind of hardware of the application hard disk test device place equipment Structural representation, in addition to the processor shown in Fig. 4, network interface, internal memory and nonvolatile memory, fills in embodiment Equipment where putting can also generally include other hardware, such as be responsible for the forwarding chip for the treatment of message;From hardware configuration For the equipment be also possible to be distributed equipment, multiple interface cards are potentially included, to carry out the network address in hardware view The extension of conversion.
It is one embodiment block diagram of the application hard disk test device referring to Fig. 5, the device can apply to server, Server as shown in Figure 1, it is possible to for performing the method for testing hard disk shown in Fig. 2, the device can include:First determines Unit 51, first acquisition unit 52, and test cell 53.
First determining unit 51, the hard disk type of hard disk to be measured on local hard drive backboard is inserted into for determination;
First acquisition unit 52, for obtaining the hard disk test side that the hard disk to be measured is matched according to the hard disk type Case;
Test cell 53, for being tested the hard disk to be measured according to the hard disk test scheme.
As seen from the above-described embodiment, can be different according to hard disk type, configure different testing schemes and tested, so that Realize polytypic hard disk also achieves the automatic test to hard disk with slotting with test function, shortens the testing time, carries Testing efficiency high.
In an optional implementation, the server is by interchanger and Pre-boot Execution Environment PXE server It is connected;Described device also includes:Carry unit and start unit (not shown in Fig. 5).
Carry unit, for all hard disk test configuration files under the PXE server assigned catalogue and hard disk to be surveyed Examination program is remotely mounted under local system catalogue;
Start unit, for starting the hard disk test program.
In an optional implementation, described device can also include:Second acquisition unit (not shown in Fig. 5).
Second acquisition unit, hard-disk capacity and the rotation speed of hard disk for obtaining the hard disk to be measured;
And, the first acquisition unit 52 can include:Composition subelement and traversal subelement (not shown in Fig. 5).
Composition subelement, for according to setting configuration file name format by the hard disk type, the hard-disk capacity and The rotation speed of hard disk constitutes a configuration filename;
Traversal subelement, for traveling through all hard disk test configuration files under local system catalogue, obtains matching somebody with somebody with described Put the corresponding hard disk test configuration file of filename, the hard disk test configuration file that will be obtained is used as the hard disk test scheme.
In an optional implementation, described device can also include:Second determining unit, the first control unit, Second control unit and the 3rd control unit (not shown in Fig. 5).
Second determining unit, the slot number for determining the hard disk to be measured;
First control unit, has started to test to the hard disk to be measured, and when not obtaining test result, then control for working as The color of lighting of the corresponding backboard indicator lamp of the slot number is the first color for representing first state;
Second control unit, for when being finished to the hard disk test to be measured, and the test result is for when being successfully tested, The color of lighting for then controlling the corresponding backboard indicator lamp of the slot number is the second color for representing the second state;
3rd control unit, for when being finished to the hard disk test to be measured, and the test result is when being test crash, The color of lighting for then controlling the corresponding backboard indicator lamp of the slot number is the 3rd color for representing the third state;Described One color, second color are differed with the 3rd color.
In an optional implementation, second determining unit can include:Obtain subelement and determine that son is single First (not shown in Fig. 5).
Obtain subelement, product ID SN yards for obtaining the hard disk to be measured;
Determination subelement, the slot number for determining the hard disk to be measured according to described SN yards.
As seen from the above-described embodiment, surveyed by by all hard disk test configuration files under server assigned catalogue and hard disk Examination program is remotely mounted under local system catalogue, and hard disk type according to hard disk to be measured, hard-disk capacity and the rotation speed of hard disk time All hard disk test configuration files under almanac ground system directory, obtain the hard disk test configuration file matched with hard disk to be measured, And hard disk to be measured is tested according to the hard disk test scheme for being matched, and determine the slot number of hard disk to be measured, by treating The corresponding backboard indicator lamp of slot number for surveying hard disk indicates the current test state of the hard disk to be measured, it is achieved thereby that to hard disk Automatic test and display test result directly perceived, improve test accuracy.
The function of unit and the implementation process of effect correspond to step in specifically referring to the above method in said apparatus Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is referring to method reality Apply the part explanation of example.Device embodiment described above is only schematical, wherein described as separating component The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality Selection some or all of module therein is needed to realize the purpose of application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, all essences in the application Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.

Claims (10)

1. a kind of method for testing hard disk, it is characterised in that methods described is applied to server, and methods described includes:
It is determined that being inserted into the hard disk type of hard disk to be measured on local hard drive backboard;
The hard disk test scheme that the hard disk to be measured is matched is obtained according to the hard disk type;
The hard disk to be measured is tested according to the hard disk test scheme.
2. method according to claim 1, it is characterised in that the server passes through interchanger and Pre-boot Execution Environment PXE server is connected;
The determination is inserted on local hard drive backboard before the hard disk type of hard disk to be measured, is also included:
All hard disk test configuration files and hard disk test program under the PXE server assigned catalogue are remotely mounted to this Under ground system directory;
Start the hard disk test program.
3. method according to claim 1, it is characterised in that described that the hard disk to be measured is obtained according to the hard disk type Before the hard disk test scheme of matching, also include:
Obtain the hard-disk capacity and the rotation speed of hard disk of the hard disk to be measured;
It is described that the hard disk test scheme that the hard disk to be measured is matched is obtained according to the hard disk type, including:
The hard disk type, the hard-disk capacity and the rotation speed of hard disk are constituted one by the configuration file name format according to setting Configuration filename;
All hard disk test configuration files under traversal local system catalogue, obtain hard disk corresponding with the configuration filename and survey Examination configuration file, the hard disk test configuration file that will be obtained is used as the hard disk test scheme.
4. method according to claim 1, it is characterised in that methods described also includes:
Determine the slot number of the hard disk to be measured;
When test is had started to the hard disk to be measured, and when not obtaining test result, then the corresponding backboard of the slot number is controlled The color of lighting of indicator lamp is the first color for representing first state;
Finished when to the hard disk test to be measured, and the test result is when being successfully tested, then to control the slot number correspondence Backboard indicator lamp light color be for represent the second state the second color;
Finished when to the hard disk test to be measured, and the test result is when being test crash, then control slot number correspondence The color of lighting of backboard indicator lamp be the 3rd color for representing the third state;First color, second color Differed with the 3rd color.
5. method according to claim 4, it is characterised in that the slot number of the determination hard disk to be measured, including:
Obtain product ID SN yards of the hard disk to be measured;
According to the described SN yards slot number of the determination hard disk to be measured.
6. a kind of hard disk test device, it is characterised in that described device is applied to server, and described device includes:
First determining unit, the hard disk type of hard disk to be measured on local hard drive backboard is inserted into for determination;
First acquisition unit, for obtaining the hard disk test scheme that the hard disk to be measured is matched according to the hard disk type;
Test cell, for being tested the hard disk to be measured according to the hard disk test scheme.
7. device according to claim 6, it is characterised in that the server passes through interchanger and Pre-boot Execution Environment PXE server is connected;
Described device also includes:
Carry unit, for by all hard disk test configuration files and hard disk test journey under the PXE server assigned catalogue Sequence is remotely mounted under local system catalogue;
Start unit, for starting the hard disk test program.
8. device according to claim 6, it is characterised in that described device also includes:
Second acquisition unit, hard-disk capacity and the rotation speed of hard disk for obtaining the hard disk to be measured;
The first acquisition unit includes:
Composition subelement, for the configuration file name format according to setting by the hard disk type, the hard-disk capacity and described The rotation speed of hard disk constitutes a configuration filename;
Traversal subelement, for traveling through all hard disk test configuration files under local system catalogue, obtains and the configuration text The part corresponding hard disk test configuration file of name, the hard disk test configuration file that will be obtained is used as the hard disk test scheme.
9. device according to claim 6, it is characterised in that described device also includes:
Second determining unit, the slot number for determining the hard disk to be measured;
First control unit, test is had started to the hard disk to be measured for working as, and when not obtaining test result, is then controlled described The color of lighting of the corresponding backboard indicator lamp of slot number is the first color for representing first state;
Second control unit, finishes for working as to the hard disk test to be measured, and the test result is when being successfully tested, then to control The color of lighting for making the corresponding backboard indicator lamp of the slot number is the second color for representing the second state;
3rd control unit, for when being finished to the hard disk test to be measured, and the test result is when being test crash, then control The color of lighting for making the corresponding backboard indicator lamp of the slot number is the 3rd color for representing the third state;First face Color, second color are differed with the 3rd color.
10. device according to claim 9, it is characterised in that second determining unit includes:
Obtain subelement, product ID SN yards for obtaining the hard disk to be measured;
Determination subelement, the slot number for determining the hard disk to be measured according to described SN yards.
CN201710087520.4A 2017-02-17 2017-02-17 Method for testing hard disk and device Pending CN106875980A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710087520.4A CN106875980A (en) 2017-02-17 2017-02-17 Method for testing hard disk and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710087520.4A CN106875980A (en) 2017-02-17 2017-02-17 Method for testing hard disk and device

Publications (1)

Publication Number Publication Date
CN106875980A true CN106875980A (en) 2017-06-20

Family

ID=59167486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710087520.4A Pending CN106875980A (en) 2017-02-17 2017-02-17 Method for testing hard disk and device

Country Status (1)

Country Link
CN (1) CN106875980A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391333A (en) * 2017-08-14 2017-11-24 郑州云海信息技术有限公司 A kind of OSD disk failures method of testing and system
CN107391325A (en) * 2017-06-30 2017-11-24 郑州云海信息技术有限公司 A kind of method of testing of hard disk, device and terminal
CN107402720A (en) * 2017-06-30 2017-11-28 郑州云海信息技术有限公司 A kind of processing method of hard disk, device and terminal
CN107832180A (en) * 2017-11-27 2018-03-23 郑州云海信息技术有限公司 A kind of method for carrying out single-deck performance automatic test successively to hard-disk interface
CN108806761A (en) * 2018-06-04 2018-11-13 深圳忆联信息系统有限公司 A kind of SSD function test methods, system and computer storage media
CN109189333A (en) * 2018-08-15 2019-01-11 郑州云海信息技术有限公司 A kind of method, apparatus and system of hard disk adaptation
CN109524054A (en) * 2018-11-16 2019-03-26 郑州云海信息技术有限公司 A kind of more hard disk types automatic positioning test method and device
CN109542476A (en) * 2018-11-01 2019-03-29 郑州云海信息技术有限公司 A kind of automatic identification HDD type and the method, system and device for refreshing hard disk firmware
CN111462811A (en) * 2020-04-22 2020-07-28 深圳佰维存储科技股份有限公司 Automatic testing method and device, storage medium and electronic equipment
CN112328173A (en) * 2020-10-27 2021-02-05 中国建设银行股份有限公司 Disk fault repair method and device for distributed storage system
CN113049939A (en) * 2019-12-27 2021-06-29 中移物联网有限公司 Chip aging self-testing method and system
CN113257334A (en) * 2021-06-30 2021-08-13 四川微巨芯科技有限公司 Test method, device and system for solid state disk
CN114121136A (en) * 2021-11-10 2022-03-01 超存极光(上海)半导体有限公司 A DRAM test system
CN117234826A (en) * 2023-11-10 2023-12-15 深圳市领德创科技有限公司 Solid state disk reliability verification interference-free test platform and working method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130067165A1 (en) * 2011-09-09 2013-03-14 Fujitsu Limited Disk array device and disk array device control method
CN104407951A (en) * 2014-11-05 2015-03-11 浪潮电子信息产业股份有限公司 Method for automatically testing complete server
CN105097042A (en) * 2014-05-20 2015-11-25 中兴通讯股份有限公司 Method and apparatus for processing health condition of hard disk

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130067165A1 (en) * 2011-09-09 2013-03-14 Fujitsu Limited Disk array device and disk array device control method
CN105097042A (en) * 2014-05-20 2015-11-25 中兴通讯股份有限公司 Method and apparatus for processing health condition of hard disk
CN104407951A (en) * 2014-11-05 2015-03-11 浪潮电子信息产业股份有限公司 Method for automatically testing complete server

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391325B (en) * 2017-06-30 2021-03-12 苏州浪潮智能科技有限公司 Hard disk test method and device and terminal
CN107391325A (en) * 2017-06-30 2017-11-24 郑州云海信息技术有限公司 A kind of method of testing of hard disk, device and terminal
CN107402720A (en) * 2017-06-30 2017-11-28 郑州云海信息技术有限公司 A kind of processing method of hard disk, device and terminal
CN107402720B (en) * 2017-06-30 2020-06-16 苏州浪潮智能科技有限公司 Hard disk processing method and device and terminal
CN107391333A (en) * 2017-08-14 2017-11-24 郑州云海信息技术有限公司 A kind of OSD disk failures method of testing and system
CN107391333B (en) * 2017-08-14 2020-10-16 苏州浪潮智能科技有限公司 A kind of OSD disk failure testing method and system
CN107832180A (en) * 2017-11-27 2018-03-23 郑州云海信息技术有限公司 A kind of method for carrying out single-deck performance automatic test successively to hard-disk interface
CN108806761A (en) * 2018-06-04 2018-11-13 深圳忆联信息系统有限公司 A kind of SSD function test methods, system and computer storage media
CN109189333A (en) * 2018-08-15 2019-01-11 郑州云海信息技术有限公司 A kind of method, apparatus and system of hard disk adaptation
CN109189333B (en) * 2018-08-15 2021-10-15 郑州云海信息技术有限公司 A method, device and system for hard disk adaptation
CN109542476A (en) * 2018-11-01 2019-03-29 郑州云海信息技术有限公司 A kind of automatic identification HDD type and the method, system and device for refreshing hard disk firmware
CN109524054A (en) * 2018-11-16 2019-03-26 郑州云海信息技术有限公司 A kind of more hard disk types automatic positioning test method and device
CN113049939A (en) * 2019-12-27 2021-06-29 中移物联网有限公司 Chip aging self-testing method and system
CN111462811A (en) * 2020-04-22 2020-07-28 深圳佰维存储科技股份有限公司 Automatic testing method and device, storage medium and electronic equipment
CN112328173A (en) * 2020-10-27 2021-02-05 中国建设银行股份有限公司 Disk fault repair method and device for distributed storage system
CN113257334A (en) * 2021-06-30 2021-08-13 四川微巨芯科技有限公司 Test method, device and system for solid state disk
CN114121136A (en) * 2021-11-10 2022-03-01 超存极光(上海)半导体有限公司 A DRAM test system
CN117234826A (en) * 2023-11-10 2023-12-15 深圳市领德创科技有限公司 Solid state disk reliability verification interference-free test platform and working method
CN117234826B (en) * 2023-11-10 2024-04-05 深圳市领德创科技有限公司 Solid state disk reliability verification interference-free test platform and working method

Similar Documents

Publication Publication Date Title
CN106875980A (en) Method for testing hard disk and device
CN111756575B (en) Performance analysis method and device of storage server and electronic equipment
CN106571954B (en) Method and device for detecting abnormal restart reason of AP (access point) equipment
US20120174069A1 (en) Graphical user interface testing systems and methods
CN102568522B (en) The method of testing of hard disk performance and device
CN105068936B (en) Method and device for testing stability of software
CN107659455B (en) Method, storage medium, device and system for Mock data of iOS (internet operating system) end
CN105468482B (en) Hard disk position identification and fault diagnosis method and server equipment thereof
CN104503875A (en) Test method and test system of Android device
CN109542708B (en) A method and component for recording the correspondence between physical slots and system drive letters on a backplane
CN110851307A (en) Method, system, terminal and storage medium for testing performance of hard disk in vibration environment
CN109726130A (en) Test system, method, device and storage medium for BMC event log strategy
US6366969B1 (en) Method of determining data transfer rate of a device by measuring the transfer rate of data between a virtual drive and the device
US6442725B1 (en) System and method for intelligent analysis probe
CN117330935A (en) Integrated circuit testing method, device and medium
US7158908B2 (en) Test apparatus, diagnosing program and diagnosing method therefor
US20060129354A1 (en) Method, system, and article of manufacture for running diagnostics related to a device
US6378013B1 (en) System for assessing performance of computer systems
CN113190241B (en) Method and device for expanding capacity of data partition, electronic equipment and storage medium
CN110990207B (en) BPS memory test method, system, terminal and storage medium based on Whitley platform
CN109062805A (en) A kind of AEP memory firmware promotion and demotion test method, device, terminal and storage medium
CN114610557B (en) Method and device for testing equipment driving unit
US20080004857A1 (en) Restoring base configuration on software testing computer
CN105868101B (en) A kind of method for testing software
CN108549590A (en) A kind of KTV local servers test method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Xinhua Sanxin Information Technology Co., Ltd.

Address before: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant before: Huashan Information Technology Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20170620

RJ01 Rejection of invention patent application after publication