[Csync2] -T shows files with "L", but -u doesn't transfer tehm
Dustin Mitchell
dustin at mozilla.com
Thu May 24 22:57:58 CEST 2012
Apologies for the self-reply, but I've replicated in a simpler case.
Set up /tmp/bar on nodes A and B with /etc/csync2_bar.cfg:
group foo {
host A;
host B;
key /etc/csync2/keys/bar.key;
include /tmp/bar;
auto first;
}
and put /tmp/bar/fromA in the dir on A, and similarly on B.
Run 'csync2 -x -C bar' on both hosts.
Each now has /tmp/bar/from{A,B}, as expected.
Now, add a node C, update all configs to contain
group foo {
host A;
host B;
host C;
key /etc/csync2/keys/bar.key;
include /tmp/bar;
auto first;
}
and put /tmp/bar/fromC on node C.
Run 'csync -x -C bar' to your heart's content on all three nodes.
On A and B you will see /tmp/bar/from{A,B,C}.
On C you will see /tmp/bar/fromC only.
This is with csync2 version 2.0.
In this test situation, the only fix I've found is to blow away the DB on node A or B. Once that db is reconstructed and things are synchronized, new files get distributed as expected.
I'm also using csync2 to synchronize large yum repositories, so this is hardly a happy step to have to take when putting a new node into a cluster!
Dustin
More information about the Csync2
mailing list