Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jul 2023 12:05:38 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Alan Somers <asomers@freebsd.org>
Cc:        scsi@freebsd.org
Subject:   Re: ASC/ASCQ Review
Message-ID:  <CANCZdfq5qti5uzWLkZaQEpyd5Q255sQeaR_kC_OQinmE9Qcqaw@mail.gmail.com>
In-Reply-To: <CAOtMX2g4%2BSDWg9WKbwZcqh4GpRan593O6qtNf7feoVejVK0YyQ@mail.gmail.com>
References:  <CANCZdfokEoRtNp0en=9pjLQSQ%2BjtmfwH3OOwz1z09VcwWpE%2Bxg@mail.gmail.com> <CAOtMX2g4%2BSDWg9WKbwZcqh4GpRan593O6qtNf7feoVejVK0YyQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000007aa3d30600764c4a
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Fri, Jul 14, 2023, 11:12 AM Alan Somers <asomers@freebsd.org> wrote:

> On Thu, Jul 13, 2023 at 12:14=E2=80=AFPM Warner Losh <imp@bsdimp.com> wro=
te:
> >
> > Greetings,
> >
> > i've been looking closely at failed drives for $WORK lately. I've
> noticed that a lot of errors that kinda sound like fatal errors have
> SS_RDEF set on them.
> >
> > What's the process for evaluating whether those error codes are worth
> retrying. There are several errors that we seem to be seeing (preliminary
> read of the data) before the drive gives up the ghost altogether. For tho=
se
> cases, I'd like to post more specific lists. Should I do that here?
> >
> > Independent of that, I may want to have a more aggressive 'fail fast'
> policy than is appropriate for my work load (we have a lot of data that's=
 a
> copy of a copy of a copy, so if we lose it, we don't care: we'll just
> delete any files we can't read and get on with life, though I know others
> will have a more conservative attitude towards data that might be preciou=
s
> and unique). I can set the number of retries lower, I can do some other
> hacks for disks that tell the disk to fail faster, but I think part of th=
e
> solution is going to have to be failing for some sense-code/ASC/ASCQ tupl=
es
> that we don't want to fail in upstream or the general case. I was thinkin=
g
> of identifying those and creating a 'global quirk table' that gets applie=
d
> after the drive-specific quirk table that would let $WORK override the
> defaults, while letting others keep the current behavior. IMHO, it would =
be
> better to have these separate rather than in the global data for tracking
> upstream...
> >
> > Is that clear, or should I give concrete examples?
> >
> > Comments?
> >
> > Warner
>
> Basically, you want to change the retry counts for certain ASC/ASCQ
> codes only, on a site-by-site basis?  That sounds reasonable.  Would
> it be configurable at runtime or only at build time?
>

I'd like to change the default actions. But maybe we just do that for
everyone and assume modern drives...

Also, I've been thinking lately that it would be real nice if READ
> UNRECOVERABLE could be translated to EINTEGRITY instead of EIO.  That
> would let consumers know that retries are pointless, but that the data
> is probably healable.
>

Unlikely, unless you've tuned things to not try for long at recovery...

But regardless... do you have a concrete example of a use case? There's a
number of places that map any error to EIO. And I'd like a use case before
we expand the errors the lower layers return...

Warner

>

--0000000000007aa3d30600764c4a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Fri, Jul 14, 2023, 11:12 AM Alan Somers &lt;<a href=
=3D"mailto:asomers@freebsd.org">asomers@freebsd.org</a>&gt; wrote:<br></div=
><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1=
px #ccc solid;padding-left:1ex">On Thu, Jul 13, 2023 at 12:14=E2=80=AFPM Wa=
rner Losh &lt;<a href=3D"mailto:imp@bsdimp.com" target=3D"_blank" rel=3D"no=
referrer">imp@bsdimp.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Greetings,<br>
&gt;<br>
&gt; i&#39;ve been looking closely at failed drives for $WORK lately. I&#39=
;ve noticed that a lot of errors that kinda sound like fatal errors have SS=
_RDEF set on them.<br>
&gt;<br>
&gt; What&#39;s the process for evaluating whether those error codes are wo=
rth retrying. There are several errors that we seem to be seeing (prelimina=
ry read of the data) before the drive gives up the ghost altogether. For th=
ose cases, I&#39;d like to post more specific lists. Should I do that here?=
<br>
&gt;<br>
&gt; Independent of that, I may want to have a more aggressive &#39;fail fa=
st&#39; policy than is appropriate for my work load (we have a lot of data =
that&#39;s a copy of a copy of a copy, so if we lose it, we don&#39;t care:=
 we&#39;ll just delete any files we can&#39;t read and get on with life, th=
ough I know others will have a more conservative attitude towards data that=
 might be precious and unique). I can set the number of retries lower, I ca=
n do some other hacks for disks that tell the disk to fail faster, but I th=
ink part of the solution is going to have to be failing for some sense-code=
/ASC/ASCQ tuples that we don&#39;t want to fail in upstream or the general =
case. I was thinking of identifying those and creating a &#39;global quirk =
table&#39; that gets applied after the drive-specific quirk table that woul=
d let $WORK override the defaults, while letting others keep the current be=
havior. IMHO, it would be better to have these separate rather than in the =
global data for tracking upstream...<br>
&gt;<br>
&gt; Is that clear, or should I give concrete examples?<br>
&gt;<br>
&gt; Comments?<br>
&gt;<br>
&gt; Warner<br>
<br>
Basically, you want to change the retry counts for certain ASC/ASCQ<br>
codes only, on a site-by-site basis?=C2=A0 That sounds reasonable.=C2=A0 Wo=
uld<br>
it be configurable at runtime or only at build time?<br></blockquote></div>=
</div><div dir=3D"auto"><br></div><div dir=3D"auto">I&#39;d like to change =
the default actions. But maybe we just do that for everyone and assume mode=
rn drives...</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=
=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex">
Also, I&#39;ve been thinking lately that it would be real nice if READ<br>
UNRECOVERABLE could be translated to EINTEGRITY instead of EIO.=C2=A0 That<=
br>
would let consumers know that retries are pointless, but that the data<br>
is probably healable.<br></blockquote></div></div><div dir=3D"auto"><br></d=
iv><div dir=3D"auto">Unlikely, unless you&#39;ve tuned things to not try fo=
r long at recovery...=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"au=
to">But regardless... do you have a concrete example of a use case? There&#=
39;s a number of places that map any error to EIO. And I&#39;d like a use c=
ase before we expand the errors the lower layers return...</div><div dir=3D=
"auto"><br></div><div dir=3D"auto">Warner</div><div dir=3D"auto"><div class=
=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>

--0000000000007aa3d30600764c4a--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfq5qti5uzWLkZaQEpyd5Q255sQeaR_kC_OQinmE9Qcqaw>