[ Wednesday, March  1, 2000 ] Christian Robottom Reis wrote:
[snip]
> # time we need to sleep before resync finishes - empirical?
> snooze=5m
[snip]
>       sleep $snooze   # so the raid1 can sync in peace

FWIW, If it's the only thing resync'ing you should be able to do:

   while grep resync /proc/mdstat > /dev/null; do sleep 10; done

you can chain two grep's together or do an egrep pattern if you want
to isolate on the particular device (don't have mdstat output during
a resync handy at the moment)

James

Reply via email to