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

On 15/11/13 04:46, NeilBrown wrote:
> 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.
>

Hi Neil,

> 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-*
>

Thanks a lot for this! This is exactly what I was looking for and it 
worked like a charm.

> 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.
>

That's perfect. Thanks a lot!

> NeilBrown
>

Ben.

      reply	other threads:[~2013-11-15 12:22 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
2013-11-15 12:22       ` Benjamin ESTRABAUD [this message]

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=52861204.5050001@mpstor.com \
    --to=be@mpstor.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.