system wakeup caused by write operations to /var/lib/dovecot/instances
Hi, I hope someone can help me with this.
Problem Dovecot writes to _/var/lib/dovecot/instances_ 1 up to 3 times a day, causing the system to wake up and disks to spin up.
Details content of /var/lib/dovecot/instances : 1549073010 dovecot /var/run/dovecot /etc/dovecot/dovecot.conf --> only the timestamp is changed (to current time) when dovecot writes to this file --> during write the file is temporary renamed to _instances.lock_
dovecot running processes: dovecot (main process) --> it's this process that writes to /var/lib/instances dovecot/anvil dovecot/log dovecot/config --> sometimes this process is not running, but doesn't change anything
note: no clients connected problem also occur in the middle of the night (no human activity, client devices powered off, all external traffic blocked) the writings occur around every 8 hours, but vary, sometimes it's 6 hours up to 13 hours.
Configuration See attachment: doveconfig-short-[platform].txt (output of _"/usr/sbin/dovecot -n"_) doveconfig-long-[platform].txt (output of _"/usr/bin/doveconf"_) --> _3-docker_ config is the most simple setup of the 3
Environment Tested on 3 platforms Platform 1: Intel Atom C2538 (Synology DiskStation 415+) Linux version 3.10.105 Dovecot version 2.2.19 (Synology MailPlus Server)
Platform 2: ARMv7 rev 1 (Synology DiskStation 215j) Linux version 3.2.40 Dovecot version 2.2.19 (Synology Mail Server)
Platform 3: Intel Atom C2538 (Docker container) Linux version 3.10.105 Dovecot version 2.3.2.1 (0719df592)
How can dovecot be run without writing to /var/lib/dovecot/instances everyday? Is there a configuration setting for this?
Thanks already! Tijl
On 2 Feb 2019, at 6.44, Tijl <dovecot@odie.be> wrote:
How can dovecot be run without writing to /var/lib/dovecot/instances everyday? Is there a configuration setting for this?
You'd need to patch src/master/main.c instance_update_now() to remove:
to_instance = timeout_add((3600 * 12 + i_rand_limit(60 * 30)) * 1000,
instance_update_now, list);
I'm not quite sure why I wrote such code to update it continuously.
Hi Timo,
Thank you very much for replying with an instant solution!
Suggestion for future release: a setting in the configuration to enable/disable the automatic instance_update_now action and/or set the timeout by the user.
In the meanwhile I can use the recompiled version with this code change. Problem solved for me.
Regards, Tijl
Timo Sirainen schreef op 2019-02-07 15:59:
On 2 Feb 2019, at 6.44, Tijl <dovecot@odie.be> wrote:
How can dovecot be run without writing to /var/lib/dovecot/instances everyday? Is there a configuration setting for this?
You'd need to patch src/master/main.c instance_update_now() to remove:
to_instance = timeout_add((3600 * 12 + i_rand_limit(60 * 30)) * 1000, instance_update_now, list);
I'm not quite sure why I wrote such code to update it continuously.
On Thu, Feb 07, 2019 at 05:10:04PM +0100, Tijl via dovecot wrote:
Hi Timo,
Thank you very much for replying with an instant solution!
Suggestion for future release: a setting in the configuration to enable/disable the automatic instance_update_now action and/or set the timeout by the user.
In the meanwhile I can use the recompiled version with this code change. Problem solved for me.
Regards, Tijl
Timo Sirainen schreef op 2019-02-07 15:59:
On 2 Feb 2019, at 6.44, Tijl <dovecot@odie.be> wrote:
How can dovecot be run without writing to /var/lib/dovecot/instances everyday? Is there a configuration setting for this?
Postfix can do this without that added infrastructure.
You'd need to patch src/master/main.c instance_update_now() to remove:
to_instance = timeout_add((3600 * 12 + i_rand_limit(60 * 30)) * 1000, instance_update_now, list);
I'm not quite sure why I wrote such code to update it continuously.
-- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and extermination camps, but incompatible with living as a free human being. -RI Safir 2013
Ruben Safir schreef op 2019-02-07 19:26:
On Thu, Feb 07, 2019 at 05:10:04PM +0100, Tijl via dovecot wrote: Hi Timo,
Thank you very much for replying with an instant solution!
Suggestion for future release: a setting in the configuration to enable/disable the automatic instance_update_now action and/or set the timeout by the user.
In the meanwhile I can use the recompiled version with this code change. Problem solved for me.
Regards, Tijl
Timo Sirainen schreef op 2019-02-07 15:59:
On 2 Feb 2019, at 6.44, Tijl <dovecot@odie.be> wrote:
How can dovecot be run without writing to /var/lib/dovecot/instances everyday? Is there a configuration setting for this?
Postfix can do this without that added infrastructure.
Could you explain how this can be accomplished with Postfix? At the moment I don't use Postfix (I use Dovecot only to store mail archives) but I'm OK to install it, just for this. Thank you for your advice already!
You'd need to patch src/master/main.c instance_update_now() to remove:
to_instance = timeout_add((3600 * 12 + i_rand_limit(60 * 30)) * 1000, instance_update_now, list);
I'm not quite sure why I wrote such code to update it continuously.
-- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and extermination camps, but incompatible with living as a free human being. -RI Safir 2013
participants (3)
-
Ruben Safir
-
Tijl
-
Timo Sirainen