#!/bin/bash # # Weekly Cron Job to initiate RAID scan/repair cycles for x in /sys/block/md*/md/sync_action ; do echo repair >$x done # Process occurs in background kernel tasks