cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

rollforward issue

Former Member
0 Likes
2,673

HI

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.

Appreciated your help on this.

Regards,

Kumar

View Entire Topic
Former Member
0 Likes

db2 rollforward db GQB query status

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".

marc_saulnier
Participant
0 Likes

Hi try this command :

db2 "rollforward db GQB stop OVERFLOW LOG PATH (/db2/GQB/log_dir)"

let me know

regards

Former Member
0 Likes

Hi Marc,

I tried the same and got the below error :

SQL1276N Database "M03" cannot be brought out of rollforward pending state

until roll-forward has passed a point in time greater than or equal to

"2011-06-18-04.50.00.000000 UTC", because node "0" contains information later

than the specified time.

Can you please advise ?

thanks,

Raj

marc_saulnier
Participant
0 Likes

Hi it's look like db2 did not find the log S0130978.LOG under /db2/GQB/log_dir. If the log file is not under this directory, you need to restore the log file.

This is an exemple using brrestore with TSM :

Step 1 : db2 rollforward db GQB query status and note "Next log file to be read"

Step 2 : cd /db2/GQB/log_dir *To dump the log under this directory

Step 3 : brrestore -q "NODE" -out -sid GQB *To query the log file available

Step 4 : brrestore -ex "S0130978.LOG*" -d adsm -sid GQB

Step 5 : Rename the log file with the appropriate name ie: S0130978.LOG and make sure the file is under /db2/GQB/log_dir

Step 6 : db2 "rollforward db GQB stop OVERFLOW LOG PATH (/db2/GQB/log_dir)"

CHeck that !

regards

Former Member
0 Likes

Hi Marc,

You are correct, the appropriate logs are not found in /db2/M03/log_dir

But, It seems we dont have this "brrestore" command :

db2m03> man -k brrestore

brrestore: Cannot find matching entry.

Is there any other way to retrieve the logs from TSM ?

Thanks,

Raj

Former Member
0 Likes

Hi Marc,

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

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 this file S0131143.LOG exist in /db2/GQB/log_dir/NODE0000.

Kumar

marc_saulnier
Participant
0 Likes

Hi Kumar if the log exist point the overflow log path on this directory

db2 "rollforward db GQB stop OVERFLOW LOG PATH (/db2/GQB/log_dir/NODE0000

regards

marc_saulnier
Participant
0 Likes

Hi you need to use db2adutl in this case :

Step 1 : db2 rollforward db GQB query status and note "Next log file to be read"

Step 2 : cd /db2/GQB/log_dir *To dump the log under this directory

Step 3 : db2adutl query logs

Step 4 : db2adutl extract logs between S0084324.LOG AND S0084325.LOG * The LOG sequence you want to retrieve

Step 5 : Rename the log file with the appropriate name ie: S0130978.LOG and make sure the file is under /db2/GQB/log_dir

Step 6 : db2 "rollforward db GQB stop OVERFLOW LOG PATH (/db2/GQB/log_dir)"

regards

Former Member
0 Likes

thanks a lot Marc, that worked.

but I have another issue now

db2m03> db2 rollforward db M03 to end of logs

SQL1268N Roll-forward recovery stopped due to error "SQL2033" while

retrieving log file "S0059505.LOG" for database "M03" on node "0".

Please help me how to bring the database to a consistent state ASAP.

Thanks in advance,

Raj

marc_saulnier
Participant
0 Likes

Hi. did you try the command as specify in step 6 ?

Regards

Former Member
0 Likes

Dear Marc,

thanks again for the help

I just extracted the log(s) it specified as missing...and then gave a rollforward to end of logs

i believe its success now.

db2m03> db2 rollforward db M03 query status

Rollforward Status

Input database alias = M03

Number of nodes have returned status = 1

Node number = 0

Rollforward status = not pending

Next log file to be read =

Log files processed = S0059488.LOG - S0059506.LOG

Last committed transaction = 2011-06-18-07.02.03.000000 UTC

Please correct if anythign is wrong...

marc_saulnier
Participant
0 Likes

Nice, everything look good now.

Congratulation

Former Member
0 Likes

hii

i am also facing same problem

can u guide me how to resolve it

please my production server is down