Results 1 to 7 of 7

Thread: Recovering LDAP after upgrade to 6.0.1?

  1. #1
    s0nspark is offline Member
    Join Date
    Mar 2007
    Posts
    10
    Rep Power
    8

    Default Recovering LDAP after upgrade to 6.0.1?

    I recently upgraded from 5.0.18 to 6.0.1 and the upgrade choked on the first run after uninstalling packages but before installing the updated ones... I reran the install and it completed fine.

    I then ran zmsetup.pl to perform the upgrade of my data and somehow I ended up with no LDAP data (the db seemed to upgrade fine from what I can tell...)

    I have a backup of the ldap data from before the upgrade... Is there any way I can import that and upgrade it?

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Why did it choke the first time ? You would be better rolling back using your backup and upgrading again.

  3. #3
    s0nspark is offline Member
    Join Date
    Mar 2007
    Posts
    10
    Rep Power
    8

    Default

    Quote Originally Posted by uxbod View Post
    You would be better rolling back using your backup and upgrading again.
    Well, that was my first thought BUT for some reason my backup was incomplete so that is out...

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

    Default

    It probably choked the first time because you had LDAP data that wouldn't migrate, due to using something like the domain disclaimer or posix/samba, and you didn't follow the steps to prepare your server for upgrade in that scenario. Thus the second time you ran the upgrade, you had no LDAP data at all, and it "succeeded". I would suggest looking at /opt/zimbra/data/ldap directory and see if you find your old pre-upgrade LDAP database in there. You'll still need to fix whatever issue it ran into when upgrading before you can import it.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  5. #5
    s0nspark is offline Member
    Join Date
    Mar 2007
    Posts
    10
    Rep Power
    8

    Default

    Quote Originally Posted by quanah View Post
    It probably choked the first time because you had LDAP data that wouldn't migrate, due to using something like the domain disclaimer or posix/samba, and you didn't follow the steps to prepare your server for upgrade in that scenario. Thus the second time you ran the upgrade, you had no LDAP data at all, and it "succeeded". I would suggest looking at /opt/zimbra/data/ldap directory and see if you find your old pre-upgrade LDAP database in there. You'll still need to fix whatever issue it ran into when upgrading before you can import it.
    Well, the first update failed while installing new packages... so I don't think I had any bad ldap data. Is there a way to import the pre-6.0 ldap data backup I have and then upgrade it to 6.0?

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

    Default

    Yes, if you have a slapcat of the data, you can slapadd it, and then you will have to manually run every upgrade step in zmupgrade.pm relating to ldap to update it to 6.0.x.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  7. #7
    s0nspark is offline Member
    Join Date
    Mar 2007
    Posts
    10
    Rep Power
    8

    Default

    Quote Originally Posted by quanah View Post
    Yes, if you have a slapcat of the data, you can slapadd it, and then you will have to manually run every upgrade step in zmupgrade.pm relating to ldap to update it to 6.0.x.
    Ok ... thanks!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 8
    Last Post: 12-23-2010, 11:17 AM
  2. Replies: 2
    Last Post: 01-17-2008, 09:45 PM
  3. Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
    By Daimyo in forum Installation
    Replies: 7
    Last Post: 08-04-2007, 09:23 PM
  4. Upgrade 4.5.3 -> 4.5.6 failed: ldap hangs
    By sm3.142 in forum Installation
    Replies: 2
    Last Post: 07-05-2007, 02:43 PM
  5. Force LDAP Upgrade?
    By jholder in forum Administrators
    Replies: 3
    Last Post: 09-07-2006, 08:15 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
  •