2009-03-18 18:25:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
for dev in `grep "^md.*: active" /proc/mdstat | cut -f 1 -d ' '`; do
|
2009-06-29 19:22:06 +00:00
|
|
|
[ -f /sys/block/$dev/md/sync_action ] && \
|
|
|
|
echo "check" > /sys/block/$dev/md/sync_action
|
2009-03-18 18:25:56 +00:00
|
|
|
done
|
|
|
|
|