Understanding the scripts used for the vradmin ibc command

The vradmin ibc command executes the user-defined scripts: prefreeze, quiesce, unquiesce, onfreeze, and postfreeze. Note that the onfreeze script is mandatory and must be present on the Secondary. The scripts prefreeze, quiesce, unquiesce, and postfreeze are optional. However, if you provide the quiesce script, you must provide the unquiesce script and vice versa. You must name the user-defined scripts prefreeze, quiesce, unquiesce, onfreeze, or postfreeze.

Note:

A user-defined script can either be a shell script or a binary.

The following describes how each script is used with the vradmin ibc command:

Location of the scripts used for the vradmin ibc command

The scripts must reside in the /etc/vx/vvr/ibc_scripts/task_name directory on the Primary and the Secondary host. Note that task_name is the name of the off-host processing task and is the same as the task_name argument used in the vradmin ibc command. For example, if the off-host processing task is Decision Support Systems (DSS), you can choose a task name of dss; or if the off-host processing task is Backup, you can choose the task name of backup.

Table: Locations of the scripts for off-host processing shows the locations of the scripts for off-host processing.

Table: Locations of the scripts for off-host processing

Host

Directory

Name of Script

Primary

/etc/vx/vvr/ibc_scripts/task_name

quiesce

Primary

/etc/vx/vvr/ibc_scripts/task_name

unquiesce

Secondary

/etc/vx/vvr/ibc_scripts/task_name

onfreeze

Secondary

/etc/vx/vvr/ibc_scripts/task_name

prefreeze

Secondary

/etc/vx/vvr/ibc_scripts/task_name

postfreeze

In a shared disk group environment, the scripts must exist on each node in the Primary or Secondary cluster. That is, the quiesce and unquiesce scripts must exist on each node in the Primary cluster; the onfreeze, prefreeze, and postfreeze scripts must exist on each node in the Secondary cluster.

When the vradmin ibc command executes each script, it passes the following arguments to the script:

Argument 1

Name of the disk group of the Primary RVG.

Argument 2

Name of the Primary RVG.

Argument 3

The task_name specified in the vradmin ibc command.

Remaining Arguments

Names of the RLINKs participating in the vradmin ibc command.