Preparing the system
To prepare the system for the upgrade from V8.1.27 to V8.2, you must gather information about each IBM Db2 instance. Then, back up the server database, save key configuration files, cancel sessions, and stop the server.
Before you begin
Note:
Before you upgrade to IBM Storage Protect Server version 8.2, upgrade your deployment to IBM Storage Protect 8.1.27.
Procedure
-
Log on to the computer where the server is installed.

Ensure that you are logged on with the instance user ID.
Ensure that you are logged on with the administrative user ID that was used to
install the V8.1.27 server. -
Obtain a list of Db2 instances. Issue the
following system command:


/opt/tivoli/tsm/db2/instance/db2ilist
db2ilistThe output might be similar to the following example:

tsminst1
Ensure that each instance corresponds to a server that is running on the system.SERVER1 
For each Db2 instance, note the default
database path, actual database path, database name, database alias, and any Db2 variables that are configured for the instance.
Keep the record for future reference. This information is required to restore the V8.1.27
database.
Gather information about each Db2
instance. Note the default database path, actual database path, database name, database alias, and
any Db2 variables that are configured for the
instance. Keep the record for future reference. This information is required to restore the V8.1.27
database.
-
Open the Db2 command window by issuing
the following system command:
db2cmd -
To change the instance, issue the following system command:
where instance specifies the Db2 instance.set DB2INSTANCE=instance -
Obtain the default database path for the Db2 instance by issuing the following system
command:
The output might be similar to the following example:db2 get dbm cfg | findstr DFTDBPATHDefault database path (DFTDBPATH) = D: -
Obtain information about the Db2 instance
databases by issuing the following system command:
The output might be similar to the following example:db2 list database directorySystem Database Directory Number of entries in the directory = 2 Database 1 entry: Database alias = TSMAL001 Database name = TSMDB1 Node name = TSMNODE1 Database release level = d.00 Comment = TSM SERVER DATABASE VIA TCPIP Directory entry type = Remote Catalog database partition number = -1 Alternate server hostname = Alternate server port number = Database 2 entry: Database alias = TSMDB1 Database name = TSMDB1 Local database directory = D: Database release level = d.00 Comment = Directory entry type = Indirect Catalog database partition number = 0 Alternate server hostname = Alternate server port number = -
Obtain the Db2 instance variables by
issuing the following system command:
The output might be similar to the following example:db2set -all[e] DB2CODEPAGE=1208 [e] DB2PATH=D:\TSM\db2 [i] DB2_PMODEL_SETTINGS=MAX_BACKGROUND_SYSAPPS:500 [i] DB2_SKIPINSERTED=ON [i] DB2_KEEPTABLELOCK=OFF [i] DB2_EVALUNCOMMITTED=ON [i] DB2_VENDOR_INI=D:\Server1\tsmdbmgr.env [i] DB2_SKIPDELETED=ON [i] DB2INSTPROF=C:\ProgramData\IBM\DB2\DB2TSM1 [i] DB2COMM=TCPIP [i] DB2CODEPAGE=819 [i] DB2_PARALLEL_IO=* [g] DB2_EXTSECURITY=YES [g] DB2_COMMON_APP_DATA_PATH=C:\ProgramData [g] DB2PATH=D:\TSM\db2 [g] DB2INSTDEF=SERVER1
-
Open the Db2 command window by issuing
the following system command:
- Connect to the server by using an administrative user ID.
-
Back up the database by using the BACKUP DB command.
The preferred method is to create a snapshot backup, which is a full database backup that does not interrupt scheduled database backups.For example, you can create a snapshot backup by issuing the following command:
backup db type=dbsnapshot devclass=tapeclass -
Back up the device configuration information to another directory by issuing the following
administrative command:
where file_name specifies the name of the file in which to store device configuration information.backup devconfig filenames=file_nameTip: If you decide to restore the V8.1.27 database, this file is required. -
Back up the volume history file to another directory. Issue the following administrative
command:
where file_name specifies the name of the file in which to store the volume history information.backup volhistory filenames=file_nameTip: If you decide to restore the V8.1.27 database, this file is required. - Save a copy of the server options file, which is typically named dsmserv.opt. The file is in the server instance directory.
-
Prevent activity on the server by disabling new sessions. Issue the following administrative
commands:
disable sessions client disable sessions server -
Verify whether any sessions exist, and notify the users that the server will be stopped. To
check for existing sessions, issue the following administrative command:
query session -
Cancel sessions by issuing the following administrative command:
This command cancels all sessions except for your current session.cancel session all -
Stop the server by issuing the following administrative command:
halt - Verify that the server is shut down
and no processes are running.

Issue the following command:ps -ef | grep dsmserv
Open the Windows Task
Manager application and review the list of active processes. - In the server instance directory
of your installation, locate the NODELOCK file
and move it to another directory, where you are saving configuration
files. The NODELOCK file contains the previous licensing information for your installation. This licensing information is replaced when the upgrade is complete.