Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Ive got two servers with a shared glusterfs disk, both running dovecot and serving mail from this shared disk. Users read mail only from one of these servers but mail gets delivered to both. Occasionally I get problems when accessing the inbox maildir folder:

IMAP(user): open(/home/user/Maildir/dovecot-uidlist) failed: Permission denied

The user cant open the inbox. Accessing other folders works fine. If I delete the dovecot index files and restart dovecot everything works fine.

What can I do to make this setup more reliable?

My dovecot settings on both servers:

mmap_disable = no
dotlock_use_excl = yes
mail_nfs_storage = yes
mail_nfs_index = no

If all else fails I could create a bash script to clean up dovecot index files if there are errors in the logs...

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

I have glusterfs deployed for a few projects, not using it though as the backend storage for IMAP/SMTP storage.

But from experience can say a few things:

First of all I would not recommend anyone use distributed file systems for storage backend on high transactional workloads such as IMAP and SMTP. Since they do not work with them well , mostly because of two reasons: high latency and problems with file locking.

Secondly, have spent quite some time on gluster freenode channel seen people reporting about Dovecot complaining about constant index corruption gluster does. So i would strongly recommend you to utilize some other back storage replication solution, dsync replication or something similar.

Hope this helps.

share|improve this answer
    
It helps as it confirms my findings. If there is not a lot of activity everything is ok, but under load things start to break. I will probably have to switch to dsync. –  Jure1873 Apr 28 '13 at 18:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.