[linux-lvm] Query regarding remote replication module

Stuart D. Gathman stuart at bmsi.com
Fri Sep 16 18:00:49 UTC 2011


On Fri, 16 Sep 2011, Namrata Pawar wrote:

>  As suggested in http://markmail.org/message/bm7kvlcqbkahkigr thread, I need
>  to use remote replication module for setting up dual site mirror.
> 
> Where would I find that module; If its not in mainline?

Included in CentOS-5 is DRBD [drbd.org], which works great with LVM.  Use
iostat to measure average disk write bandwidth for the LV over a day and
highest average over 5 secs to give average and peak bandwidth.  If peak
bandwidth fits in your comm bandwidth, you can use DRBD directly with few
performance problems.

If peak doesn't fit, but average does, you can use a commercial smart buffer
proxy product from the company that sponsors the open source DRBD project.  The
smart buffer is an arbitrary size (using disk backup if needed) and optimizing
writes while maintaining effective write ordering.  There are no delays on the
primary system with the smart buffer, but the remote mirror can be delayed an
arbitrary amount of time (less than a day if your daily average finds in the
comm bandwidth).

We have a poor mans solution - we disconnect DRBD during working hours,
so their peak disk writes don't cause performance problems on their
T1 internet, then turn it back on again every evening.  DRBD syncs back up when
reconnected (you need to take an LVM snapshot first since consistency is not
maintained during the resync).

Disclaimer: I'm a happy user of the open source product - I've never tried the
smart buffering proxy, and our clients haven't needed it bad enough to pay for
it.  But it sounds great.

--
 	      Stuart D. Gathman <stuart at bmsi.com>
     Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.




More information about the linux-lvm mailing list