bcachefs-tools/docs/feat-durability.rst
2022-11-01 22:28:07 -04:00

17 lines
795 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Durability
~~~~~~~~~~
Some devices may be considered to be more reliable than others. For
example, we might have a filesystem composed of a hardware RAID array
and several NVME flash devices, to be used as cache. We can set
replicas=2 so that losing any of the NVME flash devices will not cause
us to lose data, and then additionally we can set durability=2 for the
hardware RAID device to tell bcachefs that we dont need extra replicas
for data on that device - data on that device will count as two
replicas, not just one.
The durability option can also be used for writethrough caching: by
setting durability=0 for a device, it can be used as a cache and only as
a cache - bcachefs wont consider copies on that device to count towards
the number of replicas were supposed to keep.