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 > Archive logs not getting Archived

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-11, 06:40
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Red face Archive logs not getting Archived

I have mentioned a specific path for Archive logs LOGARCHMETH1: But i see logs are getting stored in Active logs rather than moving to Archive log path.

Also when i see diaglog I see this error.

2011-10-05-16.03.35.281364+330 I4155814768G488 LEVEL: Warning
PID : 9740 TID : 3086788288 PROC : db2logmgr (MAXDB71) 0
INSTANCE: ctginst1 NODE : 000
FUNCTION: DB2 UDB, data protection services, sqlpgRetryFailedArchive, probe:4780
MESSAGE : Still unable to archive log file 1199 due to rc -2029060079 for
LOGARCHMETH1 using method 1 and target
/MAX_DATA/ctginst1/Archive_Log_Maximo/ctginst1/MAXDB71/NODE0000/C00000
01/.


I just understand it is unable to archive the log... But please suggest how to over come this..

thanks !
Reply With Quote
  #2 (permalink)  
Old 10-05-11, 06:47
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
is the path existing ? owned by instance owner ? write access ?
what is the real value of LOGARCHMETH1
__________________
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 10-05-11, 07:44
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Path is : /MAX_DATA/ctginst1/Archive_Log_Maximo/

it is existing , owned by root, But full access to instance owner.
Reply With Quote
  #4 (permalink)  
Old 10-05-11, 10:05
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
what is the real value of LOGARCHMETH1 : not answered

chown instanceowner:group /MAX....
chmod 6.. for the same path
in that case you have all authorization
__________________
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
  #5 (permalink)  
Old 10-05-11, 23:02
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Now ownership also changed to instance owner...

And LOGARCHMETH1
(LOGARCHMETH1) = DISK:/MAX_DATA/ctginst1/Archive_Log_Maximo/

...

i have a doubt ...

if i take a backup of the DB then i can move the logs from Active logs to Archive log. will it work ?
Reply With Quote
  #6 (permalink)  
Old 10-06-11, 20:27
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by alwayssathya View Post
if i take a backup of the DB then i can move the logs from Active logs to Archive log. will it work ?
Which logs? Old logs that still remain in the active log dir because of the above error?
Reply With Quote
  #7 (permalink)  
Old 10-06-11, 23:53
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Yes .. i still find the logs in Active log directory even after backup and they are not moved to Archive log directory.
Reply With Quote
  #8 (permalink)  
Old 10-07-11, 02:55
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
you have to find the origin of the error
execute the command db2 archive log for db xxx
check diaglog if done
if error - investigate what is wrong with this filesystem/mount
__________________
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
  #9 (permalink)  
Old 10-07-11, 03:12
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
I ve executed the command it was successful,

[ctginst1@WESSPMDB02 ~]$ db2 archive log for db maxdb71
DB20000I The ARCHIVE LOG command completed successfully.
[ctginst1@WESSPMDB02 ~]$


Thanks it worked,
Reply With Quote
  #10 (permalink)  
Old 10-07-11, 03:16
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
the answer is always as indicated : The ARCHIVE LOG command completed successfully.
I indicated : check diaglog if done .. please do some debugging before.. and read the posts ..instead of coming back to the forum with each reply..
I presume you are the dba and we are remote volunteers
__________________
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
  #11 (permalink)  
Old 10-07-11, 04:53
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
I got your point correctly,

once i gave the command...it showed same error,
Jus to confirm my permision i once again gave the ownership to instance owner. Then it worked... diaglog show archival was successfull....
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