Migration Zimbra

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
softdown1
Posts: 5
Joined: Wed Oct 20, 2021 9:12 am

Migration Zimbra

Post by softdown1 »

Hi all,

We have zimbra open source edition installed on Physical server.

We want to migrate zimbra from physical server to Virtual Machine,

Can any budy guide on this..


Regards
User avatar
ianw1974
Outstanding Member
Outstanding Member
Posts: 233
Joined: Sat Sep 13, 2014 12:45 am
Location: UK and Poland
Contact:

Re: Migration Zimbra

Post by ianw1974 »

kyiu
Posts: 30
Joined: Fri Mar 08, 2019 4:06 pm

Re: Migration Zimbra

Post by kyiu »

I recently done a migration from a locally running server to a hosted vps. I did the following steps and successful moved my Zimbra server to the vps. It should work just the same to migrate to a new hardware....

Preparing the existing server for the migration
- stop zimbra service
# su zimbra
$ zmcontrol stop
$ exit
-create portable ldap file
# cd /opt/zimbra/data/ldap/mdb/db
# tar cvzspf data.mdb.tar.gz data.mdb

Copy the Zimbra files to a backup direct
# mkdir /opt/backkup
#rsync --progress --archive --verbose --hard-links \ --exclude=zimbra/data/ldap/mdb/db/data\.mdb --exclude=zimbra/backup \ --exclude=zimbra/redolog /opt/zimbra /opt/backup

Prepare new zimbra server
- Install Zimbra server (same version as the old server)
** make sure to setup the server to <same hostname> and <admin id><password> as the old server
- Copy the backup files to the new server (/opt/backup/zimbra)
- Delete (or rename) the zimbra directry
# mv /opt/zimbra /opt/zimbra_old
# mv /opt/backup/zimbra /opt/zimbra
# cd /opt/zimbra/data/ldap/mdb/db
# rm data.mdb #(if exists)
# tar xvf data.mdb.tar.gz

We need to run the install.sh again to put the correct libraries, etc in place.
# cd <installation_directry>
# ./install.sh --skip-activation-check

Make sure the firewall is correctly setup to allow for access.
check the access to the new server: https://<ip_address>

BTW, I'm running version 8.8.15

Good luck....
Post Reply