472,364 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,364 software developers and data experts.

Backup

I just brought a new small server online. It has two disks in RAID1
(mirrored) for the operating system and logs and DB2 DBMS. DB2 data
on a separate RAID 5EE array on four disks. (IBM ServeRAID 6i
controller.)

I don't expect more than 200 GB total data ever in the DB2 database
(starting with 120 MB), and 150 GB in other stuff.

Want to backup the database separately, and then everything else. Now
that DB2 has a backup utility that uses compression, should I use it?
Also have ArcServe on the server.

Have a good tape system on its own SCSI card. Win 2003 server.

Suggestions?
Nov 12 '05 #1
9 3154
"Stanley Sinclair" <st*************@bellsouth.net> wrote in message
news:6f**************************@posting.google.c om...
I just brought a new small server online. It has two disks in RAID1
(mirrored) for the operating system and logs and DB2 DBMS. DB2 data
on a separate RAID 5EE array on four disks. (IBM ServeRAID 6i
controller.)

I don't expect more than 200 GB total data ever in the DB2 database
(starting with 120 MB), and 150 GB in other stuff.

Want to backup the database separately, and then everything else. Now
that DB2 has a backup utility that uses compression, should I use it?
Also have ArcServe on the server.

Have a good tape system on its own SCSI card. Win 2003 server.

Suggestions?


If you have version 8, fixpack 4 or above, there is compression option built
into the DB2 backup. I can't think of any reason not to use it, unless you
might need to restore to a database server running at a lower release level
without compression.

Backup and recovery can be a bit complex depending on whether you use
circular logging (default) or archive logging (which allows roll forward
recovery and/or on-line backups). With on-line backups or roll forward
recovery, you must have the logs available (along with the backup image) to
recover. If you are using circular logging and off-line backups, it should
be relatively easy.

Getting the backup to go directly to tape is a little tricky (especially
initializing the tapes), but you should be able to figure it out. If you
could backup to disk and then copy the file to tape, that might work better
and be a lot faster if you have the disk space.

Some high end backup solutions like Tivoli Storage Manager have integrated
DB2 backup support, but I doubt that ArcServe does. However, you can backup
to disk with DB2, and then backup the DB2 backup file to tape with ArcServe.
Nov 12 '05 #2
Stanley Sinclair wrote:
I just brought a new small server online. It has two disks in RAID1
(mirrored) for the operating system and logs and DB2 DBMS. DB2 data
on a separate RAID 5EE array on four disks. (IBM ServeRAID 6i
controller.)

I don't expect more than 200 GB total data ever in the DB2 database
(starting with 120 MB), and 150 GB in other stuff.

Want to backup the database separately, and then everything else. Now
that DB2 has a backup utility that uses compression, should I use it?
Also have ArcServe on the server.

Have a good tape system on its own SCSI card. Win 2003 server.

Suggestions?


Some tape drives already have hardware compression. E.g., my Exabyte VXA-1
and VXA-2 drives. It seems to me that if you have a drive with good
hardware compression, there would be little point in using software
compression as well. It seems to me that it would just gobble up processor
power for something the dedicated compression processing in the tape drive
might do better.

I never looked at DB2 data on disk to see how well they compress. I assume
someone must have done this by now. Exabyte seem to think that most data
compress to 1/2 original size. This is sure variable. Some manufacturers
seem to think most data compress to 1/3 original size. But stuff like JPEG
do not compress all that much and other stuff compresses more.

An Exabyte VXA-2 tape can hold 80 GByte uncompress and 160 GByte if you
get 2:1 compression.

--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 23:30:00 up 5 days, 8:29, 5 users, load average: 11.97, 11.88, 10.82

Nov 12 '05 #3
Jean-David Beyer <jd*****@exit109.com> wrote:
Stanley Sinclair wrote:
Want to backup the database separately, and then everything else. Now
that DB2 has a backup utility that uses compression, should I use it?
Also have ArcServe on the server.
Some tape drives already have hardware compression. E.g., my Exabyte VXA-1
and VXA-2 drives. It seems to me that if you have a drive with good
hardware compression, there would be little point in using software
compression as well. It seems to me that it would just gobble up processor
power for something the dedicated compression processing in the tape drive
might do better.
I'd endorse that point of view. Compression is very CPU-intensive, so
if you can offload it to the hardware in the tape drive, that would be
beneficial.
I never looked at DB2 data on disk to see how well they compress. I assume
someone must have done this by now. Exabyte seem to think that most data
compress to 1/2 original size. This is sure variable. Some manufacturers
seem to think most data compress to 1/3 original size. But stuff like JPEG
do not compress all that much and other stuff compresses more.


Exactly. The expected level of compression will depend heavily on
what's in the database. If you've got a lot of LOBs that hold JPEGs,
you'll burn a lot of CPU trying to compress the data, only to end up
storing the original uncompressed data. If you've got a lot of
char(250) columns holding plain text, you might get compression of 10:1.

The default compression algorithm shipped with DB2 is idential to good
old boring "compress", which has shipped with versions of Unix since the
dawn of time. If you run "compress" over the containers in your
database you'll get a ballpark idea of how compressible your data is.
(Of course, you won't want to actually compress the containers,
especially if the database is in use. Send the compressed data to
stdout and pipe it through wc, or somesuch.)

dave
Nov 12 '05 #4
Jean-David Beyer wrote:
Stanley Sinclair wrote:
I just brought a new small server online. It has two disks in RAID1
(mirrored) for the operating system and logs and DB2 DBMS. DB2 data
on a separate RAID 5EE array on four disks. (IBM ServeRAID 6i
controller.)

I don't expect more than 200 GB total data ever in the DB2 database
(starting with 120 MB), and 150 GB in other stuff.

Want to backup the database separately, and then everything else. Now
that DB2 has a backup utility that uses compression, should I use it?
Also have ArcServe on the server.

Have a good tape system on its own SCSI card. Win 2003 server.

Suggestions?


Some tape drives already have hardware compression. E.g., my Exabyte VXA-1
and VXA-2 drives. It seems to me that if you have a drive with good
hardware compression, there would be little point in using software
compression as well. It seems to me that it would just gobble up processor
power for something the dedicated compression processing in the tape drive
might do better.

I never looked at DB2 data on disk to see how well they compress. I assume
someone must have done this by now. Exabyte seem to think that most data
compress to 1/2 original size. This is sure variable. Some manufacturers
seem to think most data compress to 1/3 original size. But stuff like JPEG
do not compress all that much and other stuff compresses more.

An Exabyte VXA-2 tape can hold 80 GByte uncompress and 160 GByte if you
get 2:1 compression.


Not only does DB2 compression use more CPU cycles, we have found that it
needs significantly more memory. We had to increase the utility heap size
to approximately 4x its previous value to prevent "not enough memory"
errors. If you can afford the memory and the cycles I'd still recommend
using it however.

Phil
Nov 12 '05 #5
Are you on a 32-bit or 64-bit DB2 instance?

Philip Nelson wrote:
Jean-David Beyer wrote:

Stanley Sinclair wrote:
I just brought a new small server online. It has two disks in RAID1
(mirrored) for the operating system and logs and DB2 DBMS. DB2 data
on a separate RAID 5EE array on four disks. (IBM ServeRAID 6i
controller.)

I don't expect more than 200 GB total data ever in the DB2 database
(starting with 120 MB), and 150 GB in other stuff.

Want to backup the database separately, and then everything else. Now
that DB2 has a backup utility that uses compression, should I use it?
Also have ArcServe on the server.

Have a good tape system on its own SCSI card. Win 2003 server.

Suggestions?


Some tape drives already have hardware compression. E.g., my Exabyte VXA-1
and VXA-2 drives. It seems to me that if you have a drive with good
hardware compression, there would be little point in using software
compression as well. It seems to me that it would just gobble up processor
power for something the dedicated compression processing in the tape drive
might do better.

I never looked at DB2 data on disk to see how well they compress. I assume
someone must have done this by now. Exabyte seem to think that most data
compress to 1/2 original size. This is sure variable. Some manufacturers
seem to think most data compress to 1/3 original size. But stuff like JPEG
do not compress all that much and other stuff compresses more.

An Exabyte VXA-2 tape can hold 80 GByte uncompress and 160 GByte if you
get 2:1 compression.

Not only does DB2 compression use more CPU cycles, we have found that it
needs significantly more memory. We had to increase the utility heap size
to approximately 4x its previous value to prevent "not enough memory"
errors. If you can afford the memory and the cycles I'd still recommend
using it however.

Phil


Nov 12 '05 #6
Philip Nelson wrote:
Jean-David Beyer wrote:

[snip]
Some tape drives already have hardware compression. E.g., my Exabyte VXA-1
and VXA-2 drives. It seems to me that if you have a drive with good
hardware compression, there would be little point in using software
compression as well. It seems to me that it would just gobble up processor
power for something the dedicated compression processing in the tape drive
might do better.

I never looked at DB2 data on disk to see how well they compress. I assume
someone must have done this by now. Exabyte seem to think that most data
compress to 1/2 original size. This is sure variable. Some manufacturers
seem to think most data compress to 1/3 original size. But stuff like JPEG
do not compress all that much and other stuff compresses more.

An Exabyte VXA-2 tape can hold 80 GByte uncompress and 160 GByte if you
get 2:1 compression.

Not only does DB2 compression use more CPU cycles, we have found that it
needs significantly more memory. We had to increase the utility heap size
to approximately 4x its previous value to prevent "not enough memory"
errors. If you can afford the memory and the cycles I'd still recommend
using it however.

Do you recommend software compression over hardware compression?
Because my guess is that a tape drive with hardware compression costs
around $1000 (e.g., for VXA-2 from Exabyte), where enough memory, and
maybe an extra processor, probably cost more than that. And from the $1000
you should subtract the cost of a non-compressing tape drive of similar
capability.

--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 15:00:00 up 1 day, 25 min, 4 users, load average: 2.17, 2.17, 2.10

Nov 12 '05 #7
Gee, Blair, I'm no longer sure who's responding to whom in this
thread.

If anyone's interested in my setup, I'm on 32-bit Windows 2003 Server
with 6 HDDs in RAID5+0 and tape drive on independent SCSI card.
(Changed from previous post.) Also have ArcServe. To refine original
question:

-- Should I use DB2 backup utility (with compression) directly to tape
and use ArcServe for everything else?
-- Should I use DB2 backup to the RAID 50 array and then use ArcServe
to copy files to tape?
-- Should I just use ArcServe alone to backup whatever?
-- What about interim backup of just logs during the day using
ArcServe? Using DB2 backup?
-- Other thoughts, including CPU time as mentioned by others?

I'm thinking about the ease of restore of DB2 should it be necessary.

Stan
________

Blair Adamache <ba*******@2muchspam.yahoo.com> wrote in message news:<ca**********@hanover.torolab.ibm.com>...
Are you on a 32-bit or 64-bit DB2 instance?

Philip Nelson wrote:
Jean-David Beyer wrote:

Stanley Sinclair wrote:

I just brought a new small server online. It has two disks in RAID1
(mirrored) for the operating system and logs and DB2 DBMS. DB2 data
on a separate RAID 5EE array on four disks. (IBM ServeRAID 6i
controller.)

I don't expect more than 200 GB total data ever in the DB2 database
(starting with 120 MB), and 150 GB in other stuff.

Want to backup the database separately, and then everything else. Now
that DB2 has a backup utility that uses compression, should I use it?
Also have ArcServe on the server.

Have a good tape system on its own SCSI card. Win 2003 server.

Suggestions?

Some tape drives already have hardware compression. E.g., my Exabyte VXA-1
and VXA-2 drives. It seems to me that if you have a drive with good
hardware compression, there would be little point in using software
compression as well. It seems to me that it would just gobble up processor
power for something the dedicated compression processing in the tape drive
might do better.

I never looked at DB2 data on disk to see how well they compress. I assume
someone must have done this by now. Exabyte seem to think that most data
compress to 1/2 original size. This is sure variable. Some manufacturers
seem to think most data compress to 1/3 original size. But stuff like JPEG
do not compress all that much and other stuff compresses more.

An Exabyte VXA-2 tape can hold 80 GByte uncompress and 160 GByte if you
get 2:1 compression.

Not only does DB2 compression use more CPU cycles, we have found that it
needs significantly more memory. We had to increase the utility heap size
to approximately 4x its previous value to prevent "not enough memory"
errors. If you can afford the memory and the cycles I'd still recommend
using it however.

Phil

Nov 12 '05 #8

"Stanley Sinclair" <st*************@bellsouth.net> wrote in message
news:6f**************************@posting.google.c om...
Gee, Blair, I'm no longer sure who's responding to whom in this
thread.

If anyone's interested in my setup, I'm on 32-bit Windows 2003 Server
with 6 HDDs in RAID5+0 and tape drive on independent SCSI card.
(Changed from previous post.) Also have ArcServe. To refine original
question:

-- Should I use DB2 backup utility (with compression) directly to tape
and use ArcServe for everything else?
-- Should I use DB2 backup to the RAID 50 array and then use ArcServe
to copy files to tape?
-- Should I just use ArcServe alone to backup whatever?
-- What about interim backup of just logs during the day using
ArcServe? Using DB2 backup?
-- Other thoughts, including CPU time as mentioned by others?

I'm thinking about the ease of restore of DB2 should it be necessary.

Stan
________

You can easily determine the difference in elapsed time when using DB2
compression. Just run a test with and without. Some systems are CPU bound
and others are not, so you should test this yourself.

If you backup directly to tape, it will take a long time and will be tape
I/O bound. DB2 compression will likely not be a factor in this situation.

Backing up DB2 directly to tape will not use ArcServe. You must have DB2
backups and not just OS file backups. I would test both a backup and restore
to/from tape because it can be a little tricky. Try it out on the sample
database (including doing a restore).

Backing up to disk and then copying to tape is fast (for the backup) and
relatively safe if you have enough disk space. You must have enough disk
space to copy the backup to disk before a restore. You would definitely use
DB2 compression in this instance.

Whether you backup the logs depends on whether you have circular logging or
archive logging. With circular logging, there is no need to backup the logs.
With archive logging, when you restore an online backup or roll forward to
the current time (after restoring the backup) you MUST have the logs.
Nov 12 '05 #9
Stanley Sinclair wrote:
Gee, Blair, I'm no longer sure who's responding to whom in this
thread.


I agree. When some people obey Microsoft rules and top post, when most of
the rest obey Netiquette and bottom post, it really mixes things up.

--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 22:25:00 up 1 day, 7:50, 8 users, load average: 4.10, 4.11, 4.04

Nov 12 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andrew E | last post by:
I just took over DBA responsibilities for an Oracle 8i database running on Linux. Although I've been working with relational databases for some time, I'm a bit green on Oracle so forgive me. My...
3
by: Thiko | last post by:
Hi I take one nightly full database backup at 02:00 and backup the transaction log to one backup set every 15mins. The commands to do this are as follows and are set up to run as database...
2
by: nt | last post by:
I am having a problem with a regular backup of an SQL Server (MSDE 2000) database to a local drive. I initiate the backup once a week, by issuing the required T-SQL, via ADO. In this case, the...
1
by: John Rajendran | last post by:
Hi there, I need to take a backup with the following scanerio in mind: At T1 I take the FULL BACK UP of the database called BACK_1_FULL.BACK in c:\ Then at T2 I would like to take only the...
6
by: Eric Herber | last post by:
I've a question regarding db2 (V8.1) and database backups going to a storage manager like TSM for example. As I can see in the storage manager if I backup the complete database over the TSM API...
1
by: alex | last post by:
Hi ! I couldn't make backups with our new system using db2 8.2. Every time I trigger a backup I get this error message: BACKUP DATABASE EBUERO2 ONLINE TO "/raid/backup/ebuero2/part1",...
4
by: uthuras | last post by:
Hi all, I have DB2ESE version 8.1 with FP 4 on AIX 5.2. My database used to be 1.1TB. When the DB size is 1.1TB, it takes approximately 7 hours to backup the entire database (online backup). The...
6
by: k04jg02 | last post by:
Problem: I have a properties dialog. X objects build the dialog, but a subclass of X, such as Y, can add more options to the dialog for Y specific properties. I would like to write code for the...
10
by: Konstantin Andreev | last post by:
Hello. Some time ago I asked in this conference, - How to use an ONLINE BACKUP to restore database onto another system? - but got no answers. Therefore I can conclude it is not possible. But......
2
by: clilush | last post by:
I've been working with db2 8.2fp14 for over a year now and was wondering what is a "standard" way of doing a backup to provide 24/7 operations with disaster recovery capabilities? My thoughts were...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.