linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roger Heflin <rogerheflin@gmail.com>
To: Nix <nix@esperi.org.uk>
Cc: Wols Lists <antlists@youngman.org.uk>,
	Phil Turmel <philip@turmel.org>,
	David T-G <davidtg+robot@justpickone.org>,
	Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: hardware recovery and RAID5 services
Date: Mon, 31 Jan 2022 12:59:33 -0600	[thread overview]
Message-ID: <CAAMCDee0zoWB9ud6wxvfSj0rpswFde9dd2T3chur4R9YFnRPwQ@mail.gmail.com> (raw)
In-Reply-To: <87leyvvrqp.fsf@esperi.org.uk>

And do not do write-sector on a disk that is in use in RAID, otherwise
that sectors data is gone.

I will completely remove a disk/partition and do --write-sectors
against it and then do a --add (don't do a re-add).    In general
though I have not had a lot of luck with the write-sector fixing
and/or forcing a reallocate even when the sector is clearly bad.  I
have to conclude (based on both WD and seagate not reallocating
sectors that reliably fail rereads in <30-seconds after just being
re-written) that pretty much everyone's disk firmware must suck.

Would --make-bad-sector work to force a reallocate?

On Mon, Jan 31, 2022 at 9:40 AM Nix <nix@esperi.org.uk> wrote:
>
> On 29 Jan 2022, Wols Lists told this:
>
> > I believe there is also a way of injecting a hardware error onto a
> > drive. Unless you can take a backup of the backup :-) I wouldn't
> > recommend it at the moment, but there's some ATA command or whatever
> > that tells the drive to flag a sector as bad, and return a read error
> > until it's over-written.
>
> See hdparm --make-bad-sector. The manpage says "EXCEPTIONALLY DANGEROUS.
> DO NOT USE THIS OPTION!!". It is not lying. :)
>
> (This is also --write-sector, which is merely VERY DANGEROUS, but can be
> used to force rewrites of bad sectors. Make sure you get the sector
> number right! Needless to say, if you don't, it's too late, and there's
> no real way to test in advance...)

  reply	other threads:[~2022-01-31 18:59 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-21 16:48 hardware recovery and RAID5 services David T-G
2022-01-21 19:31 ` Wols Lists
2022-01-21 19:34   ` Wols Lists
2022-01-21 19:47     ` Wols Lists
2022-01-22 14:23       ` Roger Heflin
2022-01-22 22:23         ` Phil Turmel
2022-01-23  0:20           ` anthony
2022-01-29 15:25           ` David T-G
2022-01-29 15:36           ` Wols Lists
2022-01-31 15:39             ` Nix
2022-01-31 18:59               ` Roger Heflin [this message]
2022-01-31 19:07                 ` Geoff Back
2022-01-31 19:21                   ` Phil Turmel
2022-01-31 19:46                     ` Roger Heflin
2022-01-31 20:04                     ` Geoff Back
2022-01-31 20:53                     ` Wols Lists
2022-01-29 15:21   ` David T-G

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=CAAMCDee0zoWB9ud6wxvfSj0rpswFde9dd2T3chur4R9YFnRPwQ@mail.gmail.com \
    --to=rogerheflin@gmail.com \
    --cc=antlists@youngman.org.uk \
    --cc=davidtg+robot@justpickone.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=nix@esperi.org.uk \
    --cc=philip@turmel.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).