Re: [Dovecot] prevent dovecot from modifying maildirs

2013-08-11 Thread Felix Rubio Dalmau
Great! Thank you very much, Timo! Felix On Sunday 11 August 2013 22:49:43 Timo Sirainen wrote: > On Fri, 2013-08-09 at 21:12 +0200, Felix Rubio Dalmau wrote: > > Michael, Charles, > > > > thank you for your comments. I had already seen the wikipedia entries > > about ZFS,

Re: [Dovecot] prevent dovecot from modifying maildirs

2013-08-11 Thread Timo Sirainen
On Fri, 2013-08-09 at 21:12 +0200, Felix Rubio Dalmau wrote: > Michael, Charles, > > thank you for your comments. I had already seen the wikipedia entries > about ZFS, but when I have performed my tests, consisting in: generate a > program that writes a 100 MB file to disk and perform the

Re: [Dovecot] prevent dovecot from modifying maildirs

2013-08-09 Thread Joseph Tam
In order to save space I prefer no to have such half-files (mails) , and it is for this reason that I am asking if there is any way to prevent this. I'm not an expert in field of file systems, so I can be asking very naive questions... but I appreciate your comments on this topic. Filesyst

Re: [Dovecot] prevent dovecot from modifying maildirs

2013-08-09 Thread Felix Rubio Dalmau
Michael, Charles, thank you for your comments. I had already seen the wikipedia entries about ZFS, but when I have performed my tests, consisting in: generate a program that writes a 100 MB file to disk and perform the snapshot during the file is being written. Obviously the snapshot sh

Re: [Dovecot] prevent dovecot from modifying maildirs

2013-08-09 Thread Michael Grimm
On 09.08.2013, at 19:43, Felix Rubio Dalmau wrote: > 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? As mentioned before: Wrong. Have a look at http://en.wikipe

Re: [Dovecot] prevent dovecot from modifying maildirs

2013-08-09 Thread Charles Marcus
On 2013-08-09 1:43 PM, Felix Rubio Dalmau wrote: 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? No, that is not right. If it was it would totally defeat the entire

Re: [Dovecot] prevent dovecot from modifying maildirs

2013-08-09 Thread Felix Rubio Dalmau
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

Re: [Dovecot] prevent dovecot from modifying maildirs

2013-08-09 Thread Charles Marcus
On 2013-08-09 8:04 AM, Michael Grimm 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 (p

Re: [Dovecot] prevent dovecot from modifying maildirs

2013-08-09 Thread Michael Grimm
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 modi

Re: [Dovecot] prevent dovecot from modifying maildirs

2013-08-09 Thread Benny Pedersen
Felix Rubio Dalmau skrev den 2013-08-09 11:44: Does anybody has any idea on how to achieve this? stop dovecot/postfix, maybe remember sql/ldap database aswell

Re: [Dovecot] prevent dovecot from modifying maildirs

2013-08-09 Thread Charles Marcus
On 2013-08-09 5:44 AM, 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

[Dovecot] prevent dovecot from modifying maildirs

2013-08-09 Thread Felix Rubio Dalmau
Hi all, 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 s