mdcheck_* timers refer non-existing binary mdcheck

Bug #1890037 reported by Moritz Bunkus
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mdadm (Debian)
New
Unknown
mdadm (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The mdadm package comes with two systemd timers that are activated automatitcally, mdcheck_start.timer and mdcheck_continue.timer. The corresponding services try to run /usr/share/mdadm/mdcheck which doesn't exist. The units then fail, and no RAID check is run.

[0 mosu@lelldorin ~] grep ExecStart /lib/systemd/system/mdcheck_*.service
/lib/systemd/system/mdcheck_continue.service:ExecStart=/usr/share/mdadm/mdcheck --continue --duration $MDADM_CHECK_DURATION
/lib/systemd/system/mdcheck_start.service:ExecStart=/usr/share/mdadm/mdcheck --duration $MDADM_CHECK_DURATION
[0 mosu@lelldorin ~] dpkg -L mdadm | grep mdcheck
/lib/systemd/system/mdcheck_continue.service
/lib/systemd/system/mdcheck_continue.timer
/lib/systemd/system/mdcheck_start.service
/lib/systemd/system/mdcheck_start.timer
[0 mosu@lelldorin ~] ls /usr/share/mdadm/mdcheck
ls: cannot access '/usr/share/mdadm/mdcheck': No such file or directory

Description: Ubuntu 20.04.1 LTS
Release: 20.04

ii mdadm 4.1-5ubuntu1 amd64 tool to administer Linux MD arrays (software RAID)

Tags: focal groovy
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
tags: added: focal groovy
Revision history for this message
Nathan Rennie-Waldock (nathan-renniewaldock) wrote :

This was a packaging error in Debian that has been fixed in mdadm 4.1-6 (released a week ago). Can we get that merged? Or at least debian/rules updated to install misc/mdcheck.

This is actually serious and could cause data loss if an array member develops bad sectors as automatically checking the array is nonfunctional.

Changed in mdadm (Debian):
status: Unknown → New
Revision history for this message
Eric Desrochers (slashd) wrote :

This has been fixed in Groovy and Focal.
See (LP: # 1852747)

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.