We use TSM for backup DB2 database. We configure parameters:
LOGARCHMETH1 = LOGRETAIN
AUTO_DEL_REC_OBJ = ON
REC_HIS_RETENTN = 0
NUM_DB_BACKUPS = 7
Active log path = /db2/<SID>/log_dir/NODE0000
The active log directory fill up very fast. So how to auto delete expired logs in this directory?
With the logarchmeth1 configuration parameter set to LOGRETAIN, the log files are archived in the log path directory. The online disk space eventually fills up, unless you move the log files to a different location.
With the logarchmeth1 configuration parameter set to USEREXIT, DISK, or VENDOR, a user exit program moves the archived log files to a different location.
First log archive method (LOGARCHMETH1) = TSM:MC_BET