Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 05-20-2008, 08:53 AM
The Fold The Fold is offline
Senior Member
 
Join Date: Mar 2007
Location: London, UK
ZCS Version: 5.0.5_GA_2201.F7_20080417022547 F7 FOSS edition
Posts: 31
The Fold is on a distinguished road
Exclamation Live server picked up settings from Test server

I had a test server setup using some data from our live server. Our live server suddenly stopped working and taking a look at the logs looked as if it was attempting to act as if it was the test server I'd setup.

I couldn't find any evidence of any configuration files having been changed but I have a hunch that LDAP somehow replicated and caused this issue.
Reply With Quote
  #2 (permalink)  
Old 05-20-2008, 08:56 AM
uxbod's Avatar
uxbod uxbod is offline
Moderator
 
Join Date: Nov 2006
Location: Northampton, UK
ZCS Version: Release 5.0.7_GA_2450.RHEL5_20080630192737 CentOS5 NETWORK edition (Unsupported OS)
Posts: 1,335
uxbod is on a distinguished road
Send a message via MSN to uxbod
Default

What sort of data did you migrate to the test server, and how did you do it ?
Code:
su - zimbra
zmlocalconfig | grep -i ldap
does that contain any of the production settings ? What do your Log Files - Zimbra :: Wiki show ?
__________________
Server | CentOS 5.1 | Dual Opteron 250 | Tyan K8W Mobo | 6GB RAM | 3WARE 9550-SX4 | 4 x Samsung 200GB SATA II |
Zimbra | Release Release 5.0.7_GA_2450.RHEL5_20080630192737 NETWORK edition running on Xen 3.2 CentOS 5.2 i386 VM |
Network | Cisco 877 Router - Cisco ASA 5505 FW - Cisco 1131AP |
Reply With Quote
  #3 (permalink)  
Old 05-20-2008, 09:10 AM
The Fold The Fold is offline
Senior Member
 
Join Date: Mar 2007
Location: London, UK
ZCS Version: 5.0.5_GA_2201.F7_20080417022547 F7 FOSS edition
Posts: 31
The Fold is on a distinguished road
Default

I restored a full backup of the live server and performed a zmsetservername and permission fix on the restored copy.

As I'm currently trying to fix this issue I can't run a zmlocalconfig | grep -i ldap as it will be referring to yesterdays backup.

I'm currently attempting a copy of the store, db, index, and postfix folders from the broken install over the new install.

My thinking the issue was ldap related stems from when I performed an export it had the settings for the test server in the ldif file.
Reply With Quote
  #4 (permalink)  
Old 05-20-2008, 09:26 AM
uxbod's Avatar
uxbod uxbod is offline
Moderator
 
Join Date: Nov 2006
Location: Northampton, UK
ZCS Version: Release 5.0.7_GA_2450.RHEL5_20080630192737 CentOS5 NETWORK edition (Unsupported OS)
Posts: 1,335
uxbod is on a distinguished road
Send a message via MSN to uxbod
Default

Did you follow ZmSetServerName - Zimbra :: Wiki as it has a few checks in there aswell.
__________________
Server | CentOS 5.1 | Dual Opteron 250 | Tyan K8W Mobo | 6GB RAM | 3WARE 9550-SX4 | 4 x Samsung 200GB SATA II |
Zimbra | Release Release 5.0.7_GA_2450.RHEL5_20080630192737 NETWORK edition running on Xen 3.2 CentOS 5.2 i386 VM |
Network | Cisco 877 Router - Cisco ASA 5505 FW - Cisco 1131AP |
Reply With Quote
  #5 (permalink)  
Old 05-21-2008, 01:57 AM
The Fold The Fold is offline
Senior Member
 
Join Date: Mar 2007
Location: London, UK
ZCS Version: 5.0.5_GA_2201.F7_20080417022547 F7 FOSS edition
Posts: 31
The Fold is on a distinguished road
Default

I followed that page to perform the rename process on the test server, all was working ok but then the live server stopped working and checking the logs showed mail trying to relay through the test server.

I found the following thread which seems very much like the problem I was experiencing.

Problem starting up Zimbra

I managed to get everything working again by restoring everything except the db, store, index and data folders to the working directory and then copying these folders over from the broken install.

It does seem to be working ok, I am however now getting messages in the logs from slapd saying:

Code:
May 21 09:53:18 zimbra slapd[12427]: bdb(): Lock table is out of available locker entries
May 21 09:53:18 zimbra slapd[12427]: bdb_db_cache: db_open(displayName) failed: Cannot allocate memory (12)
May 21 09:53:18 zimbra slapd[12427]: <= bdb_substring_candidates: (displayName) index_param failed (12)
Reply With Quote
  #6 (permalink)  
Old 05-21-2008, 02:04 AM
uxbod's Avatar
uxbod uxbod is offline
Moderator
 
Join Date: Nov 2006
Location: Northampton, UK
ZCS Version: Release 5.0.7_GA_2450.RHEL5_20080630192737 CentOS5 NETWORK edition (Unsupported OS)
Posts: 1,335
uxbod is on a distinguished road
Send a message via MSN to uxbod
Default

Take a look at Performance Tuning Guidelines for Large Deployments - Zimbra :: Wiki and the section "Configuring the BDB subsystem to increase LDAP server performance" for tuning the number of lockers.
__________________
Server | CentOS 5.1 | Dual Opteron 250 | Tyan K8W Mobo | 6GB RAM | 3WARE 9550-SX4 | 4 x Samsung 200GB SATA II |
Zimbra | Release Release 5.0.7_GA_2450.RHEL5_20080630192737 NETWORK edition running on Xen 3.2 CentOS 5.2 i386 VM |
Network | Cisco 877 Router - Cisco ASA 5505 FW - Cisco 1131AP |
Reply With Quote
  #7 (permalink)  
Old 05-21-2008, 02:44 AM
The Fold The Fold is offline
Senior Member
 
Join Date: Mar 2007
Location: London, UK
ZCS Version: 5.0.5_GA_2201.F7_20080417022547 F7 FOSS edition
Posts: 31
The Fold is on a distinguished road
Default

I took a look at that and I don't think I should be having an issue

Code:
# /opt/zimbra/sleepycat/bin/db_stat -c -h /opt/zimbra/openldap-data | head -n 12

db_stat: Ignoring log file: /opt/zimbra/openldap-data/logs/log.0000000008: magic number 0, not 40988
db_stat: DB_ENV->log_put: 8: Invalid argument
db_stat: dbenv->close: Invalid argument
11228   Last allocated locker ID.
2147M   Current maximum unused locker ID.
9       Number of lock modes.
3000    Maximum number of locks possible.
1500    Maximum number of lockers possible.
1500    Maximum number of lock objects possible.
25      Number of current locks.
163     Maximum number of locks at any one time.
1499    Number of current lockers.
1500    Maximum number of lockers at any one time.
20      Number of current lock objects.
93      Maximum number of lock objects at any one time.
EDIT: My bad, I didn't see the
Code:
1499    Number of current lockers.
1500    Maximum number of lockers at any one time.
Reply With Quote
  #8 (permalink)  
Old 05-21-2008, 04:46 AM
The Fold The Fold is offline
Senior Member
 
Join Date: Mar 2007
Location: London, UK
ZCS Version: 5.0.5_GA_2201.F7_20080417022547 F7 FOSS edition
Posts: 31
The Fold is on a distinguished road
Default

Ok, so at about 11:30 this morning ldap decided it would die altogether saying it couldn't recover and to restore from a backup. I had altered my max locker size in DB_CONFIG but I hadn't yet restarted.

I restored the openldap-data folder from a backup made a couple of days ago and everything is now back to normal, I'm not getting any messages from ldap at all.

I'm still curious however as to how this all happened in the first place.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Verisign Test Certificate on Zimbra Server sameh Developers 0 05-13-2008 12:53 AM
[SOLVED] Multi Server - DNS - Imapproxy innercy Installation 1 12-29-2007 09:21 PM
Installation Problem - Possibly LDAP geroshea Installation 5 03-16-2007 04:47 AM
Send mail to test server, not working eXtremeSG Administrators 10 02-16-2006 07:40 AM
Zimbra fails after working for 2 weeks Linsys Administrators 9 10-20-2005 01:26 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0