Job Management Partner 1/Base User's Guide
JP1 operations and backup and recovery procedures are the same on a logical host that does not fail over as on a logical host in a cluster system. However, this excludes the fact that the logical host does not fail over with the cluster software.
- Organization of this subsection
- (1) Startup and termination
- (2) Examples of setting up automatic startup and automatic termination
- (3) Operations on JP1 running on the logical host
- (4) Inheritance of logical host information
(1) Startup and termination
Start JP1 services on the logical host in the following order:
- JP1/Base
- JP1 programs for which JP1/Base is a prerequisite
Stop JP1 services on the logical host in the following order:
- JP1 programs for which JP1/Base is a prerequisite
- JP1/Base
(2) Examples of setting up automatic startup and automatic termination
To start and stop JP1 services on a logical host automatically at system startup and shutdown, you must set up JP1/Base as described below. The procedure differs for each OS. The following shows the procedure for each OS.
(a) In Windows
- Using a text editor, add the following lines to the start sequence definition file (JP1SVPRM.DAT):
File location: JP1/Base-installation-folder\conf\boot\JP1SVPRM.DAT
The command specified in StopCommand is executed when JP1/Power Monitor shuts down the host.
[Jp1BaseEvent_logical-host-name] Name=JP1/BaseEvent_logical-host-name ServiceName=JP1_Base_Event logical-host-name [Jp1Base_logical-host-name] Name=JP1/Base_logical-host-name ServiceName=JP1_Base_logical-host-name StopCommand=jbs_spmd_stop.exe -h logical-host-name [Jp1AJS2_logical-host-name] Name=JP1/AJS2_logical-host-name ServiceName=JP1_AJS2_logical-host-name StopCommand=jajs_spmd_stop.exe -h logical-host-name
(b) HP-UX environment
- Create the automatic startup and automatic termination scripts for the logical host.
Location:/sbin/init.d/jp1_service_cluster
Example automatic startup and automatic termination scripts
#!/bin/sh ## Set Environment-variables PATH=/sbin:/bin:/usr/bin:/opt/jp1base/bin export PATH JP1_HOSTNAME=logical-host-name export JP1_HOSTNAME case $1 in start_msg) echo "Start JP1 Service $JP1_HOSTNAME" ;; stop_msg) echo "Stop JP1 Service $JP1_HOSTNAME" ;; 'start') if [ -x /etc/opt/jp1base/jbs_start.cluster ] then /etc/opt/jp1base/jbs_start.cluster fi if [ -x /etc/opt/jp1ajs2/jajs_start.cluster ] then /etc/opt/jp1ajs2/jajs_start.cluster fi ;; 'stop') if [ -x /etc/opt/jp1ajs2/jajs_stop.cluster ] then /etc/opt/jp1ajs2/jajs_stop.cluster fi if [ -x /etc/opt/jp1base/jbs_stop.cluster ] then /etc/opt/jp1base/jbs_stop.cluster fi ;; esac exit 0- Link to the scripts you created at step 1.
- Startup script
- Execute the following command to set up the link:
- ln -s /sbin/init.d/jp1_service_cluster /sbin/rc2.d/S***_JP1_SERVICE
- The higher the value in ***, the later the startup script is executed.
Typically, set the values so that a JP1 service that starts earlier stops later.
- Termination script
- Execute the following command to set up the link:
- ln -s /sbin/init.d/jp1_service_cluster /sbin/rc1.d/K***_JP1_SERVICE
- The higher the value in ***, the later the termination script is executed.
(c) Solaris environment
- Create the automatic startup and automatic termination scripts for the logical host.
Location: /etc/init.d/jp1_service_cluster
Example automatic startup and automatic termination scripts
#!/bin/sh ## Set Environment-variables PATH=/sbin:/bin:/usr/bin:/opt/jp1base/bin export PATH JP1_HOSTNAME=logical-host-name export JP1_HOSTNAME case $1 in start_msg) echo "Start JP1 Service $JP1_HOSTNAME" ;; stop_msg) echo "Stop JP1 Service $JP1_HOSTNAME" ;; 'start') if [ -x /etc/opt/jp1base/jbs_start.cluster ] then /etc/opt/jp1base/jbs_start.cluster fi if [ -x /etc/opt/jp1ajs2/jajs_start.cluster ] then /etc/opt/jp1ajs2/jajs_start.cluster fi ;; 'stop') if [ -x /etc/opt/jp1ajs2/jajs_stop.cluster ] then /etc/opt/jp1ajs2/jajs_stop.cluster fi if [ -x /etc/opt/jp1base/jbs_stop.cluster ] then /etc/opt/jp1base/jbs_stop.cluster fi ;; esac exit 0- Link to the scripts you created at step 1.
- Startup script
- Execute the following command to set up the link:
- ln -s /etc/init.d/jp1_service_cluster /etc/rc2.d/S**_JP1_SERVICE
- The higher the value in **, the later the startup script is executed.
Typically, set the values so that a JP1 service that starts earlier stops later.
- Termination script
- Execute the following command to set up the link:
- ln -s /etc/init.d/jp1_service_cluster /etc/rc0.d/K**_JP1_SERVICE
- The higher the value in **, the later the termination script is executed.
(d) In AIX environment
- Using the mkitab command, make the following entries in the /etc/inittab file:
The added lines execute startup processing for JP1 services when the system starts.
# mkitab -i hntr2mon "jp1base:2:wait:/etc/opt/jp1base/jbs_start.cluser logical-host-name" # mkitab -i jp1base "jp1ajs2:2:wait:/etc/opt/jp1ajs2/jajs_start.cluser logical-host-name"
- Using a text editor, add the following lines to the /etc/rc.shutdown file, after the code that terminates programs for which JP1/Base is a prerequisite:
The added lines execute termination processing for JP1 services when the system stops.
test -x /etc/opt/jp1ajs2/jajs_stop.cluster && /etc/opt/jp1ajs2/jajs_stop.cluster logical-host-name test -x /etc/opt/jp1base/jbs_stop.cluster && /etc/opt/jp1base/jbs_stop.cluster logical-host-name test -x /opt/hitachi/HNTRLib2/etc/D002stop && /opt/hitachi/HNTRLib2/etc/D002stop
(e) Setting to start and stop JP1 automatically on both logical host and physical host
To start and stop JP1 automatically on the logical host and physical host, you must perform the following setting in addition to the setup for automatic startup and termination of the logical host. Note that the setup procedure depends on the OS. The following shows the procedure for each OS.
- In Windows:
- The startup control executes start/stop processing in the order in which services are written in the start sequence definition file (JP1SVPRM.DAT), starting from the service written first. If you want to change the order in which the physical host and logical host start or stop, define their start/stop sequence in this file, in the order in which you want the hosts to start or stop.
- In HP-UX or Solaris:
- The order in which JP1 services start and stop automatically is determined by the value set in the numerical portion (S** and K**) in the automatic startup and automatic termination scripts. The higher the value, the later the service starts or stops. For a physical host, the symbolic links to these scripts are created at installation. If you want the logical host to start and stop automatically with the physical host, adjust the start/stop sequence by changing the names of the symbolic links created for the logical host.
- JP1/Base describes automatic startup and automatic termination scripts for a physical host in advance. The table below describes the symbolic links to these scripts.
Table 3-4 Symbolic links to automatic startup and automatic termination scripts for a physical host
OS Startup script Termination script HP-UX /sbin/rc2.d/S900jp1_base /sbin/rc1.d/K100jp1_base Solaris /etc/rc2.d/S99_JP1_10_BASE /etc/rc0.d/K01_JP1_90_BASE - Adjust the order in which the physical host and logical host start and stop by changing the S** and K** (number) part of the symbolic links shown above so that its value is higher or lower relative to the S** and K** (number) part of the symbolic links in the automatic startup and termination scripts.
- For example, if you want the logical host to start first, set the number part (S**) of the symbolic link to the automatic startup script you created for the logical host to a value lower than 900 (for HP-UX) or 99 (for Solaris).
- In AIX:
- To start and stop the physical host automatically, additional settings are required. For details on the additional settings, see 5.2.1 Setting services to start and stop automatically.
(3) Operations on JP1 running on the logical host
When executing a command for JP1 configured on a logical host, specify the logical host name explicitly in the same way as for a logical host running in a cluster system.
(4) Inheritance of logical host information
A logical host in a non-cluster environment cannot be failed over because it does not inherit the management information on the shared disk. For this reason, do not use such a logical host in a multiple-host environment where a logical host IP is passed from one host to another.
All Rights Reserved. Copyright (C) 2009, Hitachi, Ltd.