Enabling PI HA on OPDS - Pre 2.0.2.0
The functionality of OPTS PI HA needs to be configured manually on older OPDS builds.
Step-by-step guide
Shut Down the Blue Side:
- Through the menus, enter Maintenance Mode.
Enable the HA Start Scripts on the Red Side:
- Through the menus, enter Maintenance Mode.
- Link the HA start files to the /Owl/startup directory.
- cd /Owl/startup
- ln –sf /Owl/owlPI/listen-red/startOwlHa001 startOwlHa001
- ls
- Verify both startOwlHa00X scripts have been linked in the directory.
- Add the startOwlHa00X scripts to the startupOwl file.
- Open /Owl/startup/startupOwl.
- Find the line FILES=”$FILES startOwlPiLISTEN”.
- After startOwlPiLISTEN add startOwlHa001 for single redundancy.
- It will now be FILES=”$FILES startOwlPiLISTEN startOwlHa001”.
- Save and exit the file.
- Verify the HA start scripts are being called:
- /Owl/startup/startupOwl start
- Make sure startOwlHa001 starts.
- /Owl/startup/startupOwl stop
- Make sure startOwlHa001 stops.
Configure the Red Side HA:
- Enable PI HA in the PI configuration file.
- Open piConfigLISTEN.txt.
- Find the section labeled “HA System Options”.
- Uncomment OPT_HA_PRESENT, OPT_HA_BUFFER (If using buffer), OPT_HA_RETRY, OPT_HA_IPADDR, OPT_HA_STATPORT, OPT_PI_PRIMARYHA1.
- Uncomment and configure OPT_PI_IP2, OPT_PI_USER2, OPT_PI_PASSWORD2.
- Configure the HA system:
- Open /Owl/owlPI/listen-red/configHa001.txt.
- Make sure OPT_HA_IPADDR and OPT_HA_STATPORT match the configuration from piConfigLISTEN.txt.
- Configure OPT_PI_IP, OPT_PI_USER, and OPT_PI_PASSWORD to match the secondary PI Database IP and login credentials.
- Verify the connection to the Primary and Secondary Database.
- From the menus, Update the Security Hash.
- From the menus, Enter Operational Mode.
- Exit the menus.
- tail -44f /Owllog/owlPI/logs/owlPiServer-LISTEN.log
- Verify the Application was able to connect to the Primary database.
- NOTE: No data should be passing through the diode at this point.
- Exit the tail.
- tail -44f /Owllog/owlPI/logs/owlPiHaServ-haServ001.log
- Verify the HA Application was able to connect to the Secondary database.
- NOTE: Inactivity errors are normal at this point.
- If either one of the Applications has connection issues, check the configuration files for errors.
Configure the Blue Side HA:
- Enable HA functionality.
- Open /Owl/owlPI/talk-blue/piConfigTALK.txt.
- Find the section labeled “PI HA System Options”.
- Uncomment OPT_HA_PRESENT, OPT_HA_RETRY, OPT_PI_PRIMARYHA1.
- Uncomment and configure to match the Secondary Database OPT_PI_IP2, OPT_PI_USER2, OPT_PI_PASSWORD2.
- Save and Exit.
- Verify the connection to the Primary Database.
- From the menus, Update the Security Hash.
- From the menus, Enter Operational Mode.
- Exit the menus.
- tail -44f /Owllog/owlPI/logs/owlPiServer-TALK.log
- Verify the Application can connect to the Primary Database.
- Wait for Simulation or Production data to begin transfer (this can take up to 20 minutes depending on the size of the database).
- If connection errors occur, then check the configuration in piConfigTALK.txt.