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 Search this Thread Display Modes
  #1 (permalink)  
Old 10-04-2009, 10:19 AM
Member
 
Posts: 10
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?
Reply With Quote
  #2 (permalink)  
Old 10-05-2009, 01:16 AM
Moderator
 
Posts: 7,911
Default

Why did it choke the first time ? You would be better rolling back using your backup and upgrading again.
__________________
Reply With Quote
  #3 (permalink)  
Old 10-05-2009, 05:34 AM
Member
 
Posts: 10
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...
Reply With Quote
  #4 (permalink)  
Old 10-05-2009, 09:15 AM
Zimbra Employee
 
Posts: 572
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
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #5 (permalink)  
Old 10-05-2009, 09:25 AM
Member
 
Posts: 10
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?
Reply With Quote
  #6 (permalink)  
Old 10-05-2009, 09:27 AM
Zimbra Employee
 
Posts: 572
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
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #7 (permalink)  
Old 10-05-2009, 09:36 AM
Member
 
Posts: 10
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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.