Windows: Creating the server instance
Create a Tivoli® Storage Manager instance by issuing the db2icrt command.
About this task
Important: Before you run
the db2icrt command, ensure that the user and the
instance directory of the user exists. If there is no instance directory,
you must create it.
The instance directory stores the following
files for the server instance:
- The server options file, dsmserv.opt
- The server key database file, cert.kdb, and the .arm files (used by clients and other servers to import the Secure Sockets Layer certificates of the server)
- Device configuration file, if the DEVCONFIG server option does not specify a fully qualified name
- Volume history file, if the VOLUMEHISTORY server option does not specify a fully qualified name
- Volumes for DEVTYPE=FILE storage pools, if the directory for the device class is not fully specified, or not fully qualified
- User exits
- Trace output (if not fully qualified)
- Log in as an administrator and create a Tivoli Storage
Manager instance, by using the db2icrt command. Enter the following command on one line. The user account that you specify becomes the user ID that owns the Version 7.1.3 server (the instance user ID).
For example, if the user account is tsminst1 and the server instance is Server1, enter the following command:db2icrt -u user_account instance_name
You are prompted for the password for user ID tsminst1. Later, when you create and format the database, you use the instance name that you specified with this command, with the -k option.db2icrt -u tsminst1 server1
- Change the default path for the database to be the drive where
the instance directory for the server is located. Complete the following
steps:
- Click .
- Enter quit to exit the command line processor.
A window with a command prompt should now be open, with the environment properly set up to successfully issue the commands in the next steps.
- From the command prompt in that window, issue the following command
to set the environment variable for the server instance that you are
working with:
The instance_name is the same as the instance name that you specified when you issued the db2icrt command. For example, to set the environment variable for the Server1 server instance, issue the following command:set db2instance=instance_name
set db2instance=server1
- Issue the command to set the default drive:
For example, the instance directory is d:\tsm\server1 and the instance location is drive d:. Enter the command:db2 update dbm cfg using dftdbpath instance_location
db2 update dbm cfg using dftdbpath d:
- Create a new server options file. See Windows: Configuring server and client communications.