If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > system snapshot as backup, possible?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-07-08, 08:44
altura altura is offline
Registered User
 
Join Date: Jan 2003
Posts: 21
Question system snapshot as backup, possible?

Hi all,

I wonder if it was possible to use a system snapshot as a backup strategy to make Db2 backups.

The idea is to keep DB2 online and just make a system disk snapshot (ex of linux command: lvcreate --snapshot) of the Db2 data and log directory (isolated in a dedicated Volum group).

The snapshot can be then saved elsewhere without disturbing the DB.
The restore of this backup will require an automatic database recovery from the logs (included in the backup).

Have you tried such approach? have you got some information about thsi?

thanks
Reply With Quote
  #2 (permalink)  
Old 07-07-08, 09:48
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Reply With Quote
  #3 (permalink)  
Old 07-07-08, 10:50
altura altura is offline
Registered User
 
Join Date: Jan 2003
Posts: 21
Thanks Andy!
I would expect some thing named "snapshot" but the "Split Mirror" is really what I was searching for.

thanks
Reply With Quote
  #4 (permalink)  
Old 07-08-08, 04:54
scotdb scotdb is offline
Registered User
 
Join Date: Jul 2008
Posts: 3
If all you want is to take a backup while the database is still available it is much easier to use the "ONLINE" option of the backup command. Remember to use the "INCLUDE LOGS" option too : it doesn't become the default until V9.5 I think.

This is much easier both to set up than split mirror. You can throttle the backup so that it doesn't interfere with your online performance too.

I assume you already have set up archive logging to write logs to an off-server location automatically ?

If you have backup servers such as TSM or Veritas NetBackup at your disposal then you can write backups and logs directly to these automatically. Schedule the backups either using the built in DB2 scheduler or your scheduling tool of choice and it becomes basically "no further action required".

HTH

Phil
Reply With Quote
  #5 (permalink)  
Old 07-08-08, 05:06
altura altura is offline
Registered User
 
Join Date: Jan 2003
Posts: 21
Yes Phil, I already use a backup online with TSM but I look for an alternate way of taking an immediate copy of the database to populate easily other databases without consuming resources from TSM.

The Split mirror is a good alternative here.

I used to do similar strategy for mysql database backups and it works really great.

Vincent
Reply With Quote
  #6 (permalink)  
Old 07-08-08, 07:23
scotdb scotdb is offline
Registered User
 
Join Date: Jul 2008
Posts: 3
That's fine ...

... just wanted to ensure you weren't putting yourself to more work than is necessary.

We do all our restores into development from TSM : we've managed to work out how to switch between our production and development TSM servers at will and probably know more about TSM than we ever wanted to know :-(

We're going to have to start looking at alternative ways of producing copy databases, since some of our production databases are now bigger than the capacity of our development servers. Optim looks like one potential solution, and also gives us added benefits in terms of data scrambling and security.

Phil
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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