LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-05-2012, 07:52 AM   #1
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Rep: Reputation: 0
Rsync vs. DRBD


hello,
i wonder which one is better for my mail server failover and why?
Rsync vs. DRBD

best regards.
 
Old 06-05-2012, 01:38 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,674

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
No

IMOHO: What you really want is either SAN shared storage, or a cluster file system.

I love DRBD but have found it unreliable during maintenance events. An upgrade that you would not think pertaining can break it easily. If you use it you need a duplicate environment where you can test every patch and upgrade. (needed in my enterprise environment anyway, but overkill and wasteful for any smaller office)
 
Old 06-05-2012, 04:39 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
@hesisaboury:

This is very much a subjective question, and is dependent entirely on your environment. If money is available for it, I agree that a LUN (on a well-performing SAN) would be ideal. For an active-passive cluster, you wouldn't necessarily even need a clustered filesystem. For active-active, of course, you would.

I have no experience with DRBD yet, but listen carefully to wpeckham's comments. If you're going to deploy DRBD for a critical application, then be sure you have a proper test environment and procedures for vetting all system updates before doing them in production.

You probably do not want rsync(1) as a solution, unless 1) your mail server is low volume; and 2) you can accept some level of lost messages. That is an entirely different category than block-level storage (SAN LUN) or block-level replication (DRBD), BTW, so your dichotomy of "rsync vs. DRBD" probably needs more analysis and thought.

Last edited by anomie; 06-05-2012 at 04:41 PM.
 
Old 06-06-2012, 01:04 AM   #4
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
thank you guys for your guides,
i want to run failover with DRBD+pacemaker (debian Lenny) but after two weeks i haven't succeed yet, i dont know if i continue or stop it and use rsync+pacemaker..
my mail server is very important and i dont want see it's failur..


thank u...
 
Old 06-07-2012, 09:53 AM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,674

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
Mail server

Rsync is one of my goto tools. Nice fast secure. It is NOT, however, any kind of realtime solution.

I have made the combination of OpenVZ, heartbeat, and DRBD work for a high availability server, but it was tricky, fragile, and complex. There are purposes I might recommend it for, but mail is not one.

A cluster or distributed (shared) file system is perfect for what you want to do. the replication is real-time and no storage failover is required only assumption of the mail server network address. While a cluster would allow you to use two or three server and do load-share as well as instant failover, it might be overly complex for your needs. The shared filesystem and intelligent failover are the only parts you need to make this elegant.

A few years ago this would have been difficult, today there are several filesystems to choose from and dozens of how-to documents on the web. Look up some of the clusters or distributed file systems, pick a couple of the newer, and google for documents related.
 
  


Reply



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
rsync solaris + ld.so.1: rsync: fatal: libiconv.so.2: open failed: xxx_anuj_xxx Solaris / OpenSolaris 25 02-23-2012 03:23 AM
[SOLVED] rsync execution issue with crontab - Have given full path to rsync too!! Prabagaran Linux - Server 6 04-15-2011 01:39 AM
[SOLVED] rsync fails in cron - ssh key prob for rsync? jonathansfl Linux - Server 6 12-09-2010 09:48 AM
Could I run rsync to download files from a server without rsync daemon? Richard.Yang Linux - Software 1 09-18-2009 04:08 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:56 AM.

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