When I restore a backup configuration from one FxM appliance to another, I notice duplicate servi
I have set up two appliances manually to have an identical case state: the same servers, services, and applications have been entered in both.
However, I modified one appliance (#1) to include some new services and servers. I wanted to copy those settings to the other appliance (#2) so I made a configuration backup of #1 and restored that backup to #2.
Now, on #2 I see that my services and applications have been duplicated. One version of the service has only historical data, the other version is collecting new data, but the historical data seems random.
What is wrong here?
Services, applications, and servers are all uniquely identified when they are created with a unique key, generated from an ID in the database. If you hand create setups on two separate appliances, these IDs will be different, so when you restore a configuration from Appliance #1 to Appliance #2, you are not copying the same items.
Because of this, you'll have a new set of service resources collecting new data, and the old resources still there.
The best way to make two machines identically configured in terms of services, servers, and applications is to create everything on Appliance #1, and restore that configuration backup to Appliance #2. The unique keys will be copied and preserved across both machines.
If you have already done this, you can either continue with two sets of services, or you can reinitialize the database, which you can do from the Setup Shell from the Advanced Configuration menu 6) by using the "Purge Metrics" command.