Question & Answer
Question
The fault monitor daemon constantly monitors if the Db2 UDB instance is properly running. If the daemon detects that Db2 has been brought down unexpectedly, it will automatically try to restart Db2. This document details how to disable this behavior.
Answer
The steps to disable the fmcd (fault monitor daemon) are as follows:
For the entire server, as user root/superuser run:
For a specific instance:
For the entire server, as user root/superuser run:
- db2fmcu -d
For a specific instance:
- db2fm -i [instance] -a off
db2fm -i [instance] -f off
Where [instance] is the name of the instance.
Note:
As of RHEL 6, the /etc/inittab file has been deprecated. Issuing the "db2fmcu -d" command deletes the db2fmcd.conf file under the /etc/init directory.
As of Solaris 10, the /etc/inittab file has been deprecated. Issuing the "db2fmcu -d" command disables the SMF service named 'db2fm'.
Note:
Check the ./sqllib/fm.[machine name].reg for each instance to verify that the
FM_ON and FM_ACTIVE variables are set to NO where [machine name] is the name of the host.
As of RHEL 6, the /etc/inittab file has been deprecated. Issuing the "db2fmcu -d" command deletes the db2fmcd.conf file under the /etc/init directory.
As of Solaris 10, the /etc/inittab file has been deprecated. Issuing the "db2fmcu -d" command disables the SMF service named 'db2fm'.
Note:
Check the ./sqllib/fm.[machine name].reg for each instance to verify that the
FM_ON and FM_ACTIVE variables are set to NO where [machine name] is the name of the host.
Note:
Do not run db2fmcu -d and db2fm -i [instance] -f off at the same time as this will cause db2fm to fail if the db2fmd process is already killed by db2fmcu
Do not run db2fmcu -d and db2fm -i [instance] -f off at the same time as this will cause db2fm to fail if the db2fmd process is already killed by db2fmcu
[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"High Availability - Fault Monitor","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"9.7;10.1;10.5;11.1","Edition":"Advanced Enterprise Server;Advanced Workgroup Server;Enterprise Server;Workgroup Server","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Was this topic helpful?
Document Information
Modified date:
29 September 2021
UID
swg21224009