mdadm/raid-check
Doug Ledford d395ee1418 - Remove stale patches already accepted by upstream
- Fix the raid-check script to only try and check a device if it is
    checkable
- Update to official mdadm-3.0 version
- Resolves: bz505587, bz505552
2009-06-29 19:22:06 +00:00

8 lines
180 B
Bash

#!/bin/bash
for dev in `grep "^md.*: active" /proc/mdstat | cut -f 1 -d ' '`; do
[ -f /sys/block/$dev/md/sync_action ] && \
echo "check" > /sys/block/$dev/md/sync_action
done