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
# 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
#cp localhost.pub
#cp localhost.pub
#cp localhost.pub
…
#cp localhost.pub
4.Finally, all the keys are copied to each member.
#ccp * /var/opt/dsau/cfengine/ppkeys
NOTE: ccp, a
•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
#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
#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
#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 |