Sylvain Nemtua
2007-May-02 10:15 UTC
[Dovecot] Migrate from mlbox to maildir, lock problem
Hi We've been using dovecot successufly for few month. Previous setup : solaris 8, postfix+LDA, mbox + index on NFS (Netapp), 2500 accounts Everything shared overs NFS, multiple servers connect to index, mbox. mail_location mbox:/var/mail/mbox/%u:INBOX=/var/mail/%u:INDEX=/var/mail/indexes_dovecot/%u We had at first some issue with mbox locking, using lock_method dotlock solve the issue. The problem seemed to be with fcntl. I Migrate to maildir to ease administration to use maildir quota I use mb2md-3.20.pl to migrate the mbox everything works smooth. Actual setup : solaris 8, postfix+LDA, maildir + index + control on NFS (Netapp) I change the mail_location settings to mail_location maildir:/var/mail/maildir/%u:INDEX=/var/mail/indexes_dovecot/%u:CONTROL=/var/mail/dovecot_control/%u And now I'm facing new locking issue : Errors on user loging, users leaving mail on server downloading the same mail over and over. Numerous entries in log files : May 2 11:19:03 gregorie dovecot: [ID 107833 mail.error] POP3(carini): Maildir /var/mail/maildir/carini sync: UID inserted in the middle of mailbox (13 > 1, file = 1178097228.P16222Q0M452645.yder,S=22935:2,) May 2 11:19:03 gregorie dovecot: [ID 107833 mail.info] POP3(carini): Disconnected: Mailbox is in inconsistent state. top=0/0, retr=0/0, del=0/0, s ize=0 May 2 11:19:03 gregorie dovecot: [ID 107833 mail.error] POP3(carini): Couldn't init INBOX: Internal error occurred. Refer to server log for more i nformation. [2007-05-02 11:19:01] Seems to be locking issue, numerous .nfs files in INDEX & CONTROL location The maildirsize & dovecot-uidlist files aren't update properly Does the patch posted here still apply ? http://dovecot.org/list/dovecot/2006-December/018145.html Is the any ls -lai ../dovecot_control/carini total 168 1241498 drwx------ 3 carini 10008 4096 May 2 08:38 . 2194825 drwxrwxrwx 890 root mail 69632 May 2 12:02 .. 2272724 drwx------ 2 carini 10008 4096 May 2 12:09 .INBOX 1600612 -rw------- 1 carini 10008 31 May 1 00:16 .nfs70B454 874201 -rw------- 1 carini 10008 31 May 2 05:02 .nfs976604 257061 -rw------- 1 carini 10008 30 May 1 10:15 .nfsB57E54 319327 -rw------- 1 carini 10008 31 Apr 30 13:03 .nfsD66BD3 319326 -rw------- 1 carini 10008 25 Apr 30 11:58 .nfsDA3144 874204 -rw------- 1 carini 10008 144 May 2 12:09 maildirsize root at gregorie-/var/mail/maildir# ls -lai ../dovecot_control/carini/.INBOX/ total 72 2272724 drwx------ 2 carini 10008 4096 May 2 12:09 . 1241498 drwx------ 3 carini 10008 4096 May 2 08:38 .. 1648711 -rw------- 1 carini 10008 369 May 2 09:38 .nfs05BB04 1539511 -rw------- 1 carini 10008 58 Apr 30 13:03 .nfs076BD3 1648718 -rw------- 1 carini 10008 101 May 2 12:04 .nfs16A114 1648715 -rw------- 1 carini 10008 101 May 2 11:13 .nfs4A5F04 1539510 -rw------- 1 carini 10008 56 Apr 30 11:58 .nfs8B3144 1648714 -rw------- 1 carini 10008 149 May 2 11:45 .nfs97B014 1648716 -rw------- 1 carini 10008 100 May 2 11:23 .nfs9EAF04 2165940 -rw------- 1 carini 10008 58 May 1 00:16 .nfsA0B454 1648710 -rw------- 1 carini 10008 56 May 2 05:02 .nfsC76604 1648713 -rw------- 1 carini 10008 105 May 2 09:44 .nfsCF0D74 1648712 -rw------- 1 carini 10008 154 May 2 09:55 .nfsD62C04 1654025 -rw------- 1 carini 10008 57 May 1 10:15 .nfsF67E54 1648717 -rw------- 1 carini 10008 58 May 2 12:04 dovecot-uidlist thanks for your help sylvain nemtua