Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-15-2008, 02:03 AM
d64 d64 is offline
Active Member
 
Posts: 34
Default Creating accounts problem

Hello

Sorry to make noise like this but I have attached some logs to the thread opened previously by someone else, at new account , but I guess it might have gone unnoticed due to the thread being older.

I would be most glad if anyone had any ideas on what could be wrong with our setup.
Reply With Quote
  #2 (permalink)  
Old 01-15-2008, 03:28 PM
Zimbra Employee
 
Posts: 393
Default

Quote:
Originally Posted by d64 View Post
I would be most glad if anyone had any ideas on what could be wrong with our setup.
Please show the output of:
Code:
ls -ld /opt/zimbra/openldap-data
and

Code:
ls -l /opt/zimbra/openldap-data
Thanks!
__________________
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 04:24 AM
d64 d64 is offline
Active Member
 
Posts: 34
Default

Here..

Code:
$ ls -ld /opt/zimbra/openldap-data
drwxr-xr-x 2 zimbra zimbra 4096 Jan  2 14:48 /opt/zimbra/openldap-data
$ ls -l /opt/zimbra/openldap-data
total 18188
-rw-rw-r-- 1 zimbra zimbra     4096 Jan 15 11:56 alock
-rw------- 1 zimbra zimbra   126976 Jan 15 12:21 cn.bdb
-rw------- 1 zimbra zimbra    16384 Jan  2 14:48 __db.001
-rw------- 1 zimbra zimbra 65544192 Jan  2 14:48 __db.002
-rw------- 1 zimbra zimbra  2359296 Jan  2 14:48 __db.003
-rw------- 1 zimbra zimbra   450560 Jan  2 14:48 __db.004
-rw------- 1 zimbra zimbra    16384 Jan  2 14:48 __db.005
-rw-r--r-- 1 zimbra zimbra      320 Aug 10 15:58 DB_CONFIG
-rw------- 1 zimbra zimbra    77824 Jan 15 12:21 displayName.bdb
-rw------- 1 zimbra zimbra    94208 Jan 15 12:11 dn2id.bdb
-rw------- 1 zimbra zimbra    16384 Jan 16 12:31 entryCSN.bdb
-rw------- 1 zimbra zimbra    16384 Jan  3 10:33 entryUUID.bdb
-rw------- 1 zimbra zimbra     8192 Jan 15 12:21 givenName.bdb
-rw------- 1 zimbra zimbra   540672 Jan 16 12:31 id2entry.bdb
-rw-r--r-- 1 zimbra zimbra   247150 Dec 14 01:13 ldap.bak
-rw------- 1 zimbra zimbra 10475464 Dec 13 18:03 log.0000000003
-rw------- 1 zimbra zimbra  3868502 Jan 16 12:31 log.0000000004
-rw------- 1 zimbra zimbra   126976 Jan 15 12:01 mail.bdb
-rw------- 1 zimbra zimbra    40960 Jan 15 12:01 objectClass.bdb
-rw------- 1 zimbra zimbra    77824 Jan 15 12:21 sn.bdb
-rw------- 1 zimbra zimbra    12288 Jan 15 12:11 uid.bdb
-rw------- 1 zimbra zimbra     8192 Jan 15 12:01 zimbraDomainName.bdb
-rw------- 1 zimbra zimbra    16384 Jan 15 12:01 zimbraId.bdb
-rw------- 1 zimbra zimbra    32768 Jan 15 12:01 zimbraMailAlias.bdb
-rw------- 1 zimbra zimbra     8192 Jan 15 12:01 zimbraMailCatchAllAddress.bdb
-rw------- 1 zimbra zimbra   106496 Jan 15 12:11 zimbraMailDeliveryAddress.bdb
-rw------- 1 zimbra zimbra     8192 Jan 15 12:21 zimbraMailForwardingAddress.bdb
-rw------- 1 zimbra zimbra     8192 Jan  6 16:58 zimbraVirtualHostname.bdb
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 02:39 PM
Zimbra Employee
 
Posts: 393
Default

Which release are you running?

Also, as the zimbra user:

Code:
cd /opt/zimbra/openldap-data
/opt/zimbra/sleepycat/bin/db_stat -c
and paste the output.

Thanks!
__________________
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 02:14 AM
d64 d64 is offline
Active Member
 
Posts: 34
Default

4.5.10

Code:
# rpm -qa | grep -i zimbra
zimbra-core-4.5.10_GA_1575.FC5-20071117095155
zimbra-snmp-4.5.10_GA_1575.FC5-20071117095155
zimbra-ldap-4.5.10_GA_1575.FC5-20071117095155
zimbra-mta-4.5.10_GA_1575.FC5-20071117095155
zimbra-store-4.5.10_GA_1575.FC5-20071117095155
zimbra-spell-4.5.10_GA_1575.FC5-20071117095155
zimbra-logger-4.5.10_GA_1575.FC5-20071117095155
zimbra-apache-4.5.10_GA_1575.FC5-20071117095155
Code:
$ cd /opt/zimbra/openldap-data
$ /opt/zimbra/sleepycat/bin/db_stat -c
166     Last allocated locker ID.
2147M   Current maximum unused locker ID.
9       Number of lock modes.
1000    Maximum number of locks possible.
1000    Maximum number of lockers possible.
1000    Maximum number of lock objects possible.
17      Number of current locks.
92      Maximum number of locks at any one time.
62      Number of current lockers.
84      Maximum number of lockers at any one time.
4294M   Number of current lock objects.
4294M   Maximum number of lock objects at any one time.
18M     Total number of locks requested.
18M     Total number of locks released.
0       Total number of lock requests failing because DB_LOCK_NOWAIT was set.
6       Total number of locks not immediately available due to conflicts.
1       Number of deadlocks.
0       Lock timeout value.
0       Number of locks that have timed out.
0       Transaction timeout value.
0       Number of transactions that have timed out.
440KB   The size of the lock region..
16      The number of region locks granted after waiting.
29M     The number of region locks granted without waiting.
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 10:53 AM
Zimbra Employee
 
Posts: 393
Default

Quote:
Originally Posted by d64 View Post
4.5.10

Code:
$ cd /opt/zimbra/openldap-data
$ /opt/zimbra/sleepycat/bin/db_stat -c
1       Number of deadlocks.
You've had a deadlock that needs cleaning up. Try the following as the zimbra user:

Code:
ldap stop
cd /opt/zimbra/openldap-data
/opt/zimbra/sleepycat/bin/db_recover
ldap start
And see if that resolves the issue.

--Quanah
__________________
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #7 (permalink)  
Old 01-18-2008, 05:38 AM
d64 d64 is offline
Active Member
 
Posts: 34
Default

This resolved the issue, thanks.

One small thing is that after the recovery commands ldap start did not restore Zimbra to workable state but I had to do zmcontrol stop/start.
Reply With Quote
  #8 (permalink)  
Old 02-04-2008, 07:29 AM
d64 d64 is offline
Active Member
 
Posts: 34
Default More problems

Since I got this problem solved, it has happened again several times. The ldap info doesn't show a deadlock, but shutting down, running db_recover and starting up again allow me to make changes to users again.

Any idea what could cause this? I can't find any fault with the server, it has not crashed or even been reset in a long time.
Reply With Quote
  #9 (permalink)  
Old 02-04-2008, 09:55 AM
Zimbra Employee
 
Posts: 393
Default

Are you using Xen?
__________________
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #10 (permalink)  
Old 02-04-2008, 10:53 AM
d64 d64 is offline
Active Member
 
Posts: 34
Default

Quote:
Originally Posted by quanah View Post
Are you using Xen?
Yes we are.
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0