[Csync2] Auto conflict resolution

Lars Ellenberg lars.ellenberg at linbit.com
Thu May 22 15:52:25 CEST 2008


On Mon, May 19, 2008 at 11:39:29AM +0200, Robert Heinzmann (ml) wrote:
> Hello list,
>
> I would appreshiate some feedback on the following question.
>
> For test purpose I set up a two node csync replication system. It is a  
> strict "master/slave" system with node1 as master and node2 as slave.  
> The config file contains
>
>  "host node1 (node2);" 
>
> to make sure everything is replicated in one direction only. Lets also  
> assume only directory synced is /srv.
>
> In case node1 fails, node2 is activated with quite current data (I use  
> iwatch/inotify + hints DB doing frequent updates).
>
> Image node1 comes back up. The csync cron job is still running, however  
> the data in /srv gone - the directory is empty.

uhm.
why would that happen?

> Also node1 still has the  
> config file with "host node1 (node2);"  in it (because turned on at  
> night by the provider). Would node1 remove all files on node2 during the  
> first run of csync on node1 ?
>
> If so, how can I avoid this when having NO access to node1 ?
>
> I thought of
> a) disabeling csync service in /etc/xinetd.d
> or
> b) editing the config file on node2 to contain "host (node1) node2;"
>
> Would this help ?

touch /etc/csync2.lock

-- 
: Lars Ellenberg                            Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH      Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe    http://www.linbit.com :


More information about the Csync2 mailing list