Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
5
Tablespace Conversion
For customers that upgraded from an earlier Tivoli Storage Manager level to V7, the
recommendation is to do tablespace conversion, especially if doing dedup.
Clean V7 installations already use the V7 tablespace schema, nothing to do.
Motivation :
Note: changes to the DB2 10.5 tablespaces have been reviewed by server
development and currently there is no update required if you are using DB2
9.7 tablespaces.
Additional new Commands with 7.1.1.xxx
SHOW VERSIONHISTory
Date (GMT) Version Pre-release Driver
-------------------- -------------------- --------------------
2014/11/12 15:26:21 7.1.1.0
2015/02/11 14:15:18 7.1.1.100
2015/06/10 13:02:03 7.1.1.300
The above output is available with the new command, however as this command does not report
any version earlier than V7.1, it does not help to verify if you need to go through tablespace
conversion for either the update of the tablespaces or changing the tablespace allocation
schema.
The following slides help you to verify if you should consider tablespace updates.
Verify V6.1 DB2 9.5 Tablespaces
Use the following SQL command to verify your server is still using DB2 V9.5
tablespaces:
If the result is 1 for all tablespaces, you are not using DB2 9.5 tablespaces,
but: you might still use the Tivoli Storage Manager V6 tablespace layout!
Verify APAR IC82886
APAR IC82886 documents the following symptom:
EXCESSIVE DATABASE GROWTH EXPERIENCED WHEN DEDUPLICATION IS
ENABLED UNDER CERTAIN WORKLOADS
If CLUS is returned, you can follow the local fix recommendations, however
tablespace conversion will fix the symptom too and is the preferred method.
V6.2 / V6.3 Tablespaces 1/2
Use the following SQL command to verify your server is using Tivoli Storage
Manager V6.2/V6.3 tablespace schema:
BACKUP_OBJECTS
OTHER TABLES
USERSPACE1
Indices for
ARCHIVE_OBJECTS
Tablespace allocation up to V6.3
BF_AGGREGATED_BITFILES
BF_BITFILE_EXTENTS
V6 tablespaces
OTHER TABLES
Tivoli Storage Manager
LARGESPACE1
Indices for
BF_AGGREGATED_BITFILES
Indices for
BF_BITFILE_EXTENTS
Indices for tables in
others
tables in
Indices for USERSPACE1
others
IDXSPACE1
USERSPACE1
LARGEIDXSPACE1
LARGESPACE1
LARGEIDXSPACE1
Tablespace allocation with V7.1.1
ARCHIVE_OBJECTS
ARCHOBJDATASPACE
ARCHOBJIDXSPACE
BACKUP_OBJECTS
BACKOBJDATASPACE
BACKOBJIDXSPACE
BF_AGGREGATED_BITFILES
BFABFDATASPACE
tablepsaces
BFABFIDXSPACE
BF_BITFILE_EXTENTS
& Spectrum Protect 7.1.3
Tivoli Storage Manager 7.1
BFBFEXTDATASPACE
BFBFEXTIDXSPACE
V7.1.1 Tablespace Details
New tablespaces schema introduced with Tivoli Storage Manager V7.1
_______________________________________________________________________________________________
| | from | from | to | to |
| tablename | dataTblSpace | idxTblSpace | DataTblspace | IdxTblspace |
| ARCHIVE_OBJECTS | LARGESPACE1 | LARGEIDXSPACE1 | ARCHOBJDATASPACE | ARCHOBJIDXSPACE |
| BACKUP_OBJECTS | LARGESPACE1 | LARGEIDXSPACE1 | BACKOBJDATASPACE | BACKOBJIDXSPACE |
| BF_AGGREGATED_BITFILES | USERSPACE1 | IDXSPACE1 | BFABFDATASPACE | BFABFIDXSPACE |
| BF_BITFILE_EXTENTS | USERSPACE1 | IDXSPACE1 | BFBFEXTDATASPACE | BFBFEXTIDXSPACE |
_______________________________________________________________________________________________
Instructions are available to convert the tablespaces, this procedure will ensure that
all tables are allocated in DB2 9.7 tablespaces, and will place all tables in
tablespaces as-if the database had been formatted with server V7.
V7.1.7 Additional Tables
db2 => select substr(TABSCHEMA,1,20) as schema , substr(TABNAME,1,20) as table, TBSPACEID,
substr(TBSPACE,1,20) as tablespace, substr(index_tbspace,1,20) as indexspace from syscat.tables where
tabschema='TSMDB1' and TBSPACEID>10 order by 3
This has changed and the instructions provided give details on the following
steps:
and
ANR3408I EXTRACTDB: Wrote 82,152,541,340 bytes.
The reason for this is that enabling dedup makes the database grow in size,
so you want to complete the conversion while the database is still small.
If you are currently at a V6 server, you might want to delay the conversion until
you are at a V7 server.
The reason for this is to avoid having to run the conversion twice:
if you do the conversion at V6, you later still need to convert to the V7
tablespace allocation.
Verify V7.1 Tablespaces
To verify your server is using V7.1 tablespace allocation, you can use
the following query again
db2 "select substr(TABSCHEMA,1,20) as schema , substr(TABNAME,1,20) as table, TBSPACEID,
substr(TBSPACE,1,20) as tablespace, substr(index_tbspace,1,20) as indexspace from syscat.tables where
tabschema='TSMDB1' and TBSPACEID>10 order by 3"
If you get the above result, either the server was installed at V7.1 or
tablespace conversion was completed.
TSM Tablespace Conversion with V7.1.5
CONVERT STGpool
If assistance with the tablespace conversion procedure is requested you can send
an email to
mailto:STG.LabServices@de.ibm.com
There you can request a client tailored service that takes into account the size of
the environment and the expected efforts.
Additional Information:
Find details about the database, reorg and conversion in the most current version of
the reorg technote: https://ibm.biz/BdHxHF
Thank you!
Norbert Pott
Urs Moser