Defaults for mcelog in Oracle Linux 7 Prevent Oracle Linux FMA From Working Properly (19731891)
For Oracle Linux FMA to work properly with Oracle Linux 7, the mcelog
service must be running in daemon mode only. However, by default, the mcelog service in
Oracle Linux 7 runs with arguments: --ignorenodev
, --daemon
and --foreground
. Therefore,
before installing Oracle Linux FMA 2.3.1 on a system with Oracle Linux 7 you need to
reconfigure the mcelog service.
-
Ensure the mcelog service is installed and running by typing the command:
systemctl status mcelog
If mcelog is not installed, you will see:
[root@testserver16 ~]# systemctl status mcelog mcelog.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead)
-
If mcelog is not installed, install mcelog using yum by typing the command:
yum install mcelog
After successful installation, proceed to the next step.
-
Edit the
/etc/mcelog/mcelog.conf
file to do the folllowing:-
Uncomment the "raw=yes" entry.
-
Comment out the existing "memory-ce-threshold" entry and create a new one that reads "memory-ce-threshold = 3 / 72h".
-
-
If an mcelog file exists that was in the default format, delete it.
rm /var/log/mcelog
-
Edit the
/etc/systemd/system/multi-usr.target.wants/mcelog.service
file to change the "[Service]" section from:[Service] ExecStartPre=/etc/mcelog/mcelog.setup ExecStart=/usr/sbin/mcelog --ignorenodev --daemon --foreground StandardOutput=syslog
to:
[Service] Type=forking ExecStartPre=/etc/mcelog/mcelog.setup ExecStart=/usr/sbin/mcelog --daemon StandardOutput=syslog
-
Apply the changes you have made by typing the command:
systemctl daemon-reload
-
Restart the mcelog service by typing the command:
systemctl restart mcelog
-
Confirm that mcelog is running in daemon mode by typing the command:
systemctl status mcelog
You should see the output similar to:
[root@testserver16 ~]# systemctl status mcelog mcelog.service - Machine Check Exception Logging Daemon Loaded: loaded (/usr/lib/systemd/system/mcelog.service; enabled) Active: active (running) since Fri 2014-10-03 12:52:13 EDT; 6s ago Process: 3939 ExecStart=/usr/sbin/mcelog --daemon (code=exited, status=0/SUCCESS) Process: 3935 ExecStartPre=/etc/mcelog/mcelog.setup (code=exited, status=0/SUCCESS) Main PID: 3940 (mcelog) CGroup: /system.slice/mcelog.service |__3940 /usr/sbin/mcelog --daemon
Parent topic: Installation Notes and Issues