8.3.5 Setting up the logical host environment (secondary node) during new installation of JP1/IM - Manager (for UNIX)
- Organization of this subsection
(1) Preparations for setup
-
Make sure that the services of JP1/IM and JP1/Base are stopped.
Make sure that all processes of JP1/IM and JP1/Base are stopped on the physical host and all logical hosts. If JP1/IM - MO is used, also stop the JP1/IM - Message Optimizer service of JP1/IM - MO on the connection source.
-
If you set up the IM database on the primary server, copy the cluster setup information file that was used in the primary server onto the secondary server. (This operation is not necessary if the IM database is not set up on the primary server.)
Store the copied file in /etc/opt/jp1imm/conf/imdb/setup/.
Note that there is no need for the shared disk to be available for use at the secondary server.
(2) Setting up JP1/Base
-
Set up the logical host (secondary node) for JP1/Base.
For details about the procedure, see the JP1/Base User's Guide.
-
Set up a command execution environment for JP1/Base.
Execute the jcocmddef command to set up a command execution environment for JP1/Base. For details about the jcocmddef command, see the JP1/Base User's Guide.
(3) Setting JP1/IM - Manager (Central Console)
To set JP1/IM - Manager (Central Console):
-
Execute the setup command for the logical host of JP1/IM - Manager (Central Console).
/opt/jp1cons/bin/jp1cc_setup_cluster -h logical-host-name
Specify the logical host name by using an argument.
-
logical-host-name (-h option)
Specify the logical host name that was set up at the primary server.
For details about the command, see jp1cc_setup_cluster (UNIX only) in Chapter 1. Commands in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference.
-
(4) Setting JP1/IM - Manager (integrated monitoring database) (mandatory)
Perform this setting procedure when you will be using JP1/IM - Manager (integrated monitoring database). If you intend to use an integrated monitoring database to manage JP1 events, you must create the integrated monitoring database.
-
Edit the cluster setup information file.
Prepare a cluster setup information file that contains information about the size of the database area required for the integrated monitoring database and the database storage directory. Check the contents of the cluster setup information file that was copied from the active host in 8.3.5(1) Preparations for setup. The settings in the cluster setup information file must be the same as those specified at the primary node.
For details about the settings in the cluster setup information file, see Cluster setup information file (jimdbclustersetupinfo.conf) in Chapter 2. Definition Files in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference.
-
Execute the jcodbsetup command to create an integrated monitoring database.
jcodbsetup -f cluster-setup-information-file-name -h logical-host-name -c standby [-q]
Use arguments to specify the cluster setup information file name, logical host name, and setup type.
-
cluster-setup-information-file-name (-f option)
Specify the name of the cluster setup information file that was created in step 1.
-
logical-host-name (-h option)
Specify the logical host name that was set up at the primary server.
-
Setup type (-c option)
Specify the setup type (standby) of the standby host.
For details about the jcodbsetup command, see jcodbsetup in Chapter 1. Commands in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference.
-
(5) JP1/IM - Manager (Intelligent Integrated Management Database) Setup
If you are using Intelligent Integrated Management Database, the steps to build logical host infrastructure for Intelligent Integrated Management Database (Trend data Management Database) are as follows:
-
Build JP1/IM - Manager's logical host infrastructure.
Prior to building Intelligent Integrated Management Database's logical host environment, logical host environment of JP1/IM - Manager (central console) must be built because logical host environment of the created JP1/IM - Manager must be referenced. You must also build Intelligent Integrated Management Base, which is a prerequisite feature of integrated operation viewer, and setup, which is an integrated monitoring DB. If you have already built it, continue to the next step.
For details on how to build JP1/IM - Manager (central console) logical host environment, see 8.3.3(3) Setting JP1/IM - Manager (Central Console). For details about building Intelligent Integrated Management Base, see 4.4 Creating a cluster environment for the Intelligent Integrated Management Base. For details about setup of the integrated monitoring DB, see 8.3.3(4) Setting JP1/IM - Manager (integrated monitoring database) (mandatory).
-
Create an OS user other than root.
You must have an OS user (a user with login other than root) other than root from which you want to start Intelligent Integrated Management Base database (PostgreSQL).
Use OS's useradd command to create them as needed. If you have already created one, skip to the next step.
Here is a sample execution for useradd command when you create a user imsrvuser:
useradd imsrvuser
If you have already created one, continue to the next step.
-
Prepare cluster environment Intelligent Integrated Management Database setup information file.
In cluster environment Intelligent Integrated Management Database setup information file, describe the required definitions, such as the data directory, port number, and so on.
See Cluster environment Intelligent Integrated Management Database setup information file (jimgndbclustersetupinfo.conf) in Chapter 2. Definition Files in the JP1/Integrated Management 3- Manager Command, Definition File and API Reference for editing Intelligent Integrated Management Database setup information file.
-
Execute jimgndbsetup command.
Execute the following command:
jimgndbsetup -f cluster-environment-Intelligent-Integrated-Management-Database-setup-information-file -h logical-host-name -c standby
-
Starting JP1/IM - Manager services from cluster software
Start the following services from the cluster software:
jp1_cons_logical-host-name.service
(6) Setting JP1/IM - Manager (IM Configuration Management database) (optional)
Perform this setting procedure when you will be using JP1/IM - Manager (IM Configuration Management database). If you intend to use an IM Configuration Management database to manage system hierarchies (IM configurations), you must create the IM Configuration Management database.
-
Edit the cluster setup information file.
Prepare a cluster setup information file that contains information about the size of the database area required for the IM Configuration Management database and the database storage directory. Check the contents of the cluster setup information file that was copied from the active host in 8.3.5(1) Preparations for setup. The settings in the cluster setup information file must be the same as those specified at the primary node.
For details about the settings in the cluster setup information file, see Cluster setup information file (jimdbclustersetupinfo.conf) in Chapter 2. Definition Files in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference.
-
Execute the jcfdbsetup command to create an IM Configuration Management database.
jcfdbsetup -f cluster-setup-information-file-name -h logical-host-name -c standby [-q]
Use arguments to specify the cluster setup information file name, logical host name, and setup type.
-
cluster-setup-information-file-name (-f option)
Specify the name of the cluster setup information file that was created in step 1.
-
logical-host-name (-h option)
Specify the logical host name that was set up at the primary server.
-
Setup type (-c option)
Specify the setup type (standby) of the standby host.
For details about the jcfdbsetup command, see jcfdbsetup in Chapter 1. Commands in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference.
-
(7) Setting JP1/IM - Manager (IM Configuration Management) (optional)
To specify settings for using JP1/IM - Manager (IM Configuration Management):
-
Execute the setup command for the logical host of JP1/IM - Manager (IM Configuration Management).
/opt/jp1imm/bin/imcf/jp1cf_setup_cluster -h logical-host-name
Specify the logical host name by using an argument.
-
logical-host-name (-h option)
Specify the logical host name that was set in JP1/Base.
For details about the command, see jp1cf_setup_cluster (UNIX only) in Chapter 1. Commands in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference.
-
(8) Setting JP1/IM - Manager (Central Scope) (optional)
To set JP1/IM - Manager (Central Scope):
-
Execute the setup command for the logical host of JP1/IM - Manager (Central Scope).
/opt/jp1scope/bin/jp1cs_setup_cluster -h logical-host-name
Specify the logical host name by using an argument.
-
logical-host-name (-h option)
Specify the logical host name that was set up at the primary server.
For details about the command, see jp1cs_setup_cluster (UNIX only) in Chapter 1. Commands in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference.
-
Setup of the secondary node is now complete.
(9) Setup when using JP1/IM - Agent as a agent
This is the same as the procedure that is performed for the primary server. For instructions, see 8.3.3(9) Setup when using JP1/IM - Agent as a agent.