[arch-general] mdmonitor.service /usr/lib/systemd/scripts/mdadm_env.sh: No such file or directory
David N Murray
dmurray at jsbsystems.com
Sun Jun 5 23:12:21 UTC 2016
On 06/05/2016 06:28 PM, David C. Rankin wrote:
> New server, 2 1T drives in RAID1, with mdraid, I have an error during boot for
> mdmonitor:
>
> Jun 05 17:12:47 valhalla systemd[454]: mdmonitor.service: Failed at step EXEC
> spawning /usr/lib/systemd/scripts/mdadm_env.sh: No such file or directory
>
> I've run into this before with mdadm, last time was due to not having MAILADDR
> configured in /etc/mdadm.conf (that is not the case now)
>
> # cat /etc/mdadm.conf
> DEVICE partitions
> ARRAY /dev/md0 metadata=1.2 name=archiso:0 UUID=1b67f2d4:4911f2c5:469f9dcf:315814ce
> ARRAY /dev/md1 metadata=1.2 name=archiso:1 UUID=0542c5c9:3802b256:32e97884:a2e49f53
> ARRAY /dev/md2 metadata=1.2 name=archiso:2 UUID=812e8f85:0c4efbef:a0c02f49:215df35e
> ARRAY /dev/md3 metadata=1.2 name=archiso:3 UUID=80a3bf76:e6421b06:6edb2a88:741e8b6f
> MAILADDR david at mydomain.com
> PROGRAM /usr/sbin/handle-mdadm-events
>
> The problem very simply looks to be no /usr/lib/systemd/scripts/mdadm_env.sh
> wanted by mdmonitor.service, e.g.
>
> # cat /usr/lib/systemd/system/mdmonitor.service
>
> # This file is part of mdadm.
> #
> # mdadm is free software; you can redistribute it and/or modify it
> # under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2 of the License, or
> # (at your option) any later version.
>
> [Unit]
> Description=MD array monitor
> DefaultDependencies=no
>
> [Service]
> Environment= MDADM_MONITOR_ARGS=--scan
> EnvironmentFile=-/run/sysconfig/mdadm
> ExecStartPre=-/usr/lib/systemd/scripts/mdadm_env.sh
> ExecStart=/sbin/mdadm --monitor $MDADM_MONITOR_ARGS
>
> There is no /usr/lib/systemd/scripts/mdadm_env.sh in the current mdadm package.
> Is this a bug (which I'm happy to file), or me being stupid? (go easy if the latter)
>
I don't think it's any problem at all. I've always had this message and
mdadm starts and runs fine. I think this has been discussed on the list
before. It's an optional file, but generates an ugly message.
https://bbs.archlinux.org/viewtopic.php?id=183122 (#10)
HTH,
Dave
More information about the arch-general
mailing list