You can back up a broker domain
so that it can be restored for migration purposes or in the event
of an unrecoverable failure. Back up broker domain resources, and
plan for restoration of every broker that is deployed to by the Configuration
Manager.
For more information about carrying
out these steps, see the links at the end of this topic.
To back up the components:
- Stop each broker.
- Stop the Configuration
Manager.
- Back up the Configuration
Manager data repository
using the mqsibackupconfigmgr command.
- Back up each broker database.
For example, for a
DB2® broker database use the Backup
wizard in the
DB2 Control Center,
or a command similar to:
DB2 BACKUP DATABASE <broker db> TO "<backup directory>"
- Back up the system work path.
The work path is platform-specific:
Also, back up broker-specific work paths that you have specified
with the -w flag on the mqsicreatebroker command.
To restore the components:- Stop and remove the existing components in the Configuration
Manager domain.
- Disconnect from the domain on the Message Brokers Toolkit.
- Stop each broker.
- Stop the Configuration
Manager.
- Delete each broker using the mqsideletebroker command,
specifying the -w parameter, which is an optional
parameter on Windows and UNIX® platforms that deletes from
the work path all files related to these brokers.
- Delete the Configuration
Manager using the mqsideleteconfigmgr command,
specifying the -w and -n parameters.
The -n parameter deletes all data in the configuration
repository.
- Recreate the components.
- Create the Configuration
Manager.
- Create each broker.
- Restore the components.
- Restore any work paths.
- If you are restoring a Configuration
Manager that was backed up on z/OS®, restore the Configuration
Manager repository using the mqsirestoreconfigmgr command.
Replace
the previously backed-up service.properties file
- Restore each broker database.
For example, for a
DB2 broker database use the Restore
wizard in the
DB2 Control Center,
or a command similar to:
DB2 RESTORE DATABASE <broker db> FROM "<backup directory>" TAKEN AT <datetime>
- Start the Configuration
Manager.
- Start each broker.
- Connect to the Configuration
Manager on the Message Brokers Toolkit. This re-imports the broker
topology, excluding execution groups and flows, from the Configuration
Manager.
- Deploy the topology configuration on the Message Brokers Toolkit. This causes the Configuration
Manager to give the UUIDs to the brokers.
Note that if you are working on a platform other than Windows, this step is unnecessary.