[Csync2] csync2 questions

Lars Ellenberg lars.ellenberg at linbit.com
Tue Dec 9 14:00:01 CET 2008


On Tue, Dec 09, 2008 at 01:56:52PM +0100, Lars Ellenberg wrote:
> On Sat, Nov 29, 2008 at 01:24:20PM -0500, Yan Morin wrote:
> > Hi,
> >
> > I have some questions and I can't find answer. I use csync2 1.34.
> >
> > I try to synchronize files between debian sid (host1) and sidux  
> > (siduxbox) and I don't understand some feature/configuration/usage.
> >
> > 1. In the paper.pdf, it is written: "Next you need to create an SSL  
> > certificate for the
> > local Csync2 server. [...] You have to do that on each host you’re  
> > running csync2 on. When servers are talking with each other fr the first  
> > time, they add each other to the database."
> >
> > What I understand is that we need to create different SSL certificate on  
> > each host. I've tried that and the SSL_connect() fail with a broken pipe  
> > (seen with strace command). When I use the same SSL certificate on both  
> > hosts, the SSL works correctly. At least, csync2 -x sends some files.
> 
> most of the csync2 installations I did do not use SSL,
> as they just go via direct link.
> maybe someone else can give you some hints there.
> 
> > 2. If I update /etc/csync2.cfg on host1 (the file is inside an include),  
> > and I proceed to csync -xv on host1, the output is:
> >
> > host1:/# csync2 -xv
> > Connecting to host siduxbox (SSL) ...
> > Updating /etc/csync2.cfg on siduxbox ...
> > While syncing file /etc/csync2.cfg:
> > ERROR from peer siduxbox: Open error while backing up '/etc/csync2.cfg':  
> > No such file or directory
> 
> "Error while backing up" ...
> 
> now, is it possible that you have a backup directory configured,
> but that backup directory does not exist?
> 
> if so, just mkdir it.
> 
> > File stays in dirty state. Try again later...
> > ERROR from peer siduxbox:
> > Finished with 2 errors.
> >
> > The message "Open error while backing up '*': No such file or directory"  
> > is for each file that I update on the primary host.
> > To remove this message, I currently need to manually remove  
> > /etc/csync2.cfg on my second host2 (siduxbox).
> >
> > 3. If I remove a file on host2 by error, is there a way to download it  
> > from host1, so that host1and host2 have the same file?
> 
> what about
> 
> host2# touch "file I don't want to remove"
> host2# csync2 -xv "file I don't want to remove"

ah.
I got the hostnames wrong.
anyways, csync2 is push only,
so either download it using some other means
or restore from backup.
(and csync2 it back; it should notice that it is the same anyways).

or go to the other host (where it still exists)
and csync2 push from there.


-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.


More information about the Csync2 mailing list