1
gsycnd, the Gluster Syncdaemon
2
==============================
7
_gsyncd_ is a program which can operate either in _master_ or in _slave_ mode.
8
Requirements are categorized according to this.
10
* supported OS is GNU/Linux
11
* Python >= 2.5, or 2.4 with Ctypes (see below) (both)
12
* OpenSSH >= 4.0 (master) / SSH2 compliant sshd (eg. openssh) (slave)
14
* glusterfs with marker support (master); glusterfs (optional on slave)
15
* FUSE; for supported versions consult glusterfs
20
As of now, the supported way of operation is running from the source directory.
22
If you use Python 2.4.x, you need to install the [Ctypes module](http://python.net/crew/theller/ctypes/).
27
gsyncd tunables are a subset of the long command-line options; for listing them,
32
and see the long options up to "--config-file". (The leading double dash should be omitted;
33
interim underscores and dashes are interchangeable.) The set of options bear some resemblance
34
to those of glusterfs and rsync.
36
The config file format matches the following syntax:
42
By default (unless specified by the option `-c`), gsyncd looks for config file at _conf/gsyncd.conf_
48
gsyncd is a utilitly for continous mirroring, ie. it mirrors master to slave incrementally.
49
Assume we have a gluster volume _pop_ at localhost. We try to set up the following mirrors
53
2. local gluster volume _yow_
54
3. _/data/far_mirror_ at example.com
55
4. gluster volume _moz_ at example.com
57
The respective gsyncd invocations are (demoing some syntax sugaring):
61
gsyncd.py gluster://localhost:pop file:///data/mirror
65
gsyncd.py :pop /data/mirror
70
gsyncd.py :pop ssh://example.com:/data/far_mirror
74
gsyncd.py :pop example.com:/data/far_mirror
76
4. `gsyncd.py :pop example.com::moz`
78
gsyncd has to be available on both sides; it's location on the remote side has to be specified
79
via the "--remote-gsyncd" option (or "remote-gsyncd" config file parameter). (This option can also be
80
used for setting options on the remote side, although the suggested mode of operation is to
81
set parameters like log file / pid file in the configuration file.)