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 > Path to Log Files?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-30-09, 05:24
CarloVino CarloVino is offline
Registered User
 
Join Date: Sep 2007
Posts: 2
Path to Log Files?

Take note, I am a newbie . I am encountering a low disk space alert.
I have one instance and my DB2 UDB version is 9.1.
Path to Log Files of the database in question shows a path which have enough disk space i.e. Path to Log Files = /db2kb7777/partX/logs/REX_db/NODE0000/, base on the Log file size (4KB) (LOGFILSIZ) = 5000, size of the log files in this directory is 20488192, and files are from
-rw------- 1 db2kb7777 db2 20488192 Apr 29 12:59 S0000000.LOG
to
-rw------- 1 db2kb7777 db2 20488192 Jan 14 15:19 S0000009.LOG

***
Number of primary log files (LOGPRIMARY) = 10
Number of secondary log files (LOGSECOND) = 4
***

BUT I am getting a low disk space alert on these directories (99% Used)
/db2kb7777/partB/logs/REX_db/NODE0002
and this directory
/db2kb7777/partC/logs/REX_db/NODE0001

Log files here: /db2kb7777/partB/logs/REX_db/NODE0002 are from
-rw------- 1 db2kb7777 db2 40968192 Apr 16 22:39 S0000000.LOG
to
-rw------- 1 db2kb7777 db2 40968192 Apr 16 22:38 S0000024.LOG
with
-rw------- 1 db2kb7777 db2 40968192 Apr 29 12:59 S0000003.LOG

Log files here: /db2kb7777/partC/logs/REX_db/NODE0001 are from
-rw------- 1 db2kb7777 db2 40968192 Apr 29 12:59 S0000000.LOG
to
-rw------- 1 db2kb7777 db2 40968192 Apr 16 22:40 S0000024.LOG

It appears that database REX_db uses these logs files but I don't see how these directories are related to the database REX_db base on the database configurations. I am wondering how come their modification date is more updated than the one listed in "Path to Log Files" of REX_db. There is no other instance here except db2kb7777 (as per db2ilist), I made sure no other databases inadvertently used these directories for their log files.

My questions:
How can I know for sure who owns these log files?
Could there be some sort of replication or log shipping at work here and is utilizing these directories? and how can I find out if there are?
Any other ideas and/or insight that can shed light on what I am missing here?

Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 04-30-09, 05:26
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
have a look at db cfg for database- this indicates the logparh - if mirrored
or achived and where to
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 04-30-09, 09:28
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Judging by NODE0001 and NODE0002 in your log path strings, you probably have a partitioned database. Please keep in mind that the database configuration, including the log paths, may differ between partitions.
Reply With Quote
  #4 (permalink)  
Old 05-01-09, 20:42
CarloVino CarloVino is offline
Registered User
 
Join Date: Sep 2007
Posts: 2
Thanks for your response!

Here are related db cfg for REX_db, logs are not mirrored.

Path to log files = /db2kb7777/partX/logs/REX_db/NODE0000/
Overflow log path (OVERFLOWLOGPATH) =
Mirror log path (MIRRORLOGPATH) =
First active log file =
Log retain for recovery enabled (LOGRETAIN) = OFF

How can I verify if a database is partitioned?

Thanks in advance!
Reply With Quote
  #5 (permalink)  
Old 05-03-09, 10:18
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
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