Chapter 4. Implementation 163
3. Verify that all related host names can be resolved.
Verify that all related host names and switch names can be resolved on all
participating computers using DNS or the /etc/hosts file.
4. Prepare the .rhosts file.
In a partitioned database environment, each database partition must have the
authority to execute remote commands on all the other participating
computers. Update the .rhosts file of the instance owner to accept remote
command invocations (see “Enable remote shell” on page 151).
4.3.5 Instance creation
To create an instance, follow the steps below.
1. Create an instance.
Only the root user can create an instance. The instance creation command
syntax is as below.
/opt/IBM/db2/V8.1/instance/db2icrt -s ESE -u fenceuser owneruser
fenceuser is a fence user name and owneruser is an instance owner user
Switch to the owner user and test if you can start the instance.
# su - db2inst1
# db2start
2004-07-17 17.51.30 0 0 SQL1063N DB2START processing was
SQL1063N DB2START processing was successful.
In this example, we assume the owner is db2inst1. Do not forget to stop the
instance for now.
2. Enable client connections.
To make a DB2 instance accept connections from database clients over
TCIP/IP, you must update a registry variable and a database manager
configuration parameter.
# db2set DB2COMM=TCPIP
Note: If you plan to configure your instance with failover capability, two
cautions must be taken to make NFS service highly available. First, you
must place the home directory in a shared storage, not in a local disk, so
that either computer can take over the home directory for NFS service.
Second, every computer should include the same entries for the home
directory in /etc/exports and /etc/fstab for the home directory.

Get DB2 Integrated Cluster Environment Deployment Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.