Home

 

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, delete files, shared memory, and semaphores.

If we need to delete a queue manager manually, use the following procedure:

  1. 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.

  2. 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>

  3. 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.

  4. Delete the queue manager directory, all subdirectories and files.

  5. Delete the queue manager log directory, all subdirectories and files.

  6. Remove the queue manager’s QueueManager stanza from the /var/mqm/mqs.ini configuration file.

  7. If the queue manager being deleted is also the default queue manager, remove the DefaultQueueManager stanza from the /var/mqm/mqs.ini configuration file.

 

Parent topic:

Removing queue managers manually


fa22350_


 

Home