Difference between revisions of "Monitor Disk Health"
(smartd) |
RayMitchell (talk | contribs) (updated) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 4: | Line 4: | ||
To enable | To enable | ||
config setprop smartd status enabled | config setprop smartd status enabled | ||
+ | |||
+ | And start, (smartd will start automatically on a reboot if enabled) | ||
+ | /etc/rc.d/init.d/smartd start | ||
+ | |||
+ | Errors are emailed admin if and when they are found. | ||
+ | |||
+ | If you receive an email indicating problems, then you should manually run tests & view the report & take appropriate action (eg replace drive if necessary). | ||
+ | |||
To manually check disks | To manually check disks | ||
Generate report | Generate report | ||
− | smartctl -t short /dev/ | + | smartctl -t short /dev/sda (1 minute) |
− | smartctl -t long /dev/ | + | smartctl -t long /dev/sda (1 hour) |
+ | smartctl -t conveyance /dev/sda (5 minutes) | ||
View report | View report | ||
− | smartctl -a /dev/ | + | smartctl -a /dev/sda |
+ | |||
+ | |||
+ | For additional information see: | ||
+ | |||
+ | http://linuxcommand.org/man_pages/smartd8.html | ||
+ | |||
+ | http://linux.die.net/man/8/smartctl | ||
+ | |||
+ | Error code description: http://en.wikipedia.org/wiki/S.M.A.R.T. | ||
− | + | <noinclude>[[Category:Howto]][[Category:Administration:Monitoring]]</noinclude> | |
− |
Latest revision as of 16:50, 1 November 2015
Monitor Disk Health
Self-Monitoring, Analysis and Reporting Technology (SMART) is built into many ATA-3 and later ATA, IDE and SCSI-3 hard drives. The purpose of SMART is to monitor the reliability of the hard drive and predict drive failures, and to carry out different types of drive self-tests.
To enable
config setprop smartd status enabled
And start, (smartd will start automatically on a reboot if enabled)
/etc/rc.d/init.d/smartd start
Errors are emailed admin if and when they are found.
If you receive an email indicating problems, then you should manually run tests & view the report & take appropriate action (eg replace drive if necessary).
To manually check disks
Generate report
smartctl -t short /dev/sda (1 minute) smartctl -t long /dev/sda (1 hour) smartctl -t conveyance /dev/sda (5 minutes)
View report
smartctl -a /dev/sda
For additional information see:
http://linuxcommand.org/man_pages/smartd8.html
http://linux.die.net/man/8/smartctl
Error code description: http://en.wikipedia.org/wiki/S.M.A.R.T.