IBM Support

LMT All-in-One installation hangs when IEM tries to run db2 commands

Question & Answer


Question

Why does the LMT All-in-One installation hang when it is trying to talk to the LMT temadb database?

Cause

Missing .bashrc for db2inst1 userid.
When you pre-allocate a filesystem for a user, in this case 'db2inst1', the '.bashrc' script is not created in
the 'home' directory.
Because of this, the db2 installer is unable to append the 'db2profile' lines to the '.bashrc' script.
The LMT All-in-One install steps will fail because, when the installer 'su' to the db2inst1 user,
the 'db2profile' is not run and we cannot have access the db2 environment.

Answer

The solution is to manually create the '.bashrc' file in /home/db2inst1.
As a reference, here the content of the '.bashrc':

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# User specific aliases and functions

# The following three lines have been added by UDB DB2.
if [ -f /home/db2inst1/sqllib/db2profile ]; then
. /home/db2inst1/sqllib/db2profile
fi

Note: For All-in-One installations, its safer NOT to create a separate filesystem for
/home/db2inst1. If you require separate filesystems to be mounted here you should
install DB2 as a separate install instead of running the All-in-One installation.


If creating /home/db2inst1 on a separate filesystem, make sure to remove the "lost+found" directory BEFORE performing the All-In-One installation then re-create it after the install completed - typically by running a filesystem check (ie. fsck).

[{"Product":{"code":"SS8JFY","label":"IBM License Metric Tool"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"}],"Version":"9.0;9.0.1;9.1;9.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

07853;024;649

Document Information

Modified date:
26 April 2021

UID

swg21973007