So, I'm a bit further right now:
1. Since the upgrade to 2.4 the firmware of the WD-HD was set to an idle delay of 5 minutes (from 8 sec. previously). This results in no loger parking the heads anymore and power consumption continuosly at 9.8 watts.
2. First step here was to set the timing of the mentioned 3 cron jobs from 5 min. to 10 min. by editing the 3 cron-tab's
(bubba-horde, bubba-notify, dovecot-timefix). The result is now that every 10 minutes the HD gets active drawing 9.8 watts. After 5 minutes the HD enters idle, parks its heads and the whole box reduces power consumption to 7.8 watts - a saving of 2 watts (at least 50% of the time)!
3. I now checked what those 3 jobs are writing to the disk. First I checked logging and found that they flood the logfiles in
/var/log. "syslog" gets 3 lines per 5 min., "auth.log" gets 6 lines per 5 min. This, besides keeping the disk busy, is unusual and makes it difficult th examine/search the logfiles for really important entries. First I tried to direct all output from those 3 scripts to
/dev/null, but amaisingly without success (I don't understand why). So the next step was to filter out those useless messages and the place to do that is
/etc/rsyslog.conf.
Inserting the following lines as the first in the "rules" paragraph as shown here:
Code: Select all
###############
#### RULES ####
###############
#
# First some standard log files. Log by facility.
#
# Added by Ingo to avoid flooding of syslog and auth.log, 10. Feb. 2012
# Discard the bubba cron logging every 5 minutes to keep syslog clean
if $syslogfacility-text == 'cron' and $msg contains 'alarms.php' then ~
if $syslogfacility-text == 'cron' and $msg contains 'dovecot' then ~
if $syslogfacility-text == 'cron' and $msg contains 'web-admin' then ~
# Discard the bubba cron logging every 5 minutes to keep auth.log clean
if $syslogfacility-text == 'authpriv' and $msg contains 'pam_unix(cron:session)' then ~#
auth,authpriv.* /var/log/auth.log
......
To activate the new configuration you just execute:
Important:: 'rsyslog
reload' does NOT activate the new configuration, don't know why.
So this is my current status. The 3 scrips that keep the disk busy have been identified. Flooding of the logfiles has been solved, the 5 min. idle delay of the WD Caviar Green have been confirmed. The maximum LCC rate which can now (run scrips every 10 min.) be accumulated is 6 per hour = 50,000 per year - which is safe and within specs for 6 years.
The expected power saving is not yet what I did expect, I have to examine the 3 sripts and what else they do:
Code: Select all
/usr/share/horde3/scripts/alarms.php
/usr/lib/web-admin/notify-dispatcher.pl
/etc/init.d/dovecot status >/dev/null 2>&1 || /etc/init.d/dovecot restart
Especially whether it is necessary to check every 5 minutes whether dovecot has crashed.
That this is done despite I have all mail functionality disabled - should not happen by design.
With kind regards,
Ingo