linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "John Stilson" <john9601@gmail.com>
To: linux-raid@vger.kernel.org
Subject: RAID 10 resync leading to attempt to access beyond end of device
Date: Wed, 14 Feb 2007 17:08:56 -0500	[thread overview]
Message-ID: <e1e9d81a0702141408k4f42887by4d4c4c9aa9d536c0@mail.gmail.com> (raw)

Hi,

    I'm experiencing what appears to be a kernel bug in the raid10 driver,
where immediately after a resync completes an access beyond the end of the
rebuilt disk is attempted which causes the disk to be failed.

    The system is a single-processor dual-core Xeon 3000 at 1.86GHz. It has
four 250GB drives, two each on two channels of an Intel ICH7. It's running
Fedora Core 4 with a custom compiled unpatched 2.6.20 kernel. I can provide
the kernel itself, config, etc on request.

    Here is a full dmesg output from where the /dev/sdc1, part of /dev/md0
was intentionally failed using mdadm /dev/md0 -f /dev/sdc1, mdadm /dev/md0
-r /dev/sdc1, mdadm /dev/md0 -a /dev/sdc1.

Feb 14 16:20:18 testsvr kernel: raid10: Disk failure on sdc1, disabling
device.
Feb 14 16:20:18 testsvr kernel:      Operation continuing on 3 devices
Feb 14 16:20:18 testsvr kernel: RAID10 conf printout:
Feb 14 16:20:18 testsvr kernel:  --- wd:3 rd:4
Feb 14 16:20:18 testsvr kernel:  disk 0, wo:0, o:1, dev:sda9
Feb 14 16:20:18 testsvr kernel:  disk 1, wo:0, o:1, dev:sdb1
Feb 14 16:20:18 testsvr kernel:  disk 2, wo:1, o:0, dev:sdc1
Feb 14 16:20:18 testsvr kernel:  disk 3, wo:0, o:1, dev:sdd1
Feb 14 16:20:18 testsvr kernel: RAID10 conf printout:
Feb 14 16:20:18 testsvr kernel:  --- wd:3 rd:4
Feb 14 16:20:18 testsvr kernel:  disk 0, wo:0, o:1, dev:sda9
Feb 14 16:20:18 testsvr kernel:  disk 1, wo:0, o:1, dev:sdb1
Feb 14 16:20:18 testsvr kernel:  disk 3, wo:0, o:1, dev:sdd1
Feb 14 16:20:20 testsvr kernel: md: unbind<sdc1>
Feb 14 16:20:20 testsvr kernel: md: export_rdev(sdc1)
Feb 14 16:20:23 testsvr kernel: md: bind<sdc1>
Feb 14 16:20:23 testsvr kernel: RAID10 conf printout:
Feb 14 16:20:23 testsvr kernel:  --- wd:3 rd:4
Feb 14 16:20:23 testsvr kernel:  disk 0, wo:0, o:1, dev:sda9
Feb 14 16:20:23 testsvr kernel:  disk 1, wo:0, o:1, dev:sdb1
Feb 14 16:20:23 testsvr kernel:  disk 2, wo:1, o:1, dev:sdc1
Feb 14 16:20:23 testsvr kernel:  disk 3, wo:0, o:1, dev:sdd1
Feb 14 16:20:23 testsvr kernel: md: recovery of RAID array md0
Feb 14 16:20:23 testsvr kernel: md: minimum _guaranteed_  speed: 1000
KB/sec/disk.
Feb 14 16:20:23 testsvr kernel: md: using maximum available idle IO
bandwidth (but not more than 40000 KB/sec) for recovery.
Feb 14 16:20:23 testsvr kernel: md: using 128k window, over a total of
8040320 blocks.
Feb 14 16:23:45 testsvr kernel: md: md0: recovery done.
Feb 14 16:23:45 testsvr kernel: attempt to access beyond end of device
Feb 14 16:23:45 testsvr kernel: sdc1: rw=1, want=901904331651136,
limit=16081002
Feb 14 16:23:45 testsvr kernel: raid10: Disk failure on sdc1, disabling
device.
Feb 14 16:23:45 testsvr kernel:      Operation continuing on 3 devices
Feb 14 16:23:45 testsvr kernel: RAID10 conf printout:
Feb 14 16:23:45 testsvr kernel:  --- wd:3 rd:4
Feb 14 16:23:45 testsvr kernel:  disk 0, wo:0, o:1, dev:sda9
Feb 14 16:23:45 testsvr kernel:  disk 1, wo:0, o:1, dev:sdb1
Feb 14 16:23:45 testsvr kernel:  disk 2, wo:1, o:0, dev:sdc1
Feb 14 16:23:45 testsvr kernel:  disk 3, wo:0, o:1, dev:sdd1
Feb 14 16:23:45 testsvr kernel: RAID10 conf printout:
Feb 14 16:23:45 testsvr kernel:  --- wd:3 rd:4
Feb 14 16:23:45 testsvr kernel:  disk 0, wo:0, o:1, dev:sda9
Feb 14 16:23:45 testsvr kernel:  disk 1, wo:0, o:1, dev:sdb1
Feb 14 16:23:45 testsvr kernel:  disk 3, wo:0, o:1, dev:sdd1

    I made the kernel OOPS during handle_bad_sector in ll_rw_blk.c to try
and get a backtrace, however the backtrace looks mildly suspicious, so I
think it may not be a good indicator. Here it is anyway:

Feb 13 14:25:23 testsvr kernel: Oops: 0000 [#1]
Feb 13 14:25:23 testsvr kernel: SMP
Feb 13 14:25:23 testsvr kernel: CPU:    0
Feb 13 14:25:23 testsvr kernel: EIP:    0060:[<c022b55a>]    Not tainted VLI

Feb 13 14:25:23 testsvr kernel: EFLAGS: 00010296   (2.6.19.1 #3)
Feb 13 14:25:23 testsvr kernel: EIP is at handle_bad_sector+0x96/0xf0
Feb 13 14:25:23 testsvr kernel: eax: 00000039   ebx: 00000001   ecx:
f6a7c9c0   edx: 00000082
Feb 13 14:25:23 testsvr kernel: esi: 00000000   edi: f6a7c9c0   ebp:
f7451e58   esp: f7451df4
Feb 13 14:25:23 testsvr kernel: ds: 007b   es: 007b   ss: 0068
Feb 13 14:25:23 testsvr kernel: Process md0_raid10 (pid: 2267, ti=f7450000
task=f6ed2550 task.ti=f7450000)
Feb 13 14:25:23 testsvr kernel: Stack: c044c950 f7451e2c 00000001 00000102
f7ee0208 00f5606a 00000000 00000002
Feb 13 14:25:23 testsvr kernel:        f7fb0408 eac0d400 00000001 00000102
f7ee0208 00000001 31646473 00000000
Feb 13 14:25:23 testsvr kernel:        f6e80000 00000086 c0124ce1 00000086
f6e81bc0 f7fb0408 f7ee0208 f6a7c9c0
Feb 13 14:25:23 testsvr kernel: Call Trace:
Feb 13 14:25:23 testsvr kernel:  [<c0124ce1>] __mod_timer+0x8e/0xa5
Feb 13 14:25:23 testsvr kernel:  [<c022b618>]
generic_make_request+0x64/0x21e
Feb 13 14:25:23 testsvr kernel:  [<c0238369>] kobject_release+0x0/0x17
Feb 13 14:25:23 testsvr kernel:  [<c02de475>] scsi_request_fn+0x15b/0x36e
Feb 13 14:25:23 testsvr kernel:  [<c022c421>]
generic_unplug_device+0x1b/0x2a
Feb 13 14:25:23 testsvr kernel:  [<c03315d7>] unplug_slaves+0x5c/0xa2
Feb 13 14:25:23 testsvr kernel:  [<c033341f>] raid10d+0x564/0xc79
Feb 13 14:25:23 testsvr kernel:  [<c040616a>] schedule+0x31e/0x8ed
Feb 13 14:25:23 testsvr kernel:  [<c0406ae1>] schedule_timeout+0x72/0xb0
Feb 13 14:25:23 testsvr kernel:  [<c0406ae1>] schedule_timeout+0x72/0xb0
Feb 13 14:25:23 testsvr kernel:  [<c034416e>] md_thread+0x40/0x103
Feb 13 14:25:23 testsvr kernel:  [<c012f47c>]
autoremove_wake_function+0x0/0x4b
Feb 13 14:25:23 testsvr kernel:  [<c034412e>] md_thread+0x0/0x103
Feb 13 14:25:23 testsvr kernel:  [<c012f397>] kthread+0xfc/0x100
Feb 13 14:25:23 testsvr kernel:  [<c012f29b>] kthread+0x0/0x100
Feb 13 14:25:23 testsvr kernel:  [<c0103997>] kernel_thread_helper+0x7/0x10

Any help would be appreciated. I'm available to try any test -- this is a
test server that I can perform any kind of wild test on.

-John

             reply	other threads:[~2007-02-14 22:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-14 22:08 John Stilson [this message]
2007-02-14 23:37 ` RAID 10 resync leading to attempt to access beyond end of device Neil Brown
     [not found]   ` <e1e9d81a0702141606r7dea6288qea942cee2d978ee2@mail.gmail.com>
     [not found]     ` <17875.57273.543122.581106@notabene.brown>
     [not found]       ` <e1e9d81a0702142051v152c4c8dme2b20e1c53e1f4b2@mail.gmail.com>
2007-02-15 18:02         ` John Stilson
2007-02-15 18:23           ` John Stilson
2007-02-15 18:28             ` (unknown) Derek Yeung
2007-02-15 18:53               ` (unknown) Derek Yeung
2007-02-16  2:25           ` RAID 10 resync leading to attempt to access beyond end of device Neil Brown
2007-02-19 17:16             ` John Stilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e1e9d81a0702141408k4f42887by4d4c4c9aa9d536c0@mail.gmail.com \
    --to=john9601@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).