Results 1 to 10 of 10

Thread: Zimbra-Ldap Replication Help in existing environment...

  1. #1
    Diranged is offline Intermediate Member
    Join Date
    Mar 2009
    Posts
    20
    Rep Power
    6

    Default Zimbra-Ldap Replication Help in existing environment...

    I'm running Zimbra OSS 5.0.14 in a live environment right now and its working fine on its own. Over the weekend I tried twice to implement a backup LDAP server (we use LDAP for ALOT of things here) and had major problems. Each time it ended up taking down mail for an hour while I fixed it...

    I tried to follow the LDAP Sync guide in the wiki here (LDAP - Zimbra :: Wiki). The guide says to setup another host and install Zimbra on it. You setup a few special settings during the install, and thats about it.

    I got that working just fine ... but what I found was as soon as "ldap-copy.myhost.com" synced with "master-zimbra.myhost.com" a bunch of settings on "master-zimbra" changed. Things like the logHost setting changed to be "ldap-copy" instead of "master-zimbra" -- yet I had disabled all services on "ldap-copy" other than zimbra-ldap. This went un-noticed until I loged into the Admin WebUI and it complained about not being able to reach a host (connection refused). From there I tried to restart the "master-zimbra" services and Zimbra wouldnt even load up... the local LDAP database refused to start until I manually forced "ldap_bind_url" to be the "master-zimbra" hostname. I have no idea why it was empty, but the ldap start script wouldnt startup without it being something.

    Nearly this exact thing happened twice in a row ... so I'm hesitant to try again, but we really need to get this running. Is there a way to setup zimbra-ldap without all the other stuff (mta, logger, etc)?

  2. #2
    Diranged is offline Intermediate Member
    Join Date
    Mar 2009
    Posts
    20
    Rep Power
    6

    Default

    Anyone have any help? I really need to get the replication going as soon as possible...

  3. #3
    quanah is offline Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,265
    Rep Power
    10

    Default

    Quote Originally Posted by Diranged View Post
    Nearly this exact thing happened twice in a row ... so I'm hesitant to try again, but we really need to get this running. Is there a way to setup zimbra-ldap without all the other stuff (mta, logger, etc)?
    Did you read the multi-server guide, which details how to install an ldap replica?

    The only package you need to install on a replica is zimbra-ldap (and of course zimbra-core). zimbra-mta, etc, is not necessary.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  4. #4
    Diranged is offline Intermediate Member
    Join Date
    Mar 2009
    Posts
    20
    Rep Power
    6

    Default

    I read the specific guidelines listed in the LDAP Replication wiki article -- are these not valid? (LDAP - Zimbra :: Wiki)

  5. #5
    Diranged is offline Intermediate Member
    Join Date
    Mar 2009
    Posts
    20
    Rep Power
    6

    Default

    Specifically where it says "Use standard install.sh options, including the zimbra-ldap server."

  6. #6
    quanah is offline Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,265
    Rep Power
    10

    Default

    I would advise reading the official docs, since they are more detailed. The wiki is correct, but very sparse on detail.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  7. #7
    quanah is offline Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,265
    Rep Power
    10

    Default

    Quote Originally Posted by Diranged View Post
    Specifically where it says "Use standard install.sh options, including the zimbra-ldap server."
    Well, there are options to install.sh. That line is fairly ambiguous, and I understand why you may assume that means to install all packages. The only one you must install for a replica is zimbra-ldap, as I previously noted.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  8. #8
    Diranged is offline Intermediate Member
    Join Date
    Mar 2009
    Posts
    20
    Rep Power
    6

    Default

    Ok thanks ... So I've done that, and got it working. The one thign I ran into is that I have a few addons to my zimbra-ldap setup on the master server that were not in place on the slave when it started up, so I believe it has ignored a bunch of entries. Now that I implemented them (nis.schema, samba.schema), I restarted LDAP on the slave and it has not picked up the accounts that did not transfer originally. Is there a "clean" way to start the sync process over from scratch now?

  9. #9
    quanah is offline Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,265
    Rep Power
    10

    Default

    Yes. As the zimbra user on the replica:
    1) stop slapd - ldap stop
    2) cd /opt/zimbra/openldap-data
    3) /opt/zimbra/sleepycat/bin/db_recover
    4) rm -rf *.bdb alock
    5) rm -rf logs/*
    6) start slapd

    This will delete the current DB and have it resync.

    Once 6.0 is out, the schema issue will be permanently fixable. Generally on upgrades (and new installs of replicas) you will want to run install.sh -s with 5.0.x, and modify the slapd.conf.in file before running zmsetup.pl so that the schemas you are loading are included before the upgrade (or new replication) occurs.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  10. #10
    Diranged is offline Intermediate Member
    Join Date
    Mar 2009
    Posts
    20
    Rep Power
    6

    Default

    Perfect, thank you! That worked beautifully.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. 4.5 Upgrade failure
    By brained in forum Installation
    Replies: 9
    Last Post: 03-03-2007, 03:30 PM
  3. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  4. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 10:39 AM
  5. Zimbra server crashed
    By goetzi in forum Administrators
    Replies: 6
    Last Post: 03-25-2006, 01:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •