[Solved] The "DAEMON_OPTIONS" option in /etc/default/mdadm doesnt't work

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
114514foxes
Posts: 2
Joined: 2024-02-17 09:13

[Solved] The "DAEMON_OPTIONS" option in /etc/default/mdadm doesnt't work

#1 Post by 114514foxes »

Up-to-date Debian 12 x64.
Here is my /etc/default/mdadm:

Code: Select all

AUTOCHECK=true
AUTOSCAN=true
START_DAEMON=true
DAEMON_OPTIONS="--syslog --test --pid-file /root/z_mdadm.pid"
VERBOSE=true
I've run dpkg-reconfigure mdadm a couple of times, but the DAEMON_OPTIONS does not work.
The file "/root/z_mdadm.pid: does not exist at all.
MDADM does not send an e-mail at the startup either.
The options written by me does not present in the process list either.

Code: Select all

# ps aux | grep mdadm
root         425  0.0  0.0   3580  1796 ?        Ss   10:26   0:00 /sbin/mdadm --monitor --scan
Last edited by 114514foxes on 2024-10-25 09:12, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 3950
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 109 times
Been thanked: 518 times

Re: The "DAEMON_OPTIONS" option in /etc/default/mdadm doesnt't work

#2 Post by Aki »

Hello,
Is the initramfs updated ?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

114514foxes
Posts: 2
Joined: 2024-02-17 09:13

Re: The "DAEMON_OPTIONS" option in /etc/default/mdadm doesnt't work

#3 Post by 114514foxes »

Aki wrote: 2024-10-25 09:02 Hello,
Is the initramfs updated ?
I also have run "update-initramfs -u", nothing is changed.
Last edited by 114514foxes on 2024-10-25 09:11, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 3950
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 109 times
Been thanked: 518 times

Re: The "DAEMON_OPTIONS" option in /etc/default/mdadm doesnt't work

#4 Post by Aki »

Hello,

According to this bug report, /etc/default/mdadm is only used by the SysV init script (not by systemd):
  • Debian Bug report logs - #850180 mdadm: systemd units do not obey /etc/default/mdadm, esp DAEMON_OPTIONS=--syslog

    Code: Select all

    [..]
    Date: Tue, 28 Feb 2023 20:48:50 +0100
    Source: mdadm
    Architecture: source
    Version: 4.2+20230227-1
    Distribution: experimental
    Urgency: medium
    Maintainer: Daniel Baumann <daniel.baumann@progress-linux.org>
    Changed-By: Daniel Baumann <daniel.baumann@progress-linux.org>
    Closes: 815834 822354 829621 850180 889978
    Changes:
     mdadm (4.2+20230227-1) experimental; urgency=medium
     .
       * Uploading to experimental.
       * Merging upstream version 4.2+20230227.
    => * Removing sysvinit scripts in favour of systemd units:
         - properly checkrestart mdmonitor (Closes: #815834).
         - no update-rc.d warnings anymore (Closes: #822354).
         - properly shutdown (Closes: #829621).
    =>   - making /etc/default/mdadm obsolete for most things (Closes: #850180).
       * Removing cron jobs in favour of systemd timers:
         - daily checks also work if system is not always on (Closes: #889978).
       * Adding rediffed patch from ubuntu to randomize md array check timers.
       * Adding rediffed patch from ubuntu to honor debconf daily scan in
         systemd unit.
       * Adding rediffed patch from ubuntu to fix empty spaces in timer unit
         files.
       * Wrap and sorting debian directory.
    
The version of mdadm in Debian Bookworm (alias Stable, version 12.7) is 4.2-5:

Code: Select all

$ rmadison --arch=amd64 mdadm
mdadm      | 4.1-1          | oldoldstable       | amd64
mdadm      | 4.1-11         | oldstable          | amd64
mdadm      | 4.2-1~bpo11+1  | bullseye-backports | amd64
mdadm      | 4.2-5          | stable             | amd64
mdadm      | 4.3+20240723-2 | testing            | amd64
mdadm      | 4.3+20240723-2 | unstable           | amd64
Check /etc/mdadm/mdadm.conf for mdadm configuration: --
EDIT Fri Nov 15 08:14:07 CET 2024: topic marked as solved.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply