Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

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-30-2010, 11:12 PM
Senior Member
 
Posts: 63
Talking Two zimbra server syncing with each other.

Hi,

Were running ZCS 6.04 Open source for two years now on Ubuntu 8.04 guest in Win2k3 host (both 32bit). Its a single server install.

Our zimbra server uses a public IP and is also the single mx in our domain. I would like to setup two mx for failover in case one of the two ISP's were using suddenly cuts-off or a server fails.

I would like the two zcs server to have the same message content. That is either one of them is updating one another with the latest email received/delivered.

Is it possible? How can I do this? I'm not good at scripts but I can follow directions.

Thanks
Reply With Quote
  #2 (permalink)  
Old 07-01-2010, 08:02 AM
Partner (VAR/HSP)
 
Posts: 425
Default

See: Bug 11423 – disaster recovery through server to server sync (beta)
Reply With Quote
  #3 (permalink)  
Old 07-02-2010, 08:38 AM
Senior Member
 
Posts: 63
Default

Reading from the comments, this has been going since Franklin. We started using ZCS during 5.0 up to 6.04 at the present.

Were just too hasty to drop Domino for Zimbra two years ago due to flooding spam and drastic cost cuting. Geez, maybe we should consider going back to domino next year if this does not come up in Zimbra 7.

DRBD+Heartbeat and two zimbra server...hmm..must give it a shot.

Thanks for the info.
Reply With Quote
  #4 (permalink)  
Old 07-08-2010, 02:11 PM
Moderator
 
Posts: 1,432
Default

If network latency/bandwidth between the two servers aren't issues, then I agree DRBD is probably the best way to get real-time syncing. But an alternative might be imapsync--for email, at least. Here are a couple related links; you might find more if you search the forums:

Synchronising to a Remote Backup Machine
Scripts to sync to a remote Zimbra backup machine - Zimbra :: Wiki
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #5 (permalink)  
Old 07-10-2010, 03:17 AM
Senior Member
 
Posts: 63
Default

Thanks for all the info.

Our zimbra users are increasing from 50 to 90+. I think its time have a working standby server.
Reply With Quote
  #6 (permalink)  
Old 07-10-2010, 04:22 AM
Senior Member
 
Posts: 63
Default

After reading the topic you refer to me, I 've got the following questions:

1. Can I install imapsync on a different box and use it to sync two zimbra servers?

2. If zimbra1 fails and I've put zimbra2 online does it sync back to zimbra1 if zimbra1 becomes online (deleting new messages and copying exactly what zimbra1 contains) or zimbra2 will update messages in zimbra1? or it would not sync at all?
Reply With Quote
  #7 (permalink)  
Old 07-10-2010, 06:13 AM
Moderator
 
Posts: 1,432
Default

Sorry, I don't know the answers to either of those questions. I think you can install/run imapsync anywhere. As for your second question I'd assume it depends on the script you wrap around imapsync.

There are a number of threads discussing various approaches to backup and DR for both FOSS and NE. Before zeroing in any one I'd consider bandwidth & latency between the primary and backup, how up to date the backup must be, whether you're willing to stop zimbra periodically, whether you're willing to invest time or money in storage layer snapshot technology, or in VM replication, etc.

I don't personally use imapsync--I need to protect calendar data as well as mail. DRBD is attractive but I'm not sure our WAN link between servers is sufficient. Therefore while I wait for Zimbra to develop a native replication feature, since I have NE, I rely on periodically rsyncing the NE backups along with redologs.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #8 (permalink)  
Old 07-11-2010, 09:33 PM
Senior Member
 
Posts: 63
Default

Ok, I'm not implementing this yet until I have answers to my questions.

Anyway I'm considering cold backup doing it with rsync scheduled via crontab. I'm not doing it over WAN since my backup server is inside the same network.

Also I'm putting up a Zimbra Desktop server where all accounts are in there for up to the minute retrieval of email. (In case I switch on to backup when my primary fails.)

As for remote backup/sync of zimbra server, I'd rather wait for that feature in Helix.

I just want to have a backup fail over even there a few hours downtime involve. Not necessarily HA but something I could switch on in case my primary server fails.
Reply With Quote
  #9 (permalink)  
Old 07-11-2010, 09:54 PM
Moderator
 
Posts: 1,432
Default

For rsync with FOSS you'll have to stop Zimbra services. Read this thread for tips on minimizing downtime: Zimbra OSE backup without stopping the services

But I would also search on DRBD because there have been some threads on that which make it seem very good for your purpose. These are the chief ones:

[SOLVED] Zimbra on DRBD
How to: cold standby server (no cluster) (read down a bit, the opening post is about NE cold standby using rsyncing of the NE backup data)
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #10 (permalink)  
Old 07-13-2010, 12:20 AM
Senior Member
 
Posts: 63
Default

Ok this is truly usefull. I'm still new to Linux though, its only 2 days ago that I've learned how to use crontab and is now trying out ssh with rsync.

I'm gonna try this one step at the time. I'll start with the less complicated stopping services then doing rsync then moving with lvm (I still going to do a research on this). I have a whooping 90GB Zimbra server and copying it takes 2+ hours on gigabit network. Though downtime is not an issue for most of our users but I like the idea of less than 3 mins. downtime with lvm mirroring.

Goodthing theres GUI frontend in Ubuntu for rsync and crontab.

Thanks for the help.
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.