CN101872641A - Method and device for early warning failure of hard disk in digital video recorder - Google Patents

Method and device for early warning failure of hard disk in digital video recorder Download PDF

Info

Publication number
CN101872641A
CN101872641A CN200910261154A CN200910261154A CN101872641A CN 101872641 A CN101872641 A CN 101872641A CN 200910261154 A CN200910261154 A CN 200910261154A CN 200910261154 A CN200910261154 A CN 200910261154A CN 101872641 A CN101872641 A CN 101872641A
Authority
CN
China
Prior art keywords
hard disk
attribute item
user
alarm
attribute
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
CN200910261154A
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN200910261154A priority Critical patent/CN101872641A/en
Publication of CN101872641A publication Critical patent/CN101872641A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the technical field of hard disks, and discloses a method and a device for early warning the failure of a hard disk in a digital video recorder. The method comprises the following steps of: acquiring self-monitored attribute data of the hard disk and threshold values corresponding to the attribute data; determining current states of attribute items according to the acquired attribute data and the threshold values corresponding to the attribute data; and displaying the health grade information of the hard disk to a user according to the current states of attribute items. The method and the device can remind the user of timely replacing the hard disk and backing up the data so as to maximally prevent the loss of the user due to hard disk damage.

Description

Hard disk early warning method for failure and device in the DVR
Technical field
The present invention relates to the seagate field, be specifically related to hard disk early warning method for failure and device in a kind of DVR.
Background technology
(DigitalVideoRecorder, DVR), promptly digital video recorder owing to adopt advanced image processing techniques and good stable and controlled, extensively has been applied in the modern safety monitoring industry DVR.In bank, highway, its existence often can be seen by community.The DVR most important function is recorded a video and playback exactly, it is recorded in the hard disk of self after the image transitions that the place ahead video camera is taken can being become the encoding digital signals compression, after the generation incident, video recording when the incident that can access takes place carries out playback, so just recognize the generating process of incident easily, reduce the loss that incident is brought to greatest extent.
As seen, the video recording data of preserving in the hard disk of DVR are very important, and the data of preserving in the hard disk are often much higher than the value of hard disk itself.In actual use, hard disk may be owing to environment for use reason such as abominable or self mechanical fault cause cisco unity malfunction, thereby making video recording lose or damages, search when causing then in needs are inquired about this time period, recording a video less than, cause irremediable loss to the user.
Summary of the invention
The embodiment of the invention has proposed hard disk early warning method for failure and the device in a kind of DVR, can remind the user in time to change hard disk and Backup Data, farthest avoids occurring hard disk corruptions and occurs for the damnous situation of user.
For this reason, the embodiment of the invention provides following technical scheme:
Hard disk early warning method for failure in a kind of DVR comprises:
Obtain each attribute data and the corresponding threshold thereof of hard disk self-monitoring;
Determine the state that each attribute item is current according to each attribute data that obtains and corresponding threshold thereof;
The state current according to each attribute item represents the Health Category information of hard disk to the user.
Preferably, each attribute data and the corresponding threshold thereof obtained of described basis determines that the current state of each attribute item comprises:
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 0, and corresponding currency is greater than its threshold value, and the difference of described currency and its threshold value is greater than the critical value of setting, and then definite current state of described attribute item is normal;
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 0, and corresponding currency is greater than its threshold value, and the difference of described currency and its threshold value is less than or equal to described critical value, determines that then the current state of described attribute item is for warning;
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 1, and corresponding currency determines then that less than its threshold value the current state of described attribute item is a mistake.
Preferably, the described state current according to each attribute item, the Health Category information that represents hard disk to the user comprises:
If the current state of all properties item is normally, then represent the Health Category of hard disk for normal to the user;
If the current state of arbitrary attribute item is arranged, then represent the Health Category of hard disk for warning to the user for warning and do not have the attribute item of error condition;
If it is mistake that the current state of arbitrary attribute item is arranged, then the Health Category that represents hard disk to the user is a fault.
Preferably, described method also comprises:
If the attribute item of alarm condition is arranged, then alarms to the user.
Alternatively, describedly comprise following any one or multiple mode to user alarm:
Carry out sound alarm by the hummer in the DVR;
Send alarm information to remote monitoring center;
Send alarm email to specifying mailbox;
In monitor window display alarm information.
Hard disk early warning failure device in a kind of DVR comprises:
Acquiring unit is used to obtain each attribute data and the corresponding threshold thereof of hard disk self-monitoring;
Status determining unit, each attribute data and the corresponding threshold thereof that are used for obtaining according to described acquiring unit are determined the state that each attribute item is current;
Represent the unit, be used for the state current, represent the Health Category information of hard disk to the user according to each attribute item.
Preferably, described status determining unit is determined the state that each attribute item is current according to following principle:
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 0, and corresponding currency is greater than its threshold value, and the difference of described currency and its threshold value is greater than the critical value of setting, and the current state of then described attribute item is normal;
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 0, and corresponding currency is greater than its threshold value, and the difference of described currency and its threshold value is less than or equal to described critical value, and the current state of then described attribute item is for warning;
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 1, and corresponding currency is less than its threshold value, and the current state of then described attribute item is a mistake.
Preferably, the described unit that represents specifically is used for:
If the current state of all properties item is normally, then represent the Health Category of hard disk for normal to the user;
If the current state of arbitrary attribute item is arranged, then represent the Health Category of hard disk for warning to the user for warning and do not have the attribute item of error condition;
If it is mistake that the current state of arbitrary attribute item is arranged, then the Health Category that represents hard disk to the user is a fault.
Preferably, described device also comprises:
Alarm Unit is used for alarming to the user when the attribute item of alarm condition is arranged.
Alternatively, described Alarm Unit comprises following any one or multinomial subelement:
The first alarm subelement is used for carrying out sound alarm by the hummer of DVR;
The second alarm subelement is used for sending alarm information to remote monitoring center;
The 3rd alarm subelement is used to send alarm email to specifying mailbox;
The 4th alarm subelement is used in monitor window display alarm information.
Preferably, described device also comprises:
Dispensing unit is used to provide user's configuration interface, makes the user select the alarm mode at this configuration interface;
Described Alarm Unit specifically is used for when the attribute item of alarm condition is arranged, and alarms to the user according to the alarm mode that described user selects.
Hard disk early warning method for failure and device in the DVR that the embodiment of the invention provides are by obtaining each attribute data and the corresponding threshold thereof of hard disk self-monitoring; Determine the state that each attribute item is current according to each attribute data that obtains and corresponding threshold thereof; The state current according to each attribute item represents the Health Category information of hard disk to the user.Thereby can allow the user in time understand the current Health Category of hard disk, remind the user in time to change hard disk and Backup Data, farthest avoid occurring hard disk corruptions and occur for the damnous situation of user.Further, can also before hard disk breaks down, send alarm in advance, avoid DVR because hard disk failure goes out the situation of active video recording.
Description of drawings
Fig. 1 is a kind of process flow diagram of the hard disk early warning method for failure in the embodiment of the invention DVR;
Fig. 2 is the another kind of process flow diagram of the hard disk early warning method for failure in the embodiment of the invention DVR;
Fig. 3 is a kind of structural representation of the hard disk early warning failure device in the embodiment of the invention DVR;
Fig. 4 is the another kind of structural representation of the hard disk early warning failure device in the embodiment of the invention DVR.
Embodiment
In order to make those skilled in the art person understand the scheme of the embodiment of the invention better, the embodiment of the invention is described in further detail below in conjunction with drawings and embodiments.
Hard disk early warning method for failure and device in the embodiment of the invention DVR are by obtaining each attribute data and the corresponding threshold thereof of hard disk self-monitoring; Determine the state that each attribute item is current according to each attribute data that obtains and corresponding threshold thereof; The state current according to each attribute item represents the Health Category information of hard disk to the user.Thereby can allow the user in time understand the current Health Category of hard disk, remind the user in time to change hard disk and Backup Data, farthest avoid occurring hard disk corruptions and occur for the damnous situation of user.Further, can also before hard disk breaks down, send alarm in advance, avoid DVR because hard disk failure goes out the situation of active video recording.
As shown in Figure 1, be a kind of process flow diagram of the hard disk early warning method for failure in the embodiment of the invention DVR, may further comprise the steps:
Step 101 is obtained each attribute data and the corresponding threshold thereof of hard disk self-monitoring.
Particularly, can (full name be Self-Monitoring by the S.M.A.R.T that supports in the hard disk, Analysis and Reporting Technology), promptly " self-monitoring, analysis and reporting techniques " obtains each attribute data and the corresponding threshold thereof of hard disk self-monitoring.
Support the hard disk of S.M.A.R.T technology can obtain ruuning situation, historical record and the default safety value (being threshold value) of magnetic head, disc, motor, circuit by monitoring instruction on the hard disk and the monitoring of software on the main frame.
For example, it is as follows to obtain the SMART data structure from hard disk:
#define?NUMBER_ATA_SMART_ATTRIBUTES?30
typedef?struct?ata_smart_values{
unsigned?short?int revnumber;
ata_smart_attribute_t
vendor_attributes[NUMBER_ATA_SMART_ATTRIBUTES];
unsigned?char offline_data_collection_status;
unsigned?char self_test_exec_status;
unsigned?short?int total_time_to_complete_off_line;
unsigned?char vendor_specific_366;
unsigned?char offline_data_collection_capability;
unsigned?short?int smart_capability;
unsigned?char errorlog_capability;
unsigned?char vendor_specific_371;
unsigned?char short_test_completion_time;
unsigned?char extend_test_completion_time;
unsigned?char conveyance_test_completion_time;
unsigned?char reserved_375_385[11];
unsigned?char vendor_specific_386_510[125];
unsigned?char chksum;
}ata_smart_values_t;
The ata_smart_attribute_t definition:
typedef?struct?ata_smart_attribute{
unsigned?char?id;
unsigned?short?flags;
unsigned?char?current;
unsigned?char?worst;
unsigned?char?raw[6];
unsigned?char?reserv;
}ata_smart_attribute_t;
As seen, can read 30 ata_smart_attribute_t structures from hard disk, each ata_smart_attribute_t structure has comprised the currency (current) of a SMART data item ID (sign), worst-case value (worst).The lowest order BIT0 of flags represents Pre-failure/advisory BIT (precognition mistake/discoverys), have only when this is 1, and current or worst value is just represented Hard disk error during less than threshold value.
The threshold value structure that reads from hard disk is as follows:
typedef?struct?ata_smart_thresholds{
unsigned?short?int?revnumber;
ata_smart_threshold_entry_t
thres_entries[NUMBER_ATA_SMART_ATTRIBUTES];
unsigned?char?reserved[149];
unsigned?char?chksum;
}ata_smart_thresholds_t;
Wherein, the ata_smart_threshold_entry_t structure is as follows:
typedef?struct?ata_smart_threshold_entry{
unsigned?char?id;
unsigned?char?threshold;
unsigned?char?reserved[10];
}ata_smart_threshold_entry_t;
Wherein, id is the ID of SMART data item, with ID among the ata_smart_attribute_t be corresponding.Threshold is the corresponding threshold value of this ID.
Step 102 is determined the state that each attribute item is current according to each attribute data that obtains and corresponding threshold thereof.
When concrete the application, can at first from hard disk, obtain SMART data ata_smart_values_t, obtain the threshold value ata_smart_thresholds_t of SMART data then, then according to the difference of ID, threshold to identical ID among the current among the ata_smart_attribute_t and worst value and the ata_smart_threshold_entry_t compares, and can analyze the present state of each attribute.
Preferably, a state that can set a property can have normally, warning, mistake three state.The assignment of the Pre-failure/advisory BIT of this three state and S.M.A.R.T (precognition mistake/discovery position) parameter is closely related.When determining the state of each attribute item, can determine by following principle:
If the Pre-failure/advisory BIT=0 of the attribute item correspondence of hard disk self-monitoring, and the currency of this attribute item correspondence determines then that much larger than its threshold value the current state of described attribute item is normal;
If the Pre-failure/advisory BIT=0 of the attribute item correspondence of hard disk self-monitoring, and the currency of this attribute item correspondence greater than but approach its threshold value, determine that then the current state of described attribute item is warning;
If the Pre-failure/advisory BIT=1 of the attribute item correspondence of hard disk self-monitoring, and the currency of this attribute item correspondence determines then that less than its threshold value the current state of described attribute item is a mistake.
Such as, can set a critical value, if described currency is greater than its threshold value, and the difference of described currency and its threshold value is greater than the critical value of setting, determine that then the current state of described attribute item is normal, if described currency is greater than its threshold value, and the difference of described currency and its threshold value is less than or equal to described critical value, determines that then the current state of described attribute item is warning.
Described critical value can be set according to the situations such as applied environment of the embodiment of the invention, and different applied environments can be set different critical values down.And need to prove that for different attribute items, the critical value of setting also can be different.
The data item of each ID correspondence is as follows in the SMART data:
{0x1,″Raw?Read?Error?Rate″},
{0x2,″Throughput?Performance″},
{0x3,″Spin?Up?Time″},
{0x4,″Start/Stop?Count″},
{0x5,″Reallocated?Sector?Count″},
{0x6,″Read?Channel?Margin″},
{0x7,″Seek?Error?Rate″},
{0x8,″Seek?Time?Performance″},
{0x9,″Power-on?Hours?Count″},
{0xa,″Spin?Up?Retry?Count″},
{0xb,″Calibration?Retry?Count″},
{0xc,″Power?Cycle?Count″},
{0xd,″Soft?Read?Error?Rate″},
{191,″G-Sense?Error?Rate″},
{192,″Power?Off?Retract?Count″},
{193,″Load/Unload?Cycle?Count″},
{0xc2,″Power?temperature″},
{0xc3,″ECC?on?the?Fly?count″},
{0xc4,″Reallocation?Event?Count″},
{0xc5,″Current?Pending?Sector?Count″},
{0xc6,″Off-line?Scan?Uncorrect.Sector?Count″},
{0xc7,″Ultra?ATA?CRC?Error?Rate″},
{0xc8,″Write?Error?Count″},
{0xca,″TA?Increase?Count″},
{203,″Run?Out?Cancel″},
{204,″Shock?Count?Write?Opern″},
{205,″Shock?Rate?Write?Opern″},
{206,″Flying?Height?Measurement″},
{207,″Spin?High?Current″},
{208,″Spin?Buzz″},
{209,″Offline?Seek?Performance″},
{220,″Disk?Shift″},
{221,″G-Sense?Error?Rate″},
{222,″Loaded?Hours″},
{223,″Load?Retry?Count″},
{224,″Load?Friction″},
{225,″Load?Cycle?Count″},
{226,″Load-in?Time″},
{227,″Torq-amp?Count″},
{228,″Power?Off?Retract?Count″},
{230,″Head?Amplitude″},
{231,″Temperature?Celsius″},
{240,″Head?Flying?Hours″},
{250,″Read?Error?Retry?Rate″},
{0,NULL}};
Certainly, above-mentioned ID is not unique, and the HD vendor can be as required, uses different ID codes or according to the quantity that how much increases and decreases ID of detected parameters.
Preferably, in actual applications, following main test item can be set:
Raw Read Error Rate mistake read rate;
Start/Stop Count starts/stops number of times (claiming to power up number of times again);
Relocated Sector Count redistributes sector number;
Spin up Retry Count rotates number of retries (being the hard disk startup number of retries);
Drive Calibration Retry Count disk calibration number of retries;
ULTRA DMA CRC Error Rate (ULTRA DMA parity error rate);
Multi-zone Error Rate multizone error rate;
Vendor-specific manufacturer characteristic.
Step 103, the state current according to each attribute item represents the Health Category information of hard disk to the user.
Preferably, can be divided into Three Estate to the health status of hard disk: normal, warning, fault.Particularly, can standard divide:
Normally: the state of all properties item all is normal;
Warning: the state that has an attribute item at least is warning;
Fault: the state that has an attribute item at least is a mistake.
That is to say,, then represent the Health Category of hard disk for normal to the user if the current state of all properties item is normally; If the current state of arbitrary attribute item is arranged, then represent the Health Category of hard disk for warning to the user for warning and do not have the attribute item of error condition; If it is mistake that the current state of arbitrary attribute item is arranged, then the Health Category that represents hard disk to the user is a fault.
Certainly, the embodiment of the invention is not limited in above-mentioned grade classification mode, also can adopt other modes according to the actual application environment needs.
As seen, the hard disk early warning method for failure in the embodiment of the invention DVR is by obtaining each attribute data and the corresponding threshold thereof of hard disk self-monitoring; Determine the state that each attribute item is current according to each attribute data that obtains and corresponding threshold thereof; The state current according to each attribute item represents the Health Category information of hard disk to the user.Thereby can allow the user in time understand the current Health Category of hard disk, remind the user in time to change hard disk and Backup Data, farthest avoid occurring hard disk corruptions and occur for the damnous situation of user.
, can regularly detect according to above-mentioned flow process when using the method for the embodiment of the invention concrete,, otherwise can send alarm to the user if normally then wait for that next round detects to all hard disks on the DVR.
As shown in Figure 2, be the another kind of process flow diagram of the hard disk early warning method for failure in the embodiment of the invention DVR, may further comprise the steps:
Step 201 is obtained each attribute data and the corresponding threshold thereof of hard disk self-monitoring.
Step 202 is determined the state that each attribute item is current according to each attribute data that obtains and corresponding threshold thereof.
Step 203, the state current according to each attribute item represents the Health Category information of hard disk to the user.
Step 204 if the attribute item of alarm condition is arranged, is then alarmed to the user.
Particularly, can adopt following any one or multiple mode to user alarm:
Carry out sound alarm by the hummer in the DVR;
Send alarm information to remote monitoring center;
Send alarm email to specifying mailbox;
In monitor window display alarm information.
As seen, in embodiments of the present invention, the Health Category information that not only can represent hard disk in real time to the user, but also can be before hard disk breaks down, make the user can in time recognize the information of hard disk failure easily, thereby the user can in time be handled it, avoided losing of video recording data effectively.
In addition, more flexible and user-friendly for the application of the method that makes the embodiment of the invention, in embodiments of the present invention, can also provide user's configuration interface, the user can be configured the alarm mode on this configuration interface, promptly can select one or more alarm modes wherein.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, described storage medium, as: ROM/RAM, magnetic disc, CD etc.
Correspondingly, the embodiment of the invention also provides the device of the hard disk early warning failure in a kind of DVR.
As shown in Figure 3, be a kind of structural representation of the hard disk early warning failure device in this DVR.
In this embodiment, described device comprises:
Acquiring unit 301 is used to obtain each attribute data and the corresponding threshold thereof of hard disk self-monitoring.
The structure of obtaining the detailed process of each attribute data and corresponding threshold thereof and each attribute data and corresponding threshold thereof is not described in detail at this as previously described.
Status determining unit 302, each attribute data and the corresponding threshold thereof that are used for obtaining according to described acquiring unit are determined the state that each attribute item is current.
Particularly, described status determining unit 302 is determined the state that each attribute item is current according to following principle:
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 0, and corresponding currency is much larger than its threshold value, and the current state of then described attribute item is normal;
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 0, and corresponding currency greater than but when approaching its threshold value, the current state of then described attribute item is warning;
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 1, and corresponding currency is less than its threshold value, and the current state of then described attribute item is a mistake.
Represent unit 303, be used for the state current, represent the Health Category information of hard disk to the user according to each attribute item.
Particularly, if the current state of all properties item is normally, the then described unit 303 that represents represents the Health Category of hard disk for normal to the user; If the current state of arbitrary attribute item is arranged for warning and do not have the attribute item of error condition, the then described unit 303 that represents represents the Health Category of hard disk for warning to the user; If it is mistake that the current state of arbitrary attribute item is arranged, the then described unit 303 that represents is a fault to the Health Category that the user represents hard disk.
As seen, the hard disk early warning failure device in the embodiment of the invention DVR is by obtaining each attribute data and the corresponding threshold thereof of hard disk self-monitoring; Determine the state that each attribute item is current according to each attribute data that obtains and corresponding threshold thereof; The state current according to each attribute item represents the Health Category information of hard disk to the user.Thereby can allow the user in time understand the current Health Category of hard disk, remind the user in time to change hard disk and Backup Data, farthest avoid occurring hard disk corruptions and occur for the damnous situation of user.
, can detect according to above-mentioned flow process all hard disks on the DVR when using the device of the embodiment of the invention concrete,, otherwise can send alarm to the user if normally then wait for that next round detects by timing mode.
As shown in Figure 4, be the another kind of structural representation of the hard disk early warning failure device in the embodiment of the invention DVR.
With embodiment illustrated in fig. 3 different be that in this embodiment, described device also further comprises:
Alarm Unit 304 is used for alarming to the user when the attribute item of alarm condition is arranged.
Preferably, can be according to application need, described Alarm Unit 304 can comprise following any one or multinomial subelement:
The first alarm subelement is used for carrying out sound alarm by the hummer of DVR;
The second alarm subelement is used for sending alarm information to remote monitoring center;
The 3rd alarm subelement is used to send alarm email to specifying mailbox;
The 4th alarm subelement is used in monitor window display alarm information.
As seen, hard disk early warning failure device in the embodiment of the invention DVR, the Health Category information that not only can represent hard disk in real time to the user, but also can be before hard disk breaks down, make the user can in time recognize the information of hard disk failure easily, thereby the user can in time be handled it, avoided losing of video recording data effectively.
In addition, for the application of the device that makes the embodiment of the invention more flexible and user-friendly, in embodiments of the present invention, described Alarm Unit 304 can provide multiple alarm mode simultaneously, and described device can further include dispensing unit 305, is used to provide user's configuration interface, the user can be configured the alarm mode on this configuration interface, promptly can select one or more alarm modes wherein.Correspondingly described Alarm Unit 304 is alarmed to the user according to the alarm mode that described user selects when the attribute item of alarm condition is arranged.
More than the embodiment of the invention is described in detail, used embodiment herein the present invention set forth, the explanation of above embodiment just is used for help understanding method and apparatus of the present invention; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (11)

1. the hard disk early warning method for failure in the DVR is characterized in that, comprising:
Obtain each attribute data and the corresponding threshold thereof of hard disk self-monitoring;
Determine the state that each attribute item is current according to each attribute data that obtains and corresponding threshold thereof;
The state current according to each attribute item represents the Health Category information of hard disk to the user.
2. method according to claim 1 is characterized in that, each attribute data that described basis is obtained and corresponding threshold thereof determine that the current state of each attribute item comprises:
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 0, and corresponding currency is greater than its threshold value, and the difference of described currency and its threshold value is greater than the critical value of setting, and then definite current state of described attribute item is normal;
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 0, and corresponding currency is greater than its threshold value, and the difference of described currency and its threshold value is less than or equal to described critical value, determines that then the current state of described attribute item is for warning;
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 1, and corresponding currency determines then that less than its threshold value the current state of described attribute item is a mistake.
3. method according to claim 2 is characterized in that, the described state current according to each attribute item, and the Health Category information that represents hard disk to the user comprises:
If the current state of all properties item is normally, then represent the Health Category of hard disk for normal to the user;
If the current state of arbitrary attribute item is arranged, then represent the Health Category of hard disk for warning to the user for warning and do not have the attribute item of error condition;
If it is mistake that the current state of arbitrary attribute item is arranged, then the Health Category that represents hard disk to the user is a fault.
4. according to each described method of claim 1 to 3, it is characterized in that described method also comprises:
If the attribute item of alarm condition is arranged, then alarms to the user.
5. method according to claim 4 is characterized in that, describedly comprises following any one or multiple mode to user alarm:
Carry out sound alarm by the hummer in the DVR;
Send alarm information to remote monitoring center;
Send alarm email to specifying mailbox;
In monitor window display alarm information.
6. the hard disk early warning failure device in the DVR is characterized in that, comprising:
Acquiring unit is used to obtain each attribute data and the corresponding threshold thereof of hard disk self-monitoring;
Status determining unit, each attribute data and the corresponding threshold thereof that are used for obtaining according to described acquiring unit are determined the state that each attribute item is current;
Represent the unit, be used for the state current, represent the Health Category information of hard disk to the user according to each attribute item.
7. device according to claim 6 is characterized in that, described status determining unit is determined the state that each attribute item is current according to following principle:
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 0, and corresponding currency is greater than its threshold value, and the difference of described currency and its threshold value is greater than the critical value of setting, and the current state of then described attribute item is normal;
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 0, and corresponding currency is greater than its threshold value, and the difference of described currency and its threshold value is less than or equal to described critical value, and the current state of then described attribute item is for warning;
If the precognition mistake of the attribute item correspondence of hard disk self-monitoring/discovery position is 1, and corresponding currency is less than its threshold value, and the current state of then described attribute item is a mistake.
8. device according to claim 7 is characterized in that, the described unit that represents specifically is used for:
If the current state of all properties item is normally, then represent the Health Category of hard disk for normal to the user;
If the current state of arbitrary attribute item is arranged, then represent the Health Category of hard disk for warning to the user for warning and do not have the attribute item of error condition;
If it is mistake that the current state of arbitrary attribute item is arranged, then the Health Category that represents hard disk to the user is a fault.
9. according to each described device of claim 6 to 8, it is characterized in that described device also comprises:
Alarm Unit is used for alarming to the user when the attribute item of alarm condition is arranged.
10. device according to claim 9 is characterized in that, described Alarm Unit comprises following any one or multinomial subelement:
The first alarm subelement is used for carrying out sound alarm by the hummer of DVR;
The second alarm subelement is used for sending alarm information to remote monitoring center;
The 3rd alarm subelement is used to send alarm email to specifying mailbox;
The 4th alarm subelement is used in monitor window display alarm information.
11. device according to claim 9 is characterized in that, described device also comprises:
Dispensing unit is used to provide user's configuration interface, makes the user select the alarm mode at this configuration interface;
Described Alarm Unit specifically is used for when the attribute item of alarm condition is arranged, and alarms to the user according to the alarm mode that described user selects.
CN200910261154A 2009-12-28 2009-12-28 Method and device for early warning failure of hard disk in digital video recorder Pending CN101872641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910261154A CN101872641A (en) 2009-12-28 2009-12-28 Method and device for early warning failure of hard disk in digital video recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910261154A CN101872641A (en) 2009-12-28 2009-12-28 Method and device for early warning failure of hard disk in digital video recorder

Publications (1)

Publication Number Publication Date
CN101872641A true CN101872641A (en) 2010-10-27

Family

ID=42997440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910261154A Pending CN101872641A (en) 2009-12-28 2009-12-28 Method and device for early warning failure of hard disk in digital video recorder

Country Status (1)

Country Link
CN (1) CN101872641A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279775A (en) * 2011-08-19 2011-12-14 西安交通大学 Method for processing failure of hard disk under Linux system
WO2016101786A1 (en) * 2014-12-25 2016-06-30 华为技术有限公司 Method and device for predicting failure of nonvolatile storage medium
CN105893207A (en) * 2016-03-29 2016-08-24 联想(北京)有限公司 Information processing method and electronic device
CN106383774A (en) * 2016-09-22 2017-02-08 郑州云海信息技术有限公司 Alarm pushing method and apparatus for storage system
CN106960678A (en) * 2017-03-31 2017-07-18 联想(北京)有限公司 Hard disk and electronic equipment
CN106980472A (en) * 2017-03-30 2017-07-25 上海与德科技有限公司 The method and device that a kind of EMMC health degrees judge
CN108763027A (en) * 2018-05-31 2018-11-06 郑州云海信息技术有限公司 A kind of hard disk monitoring method, device and server
CN109684141A (en) * 2018-12-19 2019-04-26 郑州云海信息技术有限公司 A kind of disk failure diagnostic method, device, terminal and readable storage medium storing program for executing
CN111966569A (en) * 2019-05-20 2020-11-20 中国电信股份有限公司 Hard disk health degree evaluation method and device and computer readable storage medium

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279775A (en) * 2011-08-19 2011-12-14 西安交通大学 Method for processing failure of hard disk under Linux system
CN102279775B (en) * 2011-08-19 2013-04-17 西安交通大学 Method for processing failure of hard disk under Linux system
CN105787242B (en) * 2014-12-25 2019-02-26 华为技术有限公司 A kind of method and device that prediction non-volatile memory medium breaks down
CN105787242A (en) * 2014-12-25 2016-07-20 华为技术有限公司 Method and device for predicting that failure will occur in non-volatile memory medium
WO2016101786A1 (en) * 2014-12-25 2016-06-30 华为技术有限公司 Method and device for predicting failure of nonvolatile storage medium
CN105893207A (en) * 2016-03-29 2016-08-24 联想(北京)有限公司 Information processing method and electronic device
CN106383774A (en) * 2016-09-22 2017-02-08 郑州云海信息技术有限公司 Alarm pushing method and apparatus for storage system
CN106980472A (en) * 2017-03-30 2017-07-25 上海与德科技有限公司 The method and device that a kind of EMMC health degrees judge
CN106960678A (en) * 2017-03-31 2017-07-18 联想(北京)有限公司 Hard disk and electronic equipment
CN106960678B (en) * 2017-03-31 2019-07-26 联想(北京)有限公司 Hard disk and electronic equipment
CN108763027A (en) * 2018-05-31 2018-11-06 郑州云海信息技术有限公司 A kind of hard disk monitoring method, device and server
CN109684141A (en) * 2018-12-19 2019-04-26 郑州云海信息技术有限公司 A kind of disk failure diagnostic method, device, terminal and readable storage medium storing program for executing
CN111966569A (en) * 2019-05-20 2020-11-20 中国电信股份有限公司 Hard disk health degree evaluation method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN101872641A (en) Method and device for early warning failure of hard disk in digital video recorder
EP1924994B1 (en) Method and apparatus for detecting the onset of hard disk failures
US8327193B2 (en) Data storage device including a failure diagnostic log
US10268553B2 (en) Adaptive failure prediction modeling for detection of data storage device failures
JP4817979B2 (en) Storage device, continuous vibration detection method and control device
CN107179968B (en) Information storage device, failure prediction device, and failure prediction method
CN112631848A (en) Intelligent diagnosis method and system for mechanical hard disk faults
US20080165444A1 (en) Baseline popping noise detection circuit
US7574918B2 (en) Method and apparatus for detecting vibrations from a mechanical component
JP2006309931A (en) Method and apparatus for time correlating defects found on hard disks
JP4798037B2 (en) Hard disk drive status monitoring device and hard disk drive status monitoring method
CN111274098B (en) Storage device alarm method and device based on internet of things (IoT)
JP4111052B2 (en) Apparatus incorporating disk type recording apparatus, method for controlling disk type recording apparatus, and computer program
US8060332B2 (en) Method for testing sensor function and computer program product thereof
CN112346895A (en) Magnetic disk device
US8711417B2 (en) Information processing apparatus, method for controlling information processing apparatus, and storage medium
US20100095149A1 (en) Data storage method and device, and system therefor
CN102110455B (en) Portable apparatus with electronic control system and control method thereof
CN108776630A (en) A kind of method, apparatus and storage medium for detecting hard disk
JP5692577B2 (en) Magnetic disk apparatus and self-diagnosis method
CN107589904A (en) The reading/writing method and device of SD card
US20090249109A1 (en) Storage apparatus and method for storing internal information
TWI796631B (en) Method for realizing plug-and-play function of external storage device in linux system and electronic device using the same
JP6205909B2 (en) Information processing apparatus and program
JP2010287019A (en) Raid, and computer system provided therewith

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101027