raid-check 136 B

1234567
  1. #!/bin/bash
  2. for dev in `grep "^md.*: active" /proc/mdstat | cut -f 1 -d ' '`; do
  3. echo "repair" > /sys/block/$dev/md/sync_action
  4. done