Observe the following prerequisites:
The Primary RLINK that points to the Secondary host participating in the vradmin ibc command must be in the connect state.
The onfreeze script must exist on each Secondary host participating in the vradmin ibc command.
Make sure each user-defined script to be used in the vradmin ibc command exits with a status of 0 on successful completion and a status of nonzero on unsuccessful completion.
The user-defined scripts must have execute permissions for root user.
Make sure that scripts have interpreter information in the first line of the IBC shell script. If the first line is a comment or is blank, vradmin ibc does not execute the script.
To perform an off-host processing task on one or more Secondary RVGs in an RDS
/etc/vx/vvr/ibc_scripts/task_name
where 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.
See Understanding the scripts used for the vradmin ibc command.
# vradmin -g diskgroup ibc rvg_name task_name [sechost]...[-all]
The argument diskgroup represents the disk group that contains the RVG on the local host.
The argument rvg_name is the name of the RVG on the local host and represents its RDS.
The argument task_name is the name of the off-host processing task and is the same as the name of the directory created in step 2.
The argument sechost is the name of the Secondary host as displayed in the output of the vradmin printrvg command. The argument sechost is optional if the RDS contains only one Secondary. To perform the task on multiple Secondary hosts, specify a space-separated list with the name of each Secondary to be included. Use the -all option to perform the task on all the Secondary hosts in the RDS.
This example shows how to create a snapshot of the data volumes on the Secondary london using the vradmin ibc command. The RVG hr_rvg, which belongs to the disk group hrdg, has been created on the Primary and Secondary. This example also assumes that Secondary data volumes have associated snapshot plexes. It uses the application name dss_app.
/etc/vx/vvr/ibc_scripts/dss_app
#!/bin/sh /usr/sbin/vxrvg -g hrdg snapshot hr_rvg
You can use the vxrvg snapshot command to create instantfull, instantso, or plexbreakoff snapshots.
# vradmin -g hrdg ibc hr_rvg dss_app london