Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My server has 2 harddisks. I've installed smartmontools on Debian with apt-get install smartmontools, enabled it in /etc/default/smartmontools (start_smartd=yes) and started the daemon (/etc/init.d/smartmontools start).

My /etc/smartd.conf contains this:

DEVICESCAN -d removable -n standby -m my@email.com -M exec /usr/share/smartmontools/smartd-runner

Is the smartmontools now configured to run regular health checks? If so, how do I see when it does that? I don't see any indication in smartctl -l selftest of health checks being run regularly; the command only showed the two tests I recently ran manually. I also don't see anything in /var/log/messages that indicates regular health checks are being run.

share|improve this question
add comment

2 Answers

If it is running them, then they will show up in -l selftest and syslog. I don't have experience with the DEVICESCAN option, you can probably add a -s directive on the DEVICESCAN line to enable scheduled scanning.

I have my disks individually configured with:

/dev/sda -d ata -a -s (S/../.././06|L/../../6/06) -m <email>

That does a short test every morning and a long test on Saturdays.

If you add specific configuration for your disks, then comment out the DEVICESCAN entry.

share|improve this answer
    
I can also use -s ... in combination with DEVICESCAN, right? –  Hongli Lai Apr 23 '11 at 21:21
    
@Hongli I believe so, I just haven't done it myself. –  Andy Apr 23 '11 at 21:43
add comment

For notifications there is smart-notifier.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.