[Csync2] How to force-check all files?

Lars Ellenberg lars.ellenberg at linbit.com
Tue Aug 19 11:35:44 CEST 2008


On Mon, Aug 18, 2008 at 05:37:37PM -0700, Ask Bjørn Hansen wrote:
> Hi,
>
> We have a setup with two masters (generally we only update files on one 
> of them) and about a dozen "slaves".
>
> Our workflow is to update a file on one of the masters and then run  
> "csync2 -x -v" to push them out everywhere.   I understand that using  
> csync2 to basically update a bunch of read-only copies is sorta like  
> fishing with dynamite, but it mostly works for us -- the actions and the 
> configuration file is much easier to use than scripts running rsync and 
> checking rsync logs to accomplish the same.
>
> However - one thing never seems to work right for me.
>
> When we install a new box I have to touch the files and force it to  
> update them -- how do I avoid that?  Or more generally: How can I make  
> csync2 check that it really does have all the files updated everywhere?

init new (slave) box:
new (slave)# csync2 -cIr /
compare databases:
old master# csync2 -cr / ; csync2 -TIUX
update: 
old master# csync2 -uv

-- 
: Lars Ellenberg                
: LINBIT HA-Solutions GmbH
: DRBD®/HA support and consulting    http://www.linbit.com

DRBD® and LINBIT® are registered trademarks
of LINBIT Information Technologies GmbH


More information about the Csync2 mailing list