Dovecot and glusterfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I wanted t test gluster a little bit for the usage in Dovecot Postbox Serves.

I set up two servers with a replicated gluster and mounted the bricks via 
gluster client. On these two nodes I installed dovecot. So I created a high 
available test szenario.

I configured dovecdot to usr maildir format and mainly copied the dovecot 
options for NFS setup:

mail_fsync = always
mail_nfs_storage = yes
mail_nfs_index = yes
mmap_disable = yes

Basically that tells dovecot to use fcntl() locks.

With the thunderbird IMAP client I accessed te two postboxes on the two node. 
One client the first dovecot node, the other client the second node. Both used 
the same user, so did access the same maildir files.

First everything looked good, but within ten minutes of creating, moving and 
deleting mails and folders I produced the following log:

node2 dovecot: imap(user1@xxxxxxxxxxx): Error: Corrupted transaction log file 
/srv/mail/user1@xxxxxxxxxxx/dovecot.index.log seq 3: file_seq=3, min_file_offset 
(4768) > max_file_offset (3392) (sync_offset=3392)

node2 dovecot: imap(user1@xxxxxxxxxxx): Error: Index 
/srv/mail/user1@xxxxxxxxxxx/dovecot.index: Lost log for seq=3 offset=2948

node2 dovecot: imap(user1@xxxxxxxxxxx): Warning: fscking index file 
/srv/mail/user1@xxxxxxxxxxx/dovecot.index

The mailbox was not accessible any more and dovecot did not accept any new 
mails for the user.

Any ideas what went wrong?
I this a legitimate use case for gluster? 
Could I prevent this from happening if I restrict oew user access only o one 
gluster node?

Mit freundlichen Grüßen,

Michael Schwartzkopff

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux