Migration to 9.0.1 including queue manager backup / restore
Andrew Kirillov 50KD2N32AW Visits (3052)
While performing different MQ Appliance maintenance tasks, it is often required to have an option allowing to create a backup of a queue manager. This may be a part of existing company policy of regular backups of critical data/configuration. Or it may be required for transferring queue manager from one appliance to another. Yet another use case – creating a backup before upgrading to a new major version. For example, when upgrading from version 8.x to 9.x, queue managers’ files may get converted to meet requirements of the new version. However, if moving back to the previous version, similar conversion to older format is not available. Which is where having a backup of queue manager’s data and configuration becomes handy.
Preparing storage for backup files
Before starting to create backups of queue managers, it is required to allocate storage space for those. This is done with the createbackupfs command:
Creating queue manager backup
To create backup of a queue manager it is required to use the mqbackup command specifying the name of the queue manager to back up:
Restoring queue manager from a backup file
To restore queue manager from a backup file, it is required to use the mqrestore command specifying the name of the file:
Queue managers configured for High Availability or Disaster Recovery
The mqbackup command allows creating backups of queue managers, which are configured for High Availability or Disaster Recovery. More of it, the command does not have to run on the appliance, where queue manager is currently running. However, when making backup of such queue manager, its HA or DR configuration is not preserved. Restoring queue manager from a backup file, will create a normal configuration (standalone queue manager), which does not include anything for High Availability or Disaster Recovery. This will need to be configured manually once mqrestore completes.
Managing backup files
At some point, it may be required to check the list of available queue managers’ backup files. This can be done from appliance CLI using dir command:
4901.2 MB available to mqbackup:/QMgrs/
If a certain backup file is no longer needed, it can be deleted:
Alternatively, it can be copied to external storage using copy command:
Note: similar type of operations can be accomplished from Web UI of the MQ Appliance.
With the new commands available, MQ Appliance provides an easy way of managing queue manager backups. Those can be used as for making sure a copy of queue manager's data/configuration is always safely preserved, for transferring queue managers between appliances or for planning a rollback after downgrading MQ version.
IBM MQ and IBM MQ Appliance 9.0.1 Continuous Delivery Releases are available
Introducing the MQ Appliance Version 9.0.1
IBM MQ Appliance 9.0.1 KnowledgeCenter