Migrate Zimbra Community to New Server

Migrate Zimbra Community to New Server

Migrate Zimbra Community to New Server

** NOT RESPONSIBLE FOR DATA LOSS, BE SMART, MAKE A BACKUP /OPT FIRST **

In this blog we are migrating Zimbra Community to a new server. Let’s go over the minimum requirements one more time:

I’m Behind a NAT, you need this step:

Zimbra migration: I’m Behind a NAT, you need this step

the hostname of your Zimbra Server needs to be that of the Public nature, it CANNOT be the internal name, you will run into issues. That being said, set a Static IP, and do the Install as normal. Be aware that zimbra installs in /opt for when you get to the Disk Partitioning Area.

Once you have your VM/Dedicated Box, make sure you disable Iptables, and Ip6tables, as well as SELinux

Start by updating all Software Packages, and rebooting afterwards:

Zimbra migration: Start by updating all Software Packages, and rebooting afterwards

install the prerequisites

Zimbra migration: install the prerequisites

part 2

Zimbra migration: part 2

edit your hosts file

Zimbra migration: edit your hosts file

enter the necessary info

Zimbra migration: enter the necessary info

also disable Postfix, it’s included with the CentOS Default Install

Zimbra migration: also disable Postfix, it’s included with the CentOS Default Install

this process also requires Rsync to be installed on both servers (if not already)

Zimbra migration: this process also requires Rsync to be installed on both servers (if not already)

From here we need to do one of the following:

1) shut-down live Zimbra and rsync -avH /opt/zimbra /mnt/Backup

2) while we wait copy the installer for your present version of Zimbra to the new Server

In our case we have the installer in the /opt/Installers folder, so we are copying that over now

Zimbra migration: In our case we have the installer in the /opt/Installers folder, so we are copying that over now

in this case we need to change to the proper folder with the proper versioncd /opt/Installers/zcs-8.0.6 into the Zimbra installer folder

from here run the installer with the -s option

Zimbra migration: run the installer with the -s option

Install all packages the same as you did on your original Zimbra Server

Zimbra migration: Install all packages the same as you did on your original Zimbra Server

now the new system will be modified, obviously we want to continue

Zimbra migration: the new system will be modified, obviously we want to continue

all the original packages will be installed….

Zimbra migration: all the original packages will be installed….

perfect, just as expected….

Zimbra migration: perfect, just as expected….

now on the NEW server, rm -rf /opt/zimbra, this removes the dummy copy

Zimbra migration: on the NEW server, rm -rf /opt/zimbra, this removes the dummy copy

from here hopefully your backup has completed, now we need to restore it, mount and change to your backup directory, from here we rsync the zimbra folder to /opt

Zimbra migration: hopefully your backup has completed, now we need to restore it, mount and change to your backup…

This particular step takes forever + 1 day, don’t get too worried if it’s stuck there forever.

Zimbra migration: This particular step takes forever + 1 day, don’t get too worried if it’s stuck there forever.

completed!

Zimbra migration: completed!

now we need to fix zimbra permissions, just in case

Zimbra migration: we need to fix zimbra permissions, just in case

that step completed quickly, now we need to re-run the installer one more time to “upgrade” the databases

Zimbra migration: that step completed quickly, now we need to re-run the installer one more time to “upgrade” the…

run the installer one more time with the -s option

Zimbra migration: run the installer one more time with the -s option

accept the licence agreement if you agree

at this step, it would be a good idea to check the integrity to make sure your backup was good (unless you want to gamble with many users email)

Zimbra migration: at this step, it would be a good idea to check the integrity to make sure your backup was good…

perfect, all is installed correctly, we must now upgrade (sound silly, but in order for it to work, that’s the process)

Zimbra migration: perfect, all is installed correctly, we must now upgrade (sound silly, but in order for it to work,…

select the proper packages

Zimbra migration: select the proper packages

from here all will be upgraded

Zimbra migration: all will be upgraded

after a while you will see the following:

Zimbra migration: after a while you will see the following

From here once all is completed, su to zimbra

Zimbra migration: once all is completed, su to zimbra

zmcontrol start

Zimbra migration: zmcontrol start

at this point, you may want to shutdown your old Zimbra Server, Test Web URL, re-configure backups, verify mailflow, etc

Check these links if you are having trouble with inbound/outbound email:

http://wiki.zimbra.com/index.php?title=ZimbraMtaMyNetworks

http://wiki.zimbra.com/wiki/Incoming_Mail_Problems

That’s it!

Related guides: Install Zimbra Community CentOS 6 | Upgrade Zimbra Community Version CentOS 6

Leave a Reply

Your email address will not be published. Required fields are marked *