HP Serviceguard for Linux Version A.11.19 Deployment Guide, September 2012

33
k. Locate the string .
l. Add the following customer defined run command,
/usr/local/cmcluster/conf/ws/toolkit.sh start”, such that the function looks like the
following:
function customer_defined_run_cmds
{
# ADD customer defined run commands.
: # do nothing instruction, because ..
/usr/local/cmcluster/conf/ws/toolkit.sh start
test_return 51
}
m. Locate the string .
n. Add the following customer defined halt command,
/usr/local/cmcluster/conf/ws/toolkit.sh stop”, such that the function looks like the
following:
function customer_defined_halt_cmds
{
# ADD customer defined halt commands.
: # do nothing instruction, because ..
/usr/local/cmcluster/conf/ws/toolkit.sh stop
test_return 52
}
4. Then click “Save and Distribute”.
5. Check for any error messages in the Operations Log. If none, click “OK”.
6. Click “Close” in the “Edit Control Script window.
7. Click “OK” on the “Create a Legacy Package” page.
8. Click “Check Configuration”.
9. Check for any error messages in the Operations Log. If none, click “OK”.
10. Click “Apply Configuration”.
11. Click OK” in the pop-up dialog box.
Customize and Distribute Toolkit Files
To customize and distribute the Toolkit files and the httpd.conf file, perform the following steps:
1. Login to one of the cluster nodes, for example eve.
2. Change to the ws package directory.
3. Copy the Apache Toolkit files into the package directory.
cp /usr/local/cmcluster/apachetoolkit/* .
4. Edit hahttp.conf to change following line for the location of the httpd.conf file.
5. Copy the default httpd.conf file to the package directory, for example:
cp /etc/httpd/conf/httpd.conf .
6. Edit the package’s httpd.conf file. These tell the Apache instance (httpd) in the “ws” package
to use content from the shared volume group (/dev/vgws mounted at /ws) and specifies the
listen address to be the package’s relocatable IP address. Change the following directives,
for example:
7. Copy the Toolkit files and httpd.conf file to other node, for example adam:
Start the Sample Package
You will need to run the package to complete the configuration:
1. From your browser on the HP Serviceguard Manager Summary page, select the ”ws”
package.