User Tools

Site Tools


tsm:tsm_upgrade

TSM v8.1 upgrade on AIX / Linux

Spectrum Protect server upgrade

Extract upgrade package

[root@linux1] /work/SP # ./8.1.10.000-IBM-SPSRV-Linuxx86_64.bin

It's easier to open 2 windows, one to check, and the second to change

Upgrade IBM® Installation Manager

[root@linux1] /work/tsm # ./install.sh
GUI failed to start. For more information see /tmp/install.91055.log.
Launching console mode...
Preprocessing the input.
Loading repositories...
Preparing and resolving the selected packages...


=====> IBM Installation Manager> Install

Select packages to install:
     1. [X] IBM® Installation Manager 1.9.1

     O. Check for Other Versions, Fixes, and Extensions

     N. Next,      C. Cancel
-----> [N]
Validating package prerequisites...


=====> IBM Installation Manager> Install> Licenses

Read the following license agreements carefully.
View a license agreement by entering the number:
     1. IBM Installation Manager - License Agreement

Options:
     A. [ ] I accept the terms in the license agreement
     D. [ ] I do not accept the terms in the license agreement

     B. Back,      C. Cancel
-----> [C] a


=====> IBM Installation Manager> Install> Licenses

Read the following license agreements carefully.
View a license agreement by entering the number:
     1. IBM Installation Manager - License Agreement

Options:
     A. [X] I accept the terms in the license agreement
     D. [ ] I do not accept the terms in the license agreement

     B. Back,      N. Next,      C. Cancel
-----> [N]


=====> IBM Installation Manager> Install> Licenses> Summary

Target Location:
  Package Group Name         :  IBM Installation Manager
  Installation Directory     :  /opt/IBM/InstallationManager/eclipse

Packages to be installed:
        IBM® Installation Manager 1.9.1

Options:
     G. Generate an Installation Response File

     B. Back,      I. Install,      C. Cancel
-----> [I]
                 25%                50%                75%                100%
------------------|------------------|------------------|------------------|
............................................................................

=====> IBM Installation Manager> Install> Licenses> Summary> Completion

The install completed successfully.

Options:
     R. Restart Installation Manager
-----> [R]
Preprocessing the input.

=====> IBM Installation Manager

Next upgrade Spectrum Protect

Select:
     1. Install - Install software packages
     2. Update - Find and install updates and fixes to installed software packages
     3. Modify - Change installed software packages
     4. Roll Back - Revert to an earlier version of installed software packages
     5. Uninstall - Remove installed software packages

Other Options:
     L. View Logs
     S. View Installation History
     V. View Installed Packages
        ------------------------
     P. Preferences
        ------------------------
     A. About IBM Installation Manager
        ------------------------
     X. Exit Installation Manager

-----> 2

Checking repositories...
Loading repositories...


=====> IBM Installation Manager> Update

Select a package group to update:
     1. [X] IBM Spectrum Protect

Details of package group IBM Spectrum Protect:
  Package Group Name         :  IBM Spectrum Protect
  Shared Resources Directory :  /opt/IBM/IBMIMShared
  Installation Directory     :  /opt/tivoli/tsm
  Translations               :  English
  Architecture               :  64-bit

Other Options:
     U. Update All
     A. Unselect All

     N. Next,      C. Cancel
-----> [N]
Preparing installed packages in the selected package groups...
Validating package group locations...
Searching updates...
Preparing and resolving the selected packages...
Preparing and resolving the selected packages...
Preparing and resolving the selected packages...
Validating the selected updates...


=====> IBM Installation Manager> Update> Packages

Package group:  IBM Spectrum Protect

Update packages:
     1-. [X] IBM Spectrum Protect server 8.1.8.20190616_2135
       2. [X] Version 8.1.10.20200521_1453
     3-. [X] IBM Spectrum Protect license 8.1.8.20190616_2130
       4. [X] Version 8.1.10.20200521_1450
     5-. [X] IBM Spectrum Protect Operations Center 8.1.8000.20190523_1528
       6. [X] Version 8.1.10000.20200519_1120

Other Options:
     A. Show All
     R. Select Recommended

     B. Back,      N. Next,      C. Cancel
-----> [N]
Validating package prerequisites...
..


=====> IBM Installation Manager> Update> Packages> Prerequisites

Validation results:

ERROR: The following errors were generated while updating.

Details:
CRIMA1179E: Available disk space at /opt is insufficient. Total required space is 1.59 GB. Total available space is 1.58 GB.


Enter the number of the error or warning message above to view more details.

Increase filesystems if needed /opt:

[root@linux1] ~ # lvextend -L +200M /dev/mapper/vg_root-lv_opt
  Size of logical volume vg_root/lv_opt changed from 2.00 GiB (512 extents) to <2.20 GiB (562 extents).
  Logical volume vg_root/lv_opt successfully resized.
[root@linux1] ~ # xfs_growfs /dev/mapper/vg_root-lv_opt
meta-data=/dev/mapper/vg_root-lv_opt isize=512    agcount=16, agsize=32768 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=524288, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal               bsize=4096   blocks=855, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 524288 to 575488
Options:
     R. Recheck status.

     B. Back,      C. Cancel
-----> [C]  r

Validating package prerequisites...
.


=====> IBM Installation Manager> Update> Packages> Prerequisites

All prerequisites are met.

Options:
     R. Recheck status.

     B. Back,      N. Next,      C. Cancel
-----> [N]



=====> IBM Installation Manager> Update> Packages> Prerequisites> Features

IBM Spectrum Protect server

IBM Spectrum Protect license

IBM Spectrum Protect Operations Center
     1. [X] Operations Center


     V. View Message Details

     B. Back,      C. Cancel


=====> IBM Installation Manager> Update> Packages> Prerequisites

All prerequisites are met.

Options:
     R. Recheck status.

     B. Back,      N. Next,      C. Cancel
-----> [N]


=====> IBM Installation Manager> Update> Packages> Prerequisites> Features

IBM Spectrum Protect server

IBM Spectrum Protect license

IBM Spectrum Protect Operations Center
     1. [X] Operations Center


     B. Back,      N. Next,      C. Cancel
-----> [N]


=====> IBM Installation Manager> Update> Packages> Prerequisites> Features>
  Summary

Target Location:
  Shared Resources Directory :  /opt/IBM/IBMIMShared
Update packages:
     1-. IBM Spectrum Protect (/opt/tivoli/tsm)
       2. IBM Spectrum Protect server 8.1.8.20190616_2135
       3. IBM Spectrum Protect license 8.1.8.20190616_2130
       4-. IBM Spectrum Protect Operations Center 8.1.8000.20190523_1528
         5-. Features to install:
           6. Operations Center

Options:
     G. Generate an Update Response File

     B. Back,      U. Update,      C. Cancel
-----> [U]
                 25%                50%                75%                100%
------------------|------------------|------------------|------------------|
............................................................................

=====> IBM Installation Manager> Update> Packages> Prerequisites> Features>
  Summary> Completion

The update completed successfully.

INFORMATION: To learn about best practices for configuring, monitoring, and operating an IBM Spectrum Protect solution, go to IBM Knowledge Center:   http://www.ibm.com/support/knowledgecenter/SSEQVQ/landing/welcome_sseqvq.htm   Search for IBM Spectrum Protect data protection solutions.

Options:
     F. Finish
-----> [F]

Possibles Errors

Instance has been removed during upgrade

If you choose not to upgrade the DB2 instance during SP upgrade, then it's removed

[isptest1@linux1 ~]$ dsmserv
dsmserv: error while loading shared libraries: libdb2.so.1: cannot open shared object file: No such file or directory
[isptest1@linux1 ~]$ db2stop
-bash: db2stop: command not found

Recreate the instance

[root@linux1 ] ~ # /opt/tivoli/tsm/db2/instance/db2ilist
[root@linux1 ] ~ # /opt/tivoli/tsm/db2/instance/db2icrt -a SERVER -u isptest1 isptest1
DBI1446I  The db2icrt command is running.

DB2 installation is being initialized.

 Total number of tasks to be performed: 4
Total estimated time for all tasks to be performed: 309 second(s)

Task #1 start
Description: Setting default global profile registry variables
For more information see the DB2 installation log at "/tmp/db2icrt.log.49445".
DBI1070I  Program db2icrt completed successfully.

DB not defined or not the good path

[isptest1@linux1 ~]$ dsmserv
ANR7800I DSMSERV generated at 10:26:22 on Nov  3 2020.
ANR0172I rdbdb.c(2525): Error encountered performing action ActivateDatabase.
ANR0162W Supplemental database diagnostic information:  -1031:SQLSTATE 58031: The connection was unsuccessful, because of a
system error.
:-1031 (SQL1031N  The database directory cannot be found on the indicated file system.  SQLSTATE=58031).

You need to re-register the DB

[isptest1@linux1 ~]$ db2 catalog database TSMDB1 on /isptest1
DB20000I  The CATALOG DATABASE command completed successfully.
DB21056W  Directory changes may not be effective until the directory cache is refreshed.

DB has not been upgraded

[isptest1@linux1 ~]$ dsmserv
ANR0172I rdbdb.c(2525): Error encountered performing action ActivateDatabase.
ANR0162W Supplemental database diagnostic information:  -5035:SQLSTATE 55001: The database must be upgraded.
:-5035
(SQL5035N  The connection failed because the database product has been updated and the database needs to be upgraded
SQLSTATE=55001

Upgrade the DB DB2 using command line

[isptest1@linux1 ~]$ db2start
01/07/2021 14:34:38     0   0   SQL1063N  DB2START processing was successful.
SQL1063N  DB2START processing was successful.
[isptest1@linux1 ~]$ db2 connect to tsmdb1
SQL5035N  The connection failed because the database product has been updated
and the database needs to be upgraded  SQLSTATE=55001
[isptest1@linux1 ~]$ db2 upgrade database TSMDB1
DB20000I  The UPGRADE DATABASE command completed successfully.
[isptest1@linux1 ~]$ dsmserv
ANR7800I DSMSERV generated at 10:26:22 on Nov  3 2020.

IBM Spectrum Protect for Linux/x86_64
Version 8, Release 1, Level 11.000

Licensed Materials - Property of IBM

(C) Copyright IBM Corporation 1990, 2020.
All rights reserved.
U.S. Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corporation.

ANR7801I Subsystem process ID is 77215.
ANR0900I Processing options file /isptest1/dsmserv.opt.
...

Backup DB not working

[isptest1@linux1 ~]$ dsmserv
ANR7800I DSMSERV generated at 10:26:22 on Nov  3 2020.
...
ANR4626I Database backup will use 4 streams for processing with the number originally requeste
ANR2984E Database backup terminated due to environment or setup issue related to DSMI_CONFIG - 406       .
ANR1361I Output volume /isptest1/db/backup/10026624.DBV closed.
ANR0515I Process 1 closed volume /isptest1/db/backup/10026624.DBV.
...
ANR4625W Database backup failure while attempting to use 4 streams, backup will be retried usi
ANR4626I Database backup will use 1 streams for processing with the number originally requeste
ANR2984E Database backup terminated due to environment or setup issue related to DSMI_CONFIG - 406       .
ANR1361I Output volume /isptest1/db/backup/10026630.DBV closed.
ANR0515I Process 1 closed volume /isptest1/db/backup/10026630.DBV.
ANR0985I Process 1 for Database Backup running in the BACKGROUND completed with completion sta
ANR1893E Process 1 for Database Backup completed with a completion state of FAILURE.

Check if userprofile file is empty ?

[root@linux1]/isptest1/sqllib # cat /isptest1/sqllib/userprofile
export DSMI_DIR=/opt/tivoli/tsm/server/bin/dbbkapi
export DSMI_CONFIG=/isptest1/tsmdbmgr.opt
export DSMI_LOG=/isptest1
export LD_LIBRARY_PATH=$DSMI_DIR:/usr/local/ibm/gsk8_64/lib64:/opt/ibm/lib:/opt/ibm/lib64:$LD_LIBRARY_PATH
tsm/tsm_upgrade.txt · Last modified: 2021/01/08 18:04 by manu