Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

no /sys/block/md*/md/level on 2.6.8-2-686 causes checkarray failure

From: Alexandros Papadopoulos <apapadop(at)alumni.cmu.edu>
Date: Mon Oct 08 2007 - 04:16:24 EDT


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

Do you need help?X

--

To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Received on Mon Oct 8 04:16:53 2007

This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 06:50:55 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library