IBM Books

Quick Beginnings for DB2 Extended Enterprise Edition for UNIX


Step 3. Enable the Fast Communication Manager



note

If you are using Network Information Services (NIS), NIS+, or any other tools to manage system configuration files, you must perform this step on the master server. After you have completed the following, ensure that the changes have taken effect on all DB2 servers.

To enable FCM communications between database partition servers, you must create a service entry for each logical node in the /etc/services file. The service name maps the database partition server at the machine to the actual TCP/IP port that is used. The syntax of a service entry is as follows:

  DB2_instance port/tcp #comment

where:

 DB2_ instance
Is the name of the DB2 Extended Enterprise Edition instance. All characters in the name must be lowercase. Assuming an instance name of db2inst1, you would specify DB2_db2inst1.

port /tcp 
Is the TCP/IP port that you want to reserve for the database partition server (node).

comment
Any comment that you want to associate with the entry. The comment must be preceded by a pound sign (#).

You must ensure that the entry defined above is the same in all /etc/services files on all machines.

As an example, suppose you wanted to make an entry in /etc/services for the instance db2inst1, and have it assigned to the TCP/IP port 9000 (indicating that there is only one node on every machine in the instance). The service name is:

   DB2_db2inst1     9000/tcp
 

If you want a single machine to have multiple logical nodes for an instance, you will need to allocate multiple ports for FCM to use; one port is needed for each logical node. Enter two lines in the /etc/services file to indicate the number of ports that you are allocating. The first line specifies the first port, while the second line indicates the end of the block of ports. In the following example, five ports are allocated for the instance. This means that no machine in the instance db2inst1 is running more than five logical nodes.

   DB2_db2inst1        9000/tcp
   DB2_db2inst1_END    9004/tcp

You must ensure that the number of ports allocated in the file is either greater than or equal to the largest number of multiple logical nodes on any machine in the instance. When allocating ports, ensure that you account for any machines that can be used as a backup (for example, if you use High Availability (HA)).
Note:Specify the END keyword in uppercase only. Also ensure that you include both underscore (_) characters.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]