Could this be fixed for lenny, too? I think that a cron script should not
simply die under usual conditions so this bug is important enough to make it
into proposed-updates.
A patch for lenny is attached.
Thanks
Max Gaukler
--- /usr/share/mdadm/checkarray 2009-02-05 20:49:08.000000000 +0100
+++ checkarray 2009-05-03 10:36:13.000000000 +0200
@@ -164,6 +164,12 @@
# queue request for the array. The kernel will make sure that these requests
# are properly queued so as to not kill one of the array.
+ state="$(cat /sys/block/$array/md/array_state)"
+ if [ "$state" == "read-auto" ]; then
+ [ $quiet -lt 1 ] && echo "$PROGNAME: I: array $array is auto-read-only, skipping..." \
+ "(This is normal if it has not been used since booting up)" >&2
+ continue
+ fi
echo $action > $SYNC_ACTION_CTL
[ $quiet -lt 1 ] && echo "$PROGNAME: I: check queued for array $array." >&2
;;