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

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 11-07-2007, 06:26 AM
Active Member
 
Posts: 34
Default Problems migrating to new server

Hi,

I'm trying to migrate my zimbra installation to a new server. I'm currently running 4.5.9 on FC4 and would like to move to some new hardware running CentOS 5 (x86_64).

I've tried following John's power tip for migrating servers but have come across a problem.
http://www.zimbra.com/blog/archives/...er_server.html

When I do the final run of intstall.sh I get errors when ldap starts (account.NO_SUCH_SERVER and account.NO_SUCH_COS). The install also asks me to set the ports. It's as if the configuration is not coming across. Any ideas where I should look?

Justin.
Reply With Quote
  #2 (permalink)  
Old 11-07-2007, 08:04 AM
Former Zimbran
 
Posts: 5,606
Default

Hi Justin-
Usually with a change in archetectures, you'll need to dump ldap first.

So follow those instructions in the blog post, but add this.

After data has been rsynced to backup device, start zimbra, and run:
Code:
        su - zimbra
/opt/zimbra/openldap/sbin/slapcat -f /opt/zimbra/conf/slapd.conf -l /tmp/ldap.ldif
cat the file to ensure it's exported.

Then once you get to the part where you replace the dummy install, do that, then import the ldap data:
Code:
su - zimbra
/opt/zimbra/openldap/sbin/slapadd -f /opt/zimbra/conf/slapd.conf -l /tmp/ldap.ldif
The rerun the installer as an upgrade.

Also, note that if it says (before applying configuration), that there is not hostname for ldap, then that usually means that your localconfig got wiped. This usually happens during a failed upgrade.

To fix it, copy
/opt/zimbra/.saveconfig and
/opt/zimbra/conf/localconfig.xml
from your backup and place it in your new install locations.

john
Reply With Quote
  #3 (permalink)  
Old 11-07-2007, 08:05 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

That would assume that your new server has the same hostname and IP address as the old server and that your DNS A & MX records now point to the new server. Is that what you've done?
__________________
Regards


Bill
Reply With Quote
  #4 (permalink)  
Old 11-07-2007, 03:21 PM
Active Member
 
Posts: 34
Default

Quote:
Originally Posted by phoenix View Post
That would assume that your new server has the same hostname and IP address as the old server and that your DNS A & MX records now point to the new server. Is that what you've done?
Yes, I've done that.
Reply With Quote
  #5 (permalink)  
Old 11-07-2007, 03:26 PM
Active Member
 
Posts: 34
Default

Quote:
Originally Posted by jholder View Post
After data has been rsynced to backup device, start zimbra, and run:
Code:
        su - zimbra
/opt/zimbra/openldap/sbin/slapcat -f /opt/zimbra/conf/slapd.conf -l /tmp/ldap.ldif
cat the file to ensure it's exported.
Ok. Start zimbra? Or just run slapcat with zimbra not running?

Quote:
Then once you get to the part where you replace the dummy install, do that, then import the ldap data:
Code:
su - zimbra
/opt/zimbra/openldap/sbin/slapadd -f /opt/zimbra/conf/slapd.conf -l /tmp/ldap.ldif
Ok. But won't that run the FC4 binary on my CentOS machine? ie. I've already deleted the dummy install at that point.

Justin.
Reply With Quote
  #6 (permalink)  
Old 11-07-2007, 03:28 PM
Former Zimbran
 
Posts: 5,606
Default

Hey Justin-
1) Only LDAP should be running, ie su - zimbra; ldap start

2) Good point! Import it into the dummy install first. Once it's imported, grab /opt/zimbra/openldap-data and back it up
Reply With Quote
  #7 (permalink)  
Old 11-08-2007, 03:09 AM
Active Member
 
Posts: 34
Default

Seems to have all worked quite nicely. Thanks John.

Justin.
Reply With Quote
  #8 (permalink)  
Old 11-08-2007, 08:40 AM
Moderator
 
Posts: 6,237
Default

-marking as resolved
Reply With Quote
  #9 (permalink)  
Old 12-04-2007, 07:40 AM
Special Member
 
Posts: 146
Default

Hi all,

I am planning on moving my server this saturday, so I've been reading a lot of these posts (and the blog) in preperation. Even though I've read this thread a few times, it doesn't make any sense to me. For a someone that is still relatively new to this - could someone please summarize what the problem was here? How was it resolved?

Thanks,
Rob
Reply With Quote
  #10 (permalink)  
Old 12-04-2007, 09:34 AM
Moderator
 
Posts: 6,237
Default

From another thread I gather your going FC4>CentOS Fedora - latest versions?
If you are going from x86<>64 you often need to dump & reimport the ldap data.
One article not mentioned above is: /blog/archives/2007/05/exporting_and_importing_zimbra_ldap_data_1.html

-The one I assume you read /blog/archives/2007/10/moving_zcs_to_another_server.html
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.