IBM Support

DB2 AutoStart is not supported on Red Hat Enterprise Linux version 7

Technote (FAQ)


Question

Why does DB2 not autostart on Red Hat Enterprise Linux 7 ?

Cause

In Red Hat Enterprise Linux 7, systemd replaces upstart as the default init system. The DB2 fault monitor does not support the systemd init system.

Answer

The issue has been resolved starting in DB2 V11.1 Mod1 Fix Pack 1.

If the fix is not available on the DB2 level being run, then the following work-around can be applied:

1) Create file '/etc/systemd/system/db2fmcd.service' with following content:

[Unit]
Description=DB2V105

[Service]
ExecStart=/opt/ibm/db2/V10.5/bin/db2fmcd
Restart=always
KillMode=process
KillSignal=SIGHUP

[Install]
WantedBy=default.target

2) Execute the following commands as root:
systemctl enable db2fmcd
systemctl start db2fmcd

Document information

More support for: DB2 for Linux, UNIX and Windows
DB2 Tools - Troubleshooting

Software version: 10.5, 11.1

Operating system(s): Linux

Reference #: 1964393

Modified date: 22 June 2017