linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Benjamin ESTRABAUD <be@mpstor.com>
Cc: Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: mdadm --fail requires writeable drive.
Date: Fri, 15 Nov 2013 15:46:27 +1100	[thread overview]
Message-ID: <20131115154627.14364eb3@notabene.brown> (raw)
In-Reply-To: <5285094D.9070904@mpstor.com>

[-- Attachment #1: Type: text/plain, Size: 812 bytes --]

On Thu, 14 Nov 2013 17:33:01 +0000 Benjamin ESTRABAUD <be@mpstor.com> wrote:

> Hi Neil,
> 
> This does work but I was looking for a way to explicitely set a 
> particular device as Failed (I want to process devices one by one).
> 
> But right now I was reading from the array to force it detecting the 
> failure as opposed to using "detached" which orders of magnitude better.
> 
> Thanks for the tip, I'll use that for now.

If you really want to just fail one of them you can used the "kernel name"
like "sda1".
If you
   ls -d /sys/block/mdXX/md/dev-*

you will see the devices that are though to be part of the array.  The part
of the name after "dev-" is the "kernel name".
"mdadm /dev/mdXX --fail" will accept a "kernel name" and will mark just that
device as faulty.

NeilBrown


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2013-11-15  4:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-13 12:17 mdadm --fail requires writeable drive Benjamin ESTRABAUD
2013-11-14  0:44 ` NeilBrown
2013-11-14 17:33   ` Benjamin ESTRABAUD
2013-11-15  4:46     ` NeilBrown [this message]
2013-11-15 12:22       ` Benjamin ESTRABAUD

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=20131115154627.14364eb3@notabene.brown \
    --to=neilb@suse.de \
    --cc=be@mpstor.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).