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 | Preparing for TrueSight Capacity Optimization 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 TrueSight Capacity Optimization Application Server and ETL Engine |
6 | Install TrueSight Capacity Optimization Gateway Server |
7 | Install TrueSight Capacity Optimization Capacity Agent |
8 | 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.
- Ensure that Remedy Single Sign-On configured at the primary site and the recovery site is using the same port number and is set with the same password.
- On both, the primary site and the recovery site, stop the primary computer and the secondary computer.
Step A: Configure the primary computer on the recovery site
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\modules\elasticsearch\data
- %TRUESIGHTPSERVER_HOME%\truesightpserver\modules\cma
- Linux:
- $TRUESIGHTPSERVER_HOME/truesightpserver/data
- $TRUESIGHTPSERVER_HOME/truesightpserver/modules/elasticsearch/data
- $TRUESIGHTPSERVER_HOME/truesightpserver/modules/cma
- Windows:
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\modules\elasticsearch\data
%TRUESIGHTPSERVER_HOME%\truesightpserver\modules\cma
Linux:
$TRUESIGHTPSERVER_HOME/truesightpserver/data
$TRUESIGHTPSERVER_HOME/truesightpserver/modules/elasticsearch/data
$TRUESIGHTPSERVER_HOME/truesightpserver/modules/cma
- Windows:
On the recovery site, primary computer, perform these steps:
- (Linux only) Run this command as a non-root user:
chmod 700 -R $TRUESIGHTPSERVER_HOME/truesightpserver/data
- Start the database by running this command:
tssh process start database
Verify if the database is up and running by running this command:
tssh server status
- Change the host name by running this command:
tssh dr configure <RecoveryPrimaryTSPSHostName>
- Stop the database by running this command:
tssh process stop database
- Edit the pg_hba.conf file located at the following location.
- Windows: %TRUESIGHTPSERVER_HOME%\truesightpserver\data\pgsql\
- Linux: $TRUESIGHTPSERVER_HOME/truesightpserver/data/pgsql/
- 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 <TSPSDatabaseUserName> <SecondaryHostName> trust
hostnossl replication
<TSPSDatabaseUserName>
<LoadBalancerName> trust
- Start the Presentation Server by running this command:
tssh server start skipHACheck
- Set the Remedy Single Sign-On details by running the following commands:
tssh properties set tspsProxyHosts "<RemedySSOHostName>,<RecoverySitePrimaryHostName>,<RecoverySiteSecondarHostName>,<loadbalancername>"
In the above command, the following definitions apply:
<RemedySSOHostName>
refers to the fully qualified host name of Remedy Single Sign-On.<RecoverySitePrimaryHostName>
refers to the recovery site, primary computer's fully qualified host name.<RecoverySiteSecondar
HostName>
refers to the recovery site, secondary computer's fully qualified host name.<loadbalancername
>
refers to the recovery site, load balancer name.
tssh properties set tspsProxyHosts "RSSO.bmc.com,RecPrimaryComp.bmc.com,RecSec.bmc.com,LB.bmc.com"
tssh properties set bmc.sso.servername <RemedySSOHostName>
tssh properties reload
Applies only if you are using a different load balancer in the production environment
In the production environment, if you are using a different load balancer name than the one in the non-production environment, then in addition to the Remedy Single Sign-On details, you must also set the load balancer name. To do this, you run the following commands:
tssh properties set loadbalancername <RecoveryLoadBalancerName>
tssh properties reload
- (Linux only) Run this command as a non-root user:
Step B: Configure the secondary computer on the recovery site
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\modules\elasticsearch\data
- %TRUESIGHTPSERVER_HOME%\truesightpserver\modules\elasticsearch\data
- Linux:
- $TRUESIGHTPSERVER_HOME/truesightpserver/modules/elasticsearch/data
- Windows:
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\modules\elasticsearch\data
Linux:
$TRUESIGHTPSERVER_HOME/truesightpserver/modules/elasticsearch/data
- Windows:
- On the recovery site, secondary computer, perform these steps:
- Start the Presentation Server by running this command:
tssh server start
- Change the host name by running this command:
tssh dr configure <RecoverySecondaryTSPSHostName>
- Stop the Presentation Server by running this command:
tssh server stop
- Edit the pg_hba.conf file located at the following location.
- Windows: %TRUESIGHTPSERVER_HOME%\truesightpserver\data\pgsql\
- Linux: $TRUESIGHTPSERVER_HOME/truesightpserver/data/pgsql/
- 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> trusthostnossl replication
<TSPSDatabaseName>
<LoadBalancerName> trust
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 TrueSight Capacity Optimization Application Server and ETL Engine.
Comments