DB2 10.5 for Linux, UNIX, and Windows

Creating a DB2 pureScale instance in installations without an instance

Creating a DB2® pureScale® instance in a DB2 pureScale environment is only required if you did not choose to create one during installation. DB2 pureScale Environments support only one DB2 pureScale instance.

Before you begin

About this task

If you installed DB2 pureScale Feature by using either the DB2 setup wizard or a response file, by default a DB2 pureScale instance is created. However, if you choose to not create the instance during installation, or, if you installed DB2 pureScale Feature by using the db2_install command, you must manually create the DB2 pureScale instance.

Important: The command db2_install is deprecated and might be removed in a future release. To install with the command line, run the db2setup command with a response file to specify the installation options. To specify the response file, use the -r option and the response file path. The db2setup command has the benefit of being able to create a DB2 pureScale instance, and set up the cluster caching facilities and DB2 members.

Use this topic to create a DB2 pureScale instance after you install the DB2 pureScale Feature.

You can use the db2icrt command to create a DB2 pureScale instance with one cluster caching facility (CF) and one member. The db2icrt command must be issued on either the target CF host or the target member host. The host where the command is issued is referred to as installation-initiating host (IIH).

You can also use the db2isetup command to create an instance. The db2isetup command can also be used to create an instance with multiple hosts, whereas the db2icrt command can create an instance only on two hosts. Regardless of the command used to create the instance, additional hosts can be added by running the db2iupdt command with the -add option.

To ensure optimal performance for a DB2 pureScale instance, the priority level of the log writer engine dispatchable unit (EDU) db2loggw is adjusted to be higher than other EDUs. However, depending on the operating system, in order for this to happen, certain permissions need to be granted to the DB2 database manager. For details on these special permissions see topic Ensuring maximum DB2 workload management dispatcher scheduling accuracy .

Restrictions

When you create a DB2 pureScale instance by using the db2icrt command, you must specify one member and one CF. In a DB2 pureScale environment, the db2icrt command does not support a Lightweight Directory Access Protocol (LDAP) environment.

Procedure

To create a DB2 pureScale instance by using the db2isetup or db2icrt command:

Example

For example, use the db2icrt command to create a DB2 pureScale instance called db2sdin1 on the installation-initiating host, test1, and test2 (cluster caching facility) that use the shared disk /dev/hdisk1 (identifier on test1) as the tiebreaker and an existing file system /db2instance as the instance shared disk:
DB2DIR/instance/db2icrt
   -m test1 -mnet test1-ib0 
   -cf test2 -cfnet test2-ib0,test2-ib1,test2-ib2,test2-ib3
   -instance_shared_dev  /db2instance 
   -tbdev /dev/hdisk1 
   -u db2sdfe1
   db2sdin1

The test1-ib0 is the cluster interconnect netname for the test1 member host, the test2-ib0, test2-ib1, test2-ib2, and test2-ib4 are cluster interconnect netnames for the test2 host. This example sets up the cluster caching facility on the test2 host and a DB2 member on the test1 host for the instance db2sdin1 associated with the DB2 installation under /DB2DIR. The cluster interconnect netnames test1-ib0 and test2-ib0 must be on the same IP subnet. The db2sdfe1 value is the fenced user and the db2sdin1 value is the DB2 pureScale instance owner.

What to do next

After creating your DB2 pureScale instance with the db2icrt command:
  1. Add a second cluster caching facility.
  2. Add any additional communication adapter ports to the CFs. This step is not required if all cluster interconnect netnames were specified during instance creation and while adding the second CF.
  3. Add any additional members to the instance.
  4. Start the instance.
You can add more hosts as members or as a second cluster caching facility by using the db2isetup command or the db2iupdt -add command. Additional communication adapter ports can be added to CFs with the db2iupdt -update command. You can also remove a member or cluster caching facility from your instance by using the db2iupdt -drop command.