On 2017-10-17 07:42, Zoltan wrote:
Hi,
On Tue, Oct 17, 2017 at 1:26 PM, Austin S. Hemmelgarn
<ahferro...@gmail.com> wrote:
I forget sometimes that people insist on storing large volumes of data on
unreliable storage...
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.
The thing is that you need some minimum degree of reliability in the
other components in the storage stack for it to be viable to use any
given storage technology. If you don't meet that minimum degree of
reliability, then you can't count on the reliability guarantees of the
storage technology.
As a more concrete example, reliable operation of a RAID5 array requires
a functional guarantee that a second disk won't fail during a rebuild of
the array. That fact gives an upper limit on the practical size of a
RAID5 array as a function of the failure rate of the disks and the time
it takes to rebuild the array. More specifically, the array has to be
small enough that it's a statistical impossibility that a second device
will fail during a rebuild of the array. Once the failure rate goes
above a certain value proportionate to the rebuild time, you end up in a
situation where you shouldn't be using RAID5 to protect against device
failure because it won't provide any net benefit (and FWIW< we're past
that point on most modern hardware when talking about typical enterprise
scale storage requirements).
As of right now, a rate of device disconnects above 0 invalidates that
reliability requirement for multi-device BTRFS (and it doesn't have to
be much above zero to invalidate it for MD and LVM, it just needs to be
high enough to make it statistically possible that it happens more than
once during a rebuild), and thus USB is not something that should be
considered a viable option for hosting a multi-device BTRFS array in
most cases.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html