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 06-21-2006, 03:06 PM
Junior Member
 
Posts: 9
Default Restore to a new(different) server

What are the exact steps to take to restore Zimbra Network Edition to a completely different box. We are trying to come up with a disaster recovery plan should the orginal Zimbra server completely fry. We are running on OS X 10.4.6.

Steps:
1. Install OS
2. Install Zimbra

This is where it gets fuzzy. Do we run /opt/zimbra/libexec/zmsetup.pl at this point and put all the info in like it was the old server?

I have and when I do a restore using zmrestore -s server.domain.com -a all -br, the address book is not complete, the COS is wrong and the Zimbra Admin Interface complains no such server.

Should we use zmrestoreldap and zmrestoreoffline?

The Zimbra Admin Guide seems a little fuzzy about restores.

I need the EXACT steps to carryout to resotre to a completely different box.
Reply With Quote
  #2 (permalink)  
Old 06-22-2006, 09:02 AM
Zimbra Employee
 
Posts: 4,792
Default

Took this information from a recent question of the same topc in our support system:

Here is some more detailed information for you...I'm running through this procedure using 3.1.3, so you'll probably want to upgrade your current box before making the move.

1. Upgrade current box to 3.1.3
2. Set up second box in parallel...mine has its own DNS server so it thinks its authoritative for itself. The new box has the same hostname as the old box, though a different IP address. When installing Zimbra, make sure you set up the same admin account. It's also nice to use the same spam and notspam accounts, just to keep the transition smooth. After the installation is complete, the new box will have the admin account and two spam accounts looking identical to the first box.
3. Back up the first box. zmbackup -f -a all
4. Tar up the backup directory. DO NOT JUST GET THE SESSION. There are some shared blobs that are used for multiple backups, and you don't want to miss those. It's easiest to tar up the whole deal and FTP or SCP it over to the new box.
5. Take down the first box. Untar the backup tarfile on the second box into the /opt/zimbra/backup directory. You want this to look the same as the backup directory on the first box.
6. Run 'zmrestoreldap' to restore the directory. This needs to be run with the Zimbra services down. This will load the distribution lists and account info.
7. 'zmrestore -a all -c -rf' What this is doing is restoring all accounts, including their entries in directory services, skipping any errors (like the admin and spam accounts), and only restoring from the full backup. This prevents the new box from trying to run any redo logs that it has sitting around.
8. 'zmrestore -sys' This will restore any local system configuration changes that were present on the old box. You could probably also do this by adding -sys to the zmrestore in step 7, but I didn't want to complicate things.

When this is all done, the new box should be ready to go up in place of the old one. You can change its IP address over and switch it back to using standard DNS, and move the old box fully offline.

This worked okay for me in testing, but obviously you'll want to run it through and check out the accounts before bringing the old box totally offline.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 11-01-2006, 07:35 PM
Member
 
Posts: 12
Default Different Hostname

How would you handle a restore to a machine with not only a different IP, but a different hostname as well? Same steps as above, but with modifying the:

/opt/zimbra/backup/ldap/$SESSION-NUMBER/ldap.bak


file so that the Zimbra server's LDAP CN is changed?? (Along with with Admin user).
Reply With Quote
  #4 (permalink)  
Old 11-02-2006, 07:04 AM
Partner (VAR/HSP)
 
Posts: 123
Default

how about same migration of multiple zimbra servers with external ldap (zimbra ldap) combined into one all-in-one server.

can use the same step?
Reply With Quote
  #5 (permalink)  
Old 12-05-2006, 11:13 AM
Partner (VAR/HSP)
 
Posts: 123
Default

just to enlighten us forumers!

just migrated my multiserver installation to a new single server setup via zimbra NE 4.0.4 from 32bit to 64bit. the new server retains the ip and hostname of the old MX.

here's what i did :
  1. create a nfs share on the new server. mounted at the main old server
  2. zmbackup -f -a all -t /mnt/shared-nfs/backup
  3. tar -cvf amavis.tar /opt/zimbra/amavisd-new-2.4.1/
  4. tar -cvf dspam.tar /opt/zimbra/dspam-3.6.2/
  5. mv *.tar /mnt/shared-nfs
  6. by right, now all the backups is ready at the new server
  7. install new zimbra, setup domains, virtual domains, install license
  8. logon to admin & rename admin account to something else
  9. tomcat stop
  10. zmconvertctl start
  11. zmrestoreoffline -a all -rf -sys -t /the/shared/dir/backup
  12. zmcontrol start
  13. verify accounts are ok.. documents.. calendars.. etc..
  14. zmprov gacf | grep -i spamis & remove unnecessary spam learning acc
  15. zmcontrol stop
  16. mv original amavis/dspam to something else
  17. untar the old amavis/dspam
  18. zmcontrol start/status

basically thats all.. new setup running fine using the ever great dspam/bayes db! no point of migrating and leave behind ur hardwork of learing spams/hams behind right?

Last edited by scalper; 12-05-2006 at 11:16 AM..
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.