From: NeilBrown <neilb@suse.de>
To: Jan Vejvalka <jan.vejvalka@lfmotol.cuni.cz>
Cc: linux-raid@vger.kernel.org
Subject: Re: Mdadm re-add fails
Date: Wed, 3 Aug 2011 19:25:41 +1000 [thread overview]
Message-ID: <20110803192541.7a6e11f6@notabene.brown> (raw)
In-Reply-To: <4E3900CB.6030800@lfmotol.cuni.cz>
On Wed, 03 Aug 2011 10:03:23 +0200 Jan Vejvalka
<jan.vejvalka@lfmotol.cuni.cz> wrote:
> Hi *,
>
> I'm using mdadm 3.1.5 from Slackware64 13.37, for RAID1.
> After running the RAID degraded for a while, I can't bring it
> back.
>
> At boot, dmesg says (correctly]:
>
> md: considering sdb1 ...
> md: adding sdb1 ...
> md: adding sda1 ...
> md: created md1
> md: bind<sda1>
> md: bind<sdb1>
> md: running: <sdb1><sda1>
> md: kicking non-fresh sda1 from array!
> md: unbind<sda1>
> md: export_rdev(sda1)
> md/raid1:md1: active with 1 out of 3 mirrors
>
> And when I try to:~# mdadm --add /dev/md1 /dev/sda1 ,
> I get
> mdadm: /dev/sda1 reports being an active member for /dev/md1, but a
> --re-add fails.
> mdadm: not performing --add as that would convert /dev/sda1 in to a spare.
> mdadm: To make this a spare, use "mdadm --zero-superblock /dev/sda1" first.
>
> I guess that for getting the array up it doesn't make much difference
> to clear /dev/sda1 and to add it clear (does it ?), but it's a bit
> embarrassing to find this behaviour in a moreless standard situation.
Do you have a write-intent bitmap?
If yes, please report the output of "mdadm --examine" and "mdadm
--examine-bitmap" of both devices.
If no, then this is now expected behaviour. It may be a slight inconvenience
for you to have to "--zero-superblock" first, but I have seen numerous cases
where people have "--add"ed devices when they shouldn't have and had the
device turned in to a spare when they didn't want that, and so lost valuable
information.
So if there is no write-intent bitmap, the just do as the message suggests
and have a happy array again.
NeilBrown
next prev parent reply other threads:[~2011-08-03 9:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-03 8:03 Mdadm re-add fails Jan Vejvalka
2011-08-03 9:25 ` NeilBrown [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-05-18 14:43 Schmidt, Annemarie
2011-05-19 23:51 ` NeilBrown
2011-05-20 17:16 ` Schmidt, Annemarie
2011-05-27 21:16 ` Schmidt, Annemarie
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=20110803192541.7a6e11f6@notabene.brown \
--to=neilb@suse.de \
--cc=jan.vejvalka@lfmotol.cuni.cz \
--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).