How to Convert a Secondary Manager into a Primary Manager or Vice Versa?
To convert a secondary manager into a primary manager or vice versa, do the following:
- Stop both the primary and secondary managers.
- Then, login to the system hosting the secondary manager, which you want to convert to a primary manager.
- Proceed to edit the eg_managers.ini file in the <EG_INSTALL_DIR>\manager\config directory of the secondary manager. In the file, remove all sections except the [MANAGER_SETTINGS] section. Then, save the file.
- Then, run the setup_cluster.bat (or setup_cluster.sh file, depending upon the operating system on which the secondary manager is running) on the secondary manager. In the process, configure this secondary manager as the primary manager.
- After setup successfully completes, start the new primary manager.
- Then, connect to the primary manager via a browser, and login to it as an admin user to check if you can access the eG admin interface. If you can, then its a clear indicator that the primary manager has been successfully configured.
- Next, login to the system hosting the old primary manager, so you can convert it into the secondary manager.
- Proceed to edit the eg_managers.ini file in the <EG_INSTALL_DIR>\manager\config directory of the old primary manager. In the file, remove all sections except the [MANAGER_SETTINGS] section. Then, save the file.
- Then, run the setup_cluster.bat (or setup_cluster.sh file, depending upon the operating system on which the old primary manager is running). In the process, configure the old primary manager as the secondary manager.
- After setup successfully completes, start the new secondary manager.
- Once the procedure is complete, all eG agents will start reporting to the new primary manager by default.