Hitachi

For Linux(R) (x86) Systems HA Monitor Cluster Software


9.6 monchange (changes settings and operations while HA Monitor and servers are running)

Format

Changing an HA Monitor setting:
monchange -m operand-name value
Changing the operations of monitoring the system disk:
monchange –m operand-name {-stop_patrol | -start_patrol}
Setting and releasing the online serverless mode:
monchange –m operand-name {-use | -nouse}
Changing a server setting:
monchange -s server-alias-name operand-name value
Changing the operations of monitoring servers:
monchange –s server-alias-name operand-name {-stop_patrol | -start_patrol}
Changing a monitor-mode program setting:
monchange -p monitor-mode-program-alias-name operand-name value

Users who can execute the command

Superuser

Description

While HA Monitor and servers are running, you can change the following settings and operations:

HA Monitor setting:

You can change the host failure monitoring time specified in the patrol operand in the HA Monitor environment settings.

Operation of system disk monitoring:

You can temporarily stop or restart the monitoring of the system disk specified in the disk_ptrl operand in the HA Monitor environment settings. When the monitoring of the system disk is restarted, the monitoring definition file for the system disk that currently exists takes effect.

Setting and releasing the online serverless mode:

You can set or release the online serverless mode.

To set the online serverless mode, all servers must be terminated. If setting of the online serverless mode is successful, the KAMN545-I message is output. If the setting fails, the KAMN547-E message is output.

To release the online serverless mode, all servers must be placed in one of the following statuses:

  • The server has terminated.

  • The active server has finished startup or is ready for hot-standby switchover (server status: ONL).

  • The standby server is ready for hot-standby switchover (server status: SBY).

If releasing of the online serverless mode is successful, the KAMN546-I message is output. If the releasing fails, the KAMN548-E message is output.

Changing a server setting:

You can change the server failure monitoring time specified in the patrol operand in the server environment definition.

Operation of server monitoring:

You can temporarily stop or restart the monitoring of the monitor-mode server specified in the ptrlcmd_ex or sby_ptrlcmd_ex operand in the server environment definition. You can also temporarily stop or restart the monitoring of the disks for business use on the server specified in the disk_ptrl operand in the server environment definition. When the monitoring of disks for business use on the server is restarted, the monitoring definition file for the disk for business use that currently exists takes effect.

Changing a monitor-mode program setting:

You can change the program slowdown monitoring interval specified in the patrol operand in the monitor-mode program environment definition.

Options

Changing the HA Monitor setting:
  • -m

    Specifies that the HA Monitor setting is to be changed.

  • operand-name

    Specifies patrol as the name of the operand whose HA Monitor setting to be changed.

  • value

    Specifies a new value for the patrol operand. For details about the patrol operand value, see 8.3.1 HA Monitor environment settings (sysdef).

Changing the method of monitoring the system disk:
  • -m

    Specify this option when changing the method of monitoring the system disk.

  • operand-name

    Specify disk_ptrl as the name of the operand for the monitoring of the system disk.

  • value

    To temporarily stop the monitoring, specify -stop_patrol. To restart the monitoring that is temporarily stopped, specify -start_patrol.

Setting and releasing the online serverless mode:
  • -m

    Specify this option when setting or releasing the online serverless mode.

  • operand-name

    Specifies onlless_mode as the name of the operand setting or releasing the online serverless mode.

  • value

    Specify -use to set the online serverless mode. Specify -nouse to release the online serverless mode.

Changing a server setting:
  • -s

    Specifies that the server setting is to be changed.

  • server-alias-name

    Specifies the server alias name of the server whose setting is to be changed.

  • operand-name

    Specifies patrol as the name of the operand whose server setting is to be changed.

  • value

    Specifies a new value for the patrol operand. For details about the patrol operand value, see 8.4.1 Server environment definition (servers).

Changing the method of server monitoring:
  • -s

    Specify this option when changing the method of server monitoring.

  • server-alias-name

    Specifies the server alias name of the server for which you want to change the method of monitoring.

  • operand-name

    The value to be specified differs depending on the monitoring target for which you want to change the method of monitoring. Specify one of the following values:

    If the monitoring target is the active server, specify ptrlcmd_ex.

    If the monitoring target is the standby server, specify sby_ptrlcmd_ex.

  • value

    To temporarily stop the monitoring, specify -stop_patrol. To restart the monitoring that is temporarily stopped, specify -start_patrol.

Changing a monitor-mode program setting:
  • -p

    Specifies that a setting for a monitor-mode program that uses the program management function is to be changed.

  • monitor-mode-program-alias-name

    Specifies the alias name of the monitor-mode program whose setting is to be changed.

  • operand-name

    Specifies patrol as the name of the operand whose value is to be changed for the monitor-mode program.

  • value

    Specifies a new value for the patrol operand. For details about the patrol operand value, see 8.5.1 Monitor-mode program environment definition (programs).

Return codes

Value

Meaning

0

Normal termination (Changing the settings and operations while HA Monitor and servers are running was completed.)

Other than 0

Abnormal termination

Notes

Examples

Changing the HA Monitor setting:
monchange -m patrol 60
Changing the operations of monitoring the system disk:

To temporarily stop the monitoring of the system disk, execute the following command:

monchange –m disk_ptrl -stop_patrol

To restart the monitoring of the system disk, execute the following command:

monchange –m disk_ptrl -start_patrol
Setting and releasing the online serverless mode:

To set the online serverless mode, execute the following command:

monchange -m onlless_mode -use

To release the online serverless mode, execute the following command:

monchange -m onlless_mode -nouse
Changing a server setting:
monchange -s server1 patrol 5
Changing the operation of server monitoring:

To temporarily stop the monitoring on the active server, execute the following command:

monchange –s server1 ptrlcmd_ex -stop_patrol

To restart the monitoring on the active server, execute the following command:

monchange –s server1 ptrlcmd_ex -start_patrol
Changing a monitor-mode program setting:
monchange -p program1 patrol 600