Autostart of DB2 instance on reboot does not work on RHEL6/CentOS systems
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 V184.108.40.206 and DB2 V220.127.116.11, the db2fmcu utility will automatically create the /etc/init/db2fmcd.conf file.
More support for:
DB2 for Linux, UNIX and Windows
Operating System / Hardware - Other OS/Hardware
Software version: 9.1, 9.5, 9.7, 10.1, 10.5, 11.1
Operating system(s): Linux
Reference #: 1497220
Modified date: 10 June 2014
Translate this page: