Distributed Systems Administration Utilities User's Guide

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%>. Find the
line
"SUBNET <%SG_PKG_SUBNET%>"
and replace the token with the subnet for the csync package. Use netstat -i to help
identify the subnet.
4. Edit the package control script, 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,largefiles.
e. Find the line "FS_TYPE[0]=<%SG_PKG_FS_TYPE%>" and replace the token
with the filesystem type. For example, FS_TYPE[0]=vxfs.
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.
5. Distribute the package control script and package ASCII configuration files cluster-wide:
# ccp csync csync.conf /etc/cmcluster/csync/
6. Apply the package and start it:
# cmapplyconf -P csync.conf
# cmmodpkg -e csync
Test the csync Package Configuration
Test the configuration by performing the following steps:
34 Configuration Synchronization