Use the DSMSERV FORMAT utility to initialize the server database and recovery log. No other server activity is allowed while initializing the database and recovery log.
The directories that are specified in this utility should be on fast, reliable storage. Do not place the directories on file systems that might run out of space. If certain directories (for example, the active log directory) become unavailable or full, the server stops.
Restriction: If you are using a File Allocation
Table (FAT or FAT32) file system format, you
cannot specify the root directory of that system as the location of
a database directory or log directory. Instead, you must create one
or more subdirectories within the root directory. Then, create the
database directories and log directories within the subdirectories.
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 an extra server, create a directory and use the DSMSERV
FORMAT utility, with the -k parameter,
from that directory. That directory becomes the location of the server.
The registry tracks the installed servers.When a server is initially created by using the DSMSERV FORMAT utility or the configuration wizard, a server database and recovery log are created. In addition, files are created to hold database information that is used by the database manager.
>>-DSMSERV -+----------------------+----------------------------> | (1) | '------- -u--user_name-' (2).- -k--Server1--. >--+-------------------------+------+---------------+-----------> | (1) | '- -k--key_name-' '------- -i--instance_dir-' >--+-------------------+--+------------+--+---------+--FORMAT---> '- -o--options_file-' '- -noexpire-' '- -quiet-' .-,---------. V | >--+-DBDir--=----directory-+-+----------------------------------> '-DBFile--=--file---------' .-ACTIVELOGSize--=--16384-----. >--+-----------------------------+------------------------------> '-ACTIVELOGSize--=--megabytes-' >--ACTIVELOGDirectory--=--directory-----------------------------> >--ARCHLogdirectory--=--directory-------------------------------> >--+----------------------------------------+-------------------> '-ARCHFailoverlogdirectory--=--directory-' >--+----------------------------------+------------------------>< '-MIRRorlogdirectory--=--directory-'



-u user_name


Specifies a user name to switch to before initializing the server.
This parameter is optional.


-i instance_dir


Specifies an instance directory to use. This directory becomes
the current working directory of the server. This parameter is optional.
-k key_name
Specifies the name of a Windows registry
key that is used to store information about this server. Use this
parameter only to install extra servers on the same system. After
you install a server by using this parameter, you must always start
it with the value of this parameter. This parameter is optional.
The default is SERVER1.



dsmserv format dbdir=/tsmdb001 activelogsize=8192
activelogdirectory=/activelog archlogdirectory=/archlog
archfailoverlogdirectory=/archfaillog mirrorlogdirectory=/mirrorlog

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