Change Standalone Mode to Master/Slave
Standalone ClearOS servers can also act as replicates. The Master/Slave mode of operation is only available in the Professional/Business versions of ClearOS and not the Community or Home versions. It is unofficially possible to change from Standalone to Master/Slave.
Please take a configuration backup first and store it in a safe place so you can revert if necessary.
ClearOS 5.2
For ClearOS 5.2 you can change the way that Webconfig references the LDAP server by setting the following parameter in command line:
vi /etc/cleardirectory/config
SET:
mode = master
ClearOS 7.x
The recommended way of changing from Standalone to Master/Slave method is to reinstall ClearOS. However, the following steps have been successfully used to convert a Standalone Directory Server to a Master Directory Server without having to reset the directory. The best sequence of commands is not clear but the following worked. It is not a formal method. You have been warned.
Master
Install “Master/Slave Synchronization” from the Marketplace
Remove the following file: /var/clearos/mode/mode.conf
In the ClearOS web-based administration tool, go to “System - Settings - Master/Slave” in the menu. Set the mode to “Master”.
In Webconfig → Server → Directory → Publish Policy change to “Local Network”
Run the following commands:
/usr/clearos/apps/certificate_manager/deploy/master-slave
/usr/clearos/apps/central_management/deploy/reset-clearsync
Reboot both servers
Check that users and certificates have replicated on the slave. Have a look at the messages log for clearsyncd errors
Slave