Child pages
  • Multiple devices (md, software RAID)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It doesn't require any argument and will assemble all the md devices found.

Code Block
mdadm-startall

Routine maintenance

At least Debian 7 Wheezy has /etc/cron.d/mdadm which runs

/usr/share/mdadm/checkarray --cron --all --idle --quiet

on the 14th of each month at 02:19.

The command only checks the md arrays, it does not fix them.  For each array /dev/md/<n>, it results in messages in syslog like:

RebuildStart event detected on md device ...
Rebuild(20|40|60|80) event detected on md device ...

RebuildFinished event detected on md device ...

Despite "Rebuild" it is actually a check.

For small arrays the "Rebuild(20|40|60|80) ..." progress indicators are not generated.  We have seen some of those messages missing.  For sure the RebuildStart message was missing on blav2 for

Sometimes mismatches are reported according to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518834#38 that is a problem for RAID 5 but not for RAID 1.  Presumably, by extension it is a problem for RAID 6 too.

Troubleshooting

initrd fails to assemble md devices

...