You are not logged in.

#1 2022-09-04 09:56:48

Raqua
Member
Registered: 2007-11-24
Posts: 146

[raid] Mdmonitor fails to send email when raid starts degraded on boot

I have raid1 setup and it is often started in degraded mode, because one disk is removed. The disk seems to be there and working, I can add it back to array and it seems to work fine. Maybe it is just slow? I have to investigate this, any ideas are appreciated, but my main issue here is that I have mdmonitor set up and I am not getting emails when this happens.

Looking at

systemctl status mdmonitor.service

it is clear that email can not be sent, because at the time the error is detected, network is not up yet.

I have tried to adjust mdmonitor systemd unit file by adding override

[Unit]
After=network.target

but it did not solve the issue.

My current workaround is to restart the mdmonitor.service 30 seconds after my GUI sessions starts, but this would obviously not work on server and is not a good solution.
Is there a better way ?

Last edited by Raqua (2022-09-04 09:58:12)

Offline

Board footer

Powered by FluxBB