Re: Reproducable OOPS with MD RAID-5 on 2.6.0-test11

From: Theodore Ts'o (tytso_at_mit.edu)
Date: 12/05/03

  • Next message: Linus Torvalds: "RE: Linux GPL and binary module exception clause?"
    Date:	Fri, 5 Dec 2003 01:55:22 -0500
    To: Simon Kirby <sim@netnation.com>
    
    

    On Wed, Dec 03, 2003 at 08:31:06PM -0800, Simon Kirby wrote:
    >
    > Without the patches, the box gets as far as assembling the array and
    > activating it, but dies on "mke2fs". Running mke2fs through strace shows
    > that it stops during the early stages, before it even tries to write
    > anything. mke2fs appears to seek through the whole device and do a bunch
    > of small reads at various points, and as soon as it tries to read from an
    > offset > 2 TB, it hangs.

    It sounds like mke2fs tried using BLKGETSIZE ioctl, but given that
    this returns the number of 512 byte sectors in a device in a 4 byte
    word, the BLKGETSIZE ioctl quite rightly threw up its hands and said,
    "sorry, I can't tell you the correct size."

    The mke2fs fell back to its backup algorithm, which uses a modified
    binary search to find the size of the device. It started to see if
    the device was at least 1k, and checks to see if the device is at
    least 2k, 4k, 8k, 16k, 32k, 64k, 128k, etc. So it sounds like it's
    dieing when it tries to seek past 2TB using llseek().

    It would probably be worthwhile to write a little test program which
    opens the disk, llseeks to 2TB+1, and then tries reading a byte. If
    that fiailes, then there's definitely a bug somewhere in the device
    driver....

                                                    - Ted
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Linus Torvalds: "RE: Linux GPL and binary module exception clause?"

    Relevant Pages

    • Re: problem mounting CD writer in 2.4.20
      ... then i used 'cdrecord' as follows: ... i will go with 'mkisofs' instaed of 'mke2fs'. ... problem mounting CD writer in 2.4.20 ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • aoe fails on sparc64
      ... Using aoe on a sparc64 system gives strange results: ... mke2fs: File too large while trying to determine filesystem size ... sunny:/dev/etherd# blockdev --getsz e0.0 ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: loopback device + crypto = crash on 2.6.0-test7 ?
      ... I'm seeing something similar, but in my case, mke2fs already crashes. ... Mine ist -test9 on x86. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Ext3 problems in dual booting machine with SE Linux
      ... On Fri, 23 Jul 2004 14:21:31 PDT, Steve G said: ... > detected at boot which finally lets me run mke2fs to get it back. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)