Difference between revisions of "Talk:Raid"

From SME Server
Jump to navigationJump to search
Line 6: Line 6:
 
===Monitor Disk Health===
 
===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.
 
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
 
To enable
Line 17: Line 16:
 
to send warning to admin. append the '''-m admin''' directive to DEVICESCAN in the config file
 
to send warning to admin. append the '''-m admin''' directive to DEVICESCAN in the config file
 
  nano -w /etc/smartd.conf   
 
  nano -w /etc/smartd.conf   
  DEVICESCAN -m admin
+
  DEVICESCAN -a -m admin -I 190 -I 194
 +
 
 +
To manually check disks
 +
 
 +
View report
 +
smartctl -a /dev/hdc
 +
 
 +
Generate report
 +
smartctl -t short /dev/hdc (1 minute)
 +
smartctl -t long /dev/hdc (1 hour)

Revision as of 11:52, 8 December 2007

We could add a section on enabling smartd to monitor disk health
see http://bugs.contribs.org/show_bug.cgi?id=1445
http://www.linuxmanpages.com/man8/smartd.8.php
http://www.captain.at/howto-linux-smartmontools-smartctl.php

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 set smartd service 
config setprop smartd status enabled
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S40smartd

This will log warnings to /var/log/messages.

to send warning to admin. append the -m admin directive to DEVICESCAN in the config file

nano -w /etc/smartd.conf  
DEVICESCAN -a -m admin -I 190 -I 194

To manually check disks

View report

smartctl -a /dev/hdc

Generate report

smartctl -t short /dev/hdc (1 minute)
smartctl -t long /dev/hdc (1 hour)