linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Jed Davidow <jed@ultralame.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: md rotates RAID5 spare at boot
Date: Fri, 11 Jan 2008 11:22:48 +1100	[thread overview]
Message-ID: <18310.46808.422657.207784@notabene.brown> (raw)
In-Reply-To: message from Jed Davidow on Thursday January 10

On Thursday January 10, jed@ultralame.com wrote:
> distro: Ubuntu 7.10
> 
> Two files show up...
> 
> 85-mdadm.rules:
> # This file causes block devices with Linux RAID (mdadm) signatures to
> # automatically cause mdadm to be run.
> # See udev(8) for syntax
> 
> SUBSYSTEM=="block", ACTION=="add|change", ENV{ID_FS_TYPE}=="linux_raid*", \
>         RUN+="watershed /sbin/mdadm --assemble --scan --no-degraded"
....
> 
> I see.  So udev is invoking the assemble command as soon as it detects 
> the devices.  So is it possible that the spare is not the last drive to 
> be detected and mdadm assembles too soon?

The "--no-degraded' should stop it from assembling until all expected
devices have been found.  It could assemble before the spare is found,
but should not assemble before all the data devices have been found.

The "dmesg" trace you included in your first mail doesn't actually
show anything wrong - it never starts and incomplete array.
Can you try again and get a trace where there definitely is a rebuild
happening.

And please don't drop linux-raid from the 'cc' list.

NeilBrown

  parent reply	other threads:[~2008-01-11  0:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09 20:07 md rotates RAID5 spare at boot Jed Davidow
2008-01-10 18:03 ` Jed Davidow
2008-01-10 21:23   ` this goes go my megaraid probs too was: " Eric S. Johansson
2008-01-10 20:47 ` Bill Davidsen
2008-01-10 20:53   ` Jed Davidow
2008-01-10 22:01     ` Neil Brown
2008-01-10 23:41       ` Jed Davidow
2008-01-10 23:43       ` Jed Davidow
2008-01-11  0:24         ` Neil Brown
     [not found]       ` <47869D2C.7020805@ultralame.com>
2008-01-11  0:22         ` Neil Brown [this message]
2008-01-11  0:38           ` Jed Davidow
2008-01-11  1:12             ` Neil Brown

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=18310.46808.422657.207784@notabene.brown \
    --to=neilb@suse.de \
    --cc=jed@ultralame.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).