Distributed Systems Administration Utilities User's Guide, Linux, March 2009

# cp /dsau/share/serviceguard/templates/csync.script.template
csync
# chmod +x csync
3. Edit the csync.conf package ASCII configuration file to replace the placeholder tokens
with the appropriate values. The tokens are in the form <%token name%>.
a. Find the line
"SUBNET <%SG_PKG_SUBNET%>"
Replace the token <%SG_PKG_SUBNET%> with the subnet for the csync package.
(Use netstat -i to help identify the subnet.)
b. Find the lines that contain the <%SG_PKG_SGCONF%> token. Replace each token
with the full path to the Serviceguard package configuration directory. The
Serviceguard package configuration directory is defined as SGCONF in the file
/etc/cmcluster.conf.
4. Edit the package control script, csync, and substitute appropriate values for the
placeholder tokens.
NOTE: The default script template assumes you are using an LVM-based storage
configuration. If you are using VxVM or CFS, refer to the Managing Serviceguard
documentation for more information on configuring packages using those technologies.
You will have to comment out the LVM parts of the template described below and
substitute the appropriate VxVM or CFS stanzas.
a. Find the line "VG[0]="<%SG_PKG_VOL_GRP%>"" and replace the token with the
name of the LVM volume group for the package. For example,
VG[0]=/dev/vgcsync.
b. Find the line "LV[0]=<%SG_PKG_LOG_VOL%>" and replace the token with the
full name of the logical volume. For example, LV[0]=/dev/vgcsync/lvol1.
c. Find the line "FS[0]=<%SG_PKG_FS%>" and replace the token with the name
of the filesystem mount point created for this package. For example,
FS[0]=/csync.
Note that this mount point should have been created on each cluster member as
part of the storage configuration described above.
d. Find the line "FS_MOUNT_OPT[0]=<%SG_PKG_MNT_OPT%>" and replace the
token with the filesystem’s mount options. For example, FS_MOUNT_OPT[0]=-o
rw.
e. Find the line "FS_TYPE[0]=<%SG_PKG_FS_TYPE%>" and replace the token
with the filesystem type. For example, FS_TYPE[0]=ext3.
f. Find the line "FS_UMOUNT_OPT[0]=<%SG_PKG_FS_UMOUNT_OPT%>" and
replace the token with any filesystem umount options. The token can be removed
and this option left blank if there are no special umount options. For example,
FS_UMOUNT_OPT[0]=“”.
g. Find the line "FS_FSCK_OPT[0]=<%SG_PKG_FS_FSCK_OPT%>" and replace
the token with any filesystem specific fsck options. As above, the token can be
deleted and this option left blank. For example, FS_FSCK_OPT[0]=“”.
h. Find the line IP[0]=<%SG_PKG_IP%> and replace the token with the IP address
of the csync package. For example, IP[0]= 123.456.789.3.
i. Find the line "SUBNET[0]=<%SG_PKG_SUBNET%>" and replace the token with
the subnet for the package’s IP address. Use netstat -i to help determine the
subnet. For example, SUBNET[0]= 123.456.789.0.
2.3 Configuring cfengine 37