mdcheck_start.service fails due to missing executable

Bug #1858342 reported by Rowan Wookey
68
This bug affects 16 people
Affects Status Importance Assigned to Milestone
mdadm (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In Eoan the mdadm crons were replaced by systemd timers, specifically the one that checks the array now doesn't work due to a missing executable.

* Drop /etc/cron.d/mdadm and migrate to systemd mdcheck_start|continue timer units.

/lib/systemd/system/mdcheck_start.service contains this line

ExecStart=/usr/share/mdadm/mdcheck --duration $MDADM_CHECK_DURATION

However /usr/share/mdadm/mdcheck isn't in the mdadm package. It looks like this file wasn't added from the upstream sources.

Revision history for this message
Rowan Wookey (rwky) wrote :

This also effects Focal. Considering Focal is LTS and will run on servers with RAID arrays it'd be a good idea to fix this before release.

Revision history for this message
Peter Kieser (pfak) wrote :

Encountered this on two freshly installed Ubuntu 20.04 systems:

May 03 17:51:45 blackracer systemd[1]: Starting MD array scrubbing...
May 03 17:51:45 blackracer systemd[1394622]: mdcheck_start.service: Failed to execute command: No such file or directory
May 03 17:51:45 blackracer systemd[1394622]: mdcheck_start.service: Failed at step EXEC spawning /usr/share/mdadm/mdcheck: No such file or directory
May 03 17:51:45 blackracer systemd[1]: mdcheck_start.service: Main process exited, code=exited, status=203/EXEC
May 03 17:51:45 blackracer systemd[1]: mdcheck_start.service: Failed with result 'exit-code'.
May 03 17:51:45 blackracer systemd[1]: Failed to start MD array scrubbing.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mdadm (Ubuntu):
status: New → Confirmed
Revision history for this message
Yurx Cherio (cherio-e) wrote :

I have the same issue. My log entries:

May 03 10:21:29 host systemd[1]: Started MD array scrubbing - continuation.
May 03 10:21:29 host systemd[1]: Starting MD array scrubbing...
May 03 10:21:29 host systemd[3977]: mdcheck_start.service: Failed to execute command: No such file or directory
May 03 10:21:29 host systemd[3977]: mdcheck_start.service: Failed at step EXEC spawning /usr/share/mdadm/mdcheck: No such file or directory
May 03 10:21:29 host systemd[1]: mdcheck_start.service: Main process exited, code=exited, status=203/EXEC
May 03 10:21:29 host systemd[1]: mdcheck_start.service: Failed with result 'exit-code'.
May 03 10:21:29 host systemd[1]: Failed to start MD array scrubbing.

Revision history for this message
Seth Arnold (seth-arnold) wrote :

Hmm it doesn't look like it's packaged in another package, either:

$ apt-file search /usr/share/mdadm/mdcheck
$

And it doesn't appear to have just been moved out of /usr/share/:

$ apt-file search mdcheck | grep -v r-cran-rcmdcheck
mdadm: /lib/systemd/system/mdcheck_continue.service
mdadm: /lib/systemd/system/mdcheck_continue.timer
mdadm: /lib/systemd/system/mdcheck_start.service
mdadm: /lib/systemd/system/mdcheck_start.timer
$

tags: added: eoan focal
tags: added: rls-ff-incoming
Revision history for this message
not here anymore (gralfe89-deactivatedaccount) wrote :

I can confirm the bug on my fresh installation.

Revision history for this message
brjhaverkamp (bert-bertenselena) wrote :

Confirmation here too.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.