Posted: Wed Oct 05, 2005 7:52 am Post subject: Problem uninstalling rpm on linux
Novice
Joined: 27 Apr 2004 Posts: 12
A team member botched the install of MQ on a SUSE LINUX Enterprise Server 9 (i586) box. We'd like to uninstall and reinstall the product. We're having problems doing an uninstall of CSD08.
lintrf3stg:/opt/mqm # rpm -e MQSeriesMan-U497537-5.3.0-8
ERROR: Failed to clean System V IPC Resources
Please ensure no WebSphere MQ processes are running and
run /opt/mqm/bin/amqiclen -x as a root user
before removing this maintenance package
error: %preun(MQSeriesMan-U497537-5.3.0- scriptlet failed, exit status 1
When I try running /opt/mqm/bin/amqiclen -x as a root user and also add the -v option, I get the following error:
lintrf3stg:/opt/mqm # /opt/mqm/bin/amqiclen -x -v
Unable to get subpools lock. mqs.ini does not exist.
lintrf3stg:/opt/mqm #
Yes, I did try the manual method, but ipcs didn't show any resources. Here's a technote IBM support pointed me to, and it did solve the problem.
Problem
You are trying to apply a Fix Pack (formerly CSD) to a WebSphere® MQ v5.3 . The Fix Pack installation fails with the following error:
ERROR: Failed to clean System V IPC Resources. Please run "/opt/mqm/bin/amqiclen -x" as a root user before installing this ptf.
You run "/opt/mqm/bin/amqiclen -x" as a root user as instructed and Fix Pack install still fails. You run "ipcs | grep mqm" and do not find any IPC resources owned by mqm.
Cause
The Fix Pack install relies on the amqiclen utility to ensure WebSphere MQ is not running. It is not clear why the amqiclen utility believes all IPC resources are not cleaned up.
Solution
Create a symbolic link to /usr/bin/true
rename amqiclen
ln -s /usr/bin/true /opt/mqm/bin/amqiclen
or
ln -s /usr/bin/true /usr/mqm/bin/amqiclen
The Fix Pack install script relies on amqiclen to return true in order to continue. /usr/bin/true will always return true to the Fix Pack install script and the Fix Pack installation will continue.
If the Fix Pack install does not install amqiclen then restore the original amqiclen replacing the symbolic link to /usr/bin/true.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum