When we start mdmonitor-oneshot.service, we found an fail for mdmonitor-oneshot.service: mdadm: No mail address or alert command - not monitoring According to the error information, We modified the Environment field and added the syslog parameter.The service can be executed successfully. --- systemd/mdmonitor-oneshot.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd/mdmonitor-oneshot.service b/systemd/mdmonitor-oneshot.service index ba86b44e..032b8aad 100644 --- a/systemd/mdmonitor-oneshot.service +++ b/systemd/mdmonitor-oneshot.service @@ -10,7 +10,7 @@ Description=Reminder for degraded MD arrays Documentation=man:mdadm(8) [Service] -Environment=MDADM_MONITOR_ARGS=--scan +Environment=MDADM_MONITOR_ARGS="--scan --syslog" EnvironmentFile=-/run/sysconfig/mdadm ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh ExecStart=BINDIR/mdadm --monitor --oneshot $MDADM_MONITOR_ARGS -- 2.33.0