Friday 21 October 2011

UGG Online Physical hard disk to the server automatically on a regular basis , concurrent mail notif

the following lines into / etc / crontab will scan the hard disk of each quarter, and sends the result to two mailboxes


< / p>

1 1 1 1,4,7,9 * root smartctl-t long / dev / sda; smartctl-t long / dev / sdb; smartctl-t long / dev / sdc; smartctl-t long / dev / sdd; smartctl-t long / dev / sde; smartctl-t long / dev / sdf;

1 5 1 1,4,7,9 * root smartctl-a / dev / sda | mail -c liushiwei@gmail.com-s 192.168.12.2_sda_smart 10202@qq.com

2 5 1 1,4,7,9 * root smartctl-a / dev / sdb | mail-c liushiwei@gmail.com-s 192.168.12.2_sdb_smart 10202@qq.com

3 5 1 1,4,7,9 * root smartctl-a / dev / sdc | mail-c liushiwei @ gmail.com-s 192.168.12.2_sdc_smart 10202@qq.com

4 5 1 1,UGG Online,4,7,9 * root smartctl-a / dev / sdd | mail-c liushiwei @ gmail. com-s 192.168.12.2_sdd_smart 10202@qq.com

5 5 1 1,4,7,UGG Online,9 * root smartctl-a / dev / sde | mail-c liushiwei@gmail.com ;-s 192.168.12.2_sde_smart 10202@qq.com

6 5 1 1,4,7,UGG Online,9 * root smartctl-a / dev / sdf | mail-c liushiwei@gmail.com - s 192.168.12.2_sdf_smart 10202@qq.com



smart internal hard drive diagnostic information, need to focus on the part: Raw_Read_Error_Rate read error count Power_On_Hours worked a total number of Seek_Error_Rate seek long Power_Cycle_Count power self-test error reporting errors: no error: Num Test_Description Status Remaining LifeTime (hours) LBA_of_first_error # 1 Extended offline Completed without error 00% 29774-- extended test is completed without error ; test in the total number of hours 29774 errors when the
situation: Num Test_Description Status Remaining LifeTime (hours) LBA_of_first_error # 1 Extended offline Completed: read failure ; 80% 1614820597650 hard work 16,148 hours in time for the extended test, reading failure in 20,597,650 this position

No comments:

Post a Comment