Bug#764647: `mdadm_env.sh`, referenced in systemd service file, not provided

Michael Tokarev mjt at tls.msk.ru
Fri Oct 10 04:42:31 UTC 2014


10.10.2014 01:25, Paul Menzel wrote:
> Package: mdadm
> Version: 3.3.2-2
> Severity: normal
> 
> Dear Debian folks,
> 
> 
> looking through `journalctl -b -a` I noticed the line below.
> 
> 	Failed at step EXEC spawning /usr/lib/systemd/scripts/mdadm_env.sh: No such file or directory
> 
> But I am unable to find that script in the package. Could you please add
> it or first check for its existence before trying to execute it?

As far as I understand, it is exactly how it supposed to be used, from
systemd/mdmonitor.service:

[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

Why systemd ignores the leading minus sign?


> PS: The following was printed to the terminal while running `reportbug
> mdadm`.

That should be revisited, it does lots of stuff, mostly assuming a problem
is in array assemble.  Please note however that your arrays are degraded,
which probably should be fixed.

> --- /proc/mdstat:
> Personalities : [raid1] 
> md0 : active raid1 sda1[0]
>       497856 blocks [2/1] [U_]
>       
> md1 : active raid1 sda2[0]
>       1953013952 blocks [2/1] [U_]

Thanks,

/mjt



More information about the pkg-mdadm-devel mailing list