[CentOS] OOT: Advice on failover rsync setup

Wed Jan 17 08:44:56 UTC 2007
Fajar Priyanto <fajarpri at cbn.net.id>

Hi all,
I have a task on setting up a cluster of 2 servers for providing ftp service.
We use RH's Cluster suite. However the cluster setup is lack of shared network 
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
with:
rsync -avzgorp -e ssh root at serverB:/var/ftp/pub/ /var/ftp/pub/ 

A -----> B 
with:
rsync -avzgorp --delete -e ssh /var/ftp/pub/ root at serverB:/var/ftp/pub/ (note: 
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 
http://linux2.arinet.org
3:44pm up 6:53, 2.6.16.13-4-default GNU/Linux 
Let's use OpenOffice. http://www.openoffice.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20070117/7d03d523/attachment-0004.sig>