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

This is a discussion on no /sys/block/md*/md/level on 2.6.8-2-686 causes checkarray failure - Debian ; 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: 117 if [ -z "$(ls /sys/block/md*/md/level 2>/dev/null)" ]; then 118 ...

+ Reply to Thread
Results 1 to 9 of 9

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

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

    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:


    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


    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


    --
    To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

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

    On Mon, 8 Oct 2007 11:16:24 +0300, apapadop@alumni.cmu.edu said:

    > Clearly the kernel is not too old. How could I debug this?


    Why do you think the kernel is "clearly" not too old?

    If you believe this to be a bug, log it on the BTS.


    --
    To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  3. Re: no /sys/block/md*/md/level on 2.6.8-2-686 causes checkarray failure

    also sprach Alexandros Papadopoulos [2007.10.08.0916 +0100]:
    > 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:


    This is not really an issue for debian-isp.

    > 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*/
    >
    > Clearly the kernel is not too old. How could I debug this?


    Yes, your kernel is too old for checkarray. Either you upgrade, or
    you disable checkarray runs with dpkg-reconfigure mdadm.

    --
    .''`. martin f. krafft
    : :' : proud Debian developer, author, administrator, and user
    `. `'` http://people.debian.org/~madduck - http://debiansystem.info
    `- Debian - when you have better things to do than fixing systems

    "das internet wurde konzipiert, um einem atomschlag standzuhalten.
    leider hatte kein militärstratege mit der deutschen telekom
    gerechnet..."
    -- attila radnai

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.6 (GNU/Linux)

    iD8DBQFHCgBBIgvIgzMMSnURAiFsAKDRfY0nK9hPMMC+G77W63 QcFuEMKQCbB9Om
    ewdOTLrPlITuc/407V2I87M=
    =U9d0
    -----END PGP SIGNATURE-----


  4. [SOLVED] no /sys/block/md*/md/level on 2.6.8-2-686 causes checkarray failure

    On 10/8/07, martin f krafft wrote:
    > also sprach Alexandros Papadopoulos [2007.10.08.0916 +0100]:
    > > 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:

    >
    > This is not really an issue for debian-isp.


    For future reference, which list would be best for mdadm related
    issues on production servers?

    > > 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*/
    > >
    > > Clearly the kernel is not too old. How could I debug this?

    >
    > Yes, your kernel is too old for checkarray. Either you upgrade, or
    > you disable checkarray runs with dpkg-reconfigure mdadm.


    I stand corrected - I believed that the /sys interface did not
    significantly change in minor releases of the kernel (2.6.8 vs 2.6.18
    which is latest stable).

    Thanks for the help.

    -A


    --
    To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  5. Re: [SOLVED] no /sys/block/md*/md/level on 2.6.8-2-686 causes checkarray failure

    > > also sprach Alexandros Papadopoulos [2007.10.08.0916 +0100]:
    > > > 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:


    > On 10/8/07, martin f krafft wrote:
    > > This is not really an issue for debian-isp.


    On 09.10.07 11:03, Alexandros Papadopoulos wrote:
    > For future reference, which list would be best for mdadm related
    > issues on production servers?


    I guess it's debian-user ad there is no specialized list for production
    servers nor mdadm related things.

    Although ISPs can have debian prodution servers and can use SW RAID, neither
    of those is directly related to ISPs

    --
    Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
    Warning: I wish NOT to receive e-mail advertising to this address.
    Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
    10 GOTO 10 : REM (C) Bill Gates 1998, All Rights Reserved!


    --
    To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  6. "on-topic" for debian-isp

    On Tue, Oct 09, 2007 at 10:28:40AM +0200, Matus UHLAR - fantomas wrote:
    > On 09.10.07 11:03, Alexandros Papadopoulos wrote:
    > > For future reference, which list would be best for mdadm related
    > > issues on production servers?

    >
    > I guess it's debian-user ad there is no specialized list for
    > production servers nor mdadm related things.
    >
    > Although ISPs can have debian prodution servers and can use SW RAID,
    > neither of those is directly related to ISPs


    so debian-isp tends to get the production-server questions.

    which is not necessarily a bad thing, as long as they're somewhat
    vaguely related to things that an ISP is likely to want/need to do, and
    especially if any answers are slanted towards an ISP environment.



    if there was enough interest, it might be a good thing to have a
    "debian-server" list dedicated to questions and discussions about
    production servers in "professional" environments (as opposed to a home
    user running dhcp or samba or whatever on their home LAN).

    OTOH, i don't think the occasional non-ISP server question here degrades
    the SNR. some of them are interesting and i learn useful stuff without
    having to wade through all the gnome/kde/user-application questions on
    debian-user.


    craig

    --
    craig sanders

    BOFH excuse #117:

    the printer thinks its a router.


    --
    To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  7. Re: "on-topic" for debian-isp

    On Tue, 9 Oct 2007 18:56:05 +1000, cas@taz.net.au said:

    > OTOH, i don't think the occasional non-ISP server question here degrades
    > the SNR. some of them are interesting and i learn useful stuff without
    > having to wade through all the gnome/kde/user-application questions on
    > debian-user.


    I agree.

    --
    Keith Edmunds

    +---------------------------------------------------------------------+
    | Tiger Computing Ltd | Helping businesses make the most of Linux |
    | "The Linux Company" | http://www.tiger-computing.co.uk |
    +---------------------------------------------------------------------+


    --
    To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  8. Re: "on-topic" for debian-isp

    also sprach Keith Edmunds [2007.10.09.0959 +0100]:
    > > OTOH, i don't think the occasional non-ISP server question here degrades
    > > the SNR. some of them are interesting and i learn useful stuff without
    > > having to wade through all the gnome/kde/user-application questions on
    > > debian-user.

    >
    > I agree.


    . Sorry for trying to be fascist. I'll get back to answering
    mdadm questions independent of which list they use. Extra points for
    those on debian-curiosa.

    --
    .''`. martin f. krafft
    : :' : proud Debian developer, author, administrator, and user
    `. `'` http://people.debian.org/~madduck - http://debiansystem.info
    `- Debian - when you have better things to do than fixing systems

    micro$oft windoze: proof that p. t. barnum was correct.

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.6 (GNU/Linux)

    iD8DBQFHC08lIgvIgzMMSnURAmOzAJ9PW2+sooSJUr29LSCZyq Uz1/DoqgCgqItq
    pfpcb51QQ2kzsaxtw6JZ/tM=
    =+NIg
    -----END PGP SIGNATURE-----


  9. 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:
    >
    >
    > 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
    >
    >
    > 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
    >
    >



    --
    To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

+ Reply to Thread