3

I have mdadm setup to email on the event of it detecting an error on the RAID 1 array I have.

What I cannot find anywhere is if I need to schedule a check to run weekly, or if mdadm will automatically pick up that a drive is failing and notify me.

Has anyone experience with this or can point me in the correct direction?

I also have another RAID 5 array that I could ask the same question about.

2
  • What's there to check in RAID1? There are no parity bits.
    – muru
    Sep 10, 2020 at 6:01
  • Say if a drive starts failing to write? Or if it won't spin up? Sep 10, 2020 at 11:47

1 Answer 1

6

Speaking for at least mdadm RAID-5 arrays, a recheck gets scheduled for the first Sunday of every month. You can do sudo systemctl list-timers mdcheck_start to confirm that it is scheduled to launch.

3
  • Ok, on the raid1 all I see is i.ibb.co/sJFhV60/image.png Sep 10, 2020 at 11:49
  • Yep, mdadm is on the job and you shouldn't have to manually do anything. Sep 10, 2020 at 11:55
  • Thanks for this! Obviously the command I was looking for. I checked the RAID5 and it's the same. Sep 10, 2020 at 11:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .