Removing queue managers in WebSphere MQ for UNIX systems
The manual removal of a queue manager is potentially very disruptive, particularly
if multiple queue managers are being used on a single system. This is because,
to completely remove a queue manager, you must delete files, shared memory,
and semaphores.
If you need to delete a queue manager manually, use the following procedure:
- Stop the queue manager running, and execute the following command,
as user mqm:
amqiclen -x -m QMGR
This ensures that all IPC
resources that are specifically reserved for queue manager QMGR are
removed.
- Locate the queue manager directory from the configuration file /var/mqm/mqs.ini. To do this, look for the QueueManager stanza naming the
queue manager to be deleted.
Its Prefix and Directory attributes identify
the queue manager directory. For a Prefix attribute of <Prefix> and
a Directory attribute of <Directory>, the full path to the queue manager
directory is: <Prefix>/qmgrs/<Directory>
- Locate the queue manager log directory from the qm.ini configuration file
in the queue manager directory. The LogPath attribute of the Log stanza
identifies this directory.
- Delete the queue manager directory, all subdirectories and files.
- Delete the queue manager log directory, all subdirectories and files.
- Remove the queue manager's QueueManager stanza from the /var/mqm/mqs.ini configuration file.
- If the queue manager being deleted is also the default queue manager,
remove the DefaultQueueManager stanza from the /var/mqm/mqs.ini configuration file.