Virtual IP Failover - Server Migration
Virtual IP Failover setup - server migration can be done in two ways.
a) Disable Failover, migrate only the Standalone setup to a new server and configure failover from start.
b) Move both setups to new servers and manually update few entries and steps.
Note: Please have folder backup and DB backups before proceeding to the following steps. Try the below steps locally before proceeding to try them elsewhere.
Disable the Failover, migrate server and then configure failover from scratch.
- Edit the conf\Persistence\module-startstop-processors.xml file in the Primary server, remove the below entries and save.
- ModuleStartStopProcessor
CLASSNAME="com.adventnet.me.itom.framework.fos.FOSChecks" PROCESSOR_NAME="FOSChecks"/>
- ModuleStartStopProcessor CLASSNAME="com.adventnet.persistence.fos.FOS" PROCESSOR_NAME="FOS"/>
- Delete the itom_fos.conf file under conf directory.
- Connect to DB and run below queries.
delete from FOSParams;
delete from FOSNodeDetails;
(Here, Failover has been disabled. Start the service and make sure it starts as a standalone setup. Take a backup of DB here if you wish to Migrate DB as well)
- Now move the OpManager folder to the new server, and migrate the DB if required. Make sure the Standalone setup starts properly.
Note: Do not start/use the Secondary server after migration
- Configure Failover from scratch.
Move both setups to new servers and manually update where required.
Note: The new server environment should match the prerequisites.
- Move both the OpManager folders to new Primary and secondary servers respectively. Also migrate the DB to a new DB if required.
- (In the new primary server) Open command prompt as administrator and navigate to <OpManager_Home>/bin and execute networkAdapter.exe - Note down the resultant <primary_server_adapter_name>
- (In the new primary server) Edit the conf/itom_fos.conf, update the below keys and save.
- ipaddr=<Ipaddress_or_hostname_of_new_primary_server>
- fos.primary.server=<Ipaddress_or_hostname_of_new_primary_server>
- fos.secondary.server=<Ipaddress_or_hostname_of_new_secondary_server>
- publicIP.ipaddr=<virtual_ip_address>
- publicIP.Ifname=<primary_server_adapter_name&t;
- repl.remoteinstallationDir=<ShareName_Of_OpManager_Home_Folder>
Note: By default, the repl.remoteinstallationDir value will be OpManager for Essential, OpManagerCentral for Central and OpManagerProbe for Probe. If you have installed Multiple probes on a Single server and configured FOS then provide the actual share name of the OpManagerProbe folder
- (In the new secondary server) Open command prompt as administrator and navigate to <OpManager_Home>/bin and execute networkAdapter.exe - Note down the resultant <secondary_server_adapter_name>
- (In the new secondary server) Edit the conf/itom_fos.conf, update the below keys and save.
- ipaddr=<Ipaddress_or_hostname_of_new_secondary_server>
- fos.primary.server=<Ipaddress_or_hostname_of_new_primary_server>
- fos.secondary.server=<Ipaddress_or_hostname_of_new_secondary_server>
- publicIP.ipaddr=<virtual_ip_address>
- publicIP.Ifname=<secondary_server_adapter_name>
- repl.remoteinstallationDir=<ShareName_Of_OpManager_Home_Folder>
Note: By default the value of repl.remoteinstallationDir will be OpManager for Essential, OpManagerCentral for Central and OpManagerProbe for Probe. If you have installed Multiple probes on a Single server and configured FOS then provide the actual share name of the OpManagerProbe folder.
- If you use existing shared folder for the migrated FOS setup then make sure to remove the existing share and share the folder to new servers. Learn more (Follow the same steps in the above link if the new shared folder is going to be used)
- Connect to the DB and execute below queries.
- Delete from FOSNodeDetails;
(or)
select * from FOSNodeDetails;
Note: In below query, replace the old_primary and old_secondary with actual values from the above query result.
- Update FOSNodeDetails set IP='old_primary' where IP='<Ipaddress_or_hostname_of_new_primary_server'>
- Update FOSNodeDetails set IP='old_secondary' where IP='<Ipaddress_or_hostname_of_new_secondary_server>';
Note: Run the below query only if you are going to update the virtual IPAddress.
- Update FOSParams SET PARAM_VALUE='<NEW_VIRTUAL_IP>' WHERE PARAM_NAME='<OLD_VIRTUAL_IP>';
Note: Run the below query only if you are going to update the shared folder.
- Update FOSParams SET PARAM_VALUE='<NEW_SHARED_FOLDER_PATH>' WHERE PARAM_NAME='<SHARED_FOLDER_PATH>';
- Share the Primary OpManager folder to Secondary server and vice-versa. Learn more.
- Start the Primary OpManager first and then the secondary.
Thank you for your feedback!