IBM Support

Determining the size of a DB2 backup object

Question & Answer


Question

Is there a way to find the size of the DB2 backup that was sent to the IBM Spectrum Protect server.

Cause

There are no DB2 utilities to query the size of a backup. If the DB2 backup was performed via the API and resides on the IBM Spectrum Protect Server, then it would be possible to run a 'query backup', but the Backup/Archive client does not report the size of the DB2 tablespaces correctly.

Answer

When the IBM Spectrum Protect Backup/Archive client displays the size of an object, it is using the explicit value that is stored with the meta data regarding this backup. In the case of a DB2 backup, the stored meta information does not contain an accurate size as it is using the estimate, not the actual size of the data.

There are two primary size values stored on the server for each object. One is the size estimate for the object as received from the client. The other is the actual amount of space the object occupies on the server. This later value will include all header or frame data added to the object by the IBM Spectrum Protect Server as well as the end effect that any compression/deduplication/etc may have had on the object versus the size the client sent.

  • The size estimate value can be found in the show invo and the Object.Ids output.
  • The size as occupied space in server storage value can be found in the show bfo and the AF.Bitfiles (or DF.Bitfiles if on disk). This size can also be found in the query content or select output against the contents table (although the query content output is rounded for larger objects)

To view the information for the stored size of the DB2 backup object, the show bfo command can be run by the IBM Spectrum Protect administrative client (dsmadmc), It will be necessary to first find the Bitfile ID for the object, which can be obtained by running a select statement against the backups table:
    select * from backups where nodename='NODENAME'
Find the object_id value for the DB2 backup that you are looking for.
Then run the command (where <object_id> is the actual value from the select statement):
    show bfo <object_id>
The Bitfile Size is then displayed in this output.

[{"Product":{"code":"SSEQVQ","label":"IBM Spectrum Protect"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Server","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB26","label":"Storage"}}]

Product Synonym

TSM

Document Information

Modified date:
17 June 2018

UID

swg21991395