preonline_ipc event trigger

Description

Performs the following actions before a service containing IP resources is brought online:  

  • Verifies that IP addresses configured for IP resources in the service group are not online anywhere else.

    If a configured IP address is online somewhere else, the trigger waits for 5 seconds. If the configured IP is online after 5 seconds, the trigger aborts the online operation for the IP resource.

  • Verifies that the node is not isolated from other nodes in the cluster by pinging the broadcast address and checking the heartbeat links. If the trigger does not find any heartbeat links and the broadcast ping fails, the trigger aborts the online operation to prevent possible split brain condition.

Usage

- preonline  triggertype system service_group whyonlining [system_where_group_faulted] 

  • triggertype—represents whether trigger is custom (triggertype=0) or internal (triggertype=1).

    For this trigger, triggertype=0.

  • system—represents the name of the system.
  • service_group—represents the name of the service group on which the hagrp command was issued or the fault occurred.
  • whyonlining—represents two values:

    fault: Indicates that the group was brought online in response to a group failover or switch.

    manual: Indicates that group was brought online manually on the system that is represented by the variable system.

  • system_where_group_faulted—represents the name of the system on which the group has faulted or switched. This variable is optional and set when the engine invokes the trigger during a failover or switch.

    Note   To use this trigger, copy the preonline_ ipc script from $VCS_HOME/bin/sample_triggers to $VCS_HOME/bin/triggers/ and rename the script to preonline. If you use the preonline trigger for other purposes, merge the contents of the preonline_ipc script with those of the preonline script.

To enable the trigger

Set the PreOnline attribute in the service group definition to 1.  

You can set a local (per-system) value for the attribute to control behavior on each node in the cluster.  

To disable the trigger

Set the PreOnline attribute in the service group definition to 0. 

You can set a local (per-system) value for the attribute to control behavior on each node in the cluster.