Ubuntu Version:
Ubuntu 24.04.2 LTS (server)
Desktop Environment (if applicable):
(none, server install)
Problem Description:
I removed the udisks2
package recently as it was preventing my spinning hard disks from going to sleep (various people with the same issue since upgrading to 24.02) and it resolved that problem.
However since doing that my two md arrays (they are on flash not spinning disks) send an alert every day from mdmonitor-oneshot.service
.
I can trigger the same alert manually running: mdadm --monitor --oneshot --scan
mdadm: DeviceDisappeared event detected on md device /dev/md/md1
mdadm: DeviceDisappeared event detected on md device /dev/md/md0
mdadm: NewArray event detected on md device /dev/md0
mdadm: NewArray event detected on md device /dev/md1
Relevant System Information:
My mdadm.conf
:
ARRAY /dev/md0 metadata=1.2 name=ubuntu-server:0 UUID=5669dc05:ca33be7b:c7a3e8e0:9f55d7c7
ARRAY /dev/md1 metadata=1.2 name=ubuntu-server:1 UUID=f57c44db:c088bed1:a3602b1c:86ef3094
MAILADDR <redacted>
PROGRAM /usr/local/bin/mdadm_notify
I’m not sure why mdadm monitor is expecting to find the devices at /dev/md/mdX
? I assume udisks2 added /dev/md/mdX
symlinks? As the devices don’t exist under the /dev/md/
path.
Any ideas how I can stop mdadm monitor trying to look for the arrays in the wrong place and not just using the definition in mdadm.conf
/proc/mdstat
looks like:
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4] [raid10]
md1 : active raid1 sdd3[1] sdc3[0]
466095104 blocks super 1.2 [2/2] [UU]
bitmap: 2/4 pages [8KB], 65536KB chunk
md0 : active raid1 sdd2[1] sdc2[0]
2094080 blocks super 1.2 [2/2] [UU]
unused devices: <none>
So I think there is no problem with the arrays?