Installation guide
Section 5.4:Setting Up a DB2 Service 99
2>/dev/null &
14. Check for errors during the installation by examining the installation log file. Every step in the
installation must be marked as
SUCCESS except for the following:
DB2 Instance Creation FAILURE
Update DBM configuration file for TCP/IP CANCEL
Update parameter DB2COMM CANCEL
Auto start DB2 Instance CANCEL
DB2 Sample Database CANCEL
Start DB2 Instance
Administration Server Creation FAILURE
Update parameter DB2COMM CANCEL
Start Administration Serve CANCEL
15. Test the database installation by invoking the following commands, first on one cluster system,
and then on the other cluster system:
# mount -t ext2 /dev/sda3 /db2home
# su - db2inst1
# db2start
# db2 connect to sample
# db2 select tabname from syscat.tables
# db2 connect reset
# db2stop
# exit
# umount /db2home
16. Create the DB2 cluster start/stop script on the DB2 administration and instance data partition. For
example:
# vi /db2home/ibmdb2
# chmod u+x /db2home/ibmdb2
#!/bin/sh
#
# IBM DB2 Database Cluster Start/Stop Script
#
DB2DIR=/usr/IBMdb2/V6.1
case $1 in
"start")
$DB2DIR/instance/db2istrt
;;
"stop")
$DB2DIR/instance/db2ishut