Automatic log management
You can configure automatic log management for a linear log so that log extents can be reused.
By default, a linear log must be managed manually, which means you must delete or archive log files that are no longer required for recovery in order to avoid running out of disk space.
If you enable automatic log management, then log extents are automatically recycled, so you do not run out of space.
You can specify the logging management settings when you create a queue manager, or you can edit
the qm.ini file to change the logging management for an existing queue manager.
You can select one of three log management modes:
- Manual
- Log extents are managed manually. This is the default setting.
- Automatic
- The queue manager automatically reuses log extents when they are no longer required for restart or media recovery
- Archive
- This is the same as Automatic except that the queue manager waits for notification that an extent has been archived before reusing it.
You specify logging management settings when creating a queue manager by using the following
arguments with the crtmqm command:
- -lla
- Specifies that automatic log management is used.
- -lln
- Specifies that archive log management is used.
- -ll
- Specifies that manual log management is used (the default).
For an existing queue manager, you can change the log management settings by editing the
Log
stanza of a queue manager's qm.ini file. Add one of the
following settings:LogManagement=Automatic
- Specifies that automatic log management is used.
LogManagement=Archive
- Specifies that archive log management is used.
If you select the archive log management method, you must inform the queue manager when a log
extent is archived. You do this by using the following
command:
SET LOG ARCHIVED(logfilename)
You can also use the
PCF command MQCMD_SET_LOG.