Skip to contentSkip to conversation

checkarray: E: no kernel support for parity checks.

DISCUSSION Guillaume Filion 2 participants 2 messages Sep 4, 2006 MD RAID

lore
Share & tools
lore
#0 lore raw

Hi,

I'm not sure if this is the right place to ask this question, but a Google search didn't turned out anything relevant, so I'm taking a chance here.

I have my root on software raid on Debian and every night, cron is sending me this error:
-----
Subject: Cron <root@ali> [ -x /usr/share/mdadm/checkarray ] && /usr/share/mdadm/checkarray --cron --all --quiet

checkarray: E: no kernel support for parity checks.
-----

Looking at the code, it looks like this is where the error is reported:
if [ -z "$(ls /sys/block/md*/md/sync_action 2>/dev/null)" ]; then
[ $quiet -lt 2 ] && echo "$PROGNAME: E: no kernel support for parity
checks." >&2
exit 3
fi

My /sys directory is empty:

gfk@ali:~$ ls -ld /sys
drwxr-xr-x 2 root root 4096 Nov 12  2005 /sys
gfk@ali:~$ ls -l /sys
total 0

Is it normal that /sys is empty? I can't find how to populate it, if someone could give me a clue... :-)

Thanks a lot,
GFK's

Signature · 3 lines
Guillaume Filion, ing. jr
Logidac Tech., Beaumont, Québec, Canada - http://logidac.com/
PGP Key and more: http://guillaume.filion.org/
#1 lore raw
Quoted 22 lines · On Monday September 4, [email protected] wrote:

Hi,

I'm not sure if this is the right place to ask this question, but a Google search didn't turned out anything relevant, so I'm taking a chance here.

I have my root on software raid on Debian and every night, cron is sending me this error:
-----
Subject: Cron <root@ali> [ -x /usr/share/mdadm/checkarray ] && /usr/share/mdadm/checkarray --cron --all --quiet

checkarray: E: no kernel support for parity checks.
-----

Looking at the code, it looks like this is where the error is reported:
if [ -z "$(ls /sys/block/md*/md/sync_action 2>/dev/null)" ]; then
[ $quiet -lt 2 ] && echo "$PROGNAME: E: no kernel support for parity
checks." >&2
exit 3
fi

Quoted 8 lines

My /sys directory is empty:

gfk@ali:~$ ls -ld /sys
drwxr-xr-x 2 root root 4096 Nov 12  2005 /sys
gfk@ali:~$ ls -l /sys
total 0

Is it normal that /sys is empty? I can't find how to populate it, if someone could give me a clue... :-)

mount -t sysfs sysfs /sys

NeilBrown