Csync2 Configuration

Tip:

Steps 1-4 should be performed on the first node.

  1. Create the configuration file:
    # vi /usr/local/etc/csync2.cfg
  2. 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;
    }
  3. Generate the encryption key:
    # csync2 -k /usr/local/etc/csync2.key_ha
  4. 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/
  5. 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