mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Neil Brown <neilb@cse.unsw.edu.au>
To: Mike Fedyk <mfedyk@matchmail.com>
Cc: Marcelo Tosatti <marcelo@conectiva.com.br>, linux-kernel@vger.kernel.org
Subject: Re: md: bug in file raid5.c, line 540 was: Re: Linux 2.4.22-rc1
Date: Fri, 22 Aug 2003 15:24:46 +1000	[thread overview]
Message-ID: <16197.43294.828878.586018@gargle.gargle.HOWL> (raw)
In-Reply-To: message from Mike Fedyk on Tuesday August 19

On Tuesday August 19, mfedyk@matchmail.com wrote:
> On Tue, Aug 19, 2003 at 01:26:29PM -0700, Mike Fedyk wrote:
> > Details in dmesg output...
> > 
> 
> This didn't make it to the list because it was too big.
> 
> compressing dmesg output, and here's an excerpt:
> 
> At this point md0 had:
> 
> md0 : active raid5 hda3[3] hdg3[1] hde3[0]
>       319388032 blocks level 5, 64k chunk, algorithm 0 [3/3] [UU_]
> 
> Aug 18 18:29:29 srv-lr2600 kernel: md: trying to hot-add hda3 to md0 ... 
> Aug 18 18:29:42 srv-lr2600 kernel: md: trying to hot-add hde3 to md0 ... 
> Aug 18 18:29:44 srv-lr2600 kernel: md: trying to hot-add hdg3 to md0 ... 
> Aug 18 18:36:25 srv-lr2600 kernel: md: trying to remove hda3 from md0 ... 
> 
> I thought I did a fail before the remove...
> 
> Aug 18 18:36:25 srv-lr2600 kernel: md: cannot remove active disk hda3 from md0 ... 
> Aug 18 18:36:34 srv-lr2600 kernel: md: bug in file raid5.c, line 540
> Aug 18 18:36:34 srv-lr2600 kernel: 
> 
> But why am I getting a bug message?

This bug could happen if you try to fail a device that is not active.
i.e. you do
    "mdadm -f /dev/md0 /dev/hda3"
 or "raidsetfaulty /dev/md0 /dev/hda3" 
when /dev/hda3 is an idle spare or a failed drive that has been
replaced by a spare.
The BUG call can just be removed from that line.

NeilBRown

  reply	other threads:[~2003-08-22  5:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-05 18:44 Marcelo Tosatti
2003-08-07 10:56 ` Erik Heinz
     [not found] ` <20030819202629.GA4083@matchmail.com>
2003-08-19 21:09   ` md: bug in file raid5.c, line 540 was: " Mike Fedyk
2003-08-22  5:24     ` Neil Brown [this message]
2003-08-22 15:50       ` Lars Marowsky-Bree
2003-08-22 21:26         ` Mike Fedyk
2003-08-23 15:28           ` Lars Marowsky-Bree
2003-08-26 17:22             ` Mike Fedyk
2003-08-26 17:30               ` Lars Marowsky-Bree
2003-08-19 21:18 ` md: bug in file raid5.c, line 1909 " Mike Fedyk

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=16197.43294.828878.586018@gargle.gargle.HOWL \
    --to=neilb@cse.unsw.edu.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    --cc=mfedyk@matchmail.com \
    /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

all inboxes | Powered by JetHome®