Yesterday I spent a bunch of time cleaning up our collection of kickstart files. It’s a grind, I must’ve rerun the Redhat installer 40 times in the last 24 hours. The nice thing is that we now have the same base linux install for all the different versions of Redhat and Fedora that we are using.
All this change has thrown up some new problems however. For each of the installs I was doing, the system would hang when trying to install DB2.
When there is a problem with the db2 install, the first place to go is the /tmp/db2setup.log. Inside that it seemed to be hanging on the instance creation step.
Looking through the output of ps -ef | grep db2, I saw a suspicious process called UpdateAutoRun.sh.
I couldn’t find a DB2 specific technote for this error, but a bit of searching brought up this one from Tivoli Monitoring (ITM). Apparently DB2 installs an instance of ITM along with DB2 – I’m not sure what it is for. Anyway, there seems to be a dodgy script inside the ITM that relies on the venerable text editor ‘ed’. Without ed installed the log file
Installing ed in (even while db2setup is running!) allows this script to finish and the rest of the install to complete successfully.