[Csync2] Sync of dissimilar hosts and dry run output deciphering
Dan Brown
danb at zu.com
Thu Apr 17 17:57:56 CEST 2008
About four months ago I setup a server, copied quite a bit of data to it
(around 60GB) and installed it in a remote collocation site about 600km away
from our primary site. At that point no csync2 initialization had been done
on the host and due to various circumstances (telco problems, remote support
problems, etc) the server didn't get initialized with csync2 until recently.
So in the meantime the primary server all of the data was originally copied
off of has changed a bit and some of the files from the original copy are no
longer there. If it weren't so much data (about 77GB now) I'd just wipe out
all of the data on the (currently) slave and re-sync it. I've only setup
replication like this locally before and never over a WAN link through the
general internet.
I did an initial sync from the primary server to the secondary server and it
updated quite a few GB of files. I would like to update from the secondary
server to the primary but it appears that it wants to re-add some files
which have been deleted off of the primary server.
I'm assuming that since my conflict resolution is "auto left;" it wont
actually re-add the files to the primary server (Demeter), but will it leave
them in a dirty state when I run csync2 -xv on the secondary server
(Persephone) until I manually remove them (all 5000!) or will it delete them
locally automatically once it realizes that the master/primary server
doesn't have them?
Once the secondary is sync'd with the primary I plan to turn the config into
a master-master setup.
My csync2.cfg file looks like this:
# Csync2 config
# file: /etc/csync2.cfg
group sitegroup
{
host demeter at demeter.sync persephone at persephone.sync;
key /etc/csync2_zugroup.key;
include /home/web/common_code_library;
include /home/ftp_data;
#!START# - Site Files - DO NOT MODIFY THIS LINE
include /clients/PCS/www/htdocs/;
include /clients/PCS-beta/www/htdocs/;
include /clients/PCS-beta-old/www/htdocs/;
include /clients/PCS-redesign/www/htdocs/;
include /clients/PCS-archive/www/htdocs/;
include /clients/PFE/www/htdocs/;
#!END# - Site Files - DO NOT MODIFY THIS LINE
action
{
do-local;
}
backup-directory /var/backups/csync2;
backup-generations 1;
auto left;
}
---
Dan Brown
danb at zu.com
More information about the Csync2
mailing list