Hitachi Dynamic Link Manager Software Users Guide for AIX (6.6) (T5208-96010, April 2011)

3. Creating an HDLM Environment
163
3.13 Settings for Using VCS
To use VCS, install HDLM on all of the hosts that comprise the cluster, and then
configure the HDLM devices. Also, carry out the following procedure before starting
VCS:
1. Specify the settings for starting the
preonline script when VCS starts.
When you have specified the settings for starting the
preonline script, go to
step 2.
For details on the setting method, see the VCS documentation.
The following example shows settings for starting the
preonline script when
VCS starts:
# haconf -makerw
# hagrp -modify
service-group PreOnline 1
# haconf -dump -makero
# cp -r /opt/VRTSvcs/bin/sample_triggers/preonline /opt/
VRTSvcs/bin/triggers
2. In the preonline script used when VCS starts, register the script provided by
HDLM.
Add the following code to the line under
# put your code here... in the
preonline script.
system("/usr/DynamicLinkManager/cluster/dlm_vcs_pgr_release
$ARGV[1]");
The following shows an example of editing the preonline script. The shaded
portion represents the part to be added.