High AvailabilityOnly perform these steps between HA pairs
containing the same components to ensure the configuration
matches. For assistance in implementing more advanced tasks the
csync2 man pages should be consulted directly.
|
NoteCompletion of this section is optional. You may
also wish to expand on this example and generate your own more
complex configurations for other components, adding more groups
and including additional files in the sychronization tasks.
|
yum -y install csync2
csync2 -k /etc/csync2/eucalyptus.key
group eucalyptus {
host euca-walrus-ha-1;
host euca-walrus-ha-2;
key /etc/csync2/eucalyptus.key;
include /etc/csync2/csync2.cfg;
include /etc/eucalyptus/eucalyptus.conf;
include /etc/eucalyptus/drbd.conf;
include /etc/drbd.conf;
}
scp /etc/csync2/csync2.cfg /etc/csync2/eucalyptus.key euca-walrus-ha-2:/etc/csync2/
chkconfig csync2 on chkconfig xinetd on service xinetd restart
csync2 -xvd
csync2 -xv
*/5 * * * * root csync2 -x