Configuring the Presentation Server in the high-availability and disaster recovery mode

Where you are in the Installation process

Step Task
1 Complete the planning activities
2 Prepare for TrueSight Operations Management installation
3 Install Remedy Single Sign-On
4 Install TrueSight Presentation Server — Phase A
Configure TrueSight Presentation Server for disaster recovery — Phase B (You are here)
5 Install Infrastructure Management (If licensed)
6 Install App Visibility Manager (If licensed)
7 Install Real End User Experience Monitoring Software Edition (If licensed)
8 Install TrueSight IT Data Analytics (If licensed)
9 Complete the post-installation activities

To configure the TrueSight Presentation Server in the high-availability and disaster recovery mode

Every installation of the Presentation Server is disaster-recovery ready. Therefore, you do not need any configuration on the primary TrueSight Presentation Server

You need to configure the recovery servers only. To do this, perform the following tasks:

Before you begin

  • Ensure that TrueSight Presentation Server in installed in the high-availability mode at the primary site and the recovery site with the same database name. You must also ensure that both the primary and secondary computers are installed on the same platform and are using the same ports and operating system locale.
    • Installing the Presentation Server in the high-availability mode using the wizard
    • Installing the Presentation Server in the high-availability mode silently
  • Go to the recovery site and stop the primary computer and the secondary computer. 
    For more information, see  Starting and stopping the TrueSight Operations Management components. .

Step A: Configure the primary computer on the recovery site

  1. On the recovery site, primary computer, take a backup of the following folders. Ensure that you save them with different names.

    • Windows: 
      • %TRUESIGHTPSERVER_HOME%\truesightpserver\data
      • %TRUESIGHTPSERVER_HOME%\truesightpserver\conf
      • %TRUESIGHTPSERVER_HOME%\truesightpserver\modules\elasticsearch\data

    • Linux
      • $TRUESIGHTPSERVER_HOME/truesightpserver/data
      • $TRUESIGHTPSERVER_HOME/truesightpserver/conf
      • $TRUESIGHTPSERVER_HOME/truesightpserver/modules/elasticsearch/data
  2. Go to the primary site. Copy the following files from the primary site, primary computer to the recovery site, primary computer:

    Note

    BMC recommends that you use any third-party file synchronization and backup software to copy these directories because traditional copying can result in an unexpected failure.

    • Windows:
      • %TRUESIGHTPSERVER_HOME%\truesightpserver\data

      • %TRUESIGHTPSERVER_HOME%\truesightpserver\conf

      • %TRUESIGHTPSERVER_HOME%\truesightpserver\modules\elasticsearch\data

    • Linux:

      • $TRUESIGHTPSERVER_HOME/truesightpserver/data

      • $TRUESIGHTPSERVER_HOME/truesightpserver/conf

      • $TRUESIGHTPSERVER_HOME/truesightpserver/modules/elasticsearch/data

  3. On the recovery site, primary computer, perform these steps:
    1. Replace the ha folder located at the following location with the ha folder from the backed up location. 
      • Windows: %TRUESIGHTPSERVER_HOME%\truesightpserver\conf\
      • Linux: $TRUESIGHTPSERVER_HOME/truesightpserver/conf/
    2. (Linux only) Run this command: chmod 700 -R /opt/bmc/TrueSightPServer/truesightpserver/data
    3. Start the database by running this command: tssh process start database
    4. Verify if the database is up and running by running this command: tssh server status

        Steps to perform if the database server fails to start
      1. Run the following commands on the recovery TrueSight Presentation Server:
        • Windows:
          1. cd %TRUESIGHTPSERVER_HOME%\truesightpserver\modules\pgsql\bin
          2. pg_resetxlog.exe "%TRUESIGHTPSERVER_HOME%\truesightpserver\data\pgsql"
        • Linux:

          1. cd /opt/bmc/TrueSightPServer/truesightpserver/modules/pgsql

          2. ./pg_resetxlog "/opt/bmc/TrueSightPServer/truesightpserver/data/pgsql"

      2. If you see the following message, run this command: pg_resetxlog.exe -f "%TRUESIGHTPSERVER_HOME%\truesightpserver\data\pgsql"
        The database server was not shut down cleanly. Resetting the transaction log might cause data to be lost. If you want to proceed anyway, use -f to force reset.
      3. Start the database process by running this command: tssh process start database
    5. Change the host name by running this command: tssh dr configure <RecoveryPrimaryTSPSHostName>
    6. Stop the database by running this command: tssh process stop database
    7. Edit the pg_hba.conf file located at the following location.
      • Windows: %TRUESIGHTPSERVER_HOME%\truesightpserver\data\pgsql\
      • Linux: $TRUESIGHTPSERVER_HOME/truesightpserver/data/pgsql/
    8. In the pg_hba.conf file, add the following properties to provide the secondary computer, load balancer, and the database details and then save the file:
      • hostnossl replication <TSPSDatabaseName> <SecondaryHostName> trust
      • hostnossl replication <TSPSDatabaseName> <LoadBalancerName> trust
    9. Start the Presentation Server by running this command: tssh server start skipHACheck

Step B: Configure the secondary computer on the recovery site

  1. On the recovery site, secondary computer, take a backup of the following folders. Ensure that you save them with different names.

    • Windows: 
      • %TRUESIGHTPSERVER_HOME%\truesightpserver\data
      • %TRUESIGHTPSERVER_HOME%\truesightpserver\conf
      • %TRUESIGHTPSERVER_HOME%\truesightpserver\modules\elasticsearch\data

    • Linux
      • $TRUESIGHTPSERVER_HOME/truesightpserver/data
      • $TRUESIGHTPSERVER_HOME/truesightpserver/conf
      • $TRUESIGHTPSERVER_HOME/truesightpserver/modules/elasticsearch/data
  2. Go to the primary site. Copy the following files from the primary site, secondary computer to the recovery site, secondary computer:

    Note

    BMC recommends that you use any third-party file synchronization and backup software to copy these directories because traditional copying can result in an unexpected failure.

    • Windows:
      • %TRUESIGHTPSERVER_HOME%\truesightpserver\data

      • %TRUESIGHTPSERVER_HOME%\truesightpserver\conf

      • %TRUESIGHTPSERVER_HOME%\truesightpserver\modules\elasticsearch\data

    • Linux:

      • $TRUESIGHTPSERVER_HOME/truesightpserver/data

      • $TRUESIGHTPSERVER_HOME/truesightpserver/conf

      • $TRUESIGHTPSERVER_HOME/truesightpserver/modules/elasticsearch/data

  3. On the recovery site, secondary computer, perform these steps:
    1. Replace the ha folder located at the following location with the ha folder from the backed up location. 
      • Windows: %TRUESIGHTPSERVER_HOME%\truesightpserver\conf\
      • Linux: $TRUESIGHTPSERVER_HOME/truesightpserver/conf/
    2. (Linux only) Run this command: chmod 700 -R /opt/bmc/TrueSightPServer/truesightpserver/data
    3. Start the database by running this command: tssh process start database
    4. Verify if the database is up and running by running this command: tssh server status

        Steps to perform if the database server fails to start
      1. Run the following commands on the recovery TrueSight Presentation Server:
        • Windows:
          1. cd %TRUESIGHTPSERVER_HOME%\truesightpserver\modules\pgsql\bin
          2. pg_resetxlog.exe "%TRUESIGHTPSERVER_HOME%\truesightpserver\data\pgsql"
        • Linux:

          1. cd /opt/bmc/TrueSightPServer/truesightpserver/modules/pgsql

          2. ./pg_resetxlog "/opt/bmc/TrueSightPServer/truesightpserver/data/pgsql"

      2. If you see the following message, run this command: pg_resetxlog.exe -f "%TRUESIGHTPSERVER_HOME%\truesightpserver\data\pgsql"
        The database server was not shut down cleanly. Resetting the transaction log might cause data to be lost. If you want to proceed anyway, use -f to force reset.
      3. Start the database process by running this command: tssh process start database
    5. Change the host name by running this command: tssh dr configure <RecoverySecondaryTSPSHostName>
    6. Stop the database by running this command: tssh process stop database
    7. Edit the pg_hba.conf file located at the following location.
      • Windows: %TRUESIGHTPSERVER_HOME%\truesightpserver\data\pgsql\
      • Linux: $TRUESIGHTPSERVER_HOME/truesightpserver/data/pgsql/
    8. In the pg_hba.conf file, add the following properties to provide the primary computer, load balancer, and the database details, and then save the file:
      • hostnossl replication <TSPSDatabaseName> <PrimaryHostName> trust
      • hostnossl replication <TSPSDatabaseName> <LoadBalancerName> trust
    9. Start the Presentation Server by running this command: tssh server start

Next step in the Installation process

Now that you have successfully configured disaster recovery for the Presentation Server, install the other TrueSight components as per your license entitlements. For instructions, see Installation process.

Was this page helpful? Yes No Submitting... Thank you

Comments