Hi,
I have a DB2 9.7 Database and I try to
size the file system I need in order to have sufficient place in my db, logs, mirrored logs and archive logs file system.
The active logs are in a file system
DB/logs
The mirror logs are in a file system
DB/mirror/logs
I have configured the logarchmeth1 parameter of the database to:
DISK:/ArchiveLogs/ then my archive logs are in this file system
I have a backup plan as the following :
Code:
(sun) OFFLINE FULL BACKUP
(mon)(thu) ONLINE INCREMENTAL DELTA BACKUP
(wen) ONLINE INCREMENTAL BACKUP
(tur)(fri) ONLINE INCREMENTAL DELTA BACKUP
(sat) ONLINE INCREMENTAL BACKUP
My backups are saved in a
/backup/ file system.
I am trying to size all my file system :db/logs/
db/mirror/logs/
/ArchiveLogs/
/backup/
I don't understand how does the logs works.
Then, I have some questions about that
I've seen the active logs are monitored in the CFG command :
Code:
Log file size (4KB) (LOGFILSIZ) = 10000
Number of primary log files (LOGPRIMARY) = 10
Number of secondary log files (LOGSECOND) = 12
1 - if I'm right, this means that I can have only 10 files of 40MB in my
db/log file system.
2 - What are the "secondary log files" then ?
3 - I have seen when I do a FULL OFFLINE BACKUP, every usefull active logs are moved in the Archive logs path. Is that Right ?
4 - Does the FULL OFFLINE BACKUP save the active logs ?
5 - Does the FULL OFFLINE BACKUP save the archive logs ?
6 - When I do an INCREMENTAL OR DELTA BACKUP,
a part of the "active" active logs referenced in the line below is saved in a log file with the same name (N°60 here) but none the same size . Then the line below is incremented (here goes to 61) an other log of 40MB is created in order to have 10 files of active logs (here N°70 : 61 to 69 already created and 70 is created now).
Code:
First active log file = S0000060.LOG
Then, in my active log file system, I got 10 files of 40MB
AND the new file created by the INCREMENTAL or DELTA backup.
How does I know what is the max size of this file system ?
So,
what must I save in order to be able to come back at every moment in case of disaster
Every backup and logs?
Only backup and active logs ?
Only backup ?
FULL OFFLINE Backup, other backup and some logs from the last full offline backup ?
Thank you for your help.
Alex