White Papers
Abstract
+++ Objective
The purpose of this technical document is to explain the work around steps to perform when an issue reported with amqiclen during fix pack installation.
Note:
The steps explained below is a work around and please do not run amqiclen or ipcrm in any other conditions. Refer the link for more information:
https://www.ibm.com/support/pages/why-should-i-not-run-ipcrm-nor-amqiclen
The objective of this document is to capture the amqiclen error and information messages, return codes and other data that are seen during the MQ upgrade. amqiclen has been called to clean up any MQ IPC resources (shared memory sets and semaphores) prior to the installation.
The amqiclen program has successfully gotten rid of shared memory resources and is examining semaphores when things go wrong. Specifically, amqiclen is trying to acquire a semaphore it must hold to keep other queue managers from starting up while it deletes their semaphore.
The Fix Pack install relies on the amqiclen utility to ensure MQ is not running. The Fix Pack install script and interim fixes also relies on amqiclen to return true in order to continue.
The amqiclen utility has a peculiar way of checking queue managers and failing which it reports "an MQ queue manager still running" error. The amqiclen program may fail under circumstances where it finds directory structure of one of the queue managers not intact. Installation runs amqiclen to ensure that all old queue manager IPC resources are removed.
Installation will fail with the claim that "qmgrs are still running" if "amqiclen -x" fails.
The command "amqiclen -x" can fail if it fails to find expected IPC directories under each of the entries in /var/mqm/qmgrs.
An APAR - IT30754 (( https://www.ibm.com/support/pages/apar/IT30754 ) is already in place to print the correct error of the root cause of the issue encountered during the upgrade.
Content
Applying maintenance level updates on Linux using RPM
Please check the below steps before upgrade
Ensure no MQ IPC resources exist
++ Scenario 1:
Resolution:
++ Scenario 2 (RDQM):
ERROR: MQ shared resources associated with the installation at
'amqiclen -v -x' return code was: '1', output was:
Resolution :
rpm -ivh MQSeriesRuntime-*.rpm
This is the package that is the owner of the amqiclen utility.
4.a: If step 4 is successful, then very likely the symbolic link done in 3 is gone. Check for it:
ls -l /opt/mqm/bin/amqiclen and delete amqiclen.bak.
4.b:If fails then remove symlink and put the old amqiclen back. And please send in the RPM output, the output of "/opt/mqm/bin/amqiclen -v -x", and also the zip file generated by the "runmqras -section defs" command to raise a case with IBM MQ Support. In addition, please send the following details as well.
b) Send us the output of:
ps -ef | grep -i mq > /tmp/ps-ef.out
ipcs -a > /tmp/ipcs-a.out
rpm -qa | grep MQ | sort
6. Check the version:
dspmqver
Resolution:
Resolution:
If the error has not been under any of the above scenario and if the issue not resolved by the work around provided then please get the trace by the following steps for analysis.
1. Start the trace:
Was this topic helpful?
Document Information
Modified date:
01 June 2022
UID
ibm16591157