Re: no /sys/block/md*/md/level on 2.6.8-2-686 causes checkarray failure
Hi, I think you have version mismach.
Debian stable is now (from 2007/04/08) ETCH and it has kernel 2.6.18
your kernel is 2.6.8 with means you dont upgrade distribution properly.
I dont recomend you to mix packages between sarge and etch.
Tomfi
Alexandros Papadopoulos napsal(a):
> Hi - I recently noticed that the package mdadm on Debian stable
> installs the script /etc/cron.d/mdadm which invokes
> /usr/share/mdadm/checkarray, which in turn tries to execute the
> following in line 117:
>
> <snip>
> 117 if [ -z "$(ls /sys/block/md*/md/level 2>/dev/null)" ]; then
> 118 [ $quiet -lt 2 ] && echo "$PROGNAME: W: kernel too old, no
> support for redundancy checks." >&2
> 119 exit 6
> 120 fi
> <snip>
>
> This fails on my system (Linux 2.6.8-2-686 #1 Tue Aug 16 13:22:48 UTC
> 2005 i686 GNU/Linux) since "md/level" is not to be found in ls -l
> /sys/block/md*/
>
> blah:~# ls -l /sys/block/md*/
> /sys/block/md0/:
> total 0
> drwxr-xr-x 2 root root 0 2007-10-08 09:58 .
> drwxr-xr-x 25 root root 0 2007-10-08 09:59 ..
> -r--r--r-- 1 root root 4096 2007-10-08 09:58 dev
> -r--r--r-- 1 root root 4096 2007-10-08 09:58 range
> -r--r--r-- 1 root root 4096 2007-10-08 09:58 removable
> -r--r--r-- 1 root root 4096 2007-10-08 09:58 size
> -r--r--r-- 1 root root 4096 2007-10-08 09:58 stat
>
> /sys/block/md1/:
> total 0
> drwxr-xr-x 2 root root 0 2007-10-08 09:58 .
> drwxr-xr-x 25 root root 0 2007-10-08 09:59 ..
> -r--r--r-- 1 root root 4096 2007-10-08 09:58 dev
> -r--r--r-- 1 root root 4096 2007-10-08 09:58 range
> -r--r--r-- 1 root root 4096 2007-10-08 09:58 removable
> -r--r--r-- 1 root root 4096 2007-10-08 09:58 size
> -r--r--r-- 1 root root 4096 2007-10-08 09:58 stat
> blah:~#
>
> Clearly the kernel is not too old. How could I debug this?
>
> Cheers
>
> -A
>
>
Reply to: