From: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
To: Linux fs Btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Is it safe to use btrfs on top of different types of devices?
Date: Wed, 18 Oct 2017 10:30:25 -0400 [thread overview]
Message-ID: <cc34039f-9e84-c280-c793-1e381cbb2001@gmail.com> (raw)
In-Reply-To: <23015.23766.971947.937708@tree.ty.sabi.co.uk>
On 2017-10-18 09:53, Peter Grandi wrote:
>>> I forget sometimes that people insist on storing large
>>> volumes of data on unreliable storage...
>
> Here obviously "unreliable" is used on the sense of storage that
> can work incorrectly, not in the sense of storage that can fail.
Um, in what world is a device randomly dropping off the bus (this is the
primary issue with USB for storage) not a failure? Yes, it's not a
catastrophic failure (for BTRFS at least), and it's transient (the
kernel will re-enumerate the device when it resets the bus), but that
doesn't change the fact that the service that is supposed to be provided
by the device failed.
To clarify more concretely, when I say 'unreliable' in reference to
computers technology (and for that matter, almost anything else), I mean
something that encounters non-trivial error states, either correctable
or uncorrectable, at a frequency above that which is deemed reasonable
for the designed function of the device.
>
>> In my opinion the unreliability of the storage is the exact
>> reason for wanting to use raid1. And I think any problem one
>> encounters with an unreliable disk can likely happen with more
>> reliable ones as well, only less frequently, so if I don't
>> feel comfortable using raid1 on an unreliable medium then I
>> wouldn't trust it on a more reliable one either.
>
> Oh please, please a bit less silliness would be welcome here.
> In a previous comment on this tedious thread I had written:
>
> > If the block device abstraction layer and lower layers work
> > correctly, Btrfs does not have problems of that sort when
> > adding new devices; conversely if the block device layer and
> > lower layers do not work correctly, no mainline Linux
> > filesystem I know can cope with that.
>
> > Note: "work correctly" does not mean "work error-free".
>
> The last line is very important and I added it advisedly.
>
> You seem to be using "unreliable" in two completely different
> meanings, without realizing it, as both "working incorrectly"
> and "reporting a failure". They are really very different.
And you seem to be using the term 'failure' to only mean 'catastrophic
failure'. Strictly speaking, even that is 'working incorrectly', albeit
in a much more specific and permanent manner than just returning errors.
Even looking at things that way though, Zoltan's assessment that
reliability is essentially a measure of error rate is correct. Internal
SATA devices absolutely can randomly drop off the bus just like many USB
storage devices do, but it almost never happens (it's a statistical
impossibility if there are no hardware or firmware issues), so they are
more reliable in that respect.
>
> The "working incorrectly" general case is the so called
> "bizantine generals problem" and (depending on assumptions) it
> is insoluble.
>
> Btrfs has some limited ability to detect (and sometimes recover
> from) "working incorrectly" storage layers, but don't expect too
> much from that.
next prev parent reply other threads:[~2017-10-18 14:30 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-14 19:00 Is it safe to use btrfs on top of different types of devices? Zoltán Ivánfi
2017-10-15 0:19 ` Peter Grandi
2017-10-15 3:42 ` Duncan
2017-10-15 8:30 ` Zoltán Ivánfi
2017-10-15 12:05 ` Duncan
2017-10-16 11:53 ` Austin S. Hemmelgarn
2017-10-16 16:57 ` Zoltan
2017-10-16 17:27 ` Austin S. Hemmelgarn
2017-10-17 1:14 ` Adam Borowski
2017-10-17 11:26 ` Austin S. Hemmelgarn
2017-10-17 11:42 ` Zoltan
2017-10-17 12:40 ` Austin S. Hemmelgarn
2017-10-17 17:06 ` Adam Borowski
2017-10-17 19:19 ` Austin S. Hemmelgarn
2017-10-17 20:21 ` Adam Borowski
2017-10-17 21:56 ` Zoltán Ivánfi
2017-10-18 4:44 ` Duncan
2017-10-18 14:07 ` Peter Grandi
2017-10-18 11:30 ` Austin S. Hemmelgarn
2017-10-18 11:59 ` Adam Borowski
2017-10-18 14:30 ` Austin S. Hemmelgarn
2017-10-18 4:50 ` Duncan
2017-10-18 13:53 ` Peter Grandi
2017-10-18 14:30 ` Austin S. Hemmelgarn [this message]
2017-10-19 11:01 ` Peter Grandi
2017-10-19 12:32 ` Austin S. Hemmelgarn
2017-10-19 18:39 ` Peter Grandi
2017-10-20 11:53 ` Austin S. Hemmelgarn
2017-10-19 13:48 ` Zoltan
2017-10-19 14:27 ` Austin S. Hemmelgarn
2017-10-19 14:42 ` Zoltan
2017-10-19 15:07 ` Austin S. Hemmelgarn
2017-10-19 18:00 ` Peter Grandi
2017-10-19 17:56 ` Peter Grandi
2017-10-19 18:59 ` Peter Grandi
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=cc34039f-9e84-c280-c793-1e381cbb2001@gmail.com \
--to=ahferroin7@gmail.com \
--cc=linux-btrfs@vger.kernel.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).