You must create an IBM
Db2 instance
on each secondary node if the Db2 instance
directory, /home/tsminst1/sqllib, is not shared between the nodes in the PowerHA® cluster.
About this task
You can configure the IBM
Storage Protect server on
a secondary node by using the dsmicfgx wizard or
manually.
Procedure
-
To create a Db2 instance on a secondary
node by using the dsmicfgx wizard, complete the following steps:
-
Run the dsmicfgx wizard.
-
From the Instance Directory pane, select the Check this if you
are configuring the server instance on a secondary node of a high availability cluster
check box.
-
To create a Db2 instance on a secondary
node manually, complete the following steps:
-
Move all the shared resources to the secondary node.
-
Create a Db2 instance by issuing the
following db2icrt command:
/opt/tivoli/tsm/db2/instance/db2icrt -s ese -u instance_user instance_user
where
instance_user is the same user that owns the
Db2 instance on the primary node.
-
When the Db2 instance is created, log in
as the instance user or by issuing the su command:
-
As the instance user, issue the following commands:
db2start
db2 update dbm cfg using DFTDBPATH shared_db_path
db2 catalog db TSMDB1
db2stop
where
shared_db_path is the shared database directory. The shared database directory is
typically the server instance directory.
Tip: To determine the
shared_db_path value, issue the following command on the primary node:
db2 get dbm cfg | grep DFTDBPATH
-
Update the following variables in the
/opt/tivoli/tsm/server/bin/startserver script, by using the following
values:
Table 1. Variables in the /opt/tivoli/tsm/server/bin/startserver script
| Description |
Variable |
Example |
| Set the INST_USER to the instance user ID. |
INST_USER |
INST_USER='tsmuser1' |
| Set the INST_DIR to the location of the IBM
Storage Protect instance directory. This directory contains
dsmserv.dbid and dsmserv.opt. |
INST_DIR |
INST_DIR='/home/tsmuser1/tsminst1' |
| Select one of the following startup options: Option 1 - use
instance:
$INST_USER but run the server as root (-U)
Option 2 -
use instance:
$INST_USER and run the server as $INST_USER (-u)
|
INST_OPTION |
Option 1:
INST_OPTION='-U $INST_USER'
Option 2:
INST_OPTION='-u $INST_USER'
|
-
Start the server by issuing the following script:
/opt/tivoli/tsm/server/bin/startserver
-
When the server is started, issue the BACKUP DB command to verify that the
data is successfully backed up.