Git Product home page Git Product logo

csync2's Introduction

About this repository

This repository was meant as a placeholder to have a csync2 2.0 debian package. Ubuntu now includes a recent csync2 package.

There is an excellent mailinglist for questions about csync2. Please post questions or bug reports there: http://lists.linbit.com/mailman/listinfo/csync2

For bugs regarding the csync2 package installed from this git repository: https://github.com/rvanlaar/csync2/issues

About csync2

Csync2 is a cluster synchronization tool. It can be used to keep files on multiple hosts in a cluster in sync. Csync2 can handle complex setups with much more than just 2 hosts, handle file deletions and can detect conflicts.

It is expedient for HA-clusters, HPC-clusters, COWs and server farms. If you are looking for a tool to sync your laptop with your workstation, you better have a look at Unison (http://www.cis.upenn.edu/~bcpierce/unison/) too.

See http://oss.linbit.com/ for more information on csync2. The csync2 git tree can be found at http://git.linbit.com/csync2.git/.

Copyright

csync2 - cluster synchronization tool, 2nd generation Copyright 2004 - 2013 LINBIT Information Technologies GmbH http://www.linbit.com; see also AUTHORS

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Documentation

The latest version of the csync2 documentation can be found online at

http://oss.linbit.com/csync2/paper.pdf

You should definitely read the documentation before trying to setup csync2.

The TeX source of the paper (as well as some slides for csync2 presentations) can be found at http://git.linbit.com/csync2.git/doc/csync2_paper.tex

The csync2 releases also have a copy of the 'paper.pdf' file (and the TeX source) bundled in the csync2 source tarball.

More Documentation

Eric Liang wrote a nice step-by-step introductions for using csync2 on redhat machines:

http://zhenhuiliang.blogspot.com/2006/04/csync2-is-so-cool.html

Mailing List

There is a csync2 mailing list:

http://lists.linbit.com/mailman/listinfo/csync2

It is recommended to subscribe to this list if you are using csync2 in production environments.

csync2's People

Contributors

battlerock avatar infinoid avatar lge avatar mika avatar rvanlaar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ar45

csync2's Issues

ERROR from xxx Permission denied

I have 2 machine, freebsd.epl3.org is master (Running FreeBSD 8.4), elk.epl3.org is slave (Running CentOS 7).

csync2 ver: 1.34
sync folder: /d1/www (permission 777, owner root )
daemon running user as root
csync2.cfg

nossl * *;
group mygroup
 {
        host freebsd.epl3.org (elk.epl3.org);

        key /etc/csync2/mygroup.key;

        include /d1/www;
	
}

csync2 -Tvvv

My hostname is freebsd.epl3.org.
Database-File: /var/db/csync2/freebsd.epl3.org.db
Config-File:   /usr/local/etc/csync2.cfg
Running in-sync check for freebsd.epl3.org <-> elk.epl3.org.
Connecting to host elk.epl3.org (PLAIN) ...
Local> CONFIG \n
Peer> OK (cmd_finished).\n
Local> HELLO freebsd.epl3.org\n
Peer> OK (cmd_finished).\n
Local> LIST elk.epl3.org -
Local>  IXj6q4tTQ5AuXx2bOhYk6sxZ_9IGI.0OI__A2BFc5zhReaSLjfrf0jkIxvZEtg9O
Local> \n
SQL: SELECT checktxt, filename FROM file  ORDER BY filename
Match (+): /d1/www on /d1/www
Peer> OK (cmd_finished).\n
End of query results: OK (cmd_finished).
L	freebsd.epl3.org	elk.epl3.org	/d1/www
SQL Query finished.
Local> BYE\n
Peer> OK (cu_later).\n
SQL: SELECT command, logfile FROM action GROUP BY command, logfile
SQL Query finished.
Finished with 0 errors.

#csync2 -xvvv

My hostname is freebsd.epl3.org.
Database-File: /var/db/csync2/freebsd.epl3.org.db
Config-File:   /usr/local/etc/csync2.cfg
Running recursive check for / ...
SQL: SELECT filename from file where filename = '/' or 1 ORDER BY filename
SQL Query finished.
Checking /* ..
Don't check at all: /var
Don't check at all: /usr
Don't check at all: /tmp
Don't check at all: /sys
Don't check at all: /sbin
Don't check at all: /root
Don't check at all: /rescue
Don't check at all: /proc
Don't check at all: /mnt
Don't check at all: /media
Don't check at all: /libexec
Don't check at all: /lib
Don't check at all: /etc
Don't check at all: /entropy
Don't check at all: /dist
Don't check at all: /dev
Checking /d1/* ..
Match (+): /d1/www on /d1/www
Checking /d1/www.
SQL: SELECT checktxt FROM file WHERE filename = '/d1/www'
SQL Query finished.
Checking /d1/www/* ..
Don't check at all: /compat
Don't check at all: /cdrom
Don't check at all: /boot
Don't check at all: /bin
Don't check at all: /COPYRIGHT
Don't check at all: /.snap
Don't check at all: /.profile
Don't check at all: /.cshrc
SQL: SELECT peername FROM dirty GROUP BY peername ORDER BY random()
SQL Query finished.
SQL: SELECT filename, myname, force FROM dirty WHERE peername = 'elk.epl3.org' ORDER by filename ASC
SQL Query finished.
Connecting to host elk.epl3.org (PLAIN) ...
Local> CONFIG \n
Peer> OK (cmd_finished).\n
Local> HELLO freebsd.epl3.org\n
Peer> OK (cmd_finished).\n
Match (+): /d1/www on /d1/www/test.txt
Deleting /d1/www/test.txt on elk.epl3.org ...
Local> SIG IXj6q4tTQ5AuXx2bOhYk6sxZ_9IGI.0OI__A2BFc5zhReaSLjfrf0jkIxvZEtg9O /d1/www/test.txt\n
Peer> Permission denied!\n
While syncing file /d1/www/test.txt:
ERROR from peer elk.epl3.org: Permission denied!
File stays in dirty state. Try again later...
Match (+): /d1/www on /d1/www
Updating /d1/www on elk.epl3.org ...
Local> FLUSH IXj6q4tTQ5AuXx2bOhYk6sxZ_9IGI.0OI__A2BFc5zhReaSLjfrf0jkIxvZEtg9O /d1/www\n
Peer> Permission denied!\n
While syncing file /d1/www:
ERROR from peer elk.epl3.org: Permission denied!
File stays in dirty state. Try again later...
Local> BYE\n
Peer> OK (cu_later).\n
SQL: SELECT command, logfile FROM action GROUP BY command, logfile
SQL Query finished.
Finished with 2 errors.

why I get permission denied ?

Csync2 not syncing files included in the conf folder

I followed all the easy conf step found in the paper, but even if the csync2 looks working no file are synced.

Do you know what can be the issue?

My conf is very simple and include 2 hosts.

Just to give some hint when I try the sync with csync2 -xv I get

Connection closed.
Finished with 0 errors.

But no file are synced.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.