Formatting the database and log
If you configure the server manually, you must format the server database and recovery log. The database is used to store information about client data and server operations and the recovery log can be used to recover from system and media failures. Use the DSMSERV FORMAT utility to format and initialize the server database and recovery log. No other server activity is allowed while you initialize the database and recovery log.
After you set up server communications, you are ready to initialize the database. Do not place the directories on file systems that might run out of space. If certain directories, such as the archive log, are no longer available or full, the server stops.
Important: The installation program creates a set of registry keys.
One of these keys points to the directory where a default server, named SERVER1, is created. To
install another server, create a directory and use the DSMSERV FORMAT utility,
with the -k parameter, from that directory. The new directory becomes the location
of the server. The registry tracks the installed servers.Setting the exit list handler
db2set -i server_instance_name DB2NOEXITLIST=ONFor
example:

db2set -i tsminst1 DB2NOEXITLIST=ON 
db2set -i server1 DB2NOEXITLIST=ON Initializing the server database and recovery log


cd /tsminst1
dsmserv format dbdir=/tsmdb001 activelogsize=32768
activelogdirectory=/activelog archlogdirectory=/archlog
archfailoverlogdirectory=/archfaillog mirrorlogdirectory=/mirrorlog

cd \tsminst1
dsmserv -k server2 format dbdir=d:\tsm\db001 activelogsize=32768
activelogdirectory=e:\tsm\activelog archlogdirectory=f:\tsm\archlog
archfailoverlogdirectory=g:\tsm\archfaillog mirrorlogdirectory=h:\tsm\mirrorlog

If the Db2 database does not start after you run the
DSMSERV FORMAT command, you might have to disable the file system mount option
NOSUID. You must disable the option to start the system in the following
circumstances:- If the option is set on the file system that contains the Db2 instance owner directory.
- If the option is set on any file system that contains the Db2 database, active logs, archive logs, failover logs, or mirrored logs.
db2startCreating an administrative user
- REGISTER ADMIN
- The REGISTER ADMIN command takes the following
parameters:
register admin administrator_user_id administrator_user_passwordThe password must meet specific length rules. For more information, see REGISTER ADMIN (Register an administrator ID).
- GRANT AUTH
- The GRANT AUTH command takes the following
parameters:
grant auth administrator_user_id classes=administrator_user_classFor more information, see GRANT AUTHORITY (Add administrator authority).
- Create a macro, for example, setup.mac.
- Edit the macro to register an administrative user and grant system authority to the user, with
the following credentials:
- Administrative user ID:
adminadmin - Password for the administrative user:
adminadmin1
register admin adminadmin adminadmin1 grant auth adminadmin classes=systemYou must create the administrative user with the classes=system option so that the administrative user can create other potential administrative users, for example, with limited privileges. Any of these administrative users can then connect to the IBM Storage Protect Operations Center.
- Administrative user ID:
- To create the administrative user and grant system authority to this user, run the
DSMSERV command with the runfile option and the macro file,
for example:
dsmserv runfile setup.mac