IBM Hub/Switch Switch User Manual


 
Appendix G High Availability
HPSS Installation Guide September 2002 559
Release 4.5, Revision 2
HACMP is able to control HPSS by using a set of scripts that are included in the HPSS installation
under $HPSS_ROOT/tools/ha (by default, /opt/hpss/tools/ha):
hpss_environment
hpss_start.ksh
hpss_stop.ksh
hpss_sync.ksh
hpss_verify.ksh
hpss_snapshot.ksh
hpss_notify.ksh
hpss_aix_error.ksh
hpss_cluster_notify.ksh
These scripts need to be stored locally on each node’s internal disks, not on shared storage. They
will also have to be customized to operate within any particular HA HPSS environment. To ready
the scripts, take the following steps:
1. Copy the scripts to a directory on the rootvg of one of the HA HPSS nodes (we’ll call this
node 1 for the remainder of these steps). We’ll assume that the scripts are copied to /var/
hahpss.
2. Customize the hpss_environment file. Pay special attention to the following fields:
HAHPSS_HPSSADM_SUPPORT - Must be set to off. This option is not yet supported.
HAHPSS_PATH - Must be set to the absolute path to the directory containing these scripts.
This would be /var/hahpss in this example.
3. Customize the script paths to the hpss_environment file. Each script file must be able to
find the hpss_environment file to pick up configuration settings. However, there is no
guarantee that the scripts will be called from any particular directory, therefore they have
to know the absolute pathname of the hpss_environment filein order to find it reliably. Edit
all the .ksh files, and update the path in the following line:
. /usr/sbin/cluster/events/hpss/hpss_environment
For example, the updated line will most likely be:
. /var/hahpss/hpss_environment
4. Customize hpss_notify.ksh if desired. This file is called when an event occurs that may be
interesting to a system administrator. The default script outputs the information to a file
(default: hpss_notify_hist). However, the intent is that sites may modify this file to send
email or page administrators when messages come through.
The script is called with two arguments. The first is a text string relaying the basic message,
and the second contains particular details. For example, the first string may say, “A hard
disk has failed.” While the second might say, “hdisk2”.
5. Change the owner and mode bits.
% cd /var/hpss
% chown root:hpss *
% chmod u+x *.ksh