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
- unit
- fault
- read
- 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 invention discloses a hard disk detection device and method. The hard disk detection device includes a fault acquisition unit for acquiring pre-fault information of the hard disk, and the fault acquisition unit further includes a first write parameter unit, a read index parameter unit and a comparison unit , wherein, the first write parameter unit is used to write parameters to the high cylinder register, low cylinder register, characteristic register and command register of the hard disk; the read index parameter unit is used to read the index parameter of the hard disk The current value of the hard disk; the comparison unit is used to compare the current value of the index parameter of the hard disk read by the read index parameter unit with the standard value, so as to obtain the pre-failure information of whether the index parameter fails. Correspondingly, the hard disk detection method includes a fault acquisition step, and the fault acquisition step further includes a first write parameter step, a read index parameter step and a comparison step. The hard disk detection device and method of the present invention can obtain detailed information of pre-failure occurrence of the hard disk.
Description
技术领域technical field
本发明涉及通信或电子领域的测试技术,尤指一种硬盘检测装置及方法。The invention relates to testing technology in the field of communication or electronics, in particular to a hard disk testing device and method.
背景技术Background technique
随着信息化社会的不断发展,硬盘在各行各业中的作用也变得越来越重要。比如在通信设备机柜插框中承载某种具体业务的业务单板,其上大量关键数据和软件的存储载体采用的都是硬盘,在电路交换机、软交换、可移动通信的全球系统(GSM,Global System for Mobile-Communications)、第三代移动通信系统(3G)、媒体网关等系统中用于话单存储、前后台维护系统、主控系统、配置数据存储等等也都采用硬盘。为了保证大量关键数据的不被遗失及以硬盘为存储载体的系统不崩溃就要求硬盘的极高的可靠性。然而硬盘毕竟是机电设备,其机械部件不可避免地会出现失效、耗损的情况,按行业统计数据,硬盘的故障率在1~3%左右,设计寿命为5年,其主要的失效或耗损的部件是马达和电机,如果工作超过限定的连续上电时间或读写占空比,硬盘的耗损会更快,同时硬盘在工作过程中,还不规则地出现磁头刮伤磁面,漂浮磁粉效应(一种因振动导致的飘浮磁粉累集引起的硬盘失效)导致的硬盘失效,因而如果能够及时获取硬盘的健康状况并报告网管,这样在硬盘故障来临前就能预知,从而可避免出现因硬盘损坏而导致系统崩溃或数据丢失的恶性事故,这是业界重要研究的问题和技术。With the continuous development of the information society, the role of hard drives in all walks of life is becoming more and more important. For example, in the subrack of the communication equipment cabinet, the business single board that carries a certain specific business uses hard disks as storage carriers for a large amount of key data and software. Global System for Mobile-Communications), third-generation mobile communication systems (3G), media gateways and other systems also use hard drives for bill storage, front-end and back-end maintenance systems, main control systems, configuration data storage, etc. In order to ensure that a large amount of key data will not be lost and the system using the hard disk as the storage carrier will not crash, the high reliability of the hard disk is required. However, the hard disk is an electromechanical device after all, and its mechanical parts will inevitably fail and wear out. According to industry statistics, the failure rate of hard disks is about 1 to 3%, and the design life is 5 years. The components are motors and motors. If the work exceeds the limited continuous power-on time or read-write duty cycle, the wear and tear of the hard disk will be faster. At the same time, during the working process of the hard disk, the magnetic head scratches the magnetic surface and the floating magnetic particle effect occurs irregularly. (a kind of hard disk failure caused by the accumulation of floating magnetic particles caused by vibration) causes hard disk failure, so if the health status of the hard disk can be obtained in time and reported to the network management, it can be predicted before the hard disk failure, thereby avoiding hard disk failure. It is an important research problem and technology in the industry to cause system crash or data loss due to damage.
如图1所示,现有技术硬盘检测装置包括第二写参数单元2、发送检测命令单元3、读参数单元4、判断单元5和显示单元6,其中,As shown in Figure 1, the prior art hard disk detection device includes a second
第二写参数单元2,用于向硬盘1的高柱面寄存器和低柱面寄存器写入参数;The second
发送检测命令单元3,用于向硬盘1发送检测命令;A detection command unit 3 is sent, configured to send a detection command to the
读参数单元4,用于从硬盘1的高柱面寄存器和低柱面寄存器读出参数;The
判断单元5,用于判断根据读参数单元4从高柱面寄存器读出的参数是否是写入到高柱面寄存器的参数的高位与低位的对换,并且从低柱面寄存器读出的参数是否是写入到低柱面寄存器的参数的高位与低位的对换,如果是,表示硬盘1出现预故障,否则表示硬盘1正常;
显示单元6,如果所述判断单元5的判断结果是硬盘出现预故障,则在显示界面上显示有预故障,否则不显示。The display unit 6, if the judging result of the
所述预故障,用于表示硬盘1存在潜在故障,即硬盘1即将发生故障。The pre-failure is used to indicate that the
现有技术利用了硬盘1的自管理分析报告技术(SMART,Self Monitoringand Analysis and Reporting Technology)的特性来实现硬盘1的预故障检测的。即向硬盘1的高柱面寄存器写入参数0xC2H、向硬盘1的低柱面寄存器写入参数0x4FH、向命令寄存器中写入参数0xB0H,硬盘1即进行自检测分析硬盘1的情况,如果硬盘1出现预故障,则向硬盘1的高柱面寄存器写入参数0x2CH及向硬盘1的低柱面寄存器写入参数0xF4H,故只要对硬盘1的高柱面寄存器和硬盘1的低柱面寄存器的参数进行分析判断,就能得出硬盘1是否出现预故障,即从高柱面寄存器读出的参数是写入到高柱面寄存器的参数的高位与低位的对换,并且从低柱面寄存器读出的参数是写入到低柱面寄存器的参数的高位与低位的对换,则表示硬盘1有预故障。The prior art utilizes the characteristics of the self-management analysis and reporting technology (SMART, Self Monitoring and Analysis and Reporting Technology) of the
现有技术硬盘检测装置是在使用硬盘1的系统启动的时候对硬盘1进行检测的,如图1所示,在本例中,第一写参数单元2向硬盘1的高柱面寄存器写入参数0xC2H,向硬盘1的低柱面寄存器写入参数0x4FH,发送检测命令单元3向硬盘1发送检测命令,即向命令寄存器中写入参数0xB0H,对硬盘1进行检测,读参数单元4读出硬盘1的高柱面寄存器和低柱面寄存器的参数,判断单元5判断所述读参数单元4从高柱面寄存器读出的参数是否是到写入到高柱面寄存器的参数的高位与低位的对换0xC2H,并且从低柱面寄存器读出的参数是否是写入到低柱面寄存器的参数的高位与低位的对换0xF4H,如果判断单元5的判断结果是肯定的,表示硬盘1有预故障,在显示单元6上显示有预故障,否则不显示,表示硬盘1没有预故障。The prior art hard disk detection device detects the
综上所述,首先,通过现有技术只能够得知硬盘1是否有预故障,而不能得知是什么原因造成的,是上电时间超限了,刮伤次数太多了,还是机械部件寿命快到了等等不得而知,导致在处理问题时无的放矢,使得为处理故障而采用的改进措施没有针对性;To sum up, first of all, through the existing technology, we can only know whether the
其次,现有技术只是将硬盘1是否有预故障显示在显示界面上,例如在电信领域,电信机房一般是无人值班的,如果检测出有预故障,显示在显示界面上的有预故障信息无人知晓,也就无人处理,就可能导致硬盘1崩溃,业务中断;Secondly, the existing technology only displays whether the
再者,现有技术只是在系统启动初始化的时候检测硬盘1的,如果系统没有被重新启动初始化就不会检测硬盘1,硬盘1在系统运行期间出现预故障就无法知晓。Furthermore, the prior art only detects the
发明内容Contents of the invention
本发明要解决的问题是提供一种能够得知硬盘出现预故障的详细原因的硬盘检测装置及方法。The problem to be solved by the present invention is to provide a hard disk detection device and method capable of knowing the detailed reasons for the pre-failure of the hard disk.
为了解决上述问题,本发明硬盘检测装置的技术方案:In order to solve the above problems, the technical scheme of the hard disk detection device of the present invention:
一种硬盘检测装置,所述硬盘存有硬盘的指标参数的当前值及其标准值,包括用于获取硬盘的预故障信息的故障获取单元,A hard disk detection device, the hard disk stores the current value of the index parameter of the hard disk and its standard value, including a fault acquisition unit for obtaining pre-failure information of the hard disk,
所述故障获取单元进一步包括第一写参数单元、读指标参数单元和比较单元,其中,The fault acquisition unit further includes a first write parameter unit, a read index parameter unit and a comparison unit, wherein,
所述第一写参数单元,用于向硬盘的高柱面寄存器和低柱面寄存器写入参数、向硬盘的特性寄存器写入参数和向硬盘的命令寄存器写入参数;The first write parameter unit is used to write parameters to the high cylinder register and low cylinder register of the hard disk, write parameters to the characteristic register of the hard disk, and write parameters to the command register of the hard disk;
所述读指标参数单元,用于读出硬盘的指标参数的当前值;The read indicator parameter unit is used to read the current value of the indicator parameter of the hard disk;
所述比较单元,用于读出硬盘的指标参数的标准值并将所述读指标参数单元读出的硬盘的指标参数的当前值与其标准值进行比较,以得出是否该指标参数出现预故障的预故障信息。The comparison unit is used to read the standard value of the index parameter of the hard disk and compare the current value of the index parameter of the hard disk read by the read index parameter unit with its standard value to obtain whether the index parameter has a pre-failure pre-fault information.
所述硬盘检测装置还包括发送单元,用于发送所述故障获取单元所获取到的预故障信息。The hard disk detection device further includes a sending unit, configured to send the pre-fault information obtained by the fault obtaining unit.
所述硬盘检测装置还包括定时单元,用于设定检测频率,控制所述故障获取单元以设定的检测频率间隔地检测硬盘。The hard disk detection device further includes a timing unit for setting the detection frequency, and controlling the fault acquisition unit to detect the hard disk at intervals at the set detection frequency.
所述发送单元发送的预故障信息的帧包括以下字段:The frame of the pre-failure information sent by the sending unit includes the following fields:
错误类别,用于标识硬盘预故障的类型;Error category, used to identify the type of hard disk pre-failure;
错误产生时间,用于表明预故障产生的时间;Error generation time, used to indicate the time of pre-fault generation;
错误级别,用于表明预故障的严重程度;错误参数,用于表示硬盘的指标参数的值Error level, used to indicate the severity of the pre-failure; Error parameter, used to indicate the value of the hard disk's index parameter
所述硬盘检测装置还包括用于检测硬盘是否有预故障的检测单元,所述检测单元进一步包括第二写参数单元、发送检测命令单元、读参数单元和判断单元,包括其中,The hard disk detection device also includes a detection unit for detecting whether the hard disk has a pre-failure, and the detection unit further includes a second write parameter unit, a detection command unit, a read parameter unit, and a judgment unit, including,
所述第二写参数单元,用于向硬盘的高柱面寄存器和低柱面寄存器写入参数;The second write parameter unit is used to write parameters to the high cylinder register and low cylinder register of the hard disk;
所述发送检测命令单元,用于向硬盘发送检测命令;The sending detection command unit is used to send a detection command to the hard disk;
所述读参数单元,用于从硬盘的高柱面寄存器和低柱面寄存器读出参数;The parameter read unit is used to read parameters from the high cylinder register and the low cylinder register of the hard disk;
所述判断单元,用于判断所述读参数单元从高柱面寄存器读出的参数是否是写入到低柱面寄存器的参数,并且从低柱面寄存器读出的参数是否是写入到高柱面寄存器的参数,如果是,表示硬盘出现预故障,否则表示硬盘没有预故障;The judging unit is used to judge whether the parameter read by the read parameter unit from the high cylinder register is a parameter written into the low cylinder register, and whether the parameter read from the low cylinder register is written into the high cylinder register. The parameter of the cylinder register, if it is, it means that the hard disk has a pre-failure, otherwise it means that the hard disk has no pre-failure;
如果所述判断单元的判断结果是硬盘出现预故障,则启动所述故障获取单元来获取硬盘的预故障信息。If the judging result of the judging unit is that the hard disk has a pre-failure, start the fault obtaining unit to obtain the pre-failure information of the hard disk.
一种硬盘检测方法,所述硬盘存有硬盘的指标参数的当前值及其标准值,包括用于获取硬盘的预故障信息的故障获取步骤,所述故障获取步骤近一步包括以下步骤:A hard disk detection method, the hard disk stores the current value and the standard value of the index parameter of the hard disk, including a failure acquisition step for obtaining the pre-failure information of the hard disk, and the failure acquisition step further comprises the following steps:
第一写参数步骤,向硬盘的高柱面寄存器和低柱面寄存器写入参数、向硬盘的特性寄存器写入参数和向硬盘的命令寄存器写入参数;The first parameter writing step is to write parameters to the high cylinder register and low cylinder register of the hard disk, write parameters to the characteristic register of the hard disk and write parameters to the command register of the hard disk;
读指标参数步骤,读出硬盘的指标参数的当前值;Read index parameter step, read out the current value of the index parameter of hard disk;
比较步骤,读出硬盘的指标参数的标准值并将所述读指标参数单元读出的硬盘的指标参数的当前值与其标准值进行比较,以得出是否该指标参数出现预故障的预故障信息。Comparing step, read the standard value of the hard disk index parameter and compare the current value of the hard disk index parameter read by the read index parameter unit with its standard value, to obtain the pre-failure information of whether the index parameter has a pre-failure .
所述硬盘检测方法还包括发送步骤,发送在所述故障获取步骤中获取到的预故障信息。The hard disk detection method further includes a sending step of sending the pre-fault information obtained in the fault obtaining step.
所述硬盘检测方法还包括定时步骤,用于设定检测频率,控制所述故障获取步骤以设定的检测频率间隔地检测硬盘。The hard disk detection method further includes a timing step for setting a detection frequency, and controlling the fault acquisition step to detect the hard disk at intervals at the set detection frequency.
所述硬盘检测方法还包括用于检测硬盘是否有预故障的检测步骤,所述检测步骤进一步包括以下步骤:The hard disk detection method also includes a detection step for detecting whether the hard disk has a pre-failure, and the detection step further includes the following steps:
第二写参数步骤,向硬盘的高柱面寄存器和低柱面寄存器写入参数;The second parameter writing step is to write parameters to the high cylinder register and the low cylinder register of the hard disk;
发送检测命令步骤,向硬盘发送检测命令;The step of sending a detection command is to send a detection command to the hard disk;
读参数步骤,从硬盘的高柱面寄存器和低柱面寄存器读出参数;Read the parameter step, read the parameter from the high cylinder register and the low cylinder register of the hard disk;
判断步骤,判断所述读参数单元从高柱面寄存器读出的参数是否是写入到低柱面寄存器的参数,并且从低柱面寄存器读出的参数是否是写入到高柱面寄存器的参数,如果是,表示硬盘出现预故障,否则表示硬盘没有预故障;Judging step, judging whether the parameter read by the read parameter unit from the high cylinder register is the parameter written into the low cylinder register, and whether the parameter read from the low cylinder register is written into the high cylinder register parameter, if it is, it means that the hard disk has a pre-failure, otherwise it means that the hard disk has no pre-failure;
如果所述判断步骤的判断结果是硬盘出现预故障,则启动所述故障获取步骤来获取硬盘的预故障信息。If the judging result of the judging step is that the hard disk has a pre-failure, start the fault obtaining step to obtain the pre-failure information of the hard disk.
与现有技术相比,本发明硬盘检测装置及方法的有益效果:Compared with the prior art, the beneficial effects of the hard disk detection device and method of the present invention are as follows:
首先,本发明硬盘检测装置及方法能够获取硬盘的预故障信息,这样就能够得知是什么原因导致硬盘出现了预故障,使得在处理问题时有的放矢,而且为处理故障而采用的改进措施有针对性;First of all, the hard disk detection device and method of the present invention can obtain the pre-failure information of the hard disk, so that it can be known what causes the hard disk to have a pre-failure, so that the problem can be dealt with in a targeted manner, and the improvement measures adopted for dealing with the fault can be targeted sex;
其次,本发明硬盘检测装置及方法能够将硬盘的预故障信息发送出去(网管等),而不是只显示在显示界面上,这样使网管等故障处理人员能够及时知道预故障的存在,及时处理,从而可避免硬盘崩溃、业务中断等现象的发生;Secondly, the hard disk detection device and method of the present invention can send out the pre-failure information of the hard disk (network management, etc.), instead of only displaying it on the display interface, so that the fault handling personnel such as network management can know the existence of the pre-failure in time, and deal with it in time. In this way, the phenomenon of hard disk crash and business interruption can be avoided;
再者,本发明硬盘检测装置及方法能够设定硬盘的检测频率,即规定在多长时间检测一次硬盘,而不仅仅是在使用硬盘的系统启动的时候才检测硬盘,这样当系统在运行期间硬盘出现预故障时,能够及时得知,及时处理。Furthermore, the hard disk detection device and method of the present invention can set the detection frequency of the hard disk, that is, specify how often to detect the hard disk, not just detect the hard disk when the system using the hard disk is started, so that when the system is running When a pre-failure occurs on the hard disk, it can be known in time and dealt with in time.
附图说明Description of drawings
图1是现有技术硬盘检测装置的结构图;Fig. 1 is the structural diagram of prior art hard disk detection device;
图2是本发明硬盘检测装置的结构图;Fig. 2 is a structural diagram of a hard disk detection device of the present invention;
具体实施方式Detailed ways
如图2所示,本发明硬盘检测装置,所述硬盘1存有指标参数的当前值及其参考值,所述硬盘检测装置包括用于获取硬盘1的预故障信息的故障获取单元7,所述故障获取单元7进一步包括第一写参数单元71、读指标参数单元72和比较单元73,其中,As shown in Figure 2, in the hard disk detection device of the present invention, the
所述第一写参数单元71,用于向硬盘1的高柱面寄存器和低柱面寄存器写入参数、向硬盘1的特性寄存器写入参数和向硬盘1的命令寄存器写入参数;The first
所述读指标参数单元72,用于读出硬盘1的指标参数的当前值;The read
所述比较单元72,用于读出硬盘1的指标参数的标准值并将所述读指标参数单元读出的硬盘1的指标参数的当前值与其标准值进行比较,以得出是否该指标参数出现预故障的预故障信息。The
进一步地,如图2所示,本发明硬盘检测装置还包括发送单元8,用于发送所述故障获取单元7所获取到的预故障信息,可以以帧的形式进行发送。Further, as shown in FIG. 2 , the hard disk detection device of the present invention further includes a sending
进一步地,如图2所示,本发明硬盘检测装置还包括定时单元,用于设定检测频率,控制所述故障获取单元7以一定的时间间隔检测硬盘1。Further, as shown in FIG. 2 , the hard disk detection device of the present invention further includes a timing unit for setting the detection frequency and controlling the
进一步地,如图2所示,本发明硬盘检测装置还包括用于检测硬盘是否有预故障的检测单元101,所述检测单元101进一步包括第二写参数单元2、发送检测命令单元3、读参数单元4和判断单元5,包括其中,Further, as shown in FIG. 2 , the hard disk detection device of the present invention also includes a
所述第二写参数单元2,用于向硬盘1的高柱面寄存器和低柱面寄存器写入参数;The second
所述发送检测命令单元3,用于向硬盘1发送检测命令;The sending detection command unit 3 is configured to send a detection command to the
所述读参数单元4,用于从硬盘1的高柱面寄存器和低柱面寄存器读出参数;The parameter read
所述判断单元5,用于判断根据读参数单元4从高柱面寄存器读出的参数是否是写入到高柱面寄存器的参数的高位与低位的对换,并且从低柱面寄存器读出的参数是否是写入到低柱面寄存器的参数的高位与低位的对换,如果是,表示硬盘1出现预故障,否则表示硬盘1正常;The judging
如果所述判断单元5的判断结果是硬盘1出现预故障,则启动所述故障获取单元来获取硬盘1的预故障信息。If the judging result of the judging
本发明硬盘检测装置利用了硬盘1的SMART特性,如图2所示,在本例中,所述故障获取单元7的第一写参数单元71向硬盘1的高柱面寄存器写入参数0xC2,向硬盘1的低柱面寄存器写入参数0x4F,向硬盘1的特性寄存器写入参数0xD1,向硬盘1的命令寄存器写入参数0xB0,读指标参数单元72把硬盘1的所有指标参数的当前值通过硬盘1的数据端口读出来,比较单元73从硬盘1中通过类似操作读出指标参数的标准值并将从硬盘1读出的指标参数的当前值与其标准值(硬盘1出厂时,厂家设定的值)进行比较,如果指标参数的当前值超过其标准值,说明硬盘1在该项性能上出现预故障,这样就可获得硬盘1的具体的预故障信息。本例中,硬盘1的上电时间总数的当前值是1万2小时,其标准值是1万小时,比较单元73对硬盘1的上电时间总数的当前值与其标准值比较,结果是当前值大于其标准值,表明硬盘1的预故障是由于上电时间过长引起的。The hard disk detection device of the present invention has utilized the SMART characteristic of
本例中的硬盘1的所述指标参数有:The index parameters of
数据读错误率(Raw Read Error Rate),如果数据读错误率较高说明硬盘1即将故障;Data read error rate (Raw Read Error Rate), if the data read error rate is high, it means that
吞吐能力(Throughput Performance),吞吐能力低说明硬盘1潜在故障;Throughput Performance (Throughput Performance), low throughput indicates potential failure of
盘片启动时间(Spin Up Time),如果盘片启动较慢则说明电机马达或结构件耗损,硬盘1即将损坏;Disk startup time (Spin Up Time), if the disk starts slowly, it means that the motor or structural parts are worn out, and the
启动停止次数(Start/Stop Count),如果启动停止次数超过其标准值说明硬盘1部件耐磨程度达到了上限;Start/Stop Count (Start/Stop Count), if the number of start and stop exceeds its standard value, it means that the wear resistance of
扇区重定位次数(Reallocated Sector Count),用于说明硬盘1定位的准确程度;Sector relocation times (Reallocated Sector Count), used to illustrate the accuracy of
寻道错误率(Seek Error Rate),如果寻道错误率较高说明硬盘1即将故障;Seek Error Rate (Seek Error Rate), if the seek error rate is high, it means that
寻道时间性能(Seek Time Performance),寻道时间如果超过最大寻道时间,说明硬盘1潜在故障;Seek Time Performance (Seek Time Performance), if the seek time exceeds the maximum seek time, it indicates that
上电时间总数(Power-On Hours Count),上电总时间如果超过硬盘1所能承受的上限值,说明硬盘1寿命到了,有潜在故障;Total power-on hours (Power-On Hours Count), if the total power-on time exceeds the upper limit that
旋转重试次数(Spin Retry Count),表示硬盘1进行旋转重试的次数;Spin Retry Count (Spin Retry Count), indicating the number of spin retries performed by
设备电源上下电次数(Device Power Cycle Count),表示设备开关电源的次数;Device Power Cycle Count (Device Power Cycle Count), indicating the number of times the device powers on and off;
CRC校验错误次数(CRC Error Count),表示硬盘1读写出错率;CRC error count (CRC Error Count), indicating the read and write error rate of
碟片移动(Disk Shift),表示碟片松动了,与原来的位置相比有偏移;Disk Shift (Disk Shift), indicating that the disk is loose, and there is an offset compared with the original position;
G传感器错误率(G-Sense Error Rate),表示G传感器的出错率;G sensor error rate (G-Sense Error Rate), indicating the error rate of the G sensor;
负载时间(Loaded Hours),表示硬盘1的工作时间;Loaded Hours (Loaded Hours), indicating the working hours of
载入重试次数(Load Retry Count),表示硬盘1读写不成功而重复进行的次数;Load Retry Count (Load Retry Count), which indicates the number of repeated attempts to read and write
加载摩擦(Load Friction),用来反映结构件健康参数;Load Friction, which is used to reflect the health parameters of structural members;
加载次数(Load Cycle Count),表示硬盘1读写次数;Load Cycle Count, indicating the number of reads and writes of
载入时间(Load-in Time),表示硬盘1读写需要的时间;Load-in Time (Load-in Time), indicating the time required for
断电缩回次数(Power-off Retract Count),反映磁头臂健康状态。Power-off retract count (Power-off Retract Count), reflecting the health status of the head arm.
进一步地,如图2所示,发送单元8将硬盘1的预故障信息以帧格式的形式发送给故障处理人员(如网管等),发送单元8可通过网络、直线等各种方式来发送预故障信息。Further, as shown in Figure 2, the sending
所述帧格式的预故障信息包括以下字段:The pre-failure information of the frame format includes the following fields:
告警编号(Alarmld),用于表示此预故障信息的编号;Alarm number (Alarmld), used to indicate the number of this pre-fault message;
错误类别(AlarmType),用于标识硬盘1预故障的类型;Error category (AlarmType), used to identify the type of
错误产生时间,用于表明预故障产生的时间;Error generation time, used to indicate the time of pre-fault generation;
错误级别(Level),用于表明预故障的严重程度;Error level (Level), used to indicate the severity of the pre-failure;
错误参数(Paras[PARAM_LEN]),用于表示硬盘1的指标参数的值;Error parameter (Paras[PARAM_LEN]), used to indicate the value of the index parameter of
功能系统号(Functionld),用于表示是哪一个域出错,如硬件或者软件等;Function system number (Functionld), which is used to indicate which domain is faulty, such as hardware or software;
顺序号(NumlnLevel),用于表示同一错误级别的顺序号;是哪一个域出现问题,例如硬件、软件等;Sequence number (NumlnLevel), used to indicate the sequence number of the same error level; which domain has a problem, such as hardware, software, etc.;
网管子系统号(SubSystemld),用于表示网管子系统的编号;Network management subsystem number (SubSystemld), used to indicate the number of the network management subsystem;
其中所述错误产生时间进一步包括以下字段:The error generation time further includes the following fields:
年(Year),用于表示产生此预故障信息的年份;Year (Year), used to indicate the year when this pre-fault information was generated;
月(Month),用于表示产生此预故障信息的月份;Month (Month), used to indicate the month in which this pre-fault information is generated;
日(Day),用于表示产生此预故障信息的日;Day (Day), used to indicate the day when the pre-fault information is generated;
时(Hour),用于表示产生此预故障信息的小时;Hour (Hour), used to indicate the hour when this pre-fault message is generated;
分(Minute),用于表示产生此预故障信息的分钟;Minute, used to indicate the minute when the pre-fault information is generated;
秒(Second),用于表示产生此预故障信息的秒。Second (Second), used to indicate the second when this pre-failure information is generated.
通过上述帧格式的预故障信息可以很清楚地了解硬盘1的具体将出现什么故障,可以有的放矢地来排除故障,维持系统的正常运行。Through the pre-failure information in the above frame format, it is possible to clearly understand what specific faults will occur in the
进一步地,如图2所示,本发明硬盘检测装置的定时单元9用于设定检测频率,以一定时间间隔启动所述故障检测单元7的第一写参数单元,即对硬盘1进行检测,检测频率可根据实际应用情况而设置,如10分钟/次、1小时/次、12小时/次等。Further, as shown in Figure 2, the
进一步地,如图2所示,本发明硬盘检测装置的用于判断硬盘1是否出现预故障的检测单元101,当检测单元101判断发现硬盘1出现预故障时,则启动故障获取单元7来获取硬盘1的具体的预故障信息。Further, as shown in Figure 2, the
在本例中,首先检测单元101的第二写参数单元2向硬盘1的高柱面寄存器写入参数0xC2,向硬盘1的低柱面寄存器写入参数0x4F,发送检测命令单元3向硬盘1发送检测命令,即向命令寄存器中写入参数0xB0,对硬盘1进行检测,读参数单元4读出硬盘1的高柱面寄存器和硬盘1的低柱面寄存器的参数,判断单元5判断所述读参数单元4从高柱面寄存器读出的参数是否是写入到低柱面寄存器的参数0x4F,并且从低柱面寄存器读出的参数是否是写入到高柱面寄存器的参数0xB0,如果判断结果是肯定的,表示硬盘1有预故障,否则表示硬盘1没有预故障。In this example, first the second
相应地,本发明硬盘检测方法,所述硬盘1存有硬盘1的指标参数的当前值及其标准值,所述硬盘检测方法包括用于获取硬盘1的预故障信息的故障获取步骤,所述故障获取步骤近一步包括以下步骤:Correspondingly, in the hard disk detection method of the present invention, the
第一写参数步骤,向硬盘1的高柱面寄存器和低柱面寄存器写入参数、向硬盘1的特性寄存器和命令寄存器写入参数;The first write parameter step, write parameters to the high cylinder register and low cylinder register of
读指标参数步骤,读出硬盘1的指标参数的当前值;Read index parameter step, read out the current value of the index parameter of
比较步骤,读出硬盘1的指标参数的标准值并将所述读指标参数步骤读出的硬盘1的指标参数的当前值与其标准值进行比较,以得出是否该指标参数出现故障的预故障信息。Comparing step, read out the standard value of the index parameter of
进一步地,本发明硬盘检测方法,还包括发送步骤,发送所述故障获取步骤中获取到的预故障信息。Furthermore, the hard disk detection method of the present invention further includes a sending step of sending the pre-fault information obtained in the fault obtaining step.
进一步地,本发明硬盘检测方法,还包括定时步骤,用于设定检测频率,控制所述故障获取步骤以一定的时间间隔执行来检测硬盘1。Furthermore, the hard disk detection method of the present invention further includes a timing step, which is used to set the detection frequency, and controls the fault acquisition step to be executed at a certain time interval to detect the
进一步地,本发明硬盘检测方法,还包括用于检测硬盘1是否有预故障的检测步骤,所述检测步骤进一步包括以下步骤:Further, the hard disk detection method of the present invention also includes a detection step for detecting whether the
第二写参数步骤,向硬盘1的高柱面寄存器和低柱面寄存器写入参数;The second parameter writing step is to write parameters to the high cylinder register and the low cylinder register of the
发送检测命令步骤,向硬盘1发送检测命令;The step of sending a detection command is to send a detection command to the
读参数步骤,从硬盘1的高柱面寄存器和低柱面寄存器读出参数;Read the parameter step, read the parameter from the high cylinder register and the low cylinder register of
判断步骤,判断所述读参数单元从高柱面寄存器读出的参数是否是写入到低柱面寄存器的参数,并且从低柱面寄存器读出的参数是否是写入到高柱面寄存器的参数,如果是,表示硬盘1出现预故障,否则表示硬盘1没有预故障;Judging step, judging whether the parameter read by the read parameter unit from the high cylinder register is the parameter written into the low cylinder register, and whether the parameter read from the low cylinder register is written into the high cylinder register parameter, if it is, it means that
如果所述判断步骤的判断结果是硬盘1出现了预故障,则启动所述故障获取步骤来获取硬盘1的预故障信息。If the judging result of the judging step is that the
尽管上面对本发明硬盘检测装置及方法的技术方案进行了详细地描述,但本领域的普通技术人员仍然可以在不脱离上述请求保护的本发明范围的情况下,做出各种改变、替换和更改。Although the technical solution of the hard disk detection device and method of the present invention has been described in detail above, those skilled in the art can still make various changes, replacements and modifications without departing from the scope of the present invention claimed above. .
Claims (9)
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 | 英业达股份有限公司 | Test method of storage device |
| 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 | 浪潮电子信息产业股份有限公司 | A 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 | 英业达股份有限公司 | Test method of storage device |
| 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 | 浪潮电子信息产业股份有限公司 | A 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 | |
| CN103455395B (en) | The detection method of a kind of hard disk failure and device | |
| Allen | Monitoring hard disks with smart | |
| CN1168088C (en) | High-reliability storage drive and data writing method | |
| CN102591591B (en) | Disk detection system, disk detection method and network store system | |
| US10519960B2 (en) | Fan failure detection and reporting | |
| CN1466760A (en) | Critical event logging for disk drives | |
| CN1462447A (en) | Disk storage device, method for judging failure of disk storage device, and program recording medium | |
| CN112506744B (en) | Method, device and equipment for monitoring running state of NVMe hard disk | |
| CN101079324A (en) | Storage device, its life monitoring device and monitoring method | |
| CN1770304A (en) | Failure prediction method of magnetic disk device and magnetic disk device using the method | |
| CN111656446A (en) | Hard drive life prediction | |
| US8234235B2 (en) | Security and remote support apparatus, system and method | |
| CN1896963A (en) | Hard disk device damage monitoring method and system | |
| US11093165B2 (en) | Systems and methods for data sanitization of electronic storage media | |
| WO2014155228A1 (en) | A primary memory module with a record of usage history and applications of the primary memory module to a computer system | |
| CN107766191A (en) | The automatic detecting storage information of Linux systems and the method for testing of health status | |
| CN102033787B (en) | Method for carrying out error tolerance management on cluster storage medium | |
| CN1818846A (en) | A storage medium array controller, control method and apparatus, a storage medium drive | |
| CN1889053A (en) | Automatic Diagnosis Method of System Information | |
| JP2006309931A (en) | Method and apparatus for time correlating defects found on hard disks | |
| CN117971452A (en) | Method for realizing intelligent scheduling and isolation of Kubernetes nodes based on server hard disk health | |
| CN104794040A (en) | Service monitoring method, device and system | |
| JP2004253035A (en) | Disk drive quality monitor system, method and program | |
| CN101079589A (en) | Electric motor drive device and electric motor drive 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 |
Granted publication date: 20090610 Termination date: 20170701 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |