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 08-05-2009, 03:44 PM
Junior Member
 
Posts: 7
Default [SOLVED] Moving zimbra to a new server (32 to 64) problems

Hello,

I'm planning to move our zimbra installation to a new server (from 32 to 64 bit). Here's the details:

old (production) server: 5.0.12_GA_2790 running on RHEL 4.7
new server: RHEL 5.3

I've found some wiki articles -

Ajcody-Notes-Server-Move - Zimbra :: Wiki
Moving ZCS to Another Server » Zimbra :: Blog
Network Edition: Moving from 32-bit to 64-bit Server - Zimbra :: Wiki

These articles link to each other, and contradict each other at certain places. So, I emailed zimbra support. I was told to use the first article, that zimbra has tested the procedure, and that it works even on a move from 32 to 64 bit.

So, following that procedure, I'm trying to do a "dry-run" of the migration. Here are my steps:

1. Took an rsynch of the /opt/zimbra directory from the old, prod server to an external drive
2. Installed bind on the new server, to answer queries for my domain and set it up to use this local bind for resolving
3. Took the new server offline (ie unplugged it from the network)
4. Gave the new server the same network/hostname info as the old production server
5. Did a software only install on the new server of the same version of zimbra (ie ./install.sh -s)
6. Removed the zimbra directory and re-added it (rm -rf /opt/zimbra, mkdir /opt/zimbra)
7. rsynch'ed my backup from the external drive into the /opt/zimbra directory
8. Ran the zmfixperms script on the new server
9. Ran another, full install on the new server (same version as step 5) - ie ./install.sh with NO -s


The install in step 9 goes through till the end, then throws an error -

"zimbra system failure: unable to lookup server by name: [ldap: errror code 49 - invalid credentials]"

So, the install is a bust as ZCS can't get to it's config in ldap. I quit the install. I run "zmlocalconfig -s | grep pass", and see the ldap passwords. I try to run an ldapsearch locally on the machine, and I get another "invalid credentials" error. It seems that the initial, software only install (in step 5) is setting the ldap password, then when I rsynch my backup into /opt/zimbra, it's putting another ldap password in there.

However, after the install in step 9 fails, zimbra's slapd is running, and I try running an ldapsearch against it using both the ldap password from the software only install (step 5) and the ldap password from the rsynch'ed backup in step 7. With both passwords I get the "invalid credentials" error".

While waiting for a reply email from zimbra, I've had a couple days to dig through the wiki/forums. I found a forum post -

Problem With Moving ZCS to New Server

which discusses a quite different procedure (appears to be related to a previous release of ZCS). However, the procedure is similar to the one above except it involves dumping/restoring the ldap seperately (via an ldif file).

So, I'm basically stuck. Any thoughts or help would be greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 08-05-2009, 05:28 PM
Junior Member
 
Posts: 9
Default

You are moving Zimbra from 32 bits to 64 bits OS. please use this article,
Network Edition: Moving from 32-bit to 64-bit Server - Zimbra :: Wiki or read on this post [SOLVED] 32-bit to 64-bit upgrade - problem SOLVED
I am use article about and successfully move ZCS. 5.0.16 from Fedora Core7 32bits. ==> Ubuntu 8.04 64 bits, Problem is you are moving ZCS. to different OS. can not using "rsynch" all of /opt/zimbra from old server to new server because of some lib file is not same in 32bits and 64 bits.
__________________
Zimbra 5.0.19 on Dell R710| Ubuntu 8.04 x86_64, 8 GB. RAM, Dual Quad Xeon, 4X146 GB. SAS.
Zimbra install as Multi Server MTA. & LDAP.+Mailbox server

Last edited by Kernel; 08-05-2009 at 05:43 PM..
Reply With Quote
  #3 (permalink)  
Old 08-05-2009, 05:42 PM
Junior Member
 
Posts: 7
Default

Thanks for the reply. I started with that article, but was told by zimbra support that it wasnt' necessary, and that I could follow the rsynch procdure.

Further, your statement about the rsynch method not working because of the different libraries between 32 and 64 bit isnt necessarily true. By reinstalling - ie upgrading, (step 9 in my post), the zimbra rpms should be updated to use the correct libraries. This was confirmed to me by zimbra support.

However, I might try the method you suggested as I don't seem to be making any progress with my current one.
Reply With Quote
  #4 (permalink)  
Old 08-07-2009, 05:24 PM
Junior Member
 
Posts: 7
Default

I've figured this out. Began using the following steps (found in this thread - Problem With Moving ZCS to New Server)

1) Backup working zimbra
2) Dump ldap to disk using wiki page (create ldif file)
3) stop running zimbra, shut down machine
4) bring up new machine with same hostname, same IP doesn't matter as long is DNS is redirecting
5) install current version of zimbra with new flavor for OS. Go through entire setup (ie don't use ./install.sh -s, just./install.sh)
6) wipe /opt/zimbra/openldap-data
7) Import ldif file using wiki page
8) Move /opt/zimbra/openldap-data dir to safe local
9) replace /opt/zimbra with backup
10) Move openldap-data dir into place (/opt/zimbra/openldap-data)
11) run ./install.sh -s

but still had the ldap "invalid credentials" error using ldapsearch, and zimbra couldn't talk to ldap.

The third page or so had more detailed steps, and that's what worked. Seems I wasnt handling the openldap-data directory correctly.

Marked as solved.
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.