Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 07-22-2002, 03:03 PM   #1
Registered: Jan 2002
Location: Austin, Texas
Posts: 31

Rep: Reputation: 16
data mirror between machines

I need to setup redundant mail servers, using qmail, freebsd, and sqwebmail. The servers each need to have the same data, so that if the primary fails, the secondary can take over seamlessly. I have 2 problems:

1) how do i mirror the data between the 2 constantly?

2) how do I make the secondary take over as soon as the primary fails?

The servers will be on a lan, the pipes to the internet are already redundant.
Old 07-25-2002, 10:58 PM   #2
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Rep: Reputation: 30
A couple of solutions to bring to discussion.

The matter of failover should be pretty well taken care of using linux-ha (heartbeat). If you're not familiar with it, you configure the daemon on two boxes and set up a virtual IP to be the active one. Designate one of the hosts to be the primary or master host. The two hosts are connected via a null-modem cable through which hello packets are sent from the secondary to the master to determine if he is still alive. As soon as the secondary host detects no response from the master, he siezes control of the virtual IP and continues to serve where the other guy left off. We're using this to make our Squid proxies redundant; coupled with round robin DNS, you can also enable load balancing between two hosts (two virtual IPs).

As for the matter of data replication, you may consider something like rsync, but this I fear will he harder with mail servers than some other types of hosts, what with syncing mailboxes and queues, etc.

Hopefully that gives you something to look at.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Using rsync to mirror data between servers david_ross LinuxAnswers Discussion 8 03-29-2012 01:37 AM
Mapping Windows share, then mirror data loadedmind Linux - Networking 5 02-07-2008 03:25 AM
How can I instantly mirror data from 1 linux server to another? abefroman Linux - Enterprise 10 01-13-2005 02:58 AM
Migrating data and settings between distros or machines kainhart Linux - General 0 07-01-2004 10:09 AM
Rsync to mirror data for backup - having difficulties tapanga Linux - Newbie 1 05-17-2004 05:45 PM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 02:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration