Actually the problem is that the snapshot is instantaneous, so if some commands are being run at the time of the snapshot I could get a snapshot of a non-consistent FS, right?
Then, the single solution goes through just shuting down dovecot (and other services, like apache) the seconds required to perform the snapshot, whilst holding the postfix queues to ensure not loosing any mail.
Does anybody have a better approach?
Regards! Felix
On Friday 09 August 2013 08:19:59 Charles Marcus wrote:
On 2013-08-09 8:04 AM, Michael Grimm <trashcan@odo.in-berlin.de> wrote:
On 2013-08-09 11:44, Felix Rubio Dalmau wrote:
Is there any possibility to ask dovecot to write nothing to disk, something like a "read only" state, without shutting it down? I have set up a ZFS+postfix+dovecot mail server, and I need both postfix (postsuper -h ALL) and dovecot (¿?) to stop modifying the disk to create the snapshot to be saved.
Does anybody has any idea on how to achieve this?
As mentioned before, that's done by ZFS. Just create a snapshot using your ZFS functionality (zfs snapshot <name>).
And the same goes for LVM snapshots.
The only thing you might want/need to worry about is SQL databases... for these I always do periodic dumps (how often dicatated by how long the dumps take vs how often the data changes vs how critical the data is).