From: NeilBrown <neilb@suse.de>
To: micah <micah@riseup.net>
Cc: micah anderson <micah@debian.org>, linux-raid@vger.kernel.org
Subject: Re: Raid1 element stuck in (S) state
Date: Thu, 30 Oct 2014 07:10:19 +1100 [thread overview]
Message-ID: <20141030071019.1a5c57e7@notabene.brown> (raw)
In-Reply-To: <8761f3q8gr.fsf@muck.riseup.net>
[-- Attachment #1: Type: text/plain, Size: 1796 bytes --]
On Wed, 29 Oct 2014 10:03:16 -0400 micah <micah@riseup.net> wrote:
> NeilBrown <neilb@suse.de> writes:
>
> > On Mon, 27 Oct 2014 10:18:47 -0400 micah anderson <micah@debian.org> wrote:
> >
> >>
> >> Hi,
> >>
> >> i've got a raid1 setup, where one drive died, it was replaced with a new
> >> one, but its stuck in a (S) state and I can't seem to get it added into
> >> the array, /proc/mdstat looks like this:
> >>
> >> md3 : active raid1 sdc1[2](S) sdd1[1]
> >> 976759672 blocks super 1.2 [2/1] [_U]
> >>
> >> where sdc1 is the replaced drive.
> >>
> >> What is the right way to get this added back?
> >>
> >
> > I've a feeling this bug might have been fixed.
> > What versions of mdadm and Linux are you using?
>
> I'm using squeeze here, and had 3.1.4-1+8efb9d1+squeeze1 installed, I
> just installed the backport, which is 3.2.5-3~bpo60+1.
Is assume that is the version of mdadm. You didn't say what version of Linux.
>
> > Are there any errors in the kernel logs when you --add the device?
You didn't answer this question either. Are there any messages in the
kernel log: /var/log/kern.log on debian.
Or in the output of "dmesg".
>
> After installing the backported 3.2.5, I tried to add it, and it said:
>
> # mdadm --add /dev/md3 /dev/sdc1
> mdadm: Cannot open /dev/sdc1: Device or resource busy
>
> so I did a --remove of the drive, and then added it, it then proceeded
> to sync the array, and after that finished, it is now back in the (S)
> state.
>
> Can I just zero the superblock of that device and re-add it in order to
> resolve this?
If it resyncs and the is still spare, there was almost certainly some sort of
failure. There really must be something in the kernel logs at that time.
NeilBrown
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2014-10-29 20:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-27 14:18 Raid1 element stuck in (S) state micah anderson
2014-10-27 20:57 ` Joe Lawrence
2014-10-28 4:45 ` micah
2014-10-28 21:42 ` NeilBrown
2014-10-29 14:03 ` micah
2014-10-29 20:10 ` NeilBrown [this message]
2014-10-29 21:32 ` micah
2014-10-29 22:47 ` NeilBrown
2014-11-02 15:45 ` micah
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=20141030071019.1a5c57e7@notabene.brown \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=micah@debian.org \
--cc=micah@riseup.net \
/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).