mailboxes.db locking problem after updating from 2.4 to 2.5.9
Shawn Bakhtiar
shashaness at hotmail.com
Thu Nov 17 11:43:49 EST 2016
Did you run reconstruct like the upgrade documentation recommends?
When I did my upgrade, from 2.4.x to 2.5 that's about all I had to do. I don't recall having to run ctl_mboxlist -du
https://www.cyrusimap.org/docs/cyrus-imapd/2.5.0/install-upgrade.php
http://www.cyrusimap.org/~vanmeeuwen/imap/release-notes/2.5.0.html
On Nov 17, 2016, at 5:00 AM, Deniss via Info-cyrus <info-cyrus at lists.andrew.cmu.edu<mailto:info-cyrus at lists.andrew.cmu.edu>> wrote:
Hello,
I trying to migrate one big cyrus imap server from 2.4 to 2.5.9.
I updated binaries, fix db backend in imapd.conf and converted
mailboxes.db with ctl_mboxlist -d & -u to twoskip.
cyrus ran fine until morning when a count of simultanious sessions
started to rise.
then imapd processes become locked on mailboxes.db when logs show
something like
Nov 17 08:04:21 srv1 imap[11019]: cmdtimer: 'yo at mail.xxx<mailto:yo at mail.xxx>' 'list'
'<none>' '46.741322' '0.000000' '46.741322'
Nov 17 08:04:21 srv1 imap[11019]: buf: A1 LIST "" "*"
I converted mailboxes.db back to skiplist and got a bunch (10-20 per
sec) of following logs:
Nov 17 09:59:09 srv1 imap[5352]: skiplist: longlock
/var/imap/mailboxes.db for 177.7 seconds
Nov 17 09:59:09 srv1 imap[6760]: skiplist: longlock
/var/imap/mailboxes.db for 169.7 seconds
Nov 17 09:59:09 srv1 imap[6764]: skiplist: longlock
/var/imap/mailboxes.db for 171.7 seconds
Nov 17 09:59:09 srv1 imap[5230]: skiplist: longlock
/var/imap/mailboxes.db for 171.8 seconds
Nov 17 09:59:09 srv1 imap[5251]: skiplist: longlock
/var/imap/mailboxes.db for 203.2 seconds
Nov 17 09:59:09 srv1 imap[5221]: skiplist: longlock
/var/imap/mailboxes.db for 168.9 seconds
then I rolled back to cyrus 2.4 (converting mailboxes.db back to old
format) and the server started to work just fine again.
I run 8core 16gb box with mailboxes.db on SSD disk, noswap,
Linux 4.4.8-hardened glibc-2.20 x86_64-pc-linux-gnu-4.8.4 on Gentoo
mailboxes.db is ~200Mb depending of format
135M /var/imap/mailboxes.plain
180M /var/imap/mailboxes.db.skiplist.24
215M /var/imap/mailboxes.db.skiplist.25
262M /var/imap/mailboxes.db.twoskip.25
Any ideas or suggestion for investigation ?
Best,
Deniss
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20161117/94608ae8/attachment.html>
More information about the Info-cyrus
mailing list