Hi jagdeesh,
This how-to helped me:
http://blog.shadypixel.com/monitoring-hard-drive-health-on-linux-with-smartmontools/Also, I can choose to enable s.m.a.r.t. in my computer's bios.
I haven't tried the daemon yet, but manually using it works:
me@pard2011 ~ $ sudo smartctl -i /dev/sda
Password:
smartctl 5.40 2010-10-16 r3189 [x86_64-pc-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar Blue Serial ATA family
Device Model: WDC WD1600AAJS-22PSA0
Serial Number: WD-WMAP9E273715
Firmware Version: 05.06H05
User Capacity: 160,041,885,696 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Tue Nov 22 11:44:24 2011 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
me@pard2011 ~ $ sudo smartctl -i /dev/sdb
smartctl 5.40 2010-10-16 r3189 [x86_64-pc-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Model Family: Western Digital RE2 Serial ATA family
Device Model: WDC WD3201ABYS-01B9A0
Serial Number: WD-WCARW4214216
Firmware Version: 13.01C02
User Capacity: 320,072,933,376 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 8
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Tue Nov 22 11:44:53 2011 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
me@pard2011 ~ $ sudo smartctl -H /dev/sda
smartctl 5.40 2010-10-16 r3189 [x86_64-pc-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
me@pard2011 ~ $ sudo smartctl -t short /dev/sda
smartctl 5.40 2010-10-16 r3189 [x86_64-pc-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Tue Nov 22 12:00:03 2011
Use smartctl -X to abort test.
me@pard2011 ~ $ sudo smartctl -l selftest /dev/sda
smartctl 5.40 2010-10-16 r3189 [x86_64-pc-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 9506 -
# 2 Conveyance offline Completed without error 00% 7453 -
Then there is this how-to (Fedora) that shows an example of using the smartmontool daemon. I don't have this enabled in service as I'd rather do a manual check:
http://wiki.amahi.org/index.php/Disk_Error_AlertsI see atolboo gives us a challenge to make a pisi package.