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 > Online Backup Failling - Disk Full.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-09-09, 10:21
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Online Backup Failling - Disk Full.

Hi Guys,

DB2 V9.1.3 on Win 2k3

We have a recent issue of backup failling because of disk becoming full.

Till yesterday as I know, Image size was varying within 165GB - 185GB. The disk size is 200GB.
Here is database size info.
Quote:
D:\>db2 "CALL GET_DBSIZE_INFO (?, ?, ?, -1)"

Value of output parameters
--------------------------
Parameter Name : SNAPSHOTTIMESTAMP
Parameter Value : 2009-08-09-09.26.48.978000

Parameter Name : DATABASESIZE
Parameter Value : 179610378240

Parameter Name : DATABASECAPACITY
Parameter Value : 654944332800

Return Status = 0

D:\>
Today morning it failed just 47 mins after its normal completion time (1:00 am - 3:00am)
Assuming that there might have been too many activities during weekend night, I just restarted ONLINE BACKUP again. This time it Failed again around 6:00am taking about 50 minutes more than normal.
I restarted again without investigating, just in hurry to get mirror up in least time. This time again it failed after 3 hours.

I am not really expert of backup & restore. The database size seems as before. What factors affect ONLINE BACKUP ?? Can it be real-time applications that misbehave during backup resulting bigger backup image ??.

DATA satying the same, what factors force DB2 to generate bigger image ??.

here is command used and result

Quote:
backup database GAM_PROD online to "h:\online_image" with 10 buffers buffer 256 UTIL_IMPACT_PRIORITY 20 without prompting
SQL2419N The target disk "h:\online_image" has become full.
While monitoring remotely I observed too many commit_Active 's take place at same time.
Quote:

APP_HNDL STATUS_CHANGE_TIME THREAD_AGE APPL_STATUS APPL_NAME DBNAME

-------- -------------------------- -------------- ------------ -------------------- ----------

1458 2009-08-09-07.51.58.168129 -13.66 UOWEXEC java.exe GC_PROD

2399 2009-08-09-07.51.58.323025 -13.81 UOWEXEC db2bp.exe GC_PROD

2297 2009-08-09-07.51.58.391900 -13.88 COMMIT_ACT java.exe GC_PROD

3189 2009-08-09-07.51.58.390825 -13.88 COMMIT_ACT java.exe GC_PROD

2307 2009-08-09-07.51.58.386922 -13.88 COMMIT_ACT java.exe GC_PROD

1090 2009-08-09-07.51.58.391190 -13.88 COMMIT_ACT java.exe GC_PROD

716 2009-08-09-07.51.58.406542 -13.90 COMMIT_ACT java.exe GC_PROD

I believe these COMMIT_ACT at same TIMEstamp originate from DISK or NETWORK inconsistency ?? - not sure !

Please hep me figure out the cause, so that I may be able to take ONLINE backup.

Thanks
DBFinder
Reply With Quote
  #2 (permalink)  
Old 08-09-09, 14:46
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by DBFinder
DATA satying the same, what factors force DB2 to generate bigger image ??.
Online backup doesn't include logs by default in v9.1 so that can't a contributing factor. DB2 doesn't backup temporary tablespaces so even if applications are using a lot of tempspace, it shouldn't affect the backup image size. DB2 will backup DMS tablespaces up to the HWM so if HWM increased so will the backup image. The HWM can go up even without adding more data (in some cases, reorg may cause HWM to go up).
Reply With Quote
  #3 (permalink)  
Old 08-09-09, 14:55
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Any way to reduce HWM. Since I had noticed some HWM are over 20G above the actual data size.

If there is a way then I can reduce sige signifcantly. I have over 10 tablespaces with unreasonably high HWMs.

Regards
DBFinder
Reply With Quote
  #4 (permalink)  
Old 08-09-09, 15:50
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Please take a look at the following technote:
IBM - Lowering the High-Water Mark of a Tablespace
Reply With Quote
  #5 (permalink)  
Old 08-09-09, 16:05
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Thanks Bella
Reply With Quote
  #6 (permalink)  
Old 08-10-09, 09:50
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Two things.

1. As Bell pointed out your backup images are worthless with out log files. Unless you store log files some place else and know which one belongs to which back up. So, if you keep doing online backup include logs.

2. From personal experience with HWM, the only way to lower them is to rebuild table and its tablespaces. It might have been fixed in 9.5, I just haven't tried it yet.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #7 (permalink)  
Old 08-10-09, 11:19
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
I've been able to lower the HWM in different versions of DB2. It really depends on what's holding it.
Reply With Quote
  #8 (permalink)  
Old 08-10-09, 11:24
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Quote:
Originally Posted by db2girl
I've been able to lower the HWM in different versions of DB2. It really depends on what's holding it.
Woman's touch
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #9 (permalink)  
Old 08-10-09, 11:28
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
hahaha
Reply With Quote
  #10 (permalink)  
Old 08-13-09, 14:08
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Quote:
Originally Posted by db2girl
I've been able to lower the HWM in different versions of DB2. It really depends on what's holding it.
Using db2dart ?? Offline ??
Reply With Quote
  #11 (permalink)  
Old 08-13-09, 14:41
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
The technote is a bit old... v9 manual states the following:

"In general, db2dart requests are to be run when the database is offline. However, for the /DHWM and /LHWM actions, an offline database is not strictly required. The report could be generated without the database being offline, but the reliability of the results will vary depending on how much write/update activity has occurred recently (less activity implies more reliable results). "


Starting from v9.1 fp4, you can use db2dart /dhwm and /lhwm while the db is online: IBM - IZ04647: DB2DART /DHWM AND /LHWM COULD BE RUN WHEN DB IS ACTIVE/INCONSISTENT (ONLINE) TO GENERATE REPORTS FROM V91FP4.
Reply With Quote
  #12 (permalink)  
Old 08-13-09, 17:02
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
I was wondering why you are not using the COMPRESS in the backup? It definitely should be able to 'squeeze in' the backup.
__________________
mota
Reply With Quote
  #13 (permalink)  
Old 08-14-09, 14:01
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Quote:
Originally Posted by dbamota
I was wondering why you are not using the COMPRESS in the backup? It definitely should be able to 'squeeze in' the backup.
OUPS. that is a good point that we all have missed
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
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