[UNIX, Linux, Windows][V9.0.4 Oct 2017]

migmqlog (migrate IBM MQ logs)

The migmqlog command migrates logs, and can also change the type of your queue manager logs from linear to circular or from circular to linear.

[z/OS][IBM i]migmqlog is not supported on IBM® i or z/OS®.

Usage notes

[Windows]On Windows, running migmqlog enables you to move your queue manager logs to an Advanced Format disk

migmqlog can only run when the queue manager is inactive.

If the running of migmqlog is interrupted by, for example, a power failure, you should be rerun the same command until it completes normally.

A partially migrated log can not be used to start a queue manager, and the result of attempting to do so is not well defined.

migmqlog migrates logs 'in place', or migrates logs to a new location. When logs are migrated to a new log location, no change is made to any existing log files and all valid recovery log files in the old location are migrated to the new location.

migmqlog updates the qm.ini file to reflect the new log configuration, that is, LogType and LogPath, as needed.

Following any log migration, the log is configured such that all future log writes occur with 4096 byte alignment, at minimum.

[Windows]For further information on migrating logs on Windows to be Advanced Format, see Migrating logs to an Advanced Format disk.

See Types of logging for more information about linear and circular logging.

Syntax

Read syntax diagramSkip visual syntax diagram migmqlog  -m QMgrName  -ld New log path -ll  -lc

Required parameters

-m QMgrName
The name of the queue manager on which to migrate logs.

Optional parameters

-ld New log path
If you specify -ld and do not point to the existing log location, migration will be to a new log location.
If you do not specify -ld, or you specify -ld and point to the existing log location, migration will be 'in place'.
-ll
If you pass -ll to the command, and the queue manager is currently defined to be using circular logging, the queue manager will be reconfigured to use linear logging.
-lc
If you pass -lc to the command, and the queue manager is currently defined to be using linear logging, the queue manager will be reconfigured to use circular logging.