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 08-25-2011, 09:46 PM
Member
 
Posts: 13
Default 32-bit to 64-bit Migration

I found some of the migration wiki's to be confusion.
Here are some quick notes I made migration from ubuntu 32-bit to 64-bit.
I asigned internal IP's to my servers.
10.0.0.1 is the old server
10.0.0.2 is the new server

All commands are done as root.

Summary Notes.
Install new server with same version of Zimbra and values as old server. 32-bit 64-bit doesn't matter
Copy All Files /opt/zimbra/store
Copy All Files in /opt/zimbra/index
Backup LDAP database then restore database to new server. (binary copies will not work)
inorder for ldap restored database to work, copy certain values with in /opt/zimbra/conf/localconfig.xml

Install OS
Download exactly the same version as the old system has
Make sure the /etc/hosts has the correct hostname
Install ZCS (install.sh) with exactly the same settings as the original system had

Important settings:
Domain Name Must be exactly the same as the original server
Zimbra LDAP Server - For Domain to create - identify the same default domain as on the original server.
Zimbra Mailbox Server - An administrator's account is automatically created.
Admin user to create is the same name as on the original server.
Admin password same as on the orginal server
Spam training user same as on the orginal server.
Non-spam (HAM) training user account same as on the orginal server
Global Document Account user same as on the orginal server

Prep New Server
Code:
* mkdir /backup
* chown zimbra:zimbra /backup
* su zimbra
* zmcontrol stop
* rm -rf /opt/zimbra/data/ldap/hdb/* 
* rm -rf /opt/zimbra/db/data/*
Code:
If this is an ldap master with replicas: 
* rm -rf /opt/zimbra/data/ldap/accesslog/*
Code:
mkdir -p /opt/zimbra/data/ldap/hdb/db /opt/zimbra/data/ldap/hdb/logs
On orginal Server, pepare for move day.
Code:
nice -n +19 rsync -avzH -e ssh --progress /opt/zimbra/store/ root@10.0.0.2:/opt/zimbra/store
nice -n +19 rsync -avzH -e ssh --progress /opt/zimbra/index/ root@10.0.0.2:/opt/zimbra/index
Move Day, on orginal server, Block access to server via firewall
Code:
mkdir /backup
chown zimbra:zimbra /backup
su zimbra
/opt/zimbra/libexec/zmslapcat /backup
zmcontrol stop
cp /opt/zimbra/data/ldap/hdb/db/DB_CONFIG /backup/
nice -n -20 rsync -avzH -e ssh --delete --progress /opt/zimbra/store/ root@10.0.0.2:/opt/zimbra/store
nice -n -20 rsync -avzH -e ssh --delete --progress /opt/zimbra/index/ root@10.0.0.2:/opt/zimbra/index
nice -n -20 rsync -avzH -e ssh --delete --progress /opt/zimbra/db/data/ root@10.0.0.2:/opt/zimbra/db/data
nice -n -20 rsync -avzH -e ssh --delete --progress /backup/ root@10.0.0.2:/backup
On original server, Get Values in /opt/zimbra/conf/localconfig.xml
Copy the value between <value> </value>
Code:
cat /opt/zimbra/conf/localconfig.xml | grep -A 2 zimbra_mysql_password 
cat /opt/zimbra/conf/localconfig.xml | grep -A 2 mysql_root_password
cat /opt/zimbra/conf/localconfig.xml | grep -A 2 zimbra_ldap_password 
cat /opt/zimbra/conf/localconfig.xml | grep -A 2 ldap_root_password 
cat /opt/zimbra/conf/localconfig.xml | grep -A 2 ldap_postfix_password 
cat /opt/zimbra/conf/localconfig.xml | grep -A 2 ldap_replication_password
Change the Ip address of the Orginal server.
Asign the New Server the ip address of the orginal server.
Make sure the new server has the correct hostname an ip address in /etc/hostname

On New server
Code:
cp /backup/DB_CONFIG /opt/zimbra/data/ldap/hdb/db
chown -R zimbra:zimbra /opt/zimbra/data/ldap 
/opt/zimbra/openldap/sbin/slapadd -q -b "" -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap.bak
Edit /opt/zimbra/conf/localconfig.xml
Replace the following values with the same values that were found on the old server.

* zimbra_mysql_password
* mysql_root_password
* zimbra_ldap_password
* ldap_root_password
* ldap_postfix_password
* ldap_amavis_password
* ldap_nginx_password
* ldap_replication_password

Fix Permission on New server
Code:
/opt/zimbra/libexec/zmfixperms
chown zimbra:zimbra /opt/zimbra/zmstat -R
/opt/zimbra/libexec/zmfixperms --extended
Start Server

Reference
www.tobru.ch: Migrating Zimbra to 64-Bit
Platform and OS Independent ZCS to ZCS Migration Using Rsync - Zimbra :: Wiki
Reply With Quote
  #2 (permalink)  
Old 08-25-2011, 10:48 PM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Quote:
Originally Posted by spinaltoad View Post
I found some of the migration wiki's to be confusion.
There is no confusion about moving a server from 32bit to 64bit using the wiki article, many users have followed those instructions without problems. There's only one Certified document in the Zimbra wiki that covers the subject and that's the one that should be followed, neither of the links you provide are official Zimbra documents on the subject.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 09-13-2011, 08:24 PM
Junior Member
 
Posts: 5
Default

I have followed the wiki article several times and I'm getting the following:

zimbra@fs:~$ zmcontrol -v
Release 6.0.10_GA_2692.UBUNTU10_64 UBUNTU10_64 NETWORK edition.
zimbra@fs:~$ zmprov
[] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
[] INFO: Retrying request
ERROR: zclient.IO_ERROR (invoke Connection refused, server: localhost) (cause: java.net.ConnectException Connection refused)


Since the wiki article is locked, there is no way to comment on it. I've done migrations of FOSS versions using the instructions found in the wiki with no problems....
Reply With Quote
  #4 (permalink)  
Old 09-13-2011, 11:20 PM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Quote:
Originally Posted by gbkersey View Post
Since the wiki article is locked, there is no way to comment on it. I've done migrations of FOSS versions using the instructions found in the wiki with no problems....
There's no difference between moving an NE server or an OSS server (apart from the obvious NE commands that don't apply to OSS), what's the status of the services? Is the firewall and AppArmor disabled?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 09-14-2011, 06:41 AM
Junior Member
 
Posts: 5
Default

I modified and used the script shown on this page for the FOSS migrations:
Migrating from 32 bit Centos 4.x to 64 bit Centos 5.x - Zimbra :: Wiki
That worked no problem.

When I tried following the instructions on the wiki, the official instructions, I get a problem with zmprov...

no firewall rules are set on this machine
apparmor was not a problem for the FOSS migrations. However, per your suggestion, I turned it off on the server I'm currently working on. No joy...

zmprov worked fine on the initial install of the server, however, after following the steps on Network Edition: Moving from 32-bit to 64-bit Server - Zimbra :: Wiki
I get the following error:

zimbra@fs:~$ zmprov
[] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
[] INFO: Retrying request
ERROR: zclient.IO_ERROR (invoke Connection refused, server: localhost) (cause: java.net.ConnectException Connection refused)

Could this be an ssl certificate problem?

Note that commands that rely only on ldap via zmprov work.... for instance 'zmprov -l gaa' works fine.
Reply With Quote
  #6 (permalink)  
Old 09-14-2011, 11:46 AM
Junior Member
 
Posts: 5
Default

So based on my tcpdumping of the loopback interface, zmprov is attempting to connect to port 7071 (the admin interface) and there is nothing listening there.

So, I guess my problem is that mailboxd is not running and I suppose this is due to a certificate error. I have tryied to regen the certs following the script in the migration link above, but not joy...

I'm not sure what to try next and any help would be appreciated.
Reply With Quote
  #7 (permalink)  
Old 09-14-2011, 12:38 PM
Senior Member
 
Posts: 50
Default

Have you managed to migrate your server?

If you are still trying to figure out how to perform the migration I suggest you to have a look at ZeXtras Migration Tool, a free tool specifically made to make zimbra-to-zimbra migrations easy and safe.

Check it out on the Zimbra Gallery at ZeXtras Migration Tool | Zimbra :: Gallery
__________________
Cine - Community Manager - ZeXtras
www.zextras.com
Reply With Quote
  #8 (permalink)  
Old 09-14-2011, 02:01 PM
Junior Member
 
Posts: 5
Default The solution was....

Looks like it was a certificate problem... Rick with Zimbra was nice enough to get on the machine in question and help me with the problem.

The problem was that /opt/zimbra/mailboxd/etc/keystore was messed up in some way. Could have been incorrect contents or a permissions problem....

Rick fixed the problem by doing the following:

As root:
/opt/zimbra/bin/zmcertmgr createcrt self -new
/opt/zimbra/bin/zmcertmgr deploycrt self
/opt/zimbra/libexec/zmfixperms -v -e

Then he was able to get zmmailboxd running....

Thanks!
Bo
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.