linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Alexander Lyakas <alex.bolshoy@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: RAID5: failing an active component during spare rebuild - arrays hangs
Date: Tue, 28 Jun 2011 12:29:21 +1000	[thread overview]
Message-ID: <20110628122921.42480f72@notabene.brown> (raw)
In-Reply-To: <BANLkTinijekK8Y6TTk6TYtYhv4Dn2YGQbA@mail.gmail.com>

On Sun, 26 Jun 2011 21:13:17 +0300 Alexander Lyakas <alex.bolshoy@gmail.com>
wrote:

> Hello Neil,
> thank you for your response. Meanwhile I have moved to stock ubuntu
> natty 11.04, but it still happens. I have a simple script that
> reproduces the issue for me in less than 1 minute.
> System details:
> Linux ubuntu 2.6.38-8-server #42-Ubuntu SMP Mon Apr 11 03:49:04 UTC
> 2011 x86_64 x86_64 x86_64 GNU/Linux
> 
> Here is the script:
> ##################################
> #!/bin/bash
> 
> while true
> do
> 	mdadm --create /dev/md1123 --raid-devices=3 --level=5
> --bitmap=internal --name=1123 --run --auto=md --metadata=1.2
> --homehost=alex --verbose /dev/sda /dev/sdb /dev/sdc
> 	sleep 6
> 	mdadm --manage /dev/md1123 --fail /dev/sda
> 	sleep 1
> 	if mdadm --stop /dev/md1123
> 	then
> 		true
> 	else
> 		break
> 	fi
> done
> #####################################

Thanks for the script.  Unfortunately I still cannot reproduce.
I suspect there is some subtle race issue that is heavily dependant on the
particular hardware you have.

It might help if I could get stack traces of the relevant processes. i.e.
md1123_raid5 and md1123_resync.

A previous post contained a trace of _resync, but it wouldn't hurt to get
another one.  You can get them by

  cat /proc/PROCESS-ID/stack

or possibly

  echo w > /proc/sysrq-trigger

then look in the output of 'dmesg'.

Thanks,
NeilBrown

  reply	other threads:[~2011-06-28  2:29 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BANLkTikkeoCsr3-UBSPEDrYwh4jGSn=MaA@mail.gmail.com>
2011-06-05 19:41 ` RAID5: failing an active component during spare rebuild - arrays hangs Alexander Lyakas
     [not found]   ` <20110605230014.14822hd7b50rcqww@cakebox.homeunix.net>
2011-06-06 18:19     ` Alexander Lyakas
2011-06-21  8:05       ` Alexander Lyakas
2011-06-22  2:54   ` NeilBrown
2011-06-26 18:13     ` Alexander Lyakas
2011-06-28  2:29       ` NeilBrown [this message]
2011-07-17  8:29         ` Alexander Lyakas
2011-08-25  8:59           ` Alexander Lyakas
2011-08-25 10:10             ` Alexander Lyakas
2011-08-31  2:46             ` NeilBrown
2011-11-27  9:56               ` Alexander Lyakas
2011-12-06  3:16                 ` NeilBrown
2011-12-06 21:07                   ` Alexander Lyakas
2011-12-06 21:21                     ` NeilBrown
2011-12-14 10:27                       ` Alexander Lyakas
2011-12-14 11:32                         ` NeilBrown
2011-12-15 14:38                           ` Alexander Lyakas

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=20110628122921.42480f72@notabene.brown \
    --to=neilb@suse.de \
    --cc=alex.bolshoy@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).