After applying the latest series of updates (8.7) to my production dns/dhcp sever the 'mdmonitor 'service no longer starts after reboot. While this isn’t a show stopper by any means, it functioned without fault after the 8.6 update.
Of note:
- This server is configured with 2 disks in RAID 1 configuration.
- After upgrade/reboot I noticed that I have a new PID for mdmonitor.service.
- As I stated earlier, I’ve had no issues with this service in the past. But after considerable time spent Googling this particular issue I have come to realize that the mdmonitor.service can be troublesome.
Specifics:
[root@dns ~]# journalctl -p 3 -xb
-- Logs begin at Wed 2022-11-16 13:36:50 PST, end at Wed 2022-11-16 13:45:04 PST. --
Nov 16 13:36:59 dns.<yadayada>.com systemd[1]: Failed to start Software RAID monitoring and management.
-- Subject: Unit mdmonitor.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mdmonitor.service has failed.
--
-- The result is failed.
[root@dns ~]# systemctl status mdmonitor.service
● mdmonitor.service - Software RAID monitoring and management
Loaded: loaded (/usr/lib/systemd/system/mdmonitor.service; enabled; vendor preset: enabled)
Active: failed (Result: protocol) since Wed 2022-11-16 13:36:59 PST; 29min ago
Process: 1214 ExecStart=/sbin/mdadm --monitor --scan -f --pid-file=/var/run/mdadm/mdadm.pid (code=exited, status=0/SUCCESS)
Nov 16 13:36:59 dns.<yadayada>.com systemd[1]: Starting Software RAID monitoring and management...
Nov 16 13:36:59 dns.<yadayada>.com systemd[1]: mdmonitor.service: New main PID 1216 does not exist or is a zombie.
Nov 16 13:36:59 dns.<yadayada>.com systemd[1]: mdmonitor.service: Failed with result 'protocol'.
Nov 16 13:36:59 dns.<yadayada>.com systemd[1]: Failed to start Software RAID monitoring and management.
[root@dns ~]# rpm -qa | grep mdadm
mdadm-4.2-5.el8.x86_64
[root@dns ~]# mdadm --detail --scan
ARRAY /dev/md/imsm metadata=imsm UUID=ac8f5588:4cd58724:8cf76fff:ebe585bc
ARRAY /dev/md/Boot container=/dev/md/imsm member=0 UUID=54ac28a1:587e186c:e0ac32ea:41b6b68e
[root@dns ~]# cat /etc/mdadm.conf
# mdadm.conf written out by anaconda
MAILADDR root
AUTO +imsm +1.x -all
ARRAY /dev/md/Boot_0 UUID=54ac28a1:587e186c:e0ac32ea:41b6b68e
ARRAY /dev/md/imsm UUID=ac8f5588:4cd58724:8cf76fff:ebe585bc
[root@dns ~]# cat /usr/lib/systemd/system/mdmonitor.service
[Unit]
Description=Software RAID monitoring and management
After=syslog.target
ConditionPathExists=/etc/mdadm.conf
[Service]
Type=forking
PIDFile=/var/run/mdadm/mdadm.pid
EnvironmentFile=-/etc/sysconfig/mdmonitor
ExecStart=/sbin/mdadm --monitor --scan -f --pid-file=/var/run/mdadm/mdadm.pid
[Install]
WantedBy=multi-user.target
Please let me know if I can supply more data to help with a diagnosis.
And, as always… Thanks in advance!