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.
For ClearOS 5.2 you can change the way that Webconfig references the LDAP server by setting the following parameter in command line:
mode = master
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.
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:
Reboot both servers
Check that users and certificates have replicated on the slave. Have a look at the messages log for clearsyncd errors
There can be “data loss” with this as the UID and GID associated with any LDAP user or group will change. Any existing files or folders set up by users created through the Webconfig could end up being owned by someone else who inherits the users former UID from the Master LDAP, or being owned by no one.
Join the slave to the master via the ClearOS GUI