The db2iupdt command can be used to
update an instance other than a DB2® pureScale® instance
to a DB2 pureScale instance instance.
Before you begin
To
run some of these steps, you need root authority.
Ensure
the instance and all processes are stopped.
About this task
If you have the
DB2 pureScale Feature product
installed, the
db2iupdt command or the
db2isetup command
can be used to change an existing instance other than a
DB2 pureScale instance
to a
DB2 pureScale instance
(dsf-type instance). In this case, the existing
DB2 instance
must be at the
Version 10.5 level.
Procedure
- Verify that a range of six contiguous DB2 Fast Communications Manager
ports are available in the /etc/services file
as shown in the following example:
DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
DB2_db2inst1_3 60003/tcp
DB2_db2inst1_4 60004/tcp
DB2_db2inst1_END 60005/tcp
where db2inst1 is
the instance name.
- As root, you can use the db2iupdt command
or the db2isetup command:
- Using the db2isetup command:
- Type the db2isetup command to launch the DB2 Instance Setup
wizard.
- Proceed to the "Set up a DB2 instance" panel. Select the Configure
new function for an existing DB2 instance option. Click Next.
- On the Set up a DB2 Cluster
File System panel, the shared disk partition device path and the tiebreaker
device path are already complete.
Note: When
you are creating a DB2 pureScale instance in a virtual
machine (VM), you do not need to specify a tiebreaker disk. If you
do not want to specify a tiebreaker disk, you must use inputas
the tiebreaker disk option value.
- On the Host List panel, add hosts to the DB2 pureScale instance
configuration. Hosts are validated as they are added to the list.
After you add the hosts you want, click Next.
- Click Finish to perform the action.
- Using the db2iupdt command:
Run
the db2iupdt command as follows:
DB2DIR/instance/db2iupdt -d -cf host2 -cfnet host2 -ib0 -m host1 -mnet host1-ib0 -instance_shared_dev /dev/hdisk1 -tbdev /dev/hdisk2 -u db2fenc1 db2inst1
where DB2DIR represents
the installation location of your DB2 copy.This
command uses /dev/hdisk1 path to create a shared
file system to store instance shared files (where the database data
is stored) and sets up /dev/hdisk2 file path
as the shared device path of the tiebreaker device. The value of the -tbdev parameter
must be different from the value of the -instance_shared_dev parameter.
What to do next
perform the post-conversion tasks for a DB2 pureScale environment.