d395ee1418
- 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
8 lines
180 B
Bash
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
|
|
|