S.M.A.R.T. for FreeBSD (smartmontools)
S.M.A.R.T. (Self-Monitoring hdd, Analysis, and Reporting Technology).
This monitoring system support practically all hdd disks.
You have to install smartmontools for working with smart on FreeBSD. I suggest you have alredy installed it.
#smartctl -a /dev/ad1
This command show you many various indicatos about your disk (rate of hardware read errors, count of reallocated sectors, hdd temperature etc)
You also can run smartd daemon with will ask disks one time per 30minutes
#cp /usr/local/etc/smartd.conf.sample /usr/local/etc/smartd.conf
#vim /usr/local/etc/smartd.conf:
/dev/ad0 -S on -o on -a -I 194 -m admin@howtobsd.com
/dev/ad4 -S on -o on -a -I 194 -m admin@howtobsd.com
add to /etc/rc.conf:
usr/local/etc/>echo 'smartd_enable="YES"' >> /etc/rc.conf
/usr/local/etc/>echo 'smartd_flags="-l local2 --interval=300"' >> /etc/rc.conf
#/usr/local/etc/rc.d/smartd start
That is all!
Posted on Август 17th, 2010 by admin
Filed under: Software