Adding and dropping nodes (partition servers)
In PATROL for DB2 UDB, database partition servers are referred to as nodes. In a multi-partitioned DB2 system, administration tasks include adding and dropping nodes, setting up the database partitions on added nodes, and managing the db2nodes.cfg file.
All these tasks are easily accomplished in the PATROL console by right-clicking on a DB2 EEE instance icon and choosing commands from the DB2 Node Administration menu.
Before you begin
Ensure that you have properly installed and configured your new server before using this command to add it to your DB2 node configuration.
To start the DBM and add a node
- Right-click on the DB2EEE instance icon and select DB2 Node Administration > Start DBM to Add Node.
- Specify a node number, the host name, and port number for the new node that is being added to the db2nodes.cfg file.
You can also specify options to use for creating the tablespaces on the new node partition, and optionally can specify a particular profile to use other than the default DB2 profile to start the DBM. To add the node to the db2nodes.cfgfile, stop the DBM and then restart it.
To run the add node utility at the node to create database partitions
- Right-click on the DB2EEE node icon and select Database Administration > Node Mgmt > Add Node to Databases.
- select the appropriate tablespace options to create the new partitions.
If a problem occurs
When you are adding a new node, a problem might occur when you create the new partitions with temporary tablespaces if the node fails to communicate with another node from which it is attempting to retrieve the required tablespace definitions. One cause for the failure might be the timeout value set for the node to respond. Try resetting the DB2 start/stop timeout parameter in the DBM configuration.
Also ensure that the default port configuration has been enabled on the new node (see the following procedure for instructions).
To configure the default port service for an added node
- Right-click the DB2EEE_SETUP icon and select Configuration > Configure Default Ports to get the port service information for the instance or instances that you will monitor on the added node.
- Configure default ports with port numbers by using the following method that is appropriate for your system:
- AIX
Run the Configure Default Ports command and enter the port service name and beginning and ending port numbers for the selected instance. If you are configuring more than one instance, select the next instance and enter the port information for that instance. Repeat the steps until all instances are configured.
- AIX
Windows NT or Windows 2000
Manually update the services file on the new node by adding the following lines to the file:
DB2EEEKM startingPortNumber/tcp DB2EEEKM_END endingPortNumber/tcpOracle Solaris
Update the /etc/services file or /etc/inet/services if /etc/services is a symbolic link by adding the following lines:
DB2EEEKM serviceName startingPortNumber/tcp DB2EEEKM_END serviceNameEND _endingPortNumber/tcp
To drop a node
- Right-click on the DB2EEE instance icon and select DB2 Node Administration > Stop DBM to Drop Node.
Enter the number of the node that you want to drop.
To view the db2nodes.cfg file before adding or dropping a node
Right-click the DB2EEE instance icon and select DB2 Node Administration > List Node Configuration.