mdadm: Value "nas:md0" cannot be set as devname

  • Hello!


    Recently I have upgraded my OMV from 7 to 8. All seems to work well but after turning the NAS on I receive the following notification to mail:

    Quote

    /etc/cron.daily/openmediavault-mdadm:

    mdadm: NewArray event detected on md device /dev/md0

    mdadm: Value "nas:md0" cannot be set as devname. Reason: Not POSIX compatible. Value ignored.

    My mdadm.conf looks like this:

    Code
    DEVICE partitions
    # auto-create devices with Debian standard permissions
    CREATE owner=root group=disk mode=0660 auto=yes
    # automatically tag new arrays as belonging to the local system
    HOMEHOST <system>
    # instruct the monitoring daemon where to send mail alerts
    MAILADDR my@email.com
    MAILFROM root
    # definitions of existing MD arrays
    ARRAY /dev/md/nas:md0 metadata=1.2 name=nas:md0 UUID=b0b7703d:4da40b26:28176a4e:a72b0f7a

    Could you please tell me how to fix this issue?

  • macom

    Approved the thread.
    • Official Post

    You hit a Debian 13 change. Device names must be POSIX compliant, and a : is breaking this rule. To fix that, modify /etc/mdadm/mdadm.conf:

    Code
    ARRAY /dev/md/nas:md0 metadata=1.2 name=nas:md0 UUID=...

    to

    Code
    ARRAY /dev/md0 metadata=1.2 UUID=...

    and run

    Bash
    # omv-salt deploy run initramfs

    After that you should reboot the system.

  • v-bulynkin

    Added the Label resolved
  • v-bulynkin

    Removed the Label resolved
  • Email notification keeps coming with changed text:


    Quote

    /etc/cron.daily/openmediavault-mdadm:

    mdadm: DeviceDisappeared event detected on md device /dev/md/md0

    mdadm: NewArray event detected on md device /dev/md0

  • Hi,

    Since upgrading from version 7 to version 8, I receive the exact same email notification every day at the same time.


    Code
    /etc/cron.daily/openmediavault-mdadm:
    mdadm: DeviceDisappeared event detected on md device /dev/md/md0
    mdadm: NewArray event detected on md device /dev/md0

    Intel 10700, Asrock H470M-ITXac, Corsair LPX DDR4 2x8Go 2933, Asrock Intel A310 (AV1 Transcoding), Kingspec nvme NE-256 (OMV 8), Kingspec nvme NE-512 (Docker Containers), WD101EFAX (4x10To RAID5), NAS case "Innovision generic" mATX 8 bay hotplug (Aliexpress), PSU Silverstone FX350-G, ventirad CPU Noctua NH-L9i with Noctua NF-A9.


    Docker Containers: Portainer, DuckDNS, Nginx, Transmission-Openvpn, Jellyfin, TeamSpeak, Filebot, WatchTower, AdGuard Home, Stirling PDF

    Previous NAS: QNAP TS-239 PRO

  • v-bulynkin

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!