Note down the addresses or fqdn for each of the systems and ensure both the systems are reachable.
genie FQDN\IP address: 192.168.1.72
specter FQDN\IP address: 192.168.1.73
Setting up replication in first server
Now we are running yce_setup.pl in the genie to add specter.
The interactive setup to add the new server begins as below: Type [A] to add.
Specifying further details such as hostname, domain name, ipv4 and ipv6(if applicable or "none")
Verify the name and address of the specter server is correct. If so press "C" to continue:
Enter the details for YCE Server roles as below:
Use appropriate answers in 'specter' is DNS resolvable? In case of this lab setup they were not DNS resolvable.
Note the database ids used here:
genie Db-id - 1
specter Db-id - 2, we have to use same values in the specter setup:
Verify the details of the YCE server role and 'C' to continue as below:
Verify the details of YCE server database mapping. If they don't need any changes use 'C' to continue.
Continue the wizard for finally creating configuration for genie.netyce.org
Setting up replication in second server:
Similar steps to execute on 'specter' now:
Run yce_setup.pl to add 'genie' this time:
Enter the YCE-Server roles as below:
Use appropriate options under 'DNS resolvable y/n'
Note that the database-id value for specter is changed from '1' to '2'. This is to keep same settings as in 'genie'
Fill in the details for (2) genie.netyce.org as below:
Confirm the yce server database mapping:
Complete the further prompts to generate the configuration file for specter.
Start Replication slave
Access the GUI,
(1) System -> System Status -> (2) Start Replication Slave
Verification
Verify the Replication status is "OK" on both the servers under Database status in the same page.
Note:
In case of out-of-sync databases that need to be resolved use ck_dbsync.pl -x -R in each of the servers one after the other.
This performs a 'repair-all' for both the databases. Access ck_dbsync.pl -h for more help.