Job Management Partner 1/Performance Management - Agent Option for Enterprise Applications Description, User's Guide and Reference

[Contents][Glossary][Index][Back][Next]


4.3.4 In SAP NetWeaver 2004 or earlier (in UNIX)

Organization of this subsection
(1) Before installation
(2) Flow of tasks from installation to starting operation
(3) Installation
(4) Setup

(1) Before installation

This subsection describes the prerequisites and required information for starting installation and setup.

(a) Prerequisites

To use PFM - Agent for Enterprise Applications in a cluster system, the following prerequisites must be satisfied.

n Cluster system

Make sure that the following conditions are satisfied:

n Shared disk

Make sure that the following conditions are satisfied:

n Logical host names and logical IP addresses

Make sure that the following conditions are satisfied:

Notes
  • Do not specify a physical host name (host name displayed by the uname -n command) as a logical host name. If specified, normal communication processing might not be achieved.
  • A logical host name must consist of 1 to 32 single-byte alphanumeric characters. None of the following symbols or the space character can be used:
    /, \, :, ;, *, ?, ', ", <, >, |, &, =, ,
  • A logical host name cannot begin with localhost, an IP address, or a hyphen (-).

(b) Information required to set up PFM - Agent for Enterprise Applications for logical host use

To set up PFM - Agent for Enterprise Applications for logical host use, you must provide the information listed in the table below, in addition to the environment information that is needed to set up a normal PFM - Agent for Enterprise Applications.

Table 4-15 Information required to set up PFM - Agent for Enterprise Applications for logical host use

Item Example
Logical host name jp1-halr3
Logical IP address 172.16.92.100
Shared disk /jp1

If there are multiple Performance Management programs for logical host use on a single logical host, they must all use directories on the same shared disk.

For details about the capacity required on the shared disk, see A. System Estimates.

(c) Making the logical host subject to failover in the event of a PFM - Agent for Enterprise Applications failure

If you employ a system configuration in which PFM - Agent for Enterprise Applications operates on a logical host, you should evaluate whether the entire logical host should be subject to failover in the event of a PFM - Agent for Enterprise Applications failure.

If a PFM - Agent for Enterprise Applications failure results in failover of the entire logical host, a job application that is running on the same logical host and which is being monitored by PFM - Agent for Enterprise Applications will also result in failover, which will affect the job.

It is recommended that you use one of the following cluster software settings so that errors on PFM - Agent for Enterprise Applications do not affect SAP system operation:

(d) Notes about upgrading when logical host operation is used

To upgrade a PFM - Agent for Enterprise Applications instance that is run on a logical host, you must place the shared disk online at either the executing node or the standby node.

(2) Flow of tasks from installation to starting operation

The following figure shows the flow of tasks for installing and setting up PFM - Agent for Enterprise Applications for logical host use in a cluster system.

Figure 4-10 Flow of tasks for installing and setting up PFM - Agent for Enterprise Applications for logical host use in a cluster system (in UNIX)

[Figure]

Note
When a PFM - Agent is set up in a logical host environment, the PFM - Agent definitions in the physical host environment are not inherited. New logical and physical host environments are created when an instance environment is set up.

(3) Installation

Install PFM - Agent for Enterprise Applications on both executing and standby nodes.

The installation target is the local disk. Do not install PFM - Agent for Enterprise Applications on a shared disk.

For details about the installation procedure, see 3.1.3 Installation procedure.

(4) Setup

This subsection describes the setup required in order to operate Performance Management in a cluster system.

(a) Registering PFM - Agent for Enterprise Applications

To add PFM - Agent for Enterprise Applications to an existing Performance Management system, you must perform setup in order to register PFM - Agent for Enterprise Applications.

If the version of PFM - Manager is 09-00 or later, PFM - Agent is registered automatically, in which case there is no need to perform the procedure described here. However, any data model version of PFM - Agent that is not included in the Release Notes for PFM - Manager must be registered manually. For details about the data model version of PFM - Agent for Enterprise Applications, see I. Version Compatibility.

You use PFM - Manager and PFM - Web Console to register PFM - Agent for Enterprise Applications. The procedure for registering PFM - Agent for Enterprise Applications is the same as for a non-cluster system. For details about the procedure, see 3.1.4(2) Registering PFM - Agent for Enterprise Applications.

(b) Setting up a logical host environment at the executing node

You must set up a logical host environment for PFM - Agent for Enterprise Applications at the executing node.

Note
Before starting this setup, stop all services of Performance Management programs in the entire Performance Management system. For details about how to stop services, see the chapter that describes startup and termination of Performance Management in the Job Management Partner 1/Performance Management User's Guide.

n Mounting the shared disk

Make sure that the shared disk is mounted. If it is not mounted, mount it.

n Setting up a logical host environment for PFM - Agent for Enterprise Applications

Execute the jpcconf ha setup (jpchasetup create) command to create a logical host environment. This command creates a logical host environment by copying necessary data to the shared disk and setting definitions for a logical host.

To set up a logical host environment for PFM - Agent for Enterprise Applications:

  1. Execute the jpcconf ha setup (jpchasetup create) command to create a logical host environment.
    Execute the following command:
    jpcconf ha setup -key EAP -lhost jp1-halr3 -d /jp1 (jpchasetup create agtm -lhost jp1-halr3 -d /jp1)
     
    To specify the logical host name, use -lhost. This example specifies jp1-halr3 as the logical host name. If you use DNS operation, specify the logical host name without the domain name.
    Specify the name of a directory on the shared disk for the environment directory name in -d. For example, if -d /jp1 is specified, /jp1/jp1pc is created and then files for the logical host environment are created.
  2. Execute the jpcconf ha list (jpchasetup list) command to check the logical host settings.
    Execute the following command:
    jpcconf ha list -key all (jpchasetup list)
     
    Make sure that the created logical host environment is valid.

n Setting the connection-target PFM - Manager

Execute the jpcconf mgrhost define (jpcnshostname) command to set the PFM - Manager that manages PFM - Agent for Enterprise Applications.

To set the connection-target PFM - Manager:

  1. Execute the jpcconf mgrhost define (jpcnshostname) command to set the connection-target PFM - Manager.
    Execute the following command:
    jpcconf mgrhost define -host jp1-hal -lhost jp1-halr3 (jpcnshostname -s jp1-hal -lhost jp1-halr3)
     
    Specify the host name of the connection-target PFM - Manager in the -host option. If the connection-target PFM - Manager runs on a logical host, specify the logical host name of the connection-target PFM - Manager in the -host option. This example specifies jp1-hal as the PFM - Manager's logical host name.
    To specify the logical host name of PFM - Agent for Enterprise Applications, use -lhost. This example specifies jp1-halr3 as the logical host name of PFM - Agent for Enterprise Applications.

n Setting up an instance environment

Execute the jpcconf inst setup (jpcinssetup) command to set up an instance environment for PFM - Agent for Enterprise Applications.

To set up an instance environment:

  1. Execute the jpcconf inst setup (jpcinssetup) command.
    Execute the following command:
    jpcconf inst setup -key EAP -lhost jp1-halr3 -inst o246bci_SD5_00 (jpcinssetup agtm -lhost jp1-halr3 -inst o246bci_SD5_00)
     
    To specify the logical host name, use -lhost. This example specifies jp1-halr3 as the logical host name of PFM - Agent for Enterprise Applications.
  2. Set up an instance environment for the SAP system.
    The instance environment setup is the same as for a non-cluster system. For details about the instance information to be set, see 3.1.4(4) Setting up instance environments.

n Setting up logical host environments for other Performance Management programs

If you have other PFM - Manager or PFM - Agent programs to be set up on the same logical host in addition to PFM - Agent for Enterprise Applications, set them up at this stage.

For details about the setup procedure, see the chapter that describes construction and operations in a cluster system in the Job Management Partner 1/Performance Management User's Guide or the chapter that describes operations in a cluster system in the applicable PFM - Agent manual.

n Setting port numbers

These settings are required only when the Performance Management programs run in a network environment that uses a firewall. If you establish communication between Performance Management programs via a firewall, use the jpcconf port (jpcnsconfig port) command to set the port numbers.

For details about how to set port numbers, see the chapter that describes installation and setup and the chapter that describes construction and operations in a cluster system in the Job Management Partner 1/Performance Management Planning and Configuration Guide.

n Setting IP addresses

Set the IP addresses if you will be specifying IP addresses in operating Performance Management in a network environment connected to multiple LANs. To do this, directly edit the contents of the jpchosts file.

For details about how to set IP addresses, see the chapter that describes installation and setup in the Job Management Partner 1/Performance Management Planning and Configuration Guide.

Note
Once you have edited the jpchosts file, copy it from the executing node to the standby node.

n Changing the log file size

Performance Management's operating status is output to a log file unique to Performance Management. This log is called the common message log, which consists of two files with a default size of 2,048 kilobytes each. This setting is required only when you wish to change this file size.

For details, see the chapter that describes installation and setup in the Job Management Partner 1/Performance Management Planning and Configuration Guide.

n Changing the performance data storage locations

These settings are required only when you wish to change the storage location, backup directory, export directory, or import directory for the database that stores the performance data managed by PFM - Agent for Enterprise Applications.

For details about how to specify the settings, see 3.4.1 Changing the performance data storage location.

n Specifying the action log output settings

These settings are required in order to output action logs in the event of an alarm. An action log consists of logged information about threshold values that have been exceeded for a reason such as system loading when output to the log is linked with the alarm function.

For details about how to specify the settings, see J. Outputting Action Log Data.

n Exporting the logical host environment definition

After you have created a logical host environment for PFM - Agent for Enterprise Applications, you must export the environment definition to a file. This export processing involves output of the definition information for the Performance Management program that has been set up on the logical host to a file in batch mode. If you are setting up other Performance Management programs on the same logical host, export the environment definitions after all setup processes have been completed.

To export the logical host environment definition:

  1. Execute the jpcconf ha export (jpchasetup export) command to export the logical host environment definition.
    Output to an export file the definition information for the logical host environment that has been created so far. You can assign any name to the export file.
    For example, to export the logical host environment definition to the lhostexp.txt file, execute the following command:
    jpcconf ha export -f lhostexp.txt (jpchasetup export -f lhostexp.txt)

n Copying the logical host environment definition file to the standby node

Copy from the executing node to the standby node the logical host environment definition file exported as described in Exporting the logical host environment definition in 4.3.4(4)(b) Setting up a logical host environment at the executing node.

n Unmounting the shared disk

Unmount the file system and finish the procedure. If you will be using the shared disk after the procedure, there is no need to unmount the file system.

Notes
If the shared disk is unmounted but the specified environment directory contains the jp1pc directory as well as the files under the jp1pc directory, the shared disk has been set up without being mounted. If this is the case, follow the procedure below:
  1. Use the tar command to archive the jp1pc directory in the specified environment directory on the local disk.
  2. Mount the shared disk.
  3. If the shared disk does not contain the specified environment directory, create it.
  4. Expand the tar file in the environment directory on the shared disk.
  5. Unmount the shared disk.
  6. Delete the jp1pc directory and all its subdirectories from the specified environment directory on the local disk.

(c) Setting up a logical host environment for the standby system

At the standby node, set up a logical host environment for PFM - Agent for Enterprise Applications.

n Importing the logical host environment definition

Import the export file that was copied from the executing node to the standby node.

To specify settings for executing at the standby node the Performance Management program on the logical host that was created at the executing node, use the jpchasetup import command. If multiple Performance Management programs have been set up on a single logical host, the settings for all the programs are imported in batch mode.

When executing this command, there is no need to keep the shared disk mounted.

To import the logical host environment definition:

  1. Execute the jpcconf ha import (jpchasetup import) command to import the logical host environment definition.
    Execute the following command:
    jpcconf ha import -f lhostexp.txt (jpchasetup import -f lhostexp.txt)
     
    This command changes settings in such a manner that the environment for the standby node becomes the same as in the export file. As a result, setup is performed for starting PFM - Agent for Enterprise Applications on the logical host.
    If fixed port numbers were set by the jpcconf port (jpcnsconfig port) command during setup, they are also set in the same manner.
  2. Execute the jpcconf port (jpcnsconfig port) command to check the logical host settings.
    Execute the following command:
    jpcconf ha list -key all (jpchasetup list all)
     
    Make sure that the displayed information is the same as when jpcconf ha list (jpchasetup list) is executed at the executing node.

(d) Registering into the cluster software

To run a Performance Management program in a logical host environment, you must register the program into the cluster software and set up the environment in such a manner that the Performance Management program starts and terminates from the cluster software.

This subsection describes the settings for registering PFM - Agent for Enterprise Applications into the cluster software.

n Registering PFM - Agent for Enterprise Applications into the cluster software

In general, the four items that are required for registering an application into UNIX cluster software are start, stop, monitoring of action, and forced stop.

The following table describes how to perform various actions with PFM - Agent for Enterprise Applications.

Table 4-16 PFM - Agent for Enterprise Applications control methods to be registered into the cluster software

Item Description
Start To start PFM - Agent for Enterprise Applications, execute the following commands, in the order shown:
/opt/jp1pc/tools/jpcspm start (jpcstart) -key AH -lhost=logical-host-name
/opt/jp1pc/tools/jpcspm start -key EAP -lhost logical-host-name inst instance-name (jpcstart agtm lhost=logical-host-name inst=instance-name)
Startup occurs as soon as the shared disk and logical IP address are enabled.
Stop To stop PFM - Agent for Enterprise Applications, execute the following commands, in the order shown:
/opt/jp1pc/tools/jpcspm stop -key EAP -lhost logical-host-name inst instance-name (jpcstop agtm lhost=logical-host-name inst=instance-name)
/opt/jp1pc/tools/jpcspm stop (jpcstop) -key AH -lhost=logical-host-name
Stop occurs before the shared disk and logical IP address are disabled.
If the service has already stopped for a reason such as a failure, the jpcspm stop (jpcstop) command's return value is 3. In such a case, the result is treated as a normal termination because the service is stopped. If the cluster software uses the return value to determine the execution result, take appropriate action, such as setting the return value to 0.
Monitoring of action Use the ps command to check that the following process is running:
ps -ef | grep "process-name logical-host-name" | grep -v "grep monitored-process"
The monitored process is as follows:
jpcagtm,agtm/jpcsto,jpcah
For the process names, see D. List of Processes or the manual Job Management Partner 1/Performance Management Reference. For the possibility that maintenance that has to be performed during operation will require temporary shutdown of Performance Management, you should provide a method for suppressing operation monitoring (for example, suppressing operation monitoring when a maintenance file is detected).
Forced stop When forced termination is needed, execute the following command:
/opt/jp1pc/tools/jpcspm stop (jpcstop) -key all -lhost=logical-host-name -kill=immediate
Only all can be specified in the service key of the first argument.

Note
This command terminates forcibly all Performance Management processes in the specified logical host environment. This forced termination applies to each logical unit of Performance Management, not to each service.
Use forced stop only when normal termination does not work.

Notes
  • Because a Performance Management program registered in the cluster is started and stopped from the cluster, do not specify the settings for automatic startup during OS startup.
  • If the cluster software uses the command's return value to determine the execution result, specify the settings in such a manner that the Performance Management command's return value is converted to a value that is expected by the cluster software. For details about the return values of Performance Management commands, see the explanation of each command.
  • The number of characters displayed by the ps command depends on the OS. Set the length to be no greater than 47 characters, including both the logical host name and the instance name. If you use the ps command to monitor operations, make sure in advance that all logical hosts will be displayed by the PS command. If the display is truncated, change the settings so that monitoring applies to the displayed characters only.
  • If you use the ps command to monitor operations, execute this command in advance to check that the entire character string consisting of the logical host name and instance name is displayed. If any part of the character string is missing, shorten the instance name.

(e) Checking startup and stop

Make sure that the Performance Management programs function normally by starting and terminating the programs from the cluster software at each node.

(f) Setting up an environment in the cluster system

When you have finished setting up the Performance Management programs, set up an environment for them so that PFM - Web Console can be used to display monitored program operating status reports as appropriate to the operations and so that it can send notifications to the user in the event of a problem on a monitored program.

For details about how to set up an environment for the Performance Management programs, see the chapter that describes construction and operation in a cluster system in the Job Management Partner 1/Performance Management User's Guide.

[Contents][Back][Next]


[Trademarks]

All Rights Reserved. Copyright (C) 2010, Hitachi, Ltd.