After further research, all that needs to be done is to read '/sys/block/$ARRAY/md/sync_action'. If you find anything else than "idle" in there, the array is doing maintenance tasks.
See: https://www.kernel.org/doc/Documentation/md.txt
After further research, all that needs to be done is to read '/sys/block/ $ARRAY/ md/sync_ action' . If you find anything else than "idle" in there, the array is doing maintenance tasks.
See: https:/ /www.kernel. org/doc/ Documentation/ md.txt