From: Vyacheslav Dubeyko <slava-yeENwD64cLxBDgjK7y7TUQ@public.gmane.org>
To: Clemens Eisserer <linuxhippy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Unrecovered read error issue
Date: Sun, 20 Dec 2015 13:55:30 -0800 [thread overview]
Message-ID: <1450648530.2807.20.camel@ubuntu-slavad-14.04> (raw)
In-Reply-To: <CAFvQSYTHYypic+bjUOxK=F81XgA1zOvviKkAKQuJ2fD==tn02w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi Clemens,
On Sun, 2015-12-20 at 19:34 +0100, Clemens Eisserer wrote:
> Hi Vyacheslav,
>
>
> > But I suppose that eMMC or SSD will do re-assignment of bad logical
> > sector into valid physical page on write operation. And I am not sure
> > that bad sector will be re-assigned on write operation for HDD case.
>
> Modern (SMART-capable) HDDs behave exactly the same - they have spare
> sectors and remap bad sectors when writing them. I "fixed" a laptop
> HDD once, which had a head-crash at the place where ext4's journal was
> located - a simple overwrite with dd fixed the drive.
>
Yes, such remapping technology should exists for HDD too. But HDD
opportunity for remapping of bad sectors is more limited because you
cannot reserve significant amount of spare sectors. Available free space
is really important feature. Maybe it is possible to compare a size of
SSD's overprovisioning and HDD's reserved spare sectors space. But SSD's
FTL is able to use any NAND erase block for remapping. And I suppose
that HDD's reserved spare sectors space is simply special contiguous
area of sectors. So, I think that probability to exhaust HDD's reserved
spare sectors is more higher for HDD case. It means that probability to
encounter write error because of impossibility to remap bad sector is
more higher for HDD case, from my point of view.
Another bad thing with using dd for cleaning some bad sectors is
impossibility to distinguish what you try to rewrite. Because you try to
rewrite as user data as metadata. Zeroing some space in ext4 journal is
not very critical action. You will simply lose one or several
transaction in the journal. It means that the file system will be in
consistent state anyway. You could lose some user data. But if you try
to rewrite by means of dd some arbitrary sector into file system volume
then consequence of such action is hard to forecast. So, the best way is
to track and to process the occurrence of unrecoverable read error on
file system side.
Thanks,
Vyacheslav Dubeyko.
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2015-12-20 21:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-19 1:26 Unrecovered read error issue Viacheslav Dubeyko
[not found] ` <1450488372.2652.25.camel-dzAnj6fV1RzTdvqWZYKEhEEK6ufn8VP3@public.gmane.org>
2015-12-19 7:17 ` Paul Fertser
[not found] ` <20151219071703.GP3706-VZXms658p7SUKArSQO4KrA@public.gmane.org>
2015-12-19 21:58 ` Vyacheslav Dubeyko
[not found] ` <1450562290.2693.9.camel-RC04EVaD3rlUdzgqiOAiT0EK6ufn8VP3@public.gmane.org>
2015-12-20 18:34 ` Clemens Eisserer
[not found] ` <CAFvQSYTHYypic+bjUOxK=F81XgA1zOvviKkAKQuJ2fD==tn02w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-20 21:55 ` Vyacheslav Dubeyko [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=1450648530.2807.20.camel@ubuntu-slavad-14.04 \
--to=slava-yeenwd64clxbdgjk7y7tuq@public.gmane.org \
--cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linuxhippy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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).