Using the DB2 database Toolkit in a Serviceguard Cluster in HP-UX Release README: B.06.00
E. DB2 Package Configuration Example
- Package Setup and Configuration
1. Assuming DB2 is already installed.
Follow the instructions in the chapter "Building an HA
Cluster
Configuration" in the "Managing ServiceGuard" manual to create a
logical
volume infrastructure on a shared disk. The disk must be
exposed to
all clustered nodes that will be configured to run this database
instance.
Since the volume group and file system have to be uniquely named
within the
cluster, use the name of the database instance in the name.
Assuming the
name of the database instance is 'payroll_inst', follow the
instructions
in the "Managing ServiceGuard" manual ("Building an HA
Cluster
Configuration") to create the following:
/dev/vg0_payroll (the volume group)
/dev/vg0_payroll/lvol1 (the logical volume)
/dev/vg0_payroll/lvol1 (the filesystem) mounted at
/mnt/payroll
2. Test the set up to ensure that DB2 can be properly brought up.
Test DB2
to ensure that it can be properly started by executing the
script
toolkit.sh.
Example :
cd /tmp/db2
cp /opt/cmcluster/toolkit/db2/* .
Edit the DB2 toolkit configuration file hadb2.conf
./toolkit.sh start )
Wait a few minutes, then check for the existence of DB2
processes
(there should be several, identified by "db2")
ps -ef | grep db2
Bring the database down, unmount, and deactivate the volume group.
./toolkit.sh stop
umount /mnt/payroll
vgchange -a n /dev/vg0_payroll