Bug#892257: mdadm-last-resort at .service runs when array is active and mounted

Ryan Harper ryan.harper at canonical.com
Wed Mar 7 08:58:56 UTC 2018


Package: mdadm
Version: 4.0-2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu bionic ubuntu-patch

Dear Maintainer,

While using RAID5 array in an automated test I encountered a situation where
an active array was successfully mounted during boot, but shortly later the
device was unmounted leaving a log message like:

mdadm-last-resort at md0.service starting,
Unmounting /mnt/iscsi1

Which indicated that this service was running and responsible for unmounting
the RAID array.  

Looking upstream, there has been a change to the mdadm-last-resort service
to ensure that it does not run on active arrays.


In Ubuntu, the attached patch was applied to achieve the following:

  * Ensure mdadm-last-resort services only runs when it is needed LP: #1753786


Thanks for considering the patch.


-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-36-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mdadm_4.0-2ubuntu1.debdiff
Type: text/x-diff
Size: 2646 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20180307/8175814d/attachment.diff>


More information about the pkg-mdadm-devel mailing list