Resolve AIX error “Cannot open or remove a file containing a running program”

Situation: When trying to replace an IHS (IBM HTTP Server) module we were getting the following error, even though the web server had been stopped:

./mod_XXXXX.so: Cannot open or remove a file containing a running program.
Environment: IHS 6.1 / WebSphere 6.1 on AIX 6.1.
Solution: The issue was resolved by using the slibclean command. According to the manual,
The slibclean command unloads all object files with load and use counts of 0. It can also be used to remove object files that are no longer used from both the shared library region and in the shared library and kernel text regions by removing object files that are no longer required.
This file could be located in the /usr/sbin/ folder.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: