All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Riemer <sebastian.riemer@profitbricks.com>
To: Ross Boylan <ross@biostat.ucsf.edu>
Cc: linux-raid@vger.kernel.org
Subject: Re: mdadm --fail doesn't mark device as failed?
Date: Thu, 22 Nov 2012 11:07:54 +0100	[thread overview]
Message-ID: <50ADF97A.8060703@profitbricks.com> (raw)
In-Reply-To: <50ADF3D2.9030206@profitbricks.com>

On 22.11.2012 10:43, Sebastian Riemer wrote:
> On 21.11.2012 20:41, Ross Boylan wrote:
>> On Wed, 2012-11-21 at 18:47 +0100, Sebastian Riemer wrote:
>>
>>> Yes, sometimes hardware has only a short issue and operates as expected
>>> afterwards. Therefore, there is an error threshold. It could be very
>>> annoying to zero the superblock and to resync everything only because
>>> there was a short controller issue or something similar. Without this
>>> you also couldn't remove and re-add devices for testing.
>> So if my intention is to remove the "device" (in this case, partition)
>> across reboots is using sysfs as you indicated sufficient? 
> Yes, if you set a high number into sysfs file "errors", then you can
> even keep the superblock but don't ask me how to revert this change. I
> don't think that there is a "MakeGood" command.
>
>> Zeroing the superblock (--zero-superblock)?
> That's the alternative but you loose superblock data.
>
>>  Removing the device (mdadm --remove)?
> Here you need one of the methods above additionally.

Correction: This also tiggers that the device isn't assembled again
after setting it faulty.

There is a difference in --faulty, --stop and --faulty, --remove, --stop.

>> In this particular case the partition was fine, and my thought was I
>> might add it back later.  But since the info would be dated, I guess
>> there was no real benefit to preserving the superblock.  I did want to
>> preserve the data in case things went catastrophically wrong.
> You don't really have a benefit of keeping the superblock. The only
> useful information is to which device it belonged to. In general you
> replace the failed drive and the new device is synced from the remaining
> good drive. Without the superblock you can read the actual data anyway
> starting from the data offset.
>


  reply	other threads:[~2012-11-22 10:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-21 16:17 mdadm --fail doesn't mark device as failed? Ross Boylan
2012-11-21 16:53 ` Sebastian Riemer
2012-11-21 17:03   ` Ross Boylan
2012-11-21 17:10     ` Sebastian Riemer
2012-11-21 17:23       ` Ross Boylan
2012-11-21 17:47         ` Sebastian Riemer
2012-11-21 19:41           ` Ross Boylan
2012-11-22  9:43             ` Sebastian Riemer
2012-11-22 10:07               ` Sebastian Riemer [this message]
2012-11-24  0:29                 ` Ross Boylan
2012-11-21 19:52           ` Ross Boylan
2012-11-22  4:42   ` NeilBrown
2012-11-22  4:40 ` NeilBrown
2012-11-23 23:58   ` Ross Boylan

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=50ADF97A.8060703@profitbricks.com \
    --to=sebastian.riemer@profitbricks.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=ross@biostat.ucsf.edu \
    /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.