This will create keys named localhost.priv and localhost.pub in the directory /var/opt/dsau/cfengine/ppkeys.

2.The public key, localhost.pub is then copied to root-package IP address.pub. For example,

# cp localhost.pub root-192.10.25.12.pub

where 192.10.25.12 is the relocatable IP address of the csync package.

3.This member’s localhost.pub is then used to create the member-specific keys for each member:

#cp localhost.pub root-member1 IP address.pub

#cp localhost.pub root-member2 IP address.pub

#cp localhost.pub root-member3 IP address.pub

#cp localhost.pub root-memberN IP address.pub

4.Finally, all the keys are copied to each member.

#ccp * /var/opt/dsau/cfengine/ppkeys

NOTE: ccp, a command-fanout command, performs a cluster copy, copying a command to all cluster members.

Configure and start cfservd

1.Configure the cfservd daemon to start at system startup. Edit /etc/rc.config.d/

cfservd and change the line CSYNC_CONFIGURED=0 to CSYNC_CONFIGURED=1.

2.Propagate this change cluster-wide:

#ccp /etc/rc.config.d/cfservd /etc/rc.config.d/cfservd

3.On the master server, start cfservd:

#/sbin/init.d/cfservd start

4.Repeat for the remaining cluster members. If you have configured the cluster for use with the DSAU command fanout tools, use the following command to start the daemons cluster-wide:

#cexec /sbin/init.d/cfservd start

Create the csync Package

To create the configuration synchronization package, modify the default package template files as appropriate for your Serviceguard environment. Note that the package must be called csync. Failure to do so will cause the Serviceguard automated operations to fail. For more information, refer to the section “Serviceguard Automation Features” (page 23).

Start by making the following changes:

1.Create the package directory cluster-wide:

#cexec mkdir /etc/cmcluster/csync

2.Copy the template package ASCII file and package control script to the /etc/ cmcluster/csync directory on the current member:

#cd /etc/cmcluster/csync

#cp /opt/dsau/share/serviceguard/templates/csync.conf.template csync.conf

#cp /dsau/share/serviceguard/templates/csync.script.template csync

#chmod +x csync

2.3 Configuring cfengine

33