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 > Move Log Files to new path

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-08, 08:32
jyoung jyoung is offline
Registered User
 
Join Date: Jul 2005
Posts: 31
Move Log Files to new path

I need to move the location of the log files due to the file system filling up. Just want some verification that I am doing this correctly.

1. An Offline backup is taken nightly.

2. After backup insure that the application is shutdown.

3. Issue command to change the log path:
db2 update db cfg for database_name using NEWLOGPATH directory_of_new_disk

4. Start up application.

My question is should I do another backup after I change the log path or is that not needed? Can I assume that when the application starts up and connects to the db it will create the log files in the new path? Thank you.
Reply With Quote
  #2 (permalink)  
Old 08-25-08, 08:57
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
For DB2 for LUW, you are correct. I do not know about Z/OS.

Andy
Reply With Quote
  #3 (permalink)  
Old 08-25-08, 09:23
jyoung jyoung is offline
Registered User
 
Join Date: Jul 2005
Posts: 31
Sorry, I should have given more information. My OS is AIX 5.2 ML 10. My DB Version is 8.1.1.56. Thank you.
Reply With Quote
  #4 (permalink)  
Old 08-25-08, 09:37
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
just update the db cfg for this database
stop the instance - start the instance
move the remaining logs at old path to new path
__________________
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 08-25-08, 11:44
jyoung jyoung is offline
Registered User
 
Join Date: Jul 2005
Posts: 31
Guy,
Since I am doing an off-line backup is it necessary to move the logs to the new path as long as the application is shut down and no activity has taken place? I would be doing this right after the backup has taken place and the application has not restarted. Thank you.
Reply With Quote
  #6 (permalink)  
Old 08-26-08, 06:18
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Jyoung, Given your circumstances, I wouldn't think it is critcal to move the log files to the new path

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #7 (permalink)  
Old 08-26-08, 07:17
jyoung jyoung is offline
Registered User
 
Join Date: Jul 2005
Posts: 31
Thank you everyone for the information.
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