Backups of WebSphere MQ for iSeries data
For each queue manager, there are two types of WebSphere MQ backup to consider:
- Data and journal backup.
To ensure that both sets of data are consistent,
do this only after shutting down the queue manager.
- Journal backup.
You can do this while the queue manager is active.
For both methods, you need to find the names of the queue manager IFS
directory and the queue manager library. You can find these in the WebSphere MQ configuration
file (mqs.ini). For more information, see The QueueManager stanza.
Use the procedures below to do both types of backup:
- Data and journal backup of a particular queue manager
-
Note:
Do not use a save-while-active request when the queue
manager is running. Such a request cannot complete unless all commitment definitions
with pending changes are committed or rolled back. If this command is used
when the queue manager is active, the channel connections might not end normally.
Always use the procedure described below.
- Create an empty journal receiver, using the command:
CHGJRN JRN(QMTEST/AMQAJRN) JRNRCV(*GEN)
- Use the RCDMQMIMG command to record an MQM image for all WebSphere MQ objects,
and then force a checkpoint using the command:
RCDMQMIMG OBJ(*ALL) OBJTYPE(*ALL) DSPJRNDTA(*YES) MQMNAME(TEST)
- End channels and ensure that the queue manager is not running. If your
queue manager is running, stop it with the ENDMQM command.
- Backup the queue manager library by issuing the following command:
SAVLIB LIB(QMTEST)
- Back up the queue manager IFS directories by issuing the following command:
SAV DEV(...) OBJ(('/QIBM/UserData/mqm/qmgrs/test'))
- Journal backup of a particular queue manager
- Because all relevant information is held in the journals, as long as
you perform a full save at some time, partial backups can be performed by
saving the journal receivers. These record all changes since the time of the
full backup and are performed by issuing the following commands:
- Create an empty journal receiver, using the command:
CHGJRN JRN(QMTEST/AMQAJRN) JRNRCV(*GEN)
- Use the RCDMQMIMG command to record an MQM image for all WebSphere MQ objects,
and then force a checkpoint using the command:
RCDMQMIMG OBJ(*ALL) OBJTYPE(*ALL) DSPJRNDTA(*YES) MQMNAME(TEST)
- Save the journal receivers using the command:
SAVOBJ OBJ(AMQ*) LIB(QMTEST) OBJTYPE(*JRNRCV) .........
A simple backup strategy is to perform a full backup of the WebSphere MQ libraries
every week, and perform a daily journal backup. This, of course, depends on
how you have set up your backup strategy for your enterprise.