CN1716428A - Hard disc detecting device and method - Google Patents
Hard disc detecting device and method Download PDFInfo
- Publication number
- CN1716428A CN1716428A CN 200410062329 CN200410062329A CN1716428A CN 1716428 A CN1716428 A CN 1716428A CN 200410062329 CN200410062329 CN 200410062329 CN 200410062329 A CN200410062329 A CN 200410062329A CN 1716428 A CN1716428 A CN 1716428A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- parameter
- fault
- unit
- register
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The hard disc detecting device includes one fault acquiring unit for obtaining the pre-fault information. The fault acquiring unit consists of the first write parameter unit, read index parameter unit and comparing unit. The first write parameter unit is for writing parameters to the high cylindrical register, the lower cylindrical register, the characteristic register and the command register of the hard disc. The read index parameter unit is for reading out the current value of the hard disc index parameter. The comparing unit is for comparing the read out current value with standard value to obtain the pre-fault information showing the fault state of the index parameter. The corresponding hard disc detecting method includes the step of acquiring fault, which consists of the step of the first writing parameter, the step of reading index parameter and the step of comparing. The hard disc detecting device and the method can obtain the detailed information of hard disc pre-fault.
Description
Technical field
The present invention relates to communicate by letter or the measuring technology of electronic applications, refer to a kind of hard disc detecting device and method especially.
Background technology
Along with the continuous development of informationized society, the effect of hard disk in all trades and professions also becomes more and more important.Such as certain concrete professional service board of carrying in the telecommunications equipment cabinet interpolation frame, what memory carrier of a large amount of critical datas and software adopted on it all is hard disk, in systems such as the global system (GSM, Global System for Mobile-Communications) of circuit switching exchange, soft switch, mobile communication, 3-G (Generation Three mobile communication system) (3G), media gateway, be used for ticket storage, AM/BAM maintenance system, master control system, configuration data storage or the like and also all adopt hard disk.In order to guarantee not lost and being that the high reliability that just requires hard disk is not collapsed in the system of memory carrier with the hard disk of a large amount of critical datas.Yet hard disk is electromechanical equipment after all; losing efficacy can appear in its mechanical part inevitably; the situation of consume; press the industry statistic data; the failure rate of hard disk is about 1~3%; be 5 years designed life; the inefficacy that it is main or the parts of consume are motor and motor; if work surpasses continuous power-on time or the read-write dutycycle that limits; the consume meeting of hard disk is faster; hard disk in the course of the work simultaneously; magnetic head scratch magnetic surface also appears brokenly; the hard disk that floating magnetic effect (hard disk that a kind of tired collection of showy magnetic that causes because of vibration causes lost efficacy) causes lost efficacy; if thereby can in time obtain the health status of hard disk and report webmaster; before arriving, hard disk failure just can predict like this; thereby can avoid occurring causing because of hard disk corruptions the serious accident of system crash or loss of data, this is the problem and the technology of industry important research.
As shown in Figure 1, the prior art hard disc detecting device comprises the second write parameters unit 2, sends sense command unit 3, reads parameter unit 4, judging unit 5 and display unit 6, wherein,
The second write parameters unit 2 is used for writing parameter to the high cylinder register and the low cylinder register of hard disk 1;
Send sense command unit 3, be used for sending sense command to hard disk 1;
Read parameter unit 4, be used for reading parameter from the high cylinder register and the low cylinder register of hard disk 1;
Judging unit 5, be used to judge according to the parameter of reading to read from high cylinder register parameter unit 4 and whether be written to the high position of parameter of high cylinder register and the exchange of low level, and whether the parameter of reading from low cylinder register is written to the high position of the parameter of hanging down cylinder register and the exchange of low level, if, pre-fault appears in expression hard disk 1, otherwise expression hard disk 1 is normal;
Display unit 6 pre-fault occurs if the judged result of described judging unit 5 is hard disks, then shows pre-fault on display interface, otherwise does not show.
Described pre-fault is used to represent that there is incipient fault in hard disk 1, and promptly hard disk 1 is about to break down.
Prior art has utilized the characteristic from management analysis report technology (SMART, Self Monitoringand Analysis and Reporting Technology) of hard disk 1 to realize the pre-fault detect of hard disk 1.Promptly the high cylinder register to hard disk 1 writes parameter 0xC2H, low cylinder register to hard disk 1 writes parameter 0x4FH, in command register, write parameter 0xB0H, hard disk 1 promptly carries out the situation from check and analysis hard disk 1, if pre-fault appears in hard disk 1, then write parameter 0x2CH and write parameter 0xF4H to the low cylinder register of hard disk 1 to the high cylinder register of hard disk 1, event needs only carries out analysis and judgement to the parameter of the low cylinder register of the high cylinder register of hard disk 1 and hard disk 1, just can draw hard disk 1 and pre-fault whether occur, promptly the parameter of reading from high cylinder register is written to the high position of parameter of high cylinder register and the exchange of low level, and the parameter of reading from low cylinder register is written to the high position of the parameter of hanging down cylinder register and the exchange of low level, represents that then hard disk 1 has pre-fault.
The prior art hard disc detecting device is in the system start-up of using hard disk 1 hard disk 1 to be detected, as shown in Figure 1, in this example, the first write parameters unit 2 writes parameter 0xC2H to the high cylinder register of hard disk 1, low cylinder register to hard disk 1 writes parameter 0x4FH, send sense command unit 3 and send sense command to hard disk 1, promptly in command register, write parameter 0xB0H, hard disk 1 is detected, read parameter unit 4 and read the high cylinder register of hard disk 1 and the parameter of low cylinder register, judging unit 5 judges whether the described parameter of reading to read from high cylinder register parameter unit 4 is to the high position of the parameter that is written to high cylinder register and the exchange 0xC2H of low level, and whether the parameter of reading from low cylinder register is written to the high position of the parameter of hanging down cylinder register and the exchange 0xF4H of low level, if the judged result of judging unit 5 is sure, expression hard disk 1 has pre-fault, on display unit 6, show pre-fault, otherwise do not show that expression hard disk 1 does not have pre-fault.
In sum, at first, be merely able to learn by prior art whether hard disk 1 has pre-fault, and can not learn it is that what reason causes, be that power-on time has transfinited, the scratch number of times is too many, or the mechanical part life-span near or the like unknown, cause when handling problems, shooting at random, make the innovative approach of adopting for handling failure not have specific aim;
Secondly, whether prior art just has pre-fault to be presented on the display interface hard disk 1, for example at field of telecommunications, telecommunications room generally is unwatched, if detected pre-fault, Nobody Knows to be presented at the pre-failure message that has on the display interface, also just unmanned the processing, just may cause hard disk 1 collapse, service disconnection;
Moreover prior art is to detect hard disk 1 when system start-up is initialized, just can not detected hard disk 1 if system restarts initialization, and hard disk 1 pre-fault occurs at system's run duration and just can't know.
Summary of the invention
The problem to be solved in the present invention provides a kind of hard disk of can learning and the hard disc detecting device and the method for the detailed reason of pre-fault occur.
In order to address the above problem the technical scheme of hard disc detecting device of the present invention:
A kind of hard disc detecting device, described hard disk have the currency and the standard value thereof of the index parameter of hard disk, comprise the fault acquiring unit of the pre-failure message that is used to obtain hard disk,
Described fault acquiring unit further comprises the first write parameters unit, reads index parameter unit and comparing unit, wherein,
The described first write parameters unit is used for writing parameter, writing parameter and write parameter to the command register of hard disk to the characteristic register of hard disk to the high cylinder register of hard disk and low cylinder register;
The described index parameter unit of reading is used to read the currency of the index parameter of hard disk;
Described comparing unit, be used to read hard disk index parameter standard value and described currency and its standard value of reading the index parameter of the hard disk read the index parameter unit compared, to draw the pre-failure message whether pre-fault appears in this index parameter.
Described hard disc detecting device also comprises transmitting element, is used to send the accessed pre-failure message of described fault acquiring unit.
Described hard disc detecting device also comprises timing unit, is used for setting detecting frequency, controls described fault acquiring unit and detects hard disk with the detection frequency interval ground of setting.
The frame of the pre-failure message that described transmitting element sends comprises following field:
Error category is used to identify the type of the pre-fault of hard disk;
The mistake generation time is used to the time that shows that pre-fault produces;
Error level is used to show the order of severity of pre-fault; Wrong parameter is used to represent the value of the index parameter of hard disk
Described hard disc detecting device also comprises and is used to detect the detecting unit whether hard disk has pre-fault, and described detecting unit further comprises the second write parameters unit, sends the sense command unit, reads parameter unit and judging unit, comprise wherein,
The described second write parameters unit is used for writing parameter to the high cylinder register and the low cylinder register of hard disk;
Described transmission sense command unit is used for sending sense command to hard disk;
The described parameter unit of reading is used for reading parameter from the high cylinder register and the low cylinder register of hard disk;
Described judging unit, be used to judge whether the described parameter of reading to read from high cylinder register the parameter unit is written to the parameter of low cylinder register, and whether be written to the parameter of high cylinder register from the parameter that low cylinder register is read, if, pre-fault appears in the expression hard disk, otherwise the expression hard disk does not have pre-fault;
Pre-fault occurs if the judged result of described judging unit is a hard disk, then start the pre-failure message that described fault acquiring unit obtains hard disk.
A kind of hard disk detection method, described hard disk have the currency and the standard value thereof of the index parameter of hard disk, comprise the fault obtaining step of the pre-failure message that is used to obtain hard disk, and a nearly step of described fault obtaining step may further comprise the steps:
The first write parameters step writes parameter, writes parameter and write parameter to the command register of hard disk to the characteristic register of hard disk to the high cylinder register of hard disk and low cylinder register;
Read the index parameter step, read the currency of the index parameter of hard disk;
Comparison step, read hard disk index parameter standard value and described currency and its standard value of reading the index parameter of the hard disk read the index parameter unit compared, to draw the pre-failure message whether pre-fault appears in this index parameter.
Described hard disk detection method also comprises forwarding step, is sent in the pre-failure message that gets access in the described fault obtaining step.
Described hard disk detection method also comprises regularly step, is used for setting detecting frequency, controls described fault obtaining step and detects hard disk with the detection frequency interval ground of setting.
Described hard disk detection method comprises also and is used to detect the detection step whether hard disk has pre-fault that described detection step further may further comprise the steps:
The second write parameters step writes parameter to the high cylinder register and the low cylinder register of hard disk;
Send the sense command step, send sense command to hard disk;
Read the parameter step, read parameter from the high cylinder register and the low cylinder register of hard disk;
Determining step, judge whether the described parameter of reading to read from high cylinder register the parameter unit is written to the parameter of low cylinder register, and whether be written to the parameter of high cylinder register from the parameter that low cylinder register is read, if, pre-fault appears in the expression hard disk, otherwise the expression hard disk does not have pre-fault;
Pre-fault occurs if the judged result of described determining step is a hard disk, then start the pre-failure message that described fault obtaining step obtains hard disk.
Compared with prior art, the beneficial effect of hard disc detecting device of the present invention and method:
At first, hard disc detecting device of the present invention and method can be obtained the pre-failure message of hard disk, so just can learn it is that what reason causes hard disk pre-fault to occur, make and when handling problems, shoot the arrow at the target, and the innovative approach of adopting for handling failure is targeted;
Secondly, hard disc detecting device of the present invention and method can send (webmaster etc.) with the pre-failure message of hard disk, rather than only be presented on the display interface, make fault handling personnel such as webmaster can in time know the existence of pre-fault like this, in time handle, thereby can avoid the generation of phenomenons such as hard disk collapse, service disconnection;
Moreover, hard disc detecting device of the present invention and method can setting harddisk the detection frequency, promptly be defined in and how long detect hard disk No. one time, and be not only in the system start-up of using hard disk, just to detect hard disk, like this when system when pre-fault appears in the run duration hard disk, can in time learn, in time handle.
Description of drawings
Fig. 1 is the structural drawing of prior art hard disc detecting device;
Fig. 2 is the structural drawing of hard disc detecting device of the present invention;
Embodiment
As shown in Figure 2, hard disc detecting device of the present invention, described hard disk 1 has the currency and the reference value thereof of index parameter, described hard disc detecting device comprises the fault acquiring unit 7 of the pre-failure message that is used to obtain hard disk 1, described fault acquiring unit 7 further comprises the first write parameters unit 71, reads index parameter unit 72 and comparing unit 73, wherein
The described first write parameters unit 71 is used for writing parameter, writing parameter and write parameter to the command register of hard disk 1 to the characteristic register of hard disk 1 to the high cylinder register of hard disk 1 and low cylinder register;
The described index parameter unit 72 of reading is used to read the currency of the index parameter of hard disk 1;
Described comparing unit 72, be used to read hard disk 1 index parameter standard value and described currency and its standard value of reading the index parameter of the hard disk 1 read the index parameter unit compared, to draw the pre-failure message whether pre-fault appears in this index parameter.
Further, as shown in Figure 2, hard disc detecting device of the present invention also comprises transmitting element 8, is used to send the accessed pre-failure message of described fault acquiring unit 7, can send with the form of frame.
Further, as shown in Figure 2, hard disc detecting device of the present invention also comprises timing unit, is used for setting detecting frequency, controls described fault acquiring unit 7 and detects hard disk 1 at a certain time interval.
Further, as shown in Figure 2, hard disc detecting device of the present invention comprises also and is used to detect the detecting unit 101 whether hard disk has pre-fault that described detecting unit 101 further comprises the second write parameters unit 2, sends sense command unit 3, reads parameter unit 4 and judging unit 5, comprise wherein
The described second write parameters unit 2 is used for writing parameter to the high cylinder register and the low cylinder register of hard disk 1;
Described transmission sense command unit 3 is used for sending sense command to hard disk 1;
The described parameter unit 4 of reading is used for reading parameter from the high cylinder register and the low cylinder register of hard disk 1;
Described judging unit 5, be used to judge according to the parameter of reading to read from high cylinder register parameter unit 4 and whether be written to the high position of parameter of high cylinder register and the exchange of low level, and whether the parameter of reading from low cylinder register is written to the high position of the parameter of hanging down cylinder register and the exchange of low level, if, pre-fault appears in expression hard disk 1, otherwise expression hard disk 1 is normal;
Pre-fault occurs if the judged result of described judging unit 5 is hard disks 1, then start the pre-failure message that described fault acquiring unit obtains hard disk 1.
Hard disc detecting device of the present invention has utilized the SMART characteristic of hard disk 1, as shown in Figure 2, in this example, the first write parameters unit 71 of described fault acquiring unit 7 writes parameter 0xC2 to the high cylinder register of hard disk 1, low cylinder register to hard disk 1 writes parameter 0x4F, characteristic register to hard disk 1 writes parameter 0xD1, command register to hard disk 1 writes parameter 0xB0, reading index parameter unit 72 reads out the FPDP of the currency of all index parameters of hard disk 1 by hard disk 1, comparing unit 73 is read the standard value of index parameter by similar operations and the currency of the index parameter that will read from hard disk 1 and its standard value (when hard disk 1 dispatches from the factory from hard disk 1, the value of factory settings) compares, if the currency of index parameter surpasses its standard value, illustrate that pre-fault appears in hard disk 1 on this performance, so just can obtain the concrete pre-failure message of hard disk 1.In this example, the currency of the power-on time sum of hard disk 1 is 10,000 2 hours, its standard value is 10,000 hours, the currency of the power-on time sum of 73 pairs of hard disks 1 of comparing unit and its standard value are relatively, the result be currency greater than its standard value, show that the pre-fault of hard disk 1 causes owing to power-on time is long.
The described index parameter of the hard disk 1 in this example has:
Data read error rate (Raw Read Error Rate) is if the higher explanation hard disk 1 of data read error rate is about to fault;
Handling capacity (Throughput Performance), the low explanation of handling capacity hard disk 1 incipient fault;
Disc start-up time (Spin Up Time) illustrates electric motor or structural member consume if disc starts more slowly, hard disk 1 is about to damage;
Start and stop number of times (Start/Stop Count), reached the upper limit above its standard value explanation hard disk 1 parts rub proofness if startup stops number of times;
Sector reorientation number of times (Reallocated Sector Count) is used to the order of accuarcy that illustrates that hard disk 1 is located;
Seek error rate (Seek Error Rate) is if the higher explanation hard disk 1 of seek error rate is about to fault;
Seek time performance (Seek Time Performance) if seek time surpasses maximum seek time, illustrates hard disk 1 incipient fault;
Power-on time sum (Power-On Hours Count) has arrived if 1 life-span of hard disk above the higher limit that hard disk 1 can bear, is described the T.T. that powers on, and incipient fault is arranged;
Rotation number of retries (Spin Retry Count), expression hard disk 1 is rotated the number of times of retry;
Device power supply (DPS) power-on and power-off number of times (Device Power Cycle Count), the number of times of indication equipment Switching Power Supply;
CRC check errors number (CRC Error Count), expression hard disk 1 read-write error rate;
Video disc moves (Disk Shift), and the expression video disc has become flexible, and has compared skew with original position;
G sensor error rate (G-Sense Error Rate), the error rate of expression G sensor;
Load time (Loaded Hours), the working time of expression hard disk 1;
Be written into number of retries (Load Retry Count), expression hard disk 1 is read and write unsuccessful and number of times that repeat;
Load friction (Load Friction), be used for reflect structure spare health parameters;
Load number of times (Load Cycle Count), expression hard disk 1 read-write number of times;
Be written into the time (Load-in Time), the time that 1 read-write of expression hard disk needs;
Outage withdrawal number of times (Power-off Retract Count), reflection head arm health status.
Further, as shown in Figure 2, transmitting element 8 sends to fault handling personnel (as webmaster etc.) with the pre-failure message of hard disk 1 with the form of frame format, and transmitting element 8 can send pre-failure message by variety of ways such as network, straight lines.
The pre-failure message of described frame format comprises following field:
(Alarmld) numbered in alarm, is used to represent the numbering of this pre-failure message;
Error category (AlarmType) is used to identify the type of hard disk 1 pre-fault;
The mistake generation time is used to the time that shows that pre-fault produces;
Error level (Level) is used to show the order of severity of pre-fault;
Wrong parameter (Paras[PARAM_LEN]) is used to represent the value of the index parameter of hard disk 1;
Function system number (Functionld), being used for expression is to make mistakes in which territory, as hardware or software etc.;
Serial number (NumlnLevel) is used to represent the serial number of same error level; Be which territory goes wrong, for example hardware, software etc.;
Nms subsystem number (SubSystemld) is used to represent the numbering of nms subsystem;
Wherein said wrong generation time further comprises following field:
Year (Year), the time that is used to represent to produce this pre-failure message;
The moon (Month), the month that is used to represent to produce this pre-failure message;
Day (Day), the day that is used to represent to produce this pre-failure message;
The time (Hour), be used to represent to produce this pre-failure message hour;
Divide (Minute), be used to represent to produce this pre-failure message minute;
Second (Second), the second that is used to represent to produce this pre-failure message.
What the pre-failure message by above-mentioned frame format can be well understood to hard disk 1 very much specifically any fault will occur, can fix a breakdown with a definite target in view, keep the normal operation of system.
Further, as shown in Figure 2, the timing unit 9 of hard disc detecting device of the present invention is used for setting the detection frequency, start the first write parameters unit of described fault detection unit 7 at interval with certain hour, promptly hard disk 1 is detected, detecting frequency can be provided with according to practical situations, as 10 minutes/time, 1 hour/time, 12 hours/inferior.
Further, as shown in Figure 2, hard disc detecting device of the present invention be used to judge whether hard disk 1 detecting unit 101 of pre-fault occurs, judge when detecting unit 101 then to start the concrete pre-failure message that fault acquiring unit 7 obtains hard disk 1 when finding that pre-fault appears in hard disks 1.
In this example, at first the second write parameters unit 2 of detecting unit 101 writes parameter 0xC2 to the high cylinder register of hard disk 1, low cylinder register to hard disk 1 writes parameter 0x4F, send sense command unit 3 and send sense command to hard disk 1, promptly in command register, write parameter 0xB0, hard disk 1 is detected, read parameter unit 4 and read the parameter of the low cylinder register of the high cylinder register of hard disk 1 and hard disk 1, judging unit 5 judges whether the described parameter of reading to read from high cylinder register parameter unit 4 is written to the parameter 0x4F of low cylinder register, and whether be written to the parameter 0xB0 of high cylinder register from the parameter that low cylinder register is read, if judged result is sure, expression hard disk 1 has pre-fault, otherwise expression hard disk 1 does not have pre-fault.
Correspondingly, hard disk detection method of the present invention, described hard disk 1 has the currency and the standard value thereof of the index parameter of hard disk 1, and described hard disk detection method comprises the fault obtaining step of the pre-failure message that is used to obtain hard disk 1, and a nearly step of described fault obtaining step may further comprise the steps:
The first write parameters step writes parameter, writes parameter to the characteristic register and the command register of hard disk 1 to the high cylinder register of hard disk 1 and low cylinder register;
Read the index parameter step, read the currency of the index parameter of hard disk 1;
Comparison step, read hard disk 1 index parameter standard value and described currency and its standard value of reading the index parameter of the hard disk 1 that the index parameter step reads compared, to draw the pre-failure message whether this index parameter breaks down.
Further, hard disk detection method of the present invention also comprises forwarding step, sends the pre-failure message that gets access in the described fault obtaining step.
Further, hard disk detection method of the present invention also comprises regularly step, is used for setting and detects frequency, controls described fault obtaining step and carries out at a certain time interval and detect hard disk 1.
Further, hard disk detection method of the present invention also comprises being used to detect the detection step whether hard disk 1 has pre-fault, and described detection step further may further comprise the steps:
The second write parameters step writes parameter to the high cylinder register and the low cylinder register of hard disk 1;
Send the sense command step, send sense command to hard disk 1;
Read the parameter step, read parameter from the high cylinder register and the low cylinder register of hard disk 1;
Determining step, judge whether the described parameter of reading to read from high cylinder register the parameter unit is written to the parameter of low cylinder register, and whether be written to the parameter of high cylinder register from the parameter that low cylinder register is read, if, pre-fault appears in expression hard disk 1, otherwise expression hard disk 1 does not have pre-fault;
Pre-fault occurs if the judged result of described determining step is a hard disk 1, then started the pre-failure message that described fault obtaining step obtains hard disk 1.
Although the technical scheme to hard disc detecting device of the present invention and method describes in detail above, those of ordinary skill in the art still can make various changes, replacement and change under the situation that does not break away from the above-mentioned scope of the invention of asking for protection.
Claims (9)
1, a kind of hard disc detecting device, described hard disk have the currency and the standard value thereof of the index parameter of hard disk, it is characterized in that, comprise the fault acquiring unit of the pre-failure message that is used to obtain hard disk,
Described fault acquiring unit further comprises the first write parameters unit, reads index parameter unit and comparing unit, wherein,
The described first write parameters unit is used for writing parameter, writing parameter and write parameter to the command register of hard disk to the characteristic register of hard disk to the high cylinder register of hard disk and low cylinder register;
The described index parameter unit of reading is used to read the currency of the index parameter of hard disk;
Described comparing unit, be used to read hard disk index parameter standard value and described currency and its standard value of reading the index parameter of the hard disk read the index parameter unit compared, to draw the pre-failure message whether pre-fault appears in this index parameter.
2, hard disc detecting device as claimed in claim 1 is characterized in that, described hard disc detecting device also comprises transmitting element, is used to send the accessed pre-failure message of described fault acquiring unit.
3, hard disc detecting device as claimed in claim 1 or 2 is characterized in that, described hard disc detecting device also comprises timing unit, is used for setting detecting frequency, controls described fault acquiring unit and detects hard disk with the detection frequency interval ground of setting.
4, the described hard disc detecting device of claim 2 is characterized in that, the frame of the pre-failure message that described transmitting element sends comprises following field:
Error category is used to identify the type of the pre-fault of hard disk;
The mistake generation time is used to the time that shows that pre-fault produces;
Error level is used to show the order of severity of pre-fault;
Wrong parameter is used to represent the value of the index parameter of hard disk
5, hard disc detecting device as claimed in claim 1, it is characterized in that, described hard disc detecting device also comprises and is used to detect the detecting unit whether hard disk has pre-fault, described detecting unit further comprises the second write parameters unit, sends the sense command unit, reads parameter unit and judging unit, comprise wherein
The described second write parameters unit is used for writing parameter to the high cylinder register and the low cylinder register of hard disk;
Described transmission sense command unit is used for sending sense command to hard disk;
The described parameter unit of reading is used for reading parameter from the high cylinder register and the low cylinder register of hard disk;
Described judging unit, be used to judge whether the described parameter of reading to read from high cylinder register the parameter unit is written to the parameter of low cylinder register, and whether be written to the parameter of high cylinder register from the parameter that low cylinder register is read, if, pre-fault appears in the expression hard disk, otherwise the expression hard disk does not have pre-fault;
Pre-fault occurs if the judged result of described judging unit is a hard disk, then start the pre-failure message that described fault acquiring unit obtains hard disk.
6, a kind of hard disk detection method, described hard disk has the currency and the standard value thereof of the index parameter of hard disk, comprises the fault obtaining step of the pre-failure message that is used to obtain hard disk, and a nearly step of described fault obtaining step may further comprise the steps:
The first write parameters step writes parameter, writes parameter and write parameter to the command register of hard disk to the characteristic register of hard disk to the high cylinder register of hard disk and low cylinder register;
Read the index parameter step, read the currency of the index parameter of hard disk;
Comparison step, read hard disk index parameter standard value and described currency and its standard value of reading the index parameter of the hard disk read the index parameter unit compared, to draw the pre-failure message whether pre-fault appears in this index parameter.
7, hard disk detection method as claimed in claim 6 is characterized in that, described hard disk detection method also comprises forwarding step, is sent in the pre-failure message that gets access in the described fault obtaining step.
As claim 6 or 7 described hard disk detection methods, it is characterized in that 8, described hard disk detection method also comprises regularly step, be used for setting and detect frequency, control described fault obtaining step and detect hard disk with the detection frequency interval ground of setting.
9, hard disk detection method as claimed in claim 6 is characterized in that, described hard disk detection method comprises also and be used to detect the detection step whether hard disk has pre-fault that described detection step further may further comprise the steps:
The second write parameters step writes parameter to the high cylinder register and the low cylinder register of hard disk;
Send the sense command step, send sense command to hard disk;
Read the parameter step, read parameter from the high cylinder register and the low cylinder register of hard disk;
Determining step, judge whether the described parameter of reading to read from high cylinder register the parameter unit is written to the parameter of low cylinder register, and whether be written to the parameter of high cylinder register from the parameter that low cylinder register is read, if, pre-fault appears in the expression hard disk, otherwise the expression hard disk does not have pre-fault;
Pre-fault occurs if the judged result of described determining step is a hard disk, then start the pre-failure message that described fault obtaining step obtains hard disk.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100623297A CN100498961C (en) | 2004-07-01 | 2004-07-01 | Hard disc detecting device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100623297A CN100498961C (en) | 2004-07-01 | 2004-07-01 | Hard disc detecting device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1716428A true CN1716428A (en) | 2006-01-04 |
CN100498961C CN100498961C (en) | 2009-06-10 |
Family
ID=35822172
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100623297A Expired - Fee Related CN100498961C (en) | 2004-07-01 | 2004-07-01 | Hard disc detecting device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100498961C (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100595839C (en) * | 2007-09-25 | 2010-03-24 | Ut斯达康通讯有限公司 | Hard disc error detection and fault-tolerant method in stream media uses |
CN101388254B (en) * | 2007-09-13 | 2010-12-15 | 英业达股份有限公司 | Storage device test method |
CN102208204A (en) * | 2011-05-25 | 2011-10-05 | 深圳宝德科技集团股份有限公司 | Method and device for detecting hard disks |
CN102541767A (en) * | 2011-12-21 | 2012-07-04 | 江门市未来之星网络科技有限公司 | Processing system of data crushing hard disk regenerator |
CN102591591A (en) * | 2011-12-19 | 2012-07-18 | 杭州瑞网广通信息技术有限公司 | Disk detection system, disk detection method and network storage system |
CN103197995A (en) * | 2012-01-04 | 2013-07-10 | 百度在线网络技术(北京)有限公司 | Hard disk fault detection method and device |
CN103455395A (en) * | 2013-08-08 | 2013-12-18 | 华为技术有限公司 | Method and device for detecting hard disk failures |
CN105511979A (en) * | 2015-12-11 | 2016-04-20 | 浪潮电子信息产业股份有限公司 | Tool for monitoring changes of Intel SATA HostRaid hard disk under Windows |
CN108319527A (en) * | 2017-12-21 | 2018-07-24 | 创新科存储技术(深圳)有限公司 | A kind of bad track disk detection method and device |
CN108958998A (en) * | 2018-06-12 | 2018-12-07 | 郑州云海信息技术有限公司 | Server hard disc uses time detection method and device under a kind of linux |
CN109446002A (en) * | 2018-10-17 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of jig plate, system and method for server crawl SATA hard disc |
CN109933448A (en) * | 2014-12-25 | 2019-06-25 | 华为技术有限公司 | A kind of method and device that prediction non-volatile memory medium breaks down |
CN110689914A (en) * | 2019-09-06 | 2020-01-14 | 苏州浪潮智能科技有限公司 | Solid state disk reading error correction method, device, equipment and storage medium |
CN113032201A (en) * | 2021-05-24 | 2021-06-25 | 广东睿江云计算股份有限公司 | Hard disk bad track detection method |
-
2004
- 2004-07-01 CN CNB2004100623297A patent/CN100498961C/en not_active Expired - Fee Related
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101388254B (en) * | 2007-09-13 | 2010-12-15 | 英业达股份有限公司 | Storage device test method |
CN100595839C (en) * | 2007-09-25 | 2010-03-24 | Ut斯达康通讯有限公司 | Hard disc error detection and fault-tolerant method in stream media uses |
CN102208204A (en) * | 2011-05-25 | 2011-10-05 | 深圳宝德科技集团股份有限公司 | Method and device for detecting hard disks |
CN102591591A (en) * | 2011-12-19 | 2012-07-18 | 杭州瑞网广通信息技术有限公司 | Disk detection system, disk detection method and network storage system |
CN102591591B (en) * | 2011-12-19 | 2015-10-21 | 杭州瑞网广通信息技术有限公司 | Disk detection system, disk detection method and network store system |
CN102541767A (en) * | 2011-12-21 | 2012-07-04 | 江门市未来之星网络科技有限公司 | Processing system of data crushing hard disk regenerator |
CN103197995B (en) * | 2012-01-04 | 2016-06-15 | 百度在线网络技术(北京)有限公司 | Hard disk fault detection method and device |
CN103197995A (en) * | 2012-01-04 | 2013-07-10 | 百度在线网络技术(北京)有限公司 | Hard disk fault detection method and device |
CN103455395B (en) * | 2013-08-08 | 2016-12-07 | 华为技术有限公司 | The detection method of a kind of hard disk failure and device |
CN103455395A (en) * | 2013-08-08 | 2013-12-18 | 华为技术有限公司 | Method and device for detecting hard disk failures |
CN109933448A (en) * | 2014-12-25 | 2019-06-25 | 华为技术有限公司 | A kind of method and device that prediction non-volatile memory medium breaks down |
CN109933448B (en) * | 2014-12-25 | 2021-04-20 | 华为技术有限公司 | Method and device for predicting fault of nonvolatile storage medium |
CN105511979A (en) * | 2015-12-11 | 2016-04-20 | 浪潮电子信息产业股份有限公司 | Tool for monitoring changes of Intel SATA HostRaid hard disk under Windows |
CN108319527A (en) * | 2017-12-21 | 2018-07-24 | 创新科存储技术(深圳)有限公司 | A kind of bad track disk detection method and device |
CN108958998A (en) * | 2018-06-12 | 2018-12-07 | 郑州云海信息技术有限公司 | Server hard disc uses time detection method and device under a kind of linux |
CN109446002A (en) * | 2018-10-17 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of jig plate, system and method for server crawl SATA hard disc |
CN109446002B (en) * | 2018-10-17 | 2022-02-18 | 郑州云海信息技术有限公司 | Jig plate, system and method for grabbing SATA hard disk by server |
CN110689914A (en) * | 2019-09-06 | 2020-01-14 | 苏州浪潮智能科技有限公司 | Solid state disk reading error correction method, device, equipment and storage medium |
CN113032201A (en) * | 2021-05-24 | 2021-06-25 | 广东睿江云计算股份有限公司 | Hard disk bad track detection method |
CN113032201B (en) * | 2021-05-24 | 2021-09-21 | 广东睿江云计算股份有限公司 | Hard disk bad track detection method |
Also Published As
Publication number | Publication date |
---|---|
CN100498961C (en) | 2009-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1716428A (en) | Hard disc detecting device and method | |
US6493656B1 (en) | Drive error logging | |
US7558988B2 (en) | Storage system and control method thereof | |
US6412089B1 (en) | Background read scanning with defect reallocation | |
US9047187B2 (en) | Defect management in memory systems | |
US20030110426A1 (en) | Apparatus and method for error logging on a memory module | |
CN1517947A (en) | Nonvolatile memory | |
CN1462447A (en) | Disk memory device, disk memory device defect detecting method and program recording medium | |
CN1920828A (en) | Method and system for cleaning garbage files | |
CN105468482B (en) | Hard disk position identification and fault diagnosis method and server equipment thereof | |
CN1855081A (en) | Information processing apparatus and operation control method | |
CN111949220B (en) | Abnormal power-off recovery method of storage device and storage device | |
CN103458086A (en) | Smart phone and fault detection method thereof | |
WO2017220013A1 (en) | Service processing method and apparatus, and storage medium | |
CN1841547A (en) | Method and apparatus for identifying failure module | |
CN102222033B (en) | A kind of method and device for preserving small computer system interface access error | |
CN103400602B (en) | A kind of bad track of hard disk self-repairing method and equipment | |
CN101741578B (en) | Test method for testing monitoring unit, server and test system thereof | |
JP2009151393A (en) | Storage medium control device, storage medium managing system, storage medium control method, and storage medium control program | |
CN1416123A (en) | Method and device for controlling writing operation on disk drive | |
US20100011100A1 (en) | Health Check System, Server Apparatus, Health Check Method, and Storage Medium | |
JP2008257411A (en) | Disk control system | |
CN113035266A (en) | Hard disk performance test method and device, computer equipment and storage medium | |
CN102033787B (en) | Method for carrying out error tolerance management on cluster storage medium | |
US7457990B2 (en) | Information processing apparatus and information processing recovery method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090610 Termination date: 20170701 |