How can autostart of a DB2 instance via the fault monitoring feature be enabled on RHEL6 and CentOS systems?
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.
To enable fault monitor so that db2fmcd autostarts, perform the following steps:
- Log in as Root.
- 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.
- 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.
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.
- Place the modified db2fmcd.conf file in the
- 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
- Reboot your system.
Note: Starting in DB2 V18.104.22.168 and DB2 V22.214.171.124, the db2fmcu utility will automatically create the /etc/init/db2fmcd.conf file.