Hello,
I've setup a daily cronjob that performs an online backup of my DB every night. Now I noticed that the backup fails sometimes with missing logfiles.
The DB is configured for 10 primary and 5 secondary logfiles. I took an listing of all logfiles exactly before the backup (which fails) and after the backup.
Here is the listing before the backup:
Now the backup aborts with missing logfile S0027804.LOG which was there before the backup starts. Now the listing after the failed backup:
It seems that DB2 cycles the backups exactly the moment the backup should
take place. Any advice? Should I increase the number of primary logs? Thx in advance.
DB2 WSE 9.7 FP6 on Linux
I've setup a daily cronjob that performs an online backup of my DB every night. Now I noticed that the backup fails sometimes with missing logfiles.
The DB is configured for 10 primary and 5 secondary logfiles. I took an listing of all logfiles exactly before the backup (which fails) and after the backup.
Here is the listing before the backup:
Code:
Thu Aug 29 12:44:32 CEST 2013
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 12:40 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027804.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 12:44 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027805.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 10:00 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027806.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 10:44 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027807.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 11:27 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027808.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 11:37 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027809.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 11:37 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027810.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 11:38 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027811.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 11:42 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027812.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 11:47 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027813.LOG
Code:
Thu Aug 29 12:44:41 CEST 2013
-rw------- 1 db2inst1 db2iadm1 2523136 Aug 29 12:44 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027805.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 12:44 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027806.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 10:44 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027807.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 11:27 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027808.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 11:37 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027809.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 11:37 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027810.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 11:38 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027811.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 11:42 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027812.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 11:47 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027813.LOG
-rw------- 1 db2inst1 db2iadm1 33562624 Aug 29 12:44 /sync/db2inst1/db2inst1/NODE0000/SQL00002/SQLOGDIR/S0027814.LOG
take place. Any advice? Should I increase the number of primary logs? Thx in advance.
DB2 WSE 9.7 FP6 on Linux