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/*On orginal Server, pepare for move day.Code:mkdir -p /opt/zimbra/data/ldap/hdb/db /opt/zimbra/data/ldap/hdb/logs
Move Day, on orginal server, Block access to server via firewallCode: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
On original server, Get Values in /opt/zimbra/conf/localconfig.xmlCode: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
Copy the value between <value> </value>
Change the Ip address of the Orginal server.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
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
Edit /opt/zimbra/conf/localconfig.xmlCode: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
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
Start ServerCode:/opt/zimbra/libexec/zmfixperms chown zimbra:zimbra /opt/zimbra/zmstat -R /opt/zimbra/libexec/zmfixperms --extended
Reference
www.tobru.ch: Migrating Zimbra to 64-Bit
Platform and OS Independent ZCS to ZCS Migration Using Rsync - Zimbra :: Wiki


LinkBack URL
About LinkBacks


