Fwd: [CentOS] OOT: Advice on failover rsync setup

Wed Jan 17 09:38:33 UTC 2007
Indunil Jayasooriya <indunil75 at gmail.com>

Pls read the below link. It may also help you.
Pls note that when you ssh to a serverB, try it as a normal user without a

What is the Master node? Server A or Server B?


---------- Forwarded message ----------
From: Fajar Priyanto <fajarpri at cbn.net.id>
Date: Jan 17, 2007 2:14 PM
Subject: [CentOS] OOT: Advice on failover rsync setup
To: CentOS list <centos at centos.org>

Hi all,
I have a task on setting up a cluster of 2 servers for providing ftp
We use RH's Cluster suite. However the cluster setup is lack of shared
storage, so the /var/ftp/pub is mounted on each server. The cluster is set
with Master and Slave configuration (when the master is down, slave serves.
and when master is up again, slaves gives up the service back to master).

We thought of using rsync to synchronize the two directory on each server.

B -----> A
rsync -avzgorp -e ssh root at serverB:/var/ftp/pub/ /var/ftp/pub/

A -----> B
rsync -avzgorp --delete -e ssh /var/ftp/pub/ root at serverB:/var/ftp/pub/
using --delete)

We want those command to make sure that the most current and
complete /var/ftp/pub is on A and we put those command on A only.

So, are we on the right direction? Or is there any better way?
Thank you very much,
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial
3:44pm up 6:53, GNU/Linux
Let's use OpenOffice. http://www.openoffice.org

CentOS mailing list
CentOS at centos.org

Thank you
Indunil Jayasooriya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20070117/80ccf691/attachment-0005.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20070117/80ccf691/attachment-0005.sig>