Csync2 Configuration
Tip:
Steps 1-4 should be performed on the first node.
- Create the configuration
file:
# vi /usr/local/etc/csync2.cfg
- Paste the following content into the
file:
nossl * *; group csxiha { host <node1_hostname>; host <node2_hostname>; key /usr/local/etc/csync2.key_ha; include /etc/xiraid/raids; }
- Generate the encryption
key:
# csync2 -k /usr/local/etc/csync2.key_ha
- Copy the configuration file and the generated key to the second
node:
# scp /usr/local/etc/csync2.cfg /usr/local/etc/csync2.key_ha <node2_hostname>:/usr/local/etc/
- Configure the firewall on both nodes to allow incoming TCP traffic on port
30865.
Firewall-cmd example:
# firewall-cmd --add-port=30865/tcp # firewall-cmd --permanent --add-port=30865/tcp