Control-M/EM UNIX Cluster Configuration
The Control-M/EM UNIX installation is not cluster aware. Therefore, you need to configure the UNIX cluster manager to manage Control-M/EM components.
Before you can configure Control-M/EM in a cluster environment on UNIX, you must do the following:
-
Create two user accounts, as described in Configuring a User Account on UNIX.
-
Set the $BMC_HOST_INSTALL environment variable to the virtual cluster hostname designated for the Control-M/EM resource group prior to installation. For information on setting variables, see Setting Environment Variables in UNIX.
-
Install, as described in .
BMC provides demo scripts that start, check, and stop Control-M/EM components. You can build your own scripts and use the provided scripts as an example or update the scripts to match your installation. After your scripts are ready, you can configure the cluster manager to use the scripts.
The following demo scripts are located at <Control-M/EM_HOME>/bin:
-
demo_ha_cluster_start
-
demo_ha_cluster_check
-
demo_ha_cluster_stop
-
demo_ha_cluster (Main script)
To get the usage, run the scripts with –help (or with no parameter).
The following procedures describe how to configure Control-M/EM in a clustered environment on UNIX using BMC provided demo scripts:
-
Configuring the Control-M/EM Configuration Agent as a Cluster Resource
-
Configuring Control-M/EM Kernel Components as Cluster Resources on UNIX
-
Configuring Additional Control-M/EM Components as Cluster Resources on UNIX
Modifying the Demo Ha Cluster Script
This procedure describes how to modify the demo ha cluster script with the Control-M/EM home directory and the UNIX account name. This enables you to provide the cluster manager with the required scripts to start, check, and stop components.
Begin
-
Navigate to the following directory:
<Control-M/EM home dir>/ bin
-
Open the demo_ha_cluster script.
-
In the User definition section, do the following:
-
Change the EM install directory to the location where Control-M/EM is installed.
EM_DIR="/data/emuser/ctm_em"
-
Change the UNIX install account name to the Control-M/EM user account that you created (see Configuring a User Account on UNIX).
EM_ACC="emuser"
-
Configuring the Control-M/EM Configuration Agent as a Cluster Resource
This procedure describes how to configure the Control-M/EM Configuration Agent as a cluster resource using the BMC provided demo scripts. You must perform this procedure to activate your cluster environment.
Begin
-
From your cluster manager, add the following commands:
-
Start: demo_ha_cluster_start -C Config_Agent
-
Check: demo_ha_cluster_check -C Config_Agent
-
Stop: demo_ha_cluster_stop -C Config_Agent
-
-
The Configuration Agent is now managed by the cluster manager. If there is a failover/move, the cluster manager starts up the Configuration Agent on the other host.
Configuring Control-M/EM Kernel Components as Cluster Resources on UNIX
This procedure describes how to configure the CMS, Naming Service, and PostgreSQL database (if installed) components as cluster resources on UNIX.
This procedure is optional. If you do not do it, the Configuration Agent continues to manage the Control-M/EM components.
Begin
-
Set the system parameter ClusterInstall to 1, as described in General parameters.
The CMS, Naming Service, and PostgreSQL database components are no longer managed by the Configuration Agent.
-
From your cluster manager, add the start, check, and stop commands, as described in Control-M/EM UNIX Cluster Commands.
The Control-M/EM components are now managed by the cluster manager.
Configuring Additional Control-M/EM Components as Cluster Resources on UNIX
This procedure describes how to configure additional Control-M/EM components as cluster resources on UNIX using the BMC provided demo scripts.
This procedure is optional. If you do not do it, the Configuration Agent continues to manage the Control-M/EM components.
Begin
-
From the CCM, set the following components to Ignore, as described in Ignoring a component:
Gateway
GUI Server
Web Server
GCS
SLA Management
Forecast Server
Self Service Server
-
From your cluster manager, enter the start, check, and stop commands, as described in Control-M/EM UNIX Cluster Commands.
The Control-M/EM components are now managed by the cluster manager.
Control-M/EM UNIX Cluster Commands
The following table lists the start, check, and stop commands for each Control-M/EM component.
The demo_ha_cluster_check command returns a 0 value if the component is up and a different value if the component is down.
Control-M/EM component |
Commands |
---|---|
CMS |
|
Naming Service |
|
PostgreSQL Database |
|
Gateway |
|
GUI Server |
|
GCS |
|
Web Server |
|
SLA Management (BIM) |
|
Forecast Server |
|
Self Service Server |
|
Control-M/EM Configuration Agent
In some cases, after setting a virtual host name online, the physical host name of the cluster node becomes unavailable. In such case, additional configuration is required for the Control-M/EM Configuration Agent. This configuration provides the ability to send life check communications to the Control-M/EM Configuration Agent using the virtual host name.
This configuration should only be used if the Control-M/EM Configuration Agent appears in the Control-M Configuration Manager as Not Responding after starting the Control-M/EM Configuration Agent.
Begin
-
Stop the Control-M/EM Configuration Agent from root_menu or by running the command stop_config_agent from the shell prompt (this requires the Control-M/EM DBO password).
-
In the Control-M Configuration Manager, choose Tools > System Parameters.
-
In the general section, select the HostPort parameter and click New to open the "Add New Parameter" dialog box.
-
In the Add New Parameter dialog box, click Advanced.
-
Modify the following field values:
Field
Value
Type
General (the default value)
Name
HostPort (the default value)
Value
vhemxxx:0, which is specified in the format:
virtualHostName:port
By specifying 0 (zero) as the port number, the Control-M/EM Configuration Agent will listen on a random port that is chosen when the Control-M/EM Configuration Agent starts. If a port other than zero is specified, the Control-M/EM Configuration Agent will use the specified port number.Advanced field: Type
Config Agent
Advanced field: Name
* (the default value)
Advanced field: Host
* (the default value) Computer hostname
If the installation of the Control-M/EM components is distributed between additional hosts other than the cluster nodes, a separate condition must be specified with the physical host names of each cluster node specified in the Host Name parameter.
-
Click Save.
-
Start the Control-M/EM Configuration Agent.
Global Condition Server
In some cases, after setting a virtual host name online, the physical host name of the cluster node becomes unavailable. In such case, additional configuration is required for the GCS. This configuration should only be used if the GCS failed to start after a failover.
Begin
-
Start the Control-M Configuration Manager and change the desired state of the GCS to DOWN.
-
Ensure that the GCS is not running on any of the cluster nodes (ps -ef | grep gcs).
-
In the Control-M Configuration Manager, choose Tools => System Parameters.
-
In the general section, select the HostPort parameter and click New to open the "Add New Parameter" dialog box.
-
In the Add New Parameter dialog box, click Advanced.
-
Modify the following field values:
Field |
Value |
---|---|
Type |
General (the default value) |
Name |
HostPort (the default value) |
Value |
vhemxxx:55443, which is specified in the format: |
Advanced field: Type |
GCS |
Advanced field: Name |
* (the default value) |
Advanced field: Host |
* (the default value) |
-
Click Save.
-
Start the GCS using the Control-M Configuration Manager.