Description
|
Performs the following actions before a service containing IP resources is brought online:
|
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.
|