CN109117327A - A kind of hard disk detection method and device - Google Patents

A kind of hard disk detection method and device Download PDF

Info

Publication number
CN109117327A
CN109117327A CN201810806293.0A CN201810806293A CN109117327A CN 109117327 A CN109117327 A CN 109117327A CN 201810806293 A CN201810806293 A CN 201810806293A CN 109117327 A CN109117327 A CN 109117327A
Authority
CN
China
Prior art keywords
hard disk
disk
faulty
smart information
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
CN201810806293.0A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810806293.0A priority Critical patent/CN109117327A/en
Publication of CN109117327A publication Critical patent/CN109117327A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present application discloses a kind of hard disk detection method and device, for improving the verification and measurement ratio of faulty hard disk.The embodiment of the present application method comprises determining that hard disk to be detected;The first SMART information for obtaining the hard disk judges whether the hard disk is faulty disk according to the first SMART information;If judging the hard disk not according to the first SMART information is faulty disk, test is written and read to the hard disk;Judge whether the hard disk is faulty disk according to the result of the readwrite tests;If judging that the hard disk is not faulty disk according to the result of the readwrite tests, the 2nd SMART information of the hard disk is obtained;Judge whether the hard disk is faulty disk according to the 2nd SMART information;If the hard disk is faulty disk, the hard disk is marked.

Description

A kind of hard disk detection method and device
Technical field
This application involves field of storage more particularly to a kind of hard disk detection method and device.
Background technique
The advantages that hard disk is cheap with its, small in size, capacity is big becomes current most important computer external storage Device, while being also one of essential main configuration of every computer.But once when hard disk breaks down, will result in big The loss of data is measured, this loss for giving user greatly exceeds the value of hard disk itself.
Hard disk SMART (self-monitoring analysis and reporting technology, self-monitoring, Analysis and reporting techniques) information can timely and effectively react hard disk failure information state.SMART is a kind of automatic hard disk shape State detection and early warning system and specification.By the detection instruction in hard disk hardware to hardware such as magnetic head, disc, the horse of hard disk Reach, the operating condition of circuit is monitored, records, and be compared with preset critical set by manufacturer, if monitoring situation By or exceeded the safe range of preset critical, so that it may responding is made from trend user by the monitoring hardware or software of host Accuse, and carry out it is slight be automatically repaired, to ensure the safety of hard disc data in advance.In addition to extremely early hard disk of some time of making the product, Major part hard disk is equipped with this technology now.
The year failure rate of hard disk can only predict the hard disk failure of 3%-10% in 5% or so, SMART technology at present, SMART technology can not detect disk read-write mistake that may be present, be unable to satisfy user demand.
Summary of the invention
The embodiment of the present application provides a kind of hard disk detection method and device, to improve the verification and measurement ratio of faulty hard disk.
In a first aspect, the embodiment of the present application provides a kind of hard disk detection method, this method comprises:
Hard disc detecting device determines that the hard disk detected, the hard disk are connect with hard disc detecting device in advance, and should Hard disk has had been switched on SMART self-checking function;
Hard disc detecting device obtains the first SMART log of the hard disk;
Hard disc detecting device analyzes the content of the log, judges whether the hard disk is faulty disk according to the log;
If judging that the hard disk is not faulty disk according to the corresponding SMART log of the hard disk, to the hard disk carry out reading test, It writes test and is written and read test simultaneously;
Hard disc detecting device judges whether the hard disk is faulty disk according to the result of readwrite tests;
If judging that the hard disk is not faulty disk according to the result of the readwrite tests, SMART detection is carried out again to the hard disk, And it obtains and this time detects obtained SMART log;
The SMART log that hard disc detecting device is detected according to second of SMART judges whether the hard disk breaks down;
If the hard disk is judged as faulty disk through hard disc detecting device, the information of faulty hard disk is shown.
In the embodiment of the present application, hard disc detecting device can determine multiple hard disks to be detected at the same time, to these hard disks It is tested simultaneously.Because the hard disk carried out readwrite tests operation, therefore was utilizing second before second of SMART is detected SMART information judges when whether hard disk is faulty disk in combination with the first SMART information.
According in a first aspect, the hard disk is SATA disk in the first embodiment of the embodiment of the present application first aspect When, judge whether the hard disk is that faulty disk includes: according to SMART log
Whether the test result that hard disc detecting device detects in SMART log is the first preset characters;
If test result is the first preset characters, hard disc detecting device combines the current value of each index in SMART log The mode of default weight is compared analysis with the threshold value set in advance, sees whether meet condition;
If certain indexs do not meet condition, judge the hard disk for faulty disk.
In the embodiment of the present application, the first preset characters are that the test result that hard disk manufacture quotient determines is normal character, Value is generally PASSED.Threshold value can be set by tester, can also be with reference to the threshold value of hardware manufacturers setting, specifically herein Without limitation.
According in a first aspect, the hard disk is SAS disk in second of embodiment of the embodiment of the present application first aspect When, judge whether the hard disk is that faulty disk includes: according to SMART log
Whether the test result that hard disc detecting device detects in SMART log is the second preset characters;
If test result is the second preset characters, hard disc detecting device combines the current value of each index in SMART log The mode of default weight is compared analysis with the threshold value set in advance, sees whether meet condition;
If certain indexs do not meet condition, judge the hard disk for faulty disk.
In the embodiment of the present application, the first preset characters are that the test result that hard disk manufacture quotient determines is normal character, Value is generally indicated with OK.
According in a first aspect, in the third embodiment of the embodiment of the present application first aspect, it is described to the hard disk into Row readwrite tests includes:
Hard disc detecting device surveys the hard disk carry out sequence readwrite tests, random read-write test or the read-write of different block sizes Examination.
According to the first embodiment of first aspect, first aspect to the third embodiment, the embodiment of the present application In 4th kind of embodiment of one side, determine that the hard disk detected includes:
Hard disc detecting device traversal searches all hard disks;
Hard disc detecting device determines hard disk to be detected according to pre-set testing sequence.
In the embodiment of the present application, testing sequence is configured by tester, can also be by hard disc detecting device according to setting The result of standby number sequence is tested, specifically herein without limitation.
Second aspect, the embodiment of the present application provide a kind of hard disc detecting device, which includes:
Determination unit, for determining the hard disk detected;
First acquisition unit, for obtaining the first SMART information of the hard disk;
First judging unit, for being sentenced after the first SMART information for obtaining the hard disk according to the first SMART information Whether the hard disk that breaks is faulty disk;
Readwrite tests unit is hard to this for after judging the hard disk not according to the first SMART information and being faulty disk Disk is written and read test;
Second judgment unit judges whether the hard disk is faulty disk for the result according to the readwrite tests;
Second acquisition unit, should for obtaining after the result according to the readwrite tests judges the hard disk not and be faulty disk 2nd SMART information of hard disk;
Third judging unit, for judging whether the hard disk is faulty disk according to the 2nd SMART information;
Marking unit, for marking the hard disk when the hard disk is faulty disk.
In the embodiment of the present application, hard disc detecting device detects the hardware parameter information of testing hard disk by SMART, passes through reading The practical readwrite performance for testing out hard disk is write, the realizability of the embodiment of the present application is improved.
According to second aspect, in the first embodiment of the embodiment of the present application second aspect, the first judging unit packet It includes:
First judgment module, for judging whether the test result in the first SMART information is the first preset characters;
Second judgment module, for judging each in the first SMART information when test result is the first preset characters The current value of index combines whether default weight is more than preset threshold;
In the embodiment of the present application, first judgment module judge foundation as the first SMART information test result and hard disk The preset expression of production firm tests normal character and matches, which is generally PASSED or OK.
According to second aspect, in second of embodiment of the embodiment of the present application second aspect, which includes:
Spider module searches all hard disks for traversing;
Determining module, for determining hard disk to be detected according to pre-set testing sequence.
In the embodiment of the present application, spider module can be set to look only for the hard disk of a certain type, such as be set as only to solid State hard disk is tested, to improve the flexibility of the embodiment of the present application.
The third aspect, the embodiment of the present application provide a kind of hard disc detecting device, and described device includes: processor and storage Device, the instruction that the detection of hard disk described in aforementioned first aspect is stored in the memory make when run on a computer Obtain the step of computer executes the detection of hard disk described in aforementioned first aspect.
Fourth aspect, the embodiment of the present application provides a kind of computer readable storage medium, including instruction, when it is being calculated When being run on machine, so that computer executes method as described in relation to the first aspect.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
The embodiment of the present application avoids user when executing read-write task by after SMART is detected, being written and read test The case where just finding faulty hard disk, improves the verification and measurement ratio of faulty hard disk.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of hard disk detection method provided by the embodiments of the present application;
Fig. 2 is one embodiment schematic diagram of hard disc detecting device provided by the embodiments of the present application;
Fig. 3 is another embodiment schematic diagram of hard disc detecting device provided by the embodiments of the present application.
Specific embodiment
The embodiment of the present application provides a kind of hard disk detection method and device, for being detected to hard disk to filter out event Hinder hard disk.The embodiment of the present application also provides corresponding hard disc detecting device and computer readable storage mediums.Individually below into Row is described in detail.
Hard disk detection method in the embodiment of the present application is described in detail below, referring to Fig. 1, the embodiment of the present application mentions The embodiment of a kind of hard disk detection method supplied includes:
101, hard disk to be detected is determined.
Hard disc detecting device obtains the information of all hard disks, and hard disk should be connect with hard disc detecting device in advance.In Linux ring Under border, the information for listing all available block devices by adding #lsblk order in script file, block device includes hard disk, is dodged Deposit, CD-ROM etc. filter out the implementor name of hard disk according to the type of equipment, and as shown in table 1, wherein sda and sdb is hard disk, Sr0 is read-only memory.The hard disk filtered out can carry out fault detection, the order information of the setting according to pre-set sequence It can be previously written in script file.
Table 1
NAME SIZE TYPE
sda 250G disk
sdb 500G disk
sr0 1024M rom
In the present embodiment, hard disk test device can also simultaneously detect multiple hard disks simultaneously, such as to first When block hard disk carries out SMART detection, test is written and read to second piece of hard disk, specifically herein without limitation.
102, the first SMART information is obtained.
Hard disc detecting device is when obtaining the first SMART information, it should be ensured that and the SMART function of corresponding hard disk is opened, with Smartmontools is illustrated, and for hard disk sda, the SMART shape of the hard disk is checked by #smartctl-i/dev/sda State should add #smartctl-s on/dev/ if display state is Disabled in the script file of hard disc detecting device Sda is to open SMART function.After opening SMART function, the first SMART information can be obtained by searching for SMART log.
In the present embodiment, it is stored with SMART state-detection in the script file on hard disc detecting device, obtains SMART The order of information improves the realizability of scheme.
103, whether the first SMART information is normal.
Hard disc detecting device obtains the first SMART information from SMART log, for SATA disk, needs first to judge first Whether the test result in SMART information is PASSED, arrives the test knot using #smartctl-H/dev/sda is available Fruit, if test result is PASSED, it is also necessary to each index be judged, index includes remapping mountain area counting etc., is referred specifically to Mark can specify according to actual needs, herein without limitation.For SAS disk, need first to judge that the test result in script file is No is OK.It is analyzed using current value of the computation rule to the corresponding test of obtained index, such as by way of weighting, when When calculated result is no more than preset threshold, then it is assumed that the disk state is normal, is not detected as event in the test of this step Hinder disk, 104 can be entered step.If test result is FAILED, it can determine that the hard disk is faulty disk.
In the present embodiment, with specific reference to the first SMART index and Weighted Rule be previously written in script file, Tester can be modified according to actual needs.Such as it is directed to the detection of new hard disk factory, the index that conduction time adds up Current value just should with have larger difference using hard disk after a period of time, for new hard disk, the index item plus Power specific gravity just should be greater than the latter.
104, it is written and read test.
When not finding that the hard disk is when in an abnormal state according to the first SMART information, hard disc detecting device can be to the hard disk It is written and read test, the content of readwrite tests includes that sequence readwrite tests, random read-write test or the read-write of different block sizes are surveyed Examination.
In the present embodiment, readwrite tests is divided into reading test, writes test and be written and read test, the result packet of test simultaneously Include the read or write speed of the hard disk.
105, whether readwrite tests is normal.
If there is abnormal, as excessively low in read and write failure and read or write speed, hard disk inspection in readwrite tests result at step 104 Surveying device can determine whether it for faulty disk.
In the present embodiment, if readwrite tests is normal, step 106 can be executed.
106, the 2nd SMART information is obtained.
Hard disc detecting device obtains the 2nd SMART information by searching for the mode of SMART log, i.e., carries out after readwrite tests SMART detection information.
In the present embodiment, the first SMART information and the 2nd SMART information are located in same journal file, according to log The time of record can distinguish the SMART information before and after readwrite tests.
107, whether the 2nd SMART information is normal.
In hard disc detecting device after obtaining the 2nd SMART information in SMART log, for SATA disk, second is judged Whether the test result in SMART information is PASSED, and concrete mode can refer to step 103, utilize #smartctl-H/dev/ Sda gets the test result in the 2nd SMART information, if test result is PASSED, it is also necessary to each index is judged, Specific targets can specify according to actual needs, herein without limitation.For SAS disk, need first to judge the test in script file It as a result whether is OK.It is analyzed using current value of the computation rule to the corresponding test of obtained index, as by weighting Mode, when calculated result is no more than preset threshold, then it is assumed that the disk state is normal.
In the present embodiment, with specific reference to the 2nd SMART index and Weighted Rule be previously written in script file, Tester can be modified according to actual needs, which can be identical as the index referred in step 105, be also possible to step The supplement of reference index in rapid 105.
108, labelling hard disk state is normal.
If the hard disk is not judged as faulty disk yet in step 107, then it is assumed that the disk state is normal, hard disk detection dress Setting can export the test result of the hard disk to prompt tester.Test can be specifically notified by way of Email Personnel, or on the screen by the test result printing of all hard disks for detecting and finishing.
In the present embodiment, purpose is marked to hard disk and is to output test result, tester is quickly sent out The faulty hard disk and normal hard disk now tested out.
109, labelling hard disk abnormal state.
If the hard disk be judged as in the first SMART Information abnormity or step 105 in step 103 readwrite tests it is abnormal or The 2nd SMART Information abnormity is judged as in step 107, then it is assumed that the hard disk is faulty disk, and hard disc detecting device can be hard by this The test result of disk is exported to prompt tester.Tester can be specifically notified by way of Email, or will All test result printings for detecting all hard disks finished are on the screen.
The comprehensive SMART detection of the present embodiment and readwrite tests screen faulty hard disk, improve can be achieved for scheme Property.
Hard disk detection method in the present embodiment is described above, below to hard disk detection dress in the embodiment of the present invention It sets 200 to be introduced, as shown in Fig. 2, one embodiment of hard disc detecting device 200 includes: in the present embodiment
Determination unit 201, for determining the hard disk detected;
First acquisition unit 202, for obtaining the first SMART information of the hard disk;
First judging unit 203, for first acquisition unit 201 obtain the hard disk the first SMART information after, according to First SMART information judges whether the hard disk is faulty disk;
Readwrite tests unit 204, it is right for after judging the hard disk not according to the first SMART information and being faulty disk The hard disk is written and read test;
Second judgment unit 205 is acquisition after faulty disk for judging the hard disk not in the result according to the readwrite tests 2nd SMART information of the hard disk;
Second acquisition unit 206 is acquisition after faulty disk for judging the hard disk not in the result according to the readwrite tests 2nd SMART information of the hard disk;
Third judging unit 207, for judging whether the hard disk is faulty disk according to the 2nd SMART information;
Marking unit 208, for marking the hard disk when the hard disk is faulty disk.
In the embodiment of the present application, determination unit 201 includes:
Spider module 2010 searches all hard disks for traversing;
Determining module 2011, for determining hard disk to be detected according to pre-set testing sequence.
In the embodiment of the present application, the first judging unit 203 includes:
First judgment module 2030, whether the test result for judging in the first SMART information is preset characters;
Second judgment module 2031, for judging each in the first SMART information when test result is preset characters The current value of index combines whether default weight is more than preset threshold;
In the embodiment of the present application, third judging unit 207 includes:
Third judgment module 2070, whether the test result for judging in the 2nd SMART information is preset characters;
4th judgment module 2071, for judging each in the 2nd SMART information when test result is preset characters The current value of index combines whether default weight is more than preset threshold;
In the present embodiment, the first judging unit 203 can be different according to the type of hard disk, if SATA disk or SAS disk are to first The test result of SMART information and corresponding index carry out different judgements.
Fig. 3 is the structural schematic diagram of hard disc detecting device 300 provided by the embodiments of the present application.The hard disc detecting device 300 include processor 301, memory 302 and input and output (I/O) interface 303, and memory 302 may include read-only memory And random access memory, and operational order and data are provided to processor 301.The a part of of memory 302 can also include Nonvolatile RAM (NVRAM).
In some embodiments, memory 302 stores following element, the first SMART journal file, and second SMART journal file and preset threshold;
In the embodiment of the present application, it when judging whether the hard disk is faulty disk according to SMART information, is stored by calling The SMART journal file (operational order is storable in operating system) that device 302 stores, available SMART information are simultaneously right It is detected, if the test result in SMART log is not the preset characters being stored on memory 302, judges that this is hard Disk is faulty disk;
Processor 301 controls the operation of hard disc detecting device 300, and processor 301 can also be known as CPU (Central Processing Unit, central processing unit).Memory 302 may include read-only memory and random access memory, and Instruction and data is provided to processor 301.The a part of of memory 302 can also include nonvolatile RAM (NVRAM).The various components of hard disc detecting device 300 are coupled by bus system 304 in specific application, wherein always Linear system system 304 can also include power bus, control bus and status signal bus in addition etc. in addition to including data/address bus.But For the sake of clear explanation, various buses are all designated as bus system 304 in figure.
The method that above-mentioned the embodiment of the present application discloses can be applied in processor 301, or be realized by processor 301. Processor 301 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 301 or the instruction of software form.Above-mentioned processing Device 301 can be general processor, digital signal processor (DSP), specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.May be implemented or Person executes disclosed each method, step and logic diagram in the embodiment of the present application.General processor can be microprocessor or Person's processor is also possible to any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present application, can be straight Connect and be presented as that hardware decoding processor executes completion, or in decoding processor hardware and software module combination executed At.Software module can be located at random access memory, and flash memory, read-only memory, programmable read only memory or electrically-erasable can In the storage medium of this fields such as programmable memory, register maturation.The storage medium is located at memory 302, and processor 301 is read Information in access to memory 302, in conjunction with the step of its hardware completion above method.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic or disk etc. are various can store program The medium of code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of hard disk detection method, which is characterized in that the described method includes:
Determine hard disk to be detected;
Obtain the first SMART information of the hard disk;
Judge whether the hard disk is faulty disk according to the first SMART information;
If judging the hard disk not according to the first SMART information is faulty disk, test is written and read to the hard disk;
Judge whether the hard disk is faulty disk according to the result of the readwrite tests;
If judging that the hard disk is not faulty disk according to the result of the readwrite tests, the 2nd SMART letter of the hard disk is obtained Breath;
Judge whether the hard disk is faulty disk according to the 2nd SMART information;
If the hard disk is faulty disk, the hard disk is marked.
2. the method according to claim 1, wherein the hard disk is Serial Advanced Technology Attachment SATA disk, institute It states and judges whether the hard disk is that faulty disk includes: according to the first SMART information
Judge whether the test result in the first SMART information is the first preset characters;
If test result is the first preset characters, it is default to judge that the current value of each index in the first SMART information combines Whether weight is more than preset threshold;
If being less than the preset threshold, judge that the hard disk is not faulty disk.
3. the method according to claim 1, wherein the hard disk is Serial Attached Small Computer interface SAS disk, institute It states and judges whether the hard disk is that faulty disk includes: according to the first SMART information
Judge whether the test result in the first SMART information is the second preset characters;
If test result is the second preset characters, it is default to judge that the current value of each index in the first SMART information combines Whether weight is more than preset threshold;
If being less than the preset threshold, judge that the hard disk is not faulty disk.
4. being written and read test according to the method described in claim 1, described to the hard disk and including:
To the readwrite tests of the hard disk carry out sequence readwrite tests, random read-write test or different block sizes.
5. method according to claim 1 to 4, the determination hard disk to be detected include:
Traverse all hard disks;
Hard disk to be detected is determined according to pre-set testing sequence.
6. a kind of hard disc detecting device, which is characterized in that described device includes:
Determination unit, for determining hard disk to be detected;
First acquisition unit, for obtaining the first SMART information of the hard disk;
First judging unit, for judging whether the hard disk is faulty disk according to the first SMART information;
Readwrite tests unit, for after judging the hard disk not according to the first SMART information and being faulty disk, to described hard Disk is written and read test;
Second judgment unit, for judging whether the hard disk is faulty disk according to the result of the readwrite tests;
Second acquisition unit, for being acquisition institute after faulty disk judging the hard disk not according to the result of the readwrite tests State the 2nd SMART information of hard disk;
Third judging unit, for judging whether the hard disk is faulty disk according to the 2nd SMART information;
Marking unit, for marking the hard disk when the hard disk is faulty disk.
7. device according to claim 6, which is characterized in that first judging unit includes:
First judgment module, whether the test result for judging in the first SMART information is the first preset characters;
Second judgment module, for judging each finger in the first SMART information when test result is the first preset characters Target current value combines whether default weight is more than preset threshold.
8. device according to claim 6, which is characterized in that the determination unit includes:
Spider module, for traversing all hard disks;
Determining module, for determining hard disk to be detected according to pre-set testing sequence.
9. a kind of hard disc detecting device, which is characterized in that the hard disc detecting device includes: processor and memory, described to deposit The instruction of hard disk detection as claimed in any one of claims 1 to 5 is stored in reservoir, the processor is for executing in memory The instruction of the hard disk detection of storage, the step of executing the method for hard disk a method as claimed in any one of claims 1 to 5 detection.
10. a kind of computer readable storage medium, which is characterized in that be stored with hard disk inspection in the computer readable storage medium The instruction of survey, when run on a computer, so that computer executes any method in the claims 1-5.
CN201810806293.0A 2018-07-20 2018-07-20 A kind of hard disk detection method and device Pending CN109117327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810806293.0A CN109117327A (en) 2018-07-20 2018-07-20 A kind of hard disk detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810806293.0A CN109117327A (en) 2018-07-20 2018-07-20 A kind of hard disk detection method and device

Publications (1)

Publication Number Publication Date
CN109117327A true CN109117327A (en) 2019-01-01

Family

ID=64863230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810806293.0A Pending CN109117327A (en) 2018-07-20 2018-07-20 A kind of hard disk detection method and device

Country Status (1)

Country Link
CN (1) CN109117327A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918246A (en) * 2019-02-28 2019-06-21 苏州浪潮智能科技有限公司 A kind of disk state detection method, system, terminal and storage medium
CN109945968A (en) * 2019-03-19 2019-06-28 苏州浪潮智能科技有限公司 A kind of detection hard disk multiple location is impacted device, the method and system of size by noise
CN110109786A (en) * 2019-04-18 2019-08-09 东莞记忆存储科技有限公司 SMART information test method, device, computer equipment and storage medium
CN110491438A (en) * 2019-07-19 2019-11-22 苏州浪潮智能科技有限公司 A kind of hard disk stability drop test method, system, terminal and storage medium
CN111949488A (en) * 2020-08-14 2020-11-17 山东英信计算机技术有限公司 Hard disk fault prediction method and system, electronic equipment and storage medium
CN111985010A (en) * 2020-08-20 2020-11-24 深圳忆联信息系统有限公司 Interception verification method and device for notebook hard disk, computer equipment and storage medium
CN112164417A (en) * 2020-10-10 2021-01-01 上海威固信息技术股份有限公司 Performance detection method and system of memory chip
CN112256535A (en) * 2020-10-20 2021-01-22 湖南国科微电子股份有限公司 Hard disk alarm method and device, computer equipment and storage medium
CN112346932A (en) * 2020-11-05 2021-02-09 中国建设银行股份有限公司 Method and device for positioning hidden bad disk, electronic equipment and computer storage medium
CN113778770A (en) * 2021-09-10 2021-12-10 深圳市华宇福保半导体有限公司 Detection method and system for hard disk chip
CN113903368A (en) * 2021-10-15 2022-01-07 江苏芯盛智能科技有限公司 Automatic testing method, device and equipment for disk and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017129030A1 (en) * 2016-01-29 2017-08-03 阿里巴巴集团控股有限公司 Disk failure prediction method and apparatus
CN107066370A (en) * 2017-04-26 2017-08-18 郑州云海信息技术有限公司 A kind of automatic monitoring and the instrument and method for collecting faulty hard disk daily record
CN107301109A (en) * 2017-06-23 2017-10-27 郑州云海信息技术有限公司 A kind of hard disk quality screening technique and device
CN107729199A (en) * 2017-10-19 2018-02-23 郑州云海信息技术有限公司 The hard disk detection method and system of a kind of storage device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017129030A1 (en) * 2016-01-29 2017-08-03 阿里巴巴集团控股有限公司 Disk failure prediction method and apparatus
CN107066370A (en) * 2017-04-26 2017-08-18 郑州云海信息技术有限公司 A kind of automatic monitoring and the instrument and method for collecting faulty hard disk daily record
CN107301109A (en) * 2017-06-23 2017-10-27 郑州云海信息技术有限公司 A kind of hard disk quality screening technique and device
CN107729199A (en) * 2017-10-19 2018-02-23 郑州云海信息技术有限公司 The hard disk detection method and system of a kind of storage device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918246A (en) * 2019-02-28 2019-06-21 苏州浪潮智能科技有限公司 A kind of disk state detection method, system, terminal and storage medium
CN109945968A (en) * 2019-03-19 2019-06-28 苏州浪潮智能科技有限公司 A kind of detection hard disk multiple location is impacted device, the method and system of size by noise
CN110109786B (en) * 2019-04-18 2023-04-28 东莞记忆存储科技有限公司 SMART information testing method and device, computer equipment and storage medium
CN110109786A (en) * 2019-04-18 2019-08-09 东莞记忆存储科技有限公司 SMART information test method, device, computer equipment and storage medium
CN110491438A (en) * 2019-07-19 2019-11-22 苏州浪潮智能科技有限公司 A kind of hard disk stability drop test method, system, terminal and storage medium
CN111949488A (en) * 2020-08-14 2020-11-17 山东英信计算机技术有限公司 Hard disk fault prediction method and system, electronic equipment and storage medium
CN111985010A (en) * 2020-08-20 2020-11-24 深圳忆联信息系统有限公司 Interception verification method and device for notebook hard disk, computer equipment and storage medium
CN112164417A (en) * 2020-10-10 2021-01-01 上海威固信息技术股份有限公司 Performance detection method and system of memory chip
CN112256535A (en) * 2020-10-20 2021-01-22 湖南国科微电子股份有限公司 Hard disk alarm method and device, computer equipment and storage medium
CN112256535B (en) * 2020-10-20 2023-08-22 湖南国科微电子股份有限公司 Hard disk alarm method, device, computer equipment and storage medium
CN112346932A (en) * 2020-11-05 2021-02-09 中国建设银行股份有限公司 Method and device for positioning hidden bad disk, electronic equipment and computer storage medium
CN113778770A (en) * 2021-09-10 2021-12-10 深圳市华宇福保半导体有限公司 Detection method and system for hard disk chip
CN113778770B (en) * 2021-09-10 2024-06-25 深圳市华宇福保半导体有限公司 Detection method and system for hard disk chip
CN113903368A (en) * 2021-10-15 2022-01-07 江苏芯盛智能科技有限公司 Automatic testing method, device and equipment for disk and storage medium

Similar Documents

Publication Publication Date Title
CN109117327A (en) A kind of hard disk detection method and device
CN109783262B (en) Fault data processing method, device, server and computer readable storage medium
CN109328340B (en) Memory fault detection method and device and server
JPH01321530A (en) Diagnostic execution system
EP1899876A1 (en) System and method for using model analysis to generate directed test vectors
US10094740B2 (en) Non-regression method of a tool for designing a monitoring system of an aircraft engine
CN105824730A (en) Method and device for diagnosing and repairing hardware
CN105630657B (en) A kind of temperature checking method and device
CN109324968A (en) A kind of system detection method and device
US11163674B1 (en) System and method for identifying a faulty component in a spectrum ambiguity group
EP3072046B1 (en) Latency tolerant fault isolation
CN107807862A (en) Detect the method, apparatus and server of hard disk failure point
US10922023B2 (en) Method for accessing code SRAM and electronic device
KR101736230B1 (en) System and method for quantifying the fault detection rate
CN111309584A (en) Data processing method and device, electronic equipment and storage medium
KR102275635B1 (en) Apparatus and method for detecting anomaly through function call pattern analysis
CN108231134B (en) RAM yield remediation method and device
CN106815105B (en) A kind of complete machine detection method of touch screen and device, system
CN110377477A (en) A kind of electronic equipment, functional module group, the mainboard of electronic equipment, detection method
CN117407207B (en) Memory fault processing method and device, electronic equipment and storage medium
CN107122275A (en) It is a kind of to check the device and method that RMT tests information
CN113094221B (en) Fault injection method, device, computer equipment and readable storage medium
CN117270664A (en) Reset system based on intelligent storage chip of automobile
CN105702299B (en) Memory cell abatement detecting method and system
CN108319530A (en) Diagnostic method, device, terminal and the medium of computer hardware

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190101

RJ01 Rejection of invention patent application after publication