Network Management
How to rebuild SolarWinds High Availability
This article describes how to rebuild SolarWinds High Availability (HA).
First published date
Last published date
Overview
- failovers not occurring
- incorrect service member types
- problems making members active
- server status is critical on HA deployment summary page
Product section
Cause
Tables:
- HA_Audit
- HA_FacilitiesInstances
- HA_PoolMemberInterfacesInfo
- HA_PoolMembers
- HA_Pools
- HA_ResourcesInstances
Resolution
***IMPORTANT***
This procedure involves updating the values in the Orion database. SolarWinds recommends backing up your database before proceeding. See How to Backup the Orion SQL database.
SolarWinds strongly recommends that you back up your registry before making any edits to your system registry. You should only edit the registry if you are experienced and confident in doing so. Using a registry editor incorrectly can cause serious issues with your operating system, which could require you to reinstall your operating system to correct them. SolarWinds cannot guarantee resolutions to any damage resulting from making registry edits.
Steps to Rebuild HA - Do not skip any steps and follow the order
- RDP to Main Poller
- Open the Command Prompt, and set the current directory to the Orion installation directory.
- Execute the following command in Command Prompt to disable the High Availablity across all Orion servers:
HAEnableDisable /DisableHA
- Create a backup of the Windows Registry.
- Open Services.msc
- Stop the SolarWinds High Availability service to prevent it from writing to the database while High Availablity is being rebuilt.
- Stop all services using the Orion Service Manager
- Repeat steps from step 4 to step 7 on the Standby server.
- Use the Database Manager to run the following SQL query and truncate HA tables:
-- Scripts are not supported under any SolarWinds support program or service. -- Scripts are provided AS IS without warranty of any kind. SolarWinds further -- disclaims all warranties including, without limitation, any implied warranties -- of merchantability or of fitness for a particular purpose. The risk arising -- out of the use or performance of the scripts and documentation stays with you. -- In no event shall SolarWinds or anyone else involved in the creation, -- production, or delivery of the scripts be liable for any damages whatsoever -- (including, without limitation, damages for loss of business profits, business -- interruption, loss of business information, or other pecuniary loss) arising -- out of the use of or inability to use the scripts or documentation. TRUNCATE TABLE HA_Pools TRUNCATE TABLE HA_PoolMembers TRUNCATE TABLE HA_PoolMemberInterfacesInfo TRUNCATE TABLE HA_FacilitiesInstances TRUNCATE TABLE HA_Audit TRUNCATE TABLE HA_ResourcesInstances
***NOTE***
For High Availability 1.0, change HA_Audit to HA_ResourcesTypes
Note: In the event that Orion is with multiple Polling Engines
To fix issues on Specific Servers refer to the Article: Remove orphaned standby High Availability servers
- Check the High Availability registry on the Active Main Poller, Standby, and all Additional Pollers.
- Open the Registry Editor (regedit.exe)
- Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Solarwinds\HighAvailability
- Examine the InstallType and RunType values and double-click them to update (if necessary). Verify the following:
- On the active primary polling engine, both InstallType and RunType values must be MainPoller.
- On the Standby primary polling engine, both InstallType and RunType values must be MainPollerStandby.
- On an active APE, both InstallType and RunType values must be AdditionalPoller.
- On a Standby APE, both InstallType and RunType values must be AdditionalPollerStandby.
- Start the SolarWinds High Availability Service on the primary server using the Services.MSC.
- Make sure to set Startup Type to the following On Active Poller(s):
| Name | Status | Startup Type |
|---|---|---|
| SolarWinds Administration Service | Running | Automatic |
| SolarWinds Agent Service | Running | Automatic |
| SolarWinds Alerting Service V2 | Running | Manual |
| SolarWinds Collector Service | Running | Manual |
| SolarWinds Cortex Service | Running | Manual |
| SolarWinds High Availability Service | Running | Automatic |
| SolarWinds Information Service | Running | Manual |
| SolarWinds Information Service V3 | Running | Manual |
| SolarWinds Job Engine v2 | Running | Manual |
| SolarWinds Orion Module Engine | Running | Automatic |
| SolarWinds Recommendations | Running | Manual |
| SolarWinds Syslog Service | Running | Manual |
| SolarWinds Trap Service | Running | Manual |
- On the MainPoller and MainPollerStandby check the registry to ensure it displays the proper values for its respected member type of the pool (in this case, MainPoller, MainPollerStandby).
- Restart the SolarWinds High Availability service on the Standby server.
- Make sure to set Startup Type to the following on Standby Poller(s):
| Name | Status | Startup Type |
|---|---|---|
| SolarWinds Administration Service | Running | Automatic |
| SolarWinds Agent Service | Running | Automatic |
| SolarWinds Alerting Service V2 | Disabled | |
| SolarWinds Collector Service | Disabled | |
| SolarWinds Cortex Service | Disabled | |
| SolarWinds High Availability Service | Running | Automatic |
| SolarWinds Information Service | Disabled | |
| SolarWinds Information Service V3 | Disabled | |
| SolarWinds Job Engine v2 | Disabled | |
| SolarWinds Orion Module Engine | Running | Automatic |
| SolarWinds Recommendations | Disabled | |
| SolarWinds Syslog Service | Disabled | |
| SolarWinds Trap Service | Disabled |
These steps only apply if you have HA Pool for the Additional Polling Engines, customers who only have Main Poller in HA pool can skip to verification section:
- On the Additional Poller and Additional Poller, Standby servers, check the registry to ensure it displays the proper values for its respected member type of the pool (AdditionalPoller, AdditionalPollerStandby)
- If you have servers beyond the Main and Standby servers, repeat these steps to restart the SolarWinds High Availability service and check the register for each server.
- Open the Command Prompt, and set the current directory to the Orion installation directory. (Default location: C:\Program Files (x86)\SolarWinds\Orion)
- Execute the following command in the Command Prompt to re-enable High Availablity globally:
-
HAEnableDisable /EnableHA
- In the Orion Web Console, navigate to the High Availability Deployment Summary page.
- Check the status of the pool member in the Orion Web Console. The servers should be up(Green) and you should have option to setup HA Pools again.
Verify that HA is running
- Use the Database Manager to execute the following query:
-- Scripts are not supported under any SolarWinds support program or service. -- Scripts are provided AS IS without warranty of any kind. SolarWinds further -- disclaims all warranties including, without limitation, any implied warranties -- of merchantability or of fitness for a particular purpose. The risk arising -- out of the use or performance of the scripts and documentation stays with you. -- In no event shall SolarWinds or anyone else involved in the creation, -- production, or delivery of the scripts be liable for any damages whatsoever -- (including, without limitation, damages for loss of business profits, business -- interruption, loss of business information, or other pecuniary loss) arising -- out of the use of or inability to use the scripts or documentation. -- Select rows from a Table 'HA_PoolMembers' SELECT * FROM HA_PoolMembers
- Make sure the servers exist.
- Verify that in PoolMemberType column, there is both MainPoller and MainPollerStandby and if you have APE pools you should also see AdditionalPoller and AdditionalPollerStandby pairs.