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 > rollforward issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-10-11, 06:40
dbadmin123 dbadmin123 is offline
Registered User
 
Join Date: Jul 2011
Posts: 4
rollforward issue

We have successfully restore from TSM but when we perform rollback got error as below.

ON /db2/GQB/sapdata6 ,/db2/GQB/sapdata5 ,/db2/GQB/sapdata4 ,/db2/GQB/sapdata3 ,/db2/GQB/sapdata2 ,/db2/GQB/sapdata1 DBPATH ON /db2/GQB INTO GQB LOGTARGET /db2/GQB/log_dir/NODE0000/ WITH 2 BUFFERS BUFFER 1024
SQL2528W Warning! Restoring to an existing database that is the same as the
backup image database, but the alias name "GQB" of the existing database does
not match the alias "GPB" of backup image, and the database name "GQB" of the
existing database does not match the database name "GPB" of the backup image.
The target database will be overwritten by the backup version.
Do you want to continue ? (y/n) y
SQL2580W Warning! Restoring logs to a path which contains existing log files.
Attempting to overwrite an existing log file during restore will cause the
restore operation to fail.
Do you want to continue ? (y/n) y
DB20000I The RESTORE DATABASE command completed successfully.

************************************************** *********
** THE RESTORE PROCEDURE HAS NOW FINISHED SUCCESSFULLY **
************************************************** *********
GMU-BIQB:db2gqb 56> db2 rollforward db GQB to end of logs
SQL4970N Roll-forward recovery on database "GQB" cannot reach the specified
stop point (end-of-log or point-in-time) because of missing or corrupted log
file(s) on database partition(s) "0". Roll-forward recovery processing has
halted on log file "S0130978.LOG".
GMU-BIQB:db2gqb 57> db2 rollforward db GQB complete
SQL1276N Database "GQB" cannot be brought out of rollforward pending state
until roll-forward has passed a point in time greater than or equal to
"2011-07-08-08.18.22.000000 UTC", because node "0" contains information later
than the specified time.

Rollforward Status

Input database alias = GQB
Number of nodes have returned status = 1

Node number = 0
Rollforward status = DB working
Next log file to be read = S0130978.LOG
Log files processed = -
Last committed transaction = 2011-07-08-08.18.22.000000 UTC

GMU-BIQB:db2gqb 75> db2 "rollforward database GQB to end of logs OVERFLOW LOG PATH (/db2/GQB/log_dir)"

SQL4970N Roll-forward recovery on database "GQB" cannot reach the specified
stop point (end-of-log or point-in-time) because of missing or corrupted log
file(s) on database partition(s) "0". Roll-forward recovery processing has
halted on log file "S0130978.LOG".

Appreciated your help on this.
Reply With Quote
  #2 (permalink)  
Old 07-10-11, 09:57
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
Looks the log file S0130978 is missing. Is S0130978.LOG present in overflow log path [/db2/GQB/log_dir] ?? Also try rollforwading to specific point in time OR to end of backup.
Reply With Quote
  #3 (permalink)  
Old 07-10-11, 10:32
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
You can also use db2cklog command to check and see if the log file is in a good state.
Reply With Quote
  #4 (permalink)  
Old 07-10-11, 11:56
dbadmin123 dbadmin123 is offline
Registered User
 
Join Date: Jul 2011
Posts: 4
rollforward issue

GMU-BIQB:db2gqb 21> db2 rollforward db GQB to 2011-07-09-00.18.21.54
SQL1274N The database "GQB" requires roll-forward recovery and the
point-in-time must be to the end of logs.
Reply With Quote
  #5 (permalink)  
Old 07-10-11, 14:53
dbadmin123 dbadmin123 is offline
Registered User
 
Join Date: Jul 2011
Posts: 4
rollforward issue

Blazer,

S0130978.LOG exist in /db2/GQB/log_dir....
Reply With Quote
  #6 (permalink)  
Old 07-10-11, 20:17
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by dbadmin123 View Post
S0130978.LOG exist in /db2/GQB/log_dir....
Is this the same log that was extracted during RESTORE (from your restore command -> LOGTARGET /db2/GQB/log_dir/NODE0000/)?

How far do you need to rollforward to? End of online backup?

Try rollforward to end of logs using OVERFLOW LOG PATH (/db2/GQB/log_dir/NODE0000) and NORETRIEVE.
Reply With Quote
  #7 (permalink)  
Old 07-10-11, 23:25
dbadmin123 dbadmin123 is offline
Registered User
 
Join Date: Jul 2011
Posts: 4
rollforward issue

Does not required roll-forward up to latest one but only thing roll-forward should be successful as this our quality system.

Please find output as below
db2 "rollforward db GQB stop OVERFLOW LOG PATH (/db2/GQB/log_dir)"
SQL1276N Database "GQB" cannot be brought out of rollforward pending state
until roll-forward has passed a point in time greater than or equal to
"2011-07-10-08.06.59.000000 UTC", because node "0" contains information later
than the specified time.

db2 rollforward db GQB to 2011-07-10-08.06.59.000000
SQL1274N The database "GQB" requires roll-forward recovery and the
point-in-time must be to the end of logs.

db2 rollforward db GQB to end of logs
SQL4970N Roll-forward recovery on database "GQB" cannot reach the specified
stop point (end-of-log or point-in-time) because of missing or corrupted log
file(s) on database partition(s) "0". Roll-forward recovery processing has
halted on log file "S0131143.LOG".

db2 rollforward db GQB query status[B]

Rollforward Status

Input database alias = GQB
Number of nodes have returned status = 1

Node number = 0
Rollforward status = DB working
Next log file to be read = S0131143.LOG
Log files processed = -
Last committed transaction = 2011-07-10-08.06.59.000000 UTC

But S0131143.LOG exist in /db2/GQB/log_dir/NODE0000.

Last edited by dbadmin123; 07-10-11 at 23:38.
Reply With Quote
  #8 (permalink)  
Old 07-11-11, 18:35
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
It looks like you restored from another backup image. I suppose you specified "LOGTARGET /db2/GQB/log_dir/NODE0000/" on the restore command again. This is the dir where db2 will restore the logs stored in the backup image (logs you need to rollforward to end of backup).

You said "S0131143.LOG exist in /db2/GQB/log_dir/NODE0000", but specified "OVERFLOW LOG PATH (/db2/GQB/log_dir)" on the rollforward command. Why is OVERFLOW LOG PATH different from where you have S0131143.LOG (and possibly some additional logs)?


In this example, you need to issue:
db2 "rollforward db GQB to end of logs and stop OVERFLOW LOG PATH (/db2/GQB/log_dir/NODE0000) NORETRIEVE"
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