Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 06:31 AM
Eric Herber
Guest
 
Posts: n/a
Default DB2 FP4, BackupCompression

Does anybody have any further information regarding
the compress option for the db2 backup command introduced
in db2 V8.1.4 ?

I made several tests on a solaris 2.8 machine with db2 V8.1.4
and came to the conclusion that the compress option only seems
to influence backups going to disk, not to a storage manager
like TSM.

The 1st database (offline) backup was made without
specifying compression, i.e.:

db2 "backup databae sample use tsm"
Output from "dsmc query backup /SAMPLE/*":


* * * * * * *Size * * *Backup Date * * * *Mgmt Class A/I File
* * * * * * *---- * * *----------- * * * *---------- --- ----
API *82.710.528 B *09.02.2004 12:09:15 * *MC48 * * * *A
/SAMPLE/NODE0000/FULL_BACKUP.20040209120800.1

The 2nd database (offline) backup was made with
compression, i.e.:

db2 "backup databae sample use tsm compress"

Output from "dsmc query backup /SAMPLE/*":


* * * * * * *Size * * *Backup Date * * * *Mgmt Class A/I File
* * * * * * *---- * * *----------- * * * *---------- --- ----
API *82.710.528 B *09.02.2004 12:10:34 * *MC48 * * * *A
/SAMPLE/NODE0000/FULL_BACKUP.20040209120918.1

There is no difference in the size of the two backups.
Doing the same test but specifying a file system directory
as backup destination results in different backup sizes:

db2 "backup databae sample to /tmp/db2backup"

-rw-r----- * 1 db2udb1 *tivdba * 79712256 Feb *9 12:11
SAMPLE.0.db2udb1.NODE0000.CATN0000.20040209121110. 001

db2 "backup databae sample to /tmp/db2backup compress"

-rw-r----- * 1 db2udb1 *tivdba * 20992000 Feb *9 12:12
SAMPLE.0.db2udb1.NODE0000.CATN0000.20040209121142. 001

There seems to be no further explanation in the releasenotes
of fixpak 4. (I know that I could compress backups thru TSM
proprietary options).

Thank you for any input.

Best regards

Eric
--
IT-Consulting Herber
Mobile: +49 177 2276895
***********************************************
Download the IFMX Database-Monitor for free at:
http://www.herber-consulting.de/BusyBee
***********************************************
  #2  
Old November 12th, 2005, 06:31 AM
Philip Nelson
Guest
 
Posts: n/a
Default Re: DB2 FP4, BackupCompression

Eric Herber wrote:
[color=blue]
> Does anybody have any further information regarding
> the compress option for the db2 backup command introduced
> in db2 V8.1.4 ?
>
> I made several tests on a solaris 2.8 machine with db2 V8.1.4
> and came to the conclusion that the compress option only seems
> to influence backups going to disk, not to a storage manager
> like TSM.
>
> The 1st database (offline) backup was made without
> specifying compression, i.e.:
>
> db2 "backup databae sample use tsm"
> Output from "dsmc query backup /SAMPLE/*":
>
>
> Size * * *Backup Date * * * *Mgmt Class A/I File
> ---- * * *----------- * * * *---------- --- ----
> API *82.710.528 B *09.02.2004 12:09:15 * *MC48 * * * *A
> /SAMPLE/NODE0000/FULL_BACKUP.20040209120800.1
>
> The 2nd database (offline) backup was made with
> compression, i.e.:
>
> db2 "backup databae sample use tsm compress"
>
> Output from "dsmc query backup /SAMPLE/*":
>
>
> Size * * *Backup Date * * * *Mgmt Class A/I File
> ---- * * *----------- * * * *---------- --- ----
> API *82.710.528 B *09.02.2004 12:10:34 * *MC48 * * * *A
> /SAMPLE/NODE0000/FULL_BACKUP.20040209120918.1
>
> There is no difference in the size of the two backups.
> Doing the same test but specifying a file system directory
> as backup destination results in different backup sizes:
>
> db2 "backup databae sample to /tmp/db2backup"
>
> -rw-r----- * 1 db2udb1 *tivdba * 79712256 Feb *9 12:11
> SAMPLE.0.db2udb1.NODE0000.CATN0000.20040209121110. 001
>
> db2 "backup databae sample to /tmp/db2backup compress"
>
> -rw-r----- * 1 db2udb1 *tivdba * 20992000 Feb *9 12:12
> SAMPLE.0.db2udb1.NODE0000.CATN0000.20040209121142. 001
>
> There seems to be no further explanation in the releasenotes
> of fixpak 4. (I know that I could compress backups thru TSM
> proprietary options).
>
> Thank you for any input.
>
> Best regards
>
> Eric[/color]

Eric,

In my experience, backups to TSM have been compressed automatically for some
time. You notice this if you use dsmadmc to monitor the number of bytes
being transferred, as compared to the number of bytes being stored. When
you restore a backup image from TSM it uncompresses as part of the process.

HTH

Phil
  #3  
Old November 12th, 2005, 06:32 AM
David Mooney
Guest
 
Posts: n/a
Default Re: DB2 FP4, BackupCompression

Eric Herber <eric@I-hate-spam.org> wrote:[color=blue]
> I made several tests on a solaris 2.8 machine with db2 V8.1.4
> and came to the conclusion that the compress option only seems
> to influence backups going to disk, not to a storage manager
> like TSM.[/color]

That should not be the case. The compression feature is completely
independent of the backup target.

One possibility for what are seeing is that the first thing that DB2
sends to TSM is an estimate for the size of the backup. (This helps
TSM make smart decisions for disk pooling, etc.) Of course, DB2 is
not able to predict how well a particular database will compress,
so it sends the complete uncompressed size as its estimate. It could
be that the 82MB that TSM is giving you as the size of the compressed
backup is the value that DB2 gave on its initial size estimate rather
than the actual size of the data that was eventually sent.

dave
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.