Logtarget is empty before restore is done...
I have some kind solve the problem. Let me explain how:
As I understand rollforward process is trying to also restore "archive logs" that are not available in backup image.
So I have changed rollforward command from:
db2 "rollforward db MYDB to end of logs and stop overflow log path (/delovni/restore_logs)"
to:
db2 "rollforward db MYDB to end of logs and stop overflow log path (/delovni/restore_logs)
noretrieve"
I have checked
documentation:
===============
NORETRIEVE
Allows the user to control which log files to be rolled forward on the standby machine by allowing the user to
disable the retrieval of archived logs. The benefits of this are:
* By controlling the logfiles to be rolled forward, one can ensure that the standby machine is X hours behind the production machine, to prevent the user affecting both systems.
*
If the standby system does not have access to archive (eg. if TSM is the archive, it only allows the original machine to retrieve the files)
* It might also be possible that while the production system is archiving a file, the standby system is retrieving the same file, and it might then get an incomplete log file. Noretrieve would solve this problem.
===============
What I can't understand is why rollforward process was working without any problem at all for 8 months, but now suddenly two days a role the same problem appeared.
Any idea what could trigger this problem?
Regards