Results 1 to 2 of 2

Thread: Migrate Zimbra data from one Zimbra server to another (different DNS)

  1. #1
    Join Date
    Apr 2007
    Posts
    7
    Rep Power
    8

    Default Migrate Zimbra data from one Zimbra server to another (different DNS)

    I am looking for a way to migrate the complete configuration of a mail server from one server (let's call it A) to another (called B). The DNS entries of the servers are different and I would like to keep it that way if possible. The whole purpose of this exercise is to set up a test bed for updating server A to 4.5.4 so as to verify that data loss will not occur, while at the same time verifying that we can have something of an easily restored backup if necessary.

    Installation on server A is ZCS 4.5.1 on Intel OSXS 10.4.9.
    Installation on server B is ZCS 4.5.1 on PPC OSX 10.4.9.

    I did a full export from server A with the following command (or at least I think I did):
    zmbackup -f -z -a all -t /opt/zimbra/backup/full/

    I then transferred the contents of the full directory to the same directory on the other server (incidentally, I thought that the -z switch was supposed to zip the files...?). I then ran this command:
    zmrestore -a all -sys -rf -c -t /opt/zimbra/backup/full

    The restore did not seem to display any fatal errors, but it was not able to import the current email accounts (which are formatted like this: username@a.domainname.com).

    Since then the services will not start on server B. I attempted to uninstall Zimbra on server B using ./install-mac.sh -u but a subsequent reinstall errored out. I am not overly concerned with this part at the moment, but I am getting a little worried about being able to get a zimbra installation back up and running in the case of server failure.

    Any help would very much be appreciated.

  2. #2
    Join Date
    Sep 2005
    Posts
    57
    Rep Power
    10

    Default

    Hi,

    The -z option only zips the blobs subdirectory within each account directory. It does not zip the entire backup session.

    I'm not sure what is going on. I suggest you try out the steps in this wiki page:

    http://wiki.zimbra.com/index.php?tit...aster_Recovery

    The main difference is the use of zmrestoreoffline as opposed to zmrestore.

    You mentioned you are keeping DNS entries separate on A and B. Does that mean the ZCS install on host B will use a different domain and server name from the original install? Try making B look like A to Zimbra. Add A to 's /etc/hosts to point to itself, and use A as domain/hostname during installation. (I haven't tried this myself, but I think it will work. Notice the wiki entry assumes you've taken down A or changed its hostname and the new machine owns the old IP/hostname before starting the ZCS install.)

    Also, from your initial restore attempt, are you sure there were no errors? Try restarting tomcat after appending "log4j.logger.zimbra.backup=DEBUG" to /opt/zimbra/conf/log4j.properties, then run restore again.
    Bugzilla - Wiki - Downloads - Before posting... Search!

Similar Threads

  1. Replies: 31
    Last Post: 12-15-2007, 08:05 PM
  2. Zimbra shutdowns every n hours.
    By Andrewb in forum Administrators
    Replies: 13
    Last Post: 08-14-2007, 08:55 AM
  3. Removing hostname from hosts file fixed prob.
    By lemur in forum Installation
    Replies: 10
    Last Post: 06-13-2007, 06:29 PM
  4. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 11:45 AM
  5. Unable to start tomcat
    By chanck in forum Administrators
    Replies: 11
    Last Post: 06-11-2006, 12:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •