uCosminexus Application Server, Operation, Monitoring, and Linkage Guide

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

19.5.6 Setting the server-compliant environment

When setting the server-compliant environment with the HA monitor, define the environment of the executing server and standby server to be operated on the nodes.

In the (N number of) executing nodes
You must specify individual settings in the N number of nodes.

In the standby node (One node for recovery)
You must specify the settings for N number of executing nodes.

In the servers definition file, define the server-compliant environment for N-to-1 recovery system. The following table describes the settings for the server-compliant environment:

Table 19-5 Settings for the server-compliant environment (In the N-to-1 recovery system)

Operand Settings
name
  • In the executing nodes
    To generalize the startup command in the N nodes, specify a unique name in name, and describe the shell script file for starting the Administration Agent in actcommand.
  • In the standby node
    Specify the same value as the corresponding executing node.
alias
  • In the executing nodes
    This operand specifies the identification name of the server.
    Specification example: AP1
  • In the standby node
    Specify the same value as the corresponding executing node.
acttype This operand specifies the startup method of the server. Here, you specify monitor because you start the server with the HA monitor command.
termcommand
  • In the executing nodes
    This operand specifies the shell script file for stopping the Administration Agent and logical servers of the executing nodes.
    Specification example: /home/manager/hamon/bin/stop.sh
  • In the standby node
    This operand specifies the shell script file for stopping the Administration Agent and logical servers of the standby node.
initial This operand specifies the status when you start the server.
  • In the executing nodes
    Specify online.
  • In the standby node
    Specify standby.
disk This operand specifies the character-type special file name of the shared disk device.
  • In the executing nodes
    Specify in accordance with the allocated shared disk.
  • In the standby node
    Specify the same value as the corresponding executing node.
lan_updown This operand specifies whether or not to use the status setup file of LAN. Specify use because you are using the status setup file of LAN.
fs_name This operand specifies the absolute path name of the logical volume corresponding to the file system to be switched to.
  • In the executing nodes
    Specify in accordance with the allocated shared disk.
  • In the standby node
    Specify the same value as the corresponding executing node.
fs_mount_dir This operand specifies the absolute path name of the mount-destination directory of the file system to be switched to.
  • In the executing nodes
    Specify in accordance with the allocated shared disk.
  • In the standby node
    The mount directory is different for each corresponding executing node. You must create the mount directory beforehand when building the standby node because only an existent directory must be specified.
patrolcommand
  • In the executing nodes
    This operand specifies the shell script file for monitoring the processes of the Administration Agent.
    Specification example: /home/manager/hamon/bin/monitor.sh
  • In the standby node
    Specify the monend command, and once the recovery process with actcommand has terminated, you terminate the HA monitor.
servexec_retry This operand specifies the restart frequency when the system detects a failure in an executing node. Specify the same value in the executing nodes and the standby node.
waitserv_exec Specify yes to wait for completion of execution of the startup command when the startup completion process is executed.
actcommand
  • In the executing nodes
    This operand specifies the shell script file for starting the Administration Agent.
    Specification example: /home/manager/hamon/bin/start.sh
  • In the standby node
    This operand specifies the shell script file for executing the recovery process.
    Specification example: /home/manager/hamon/bin/recover.sh

A sample of the servers file is described as follows. N and N + 1 in the sample indicate the Nth value and N + 1th value, respectively.

Sample of the servers file (In the executing node)
The underlined part in this sample indicates that the contents are different for each executing node.
 
server name            $name_N,
       alias           $alias_N,
       acttype         monitor,
       initial         online,
       termcommand     /home/manager/hamon/bin/stop.sh,
       disk            $disk_N,
       lan_updown      use,
       fs_name         $fs_name_N,
       fs_mount_dir    /hamon,
       patrolcommand   /home/manager/hamon/bin/monitor.sh,
       servexec_retry  3,
       waitserv_exec   yes,
       actcommand      /home/manager/hamon/bin/start.sh;
 

Sample of the servers file (In the standby node)
In this sample, to set a single command for executing the recovery process, different information (alias name, alias IP address, and mount directory) is passed as arguments for each executing node. The underlined part in this sample indicates that the contents are different from the servers file of the executing node.
 
server name             $name_N,
       alias            $alias_N,
       acttype          monitor,
       initial          standby,
       termcommand      /home/manager/hamon/bin/stop.sh,
       disk             $disk_N,
       lan_updown       use,
       fs_name          $fs_name_N,
       fs_mount_dir     $mnt_N,
       patrolcommand    "/opt/hitachi/HAmon/bin/monend $alias_N",
       servexec_retry   3,
       waitserv_exec    yes,
       actcommand       "/home/manager/hamon/bin/recover.sh $alias_N $ip_N $mnt_N";
 
server name             $name_N+1,
       alias            $alias_N+1,
       acttype          monitor,
       initial          standby,
       termcommand      /home/manager/hamon/bin/stop.sh,
       lan_updown       use,
       disk             $disk_N+1,
       fs_name          $fs_name_N+1,
       fs_mount_dir     $mnt_N+1,
       patrolcommand    "/opt/hitachi/HAmon/bin/monend $alias_N+1",
       servexec_retry   3,
       waitserv_exec    yes,
       actcommand       "/home/manager/hamon/bin/recover.sh $alias_N+1 $ip_N+1 $mnt_N+1";
 
The settings to be specified in the servers file of the standby node are described as follows.
  • Describe the settings for the N number of executing nodes in the servers file of the standby node. Also describe entries corresponding to the executing nodes.
  • To set a single command for executing the recovery process, we recommend that you pass different information (alias name, alias IP address, and mount directory) as arguments for each executing node.