Autostart of DB2 instance on reboot does not work on RHEL6/CentOS systems

Technote (FAQ)


Question

How can autostart of a DB2 instance via the fault monitoring feature be enabled on RHEL6 and CentOS systems?

Cause

On Red Hat Enterprise Linux 6 (RHEL6) and CentOS systems, the DB2 Fault Monitor Coordinator daemon (db2fmcd) is not restarted after a system restart. As a result, DB2 instances are also not restarted even if the instances are configured correctly to start automatically. This technote describes how to enable the fault monitor so that db2fmcd autostarts on RHEL6 and CentOS systems.
The Fault Monitor Coordinator (FMC) is the process of the Fault Monitor Facility that is started at the UNIX boot sequence.

Normally, the init daemon reads the /etc/inittab configuration file and starts the FMC. This daemon also restarts FMC if it terminates abnormally.

However, the support for the init daemon to run code on reboot has been deprecated starting in Red Hat Enterprise Linux 6.


Answer

To enable fault monitor so that db2fmcd autostarts, perform the following steps:

  1. Log in as Root.
  2. Determine whether there are any db2fmcd entries in the /etc/inittab configuration file by issuing the following command:
    grep db2fmcd /etc/inittab
    If there are any db2fmcd entries, remove them using the db2fmcu -d command or delete the db2fmcd line from the inittab file.
  3. Open the db2fmcd.conf file at the bottom of this technote and modify the following line to the location where DB2 is installed in your system.
    exec /opt/IBM/db2/V9.7/bin/db2fmcd
    Even if you have multiple versions of DB2 on the system, only one exec line is required. This exec line should have the db2fmcd path of the latest version of DB2 installed on your system. Also, update the version attribute in the db2fmcd.conf file to the latest version of DB2 on your system.
  4. Place the modified db2fmcd.conf file in the /etc/init directory.
  5. Verify that the permission settings of the db2fmcd.conf file looks like as follows:
    ls -l db2fmcd.conf
    -rw-r--r--    1 root root   323 Apr  5 16:40 db2fmcd.conf
  6. Reboot your system.


Note: Starting in DB2 V9.5.0.9 and DB2 V9.7.0.5, the db2fmcu utility will automatically create the /etc/init/db2fmcd.conf file.

Related information

How to use fault monitors

Rate this page:

(0 users)Average rating

Document information


More support for:

DB2 for Linux, UNIX and Windows

Software version:

9.1, 9.5, 9.7

Operating system(s):

Linux

Reference #:

1497220

Modified date:

2014-06-10

Translate my page

Machine Translation

Content navigation