2023-06-28 17:55:08 +00:00
|
|
|
btrfs(5)
|
|
|
|
========
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
This document describes topics related to BTRFS that are not specific to the
|
|
|
|
tools. Currently covers:
|
|
|
|
|
|
|
|
#. mount options
|
|
|
|
#. filesystem features
|
|
|
|
#. checksum algorithms
|
|
|
|
#. compression
|
2023-01-06 06:43:39 +00:00
|
|
|
#. sysfs interface
|
2021-10-26 22:45:24 +00:00
|
|
|
#. filesystem exclusive operations
|
|
|
|
#. filesystem limits
|
|
|
|
#. bootloader support
|
|
|
|
#. file attributes
|
|
|
|
#. zoned mode
|
|
|
|
#. control device
|
|
|
|
#. filesystems with multiple block group profiles
|
|
|
|
#. seeding device
|
2022-12-22 17:44:20 +00:00
|
|
|
#. RAID56 status and recommended practices
|
2022-05-12 18:50:04 +00:00
|
|
|
#. storage model, hardware considerations
|
2021-10-26 22:45:24 +00:00
|
|
|
|
2023-06-28 17:55:08 +00:00
|
|
|
.. _man-btrfs5-mount-options:
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
MOUNT OPTIONS
|
|
|
|
-------------
|
|
|
|
|
2022-01-11 23:09:29 +00:00
|
|
|
.. include:: ch-mount-options.rst
|
2021-10-26 22:45:24 +00:00
|
|
|
|
2023-06-01 18:46:06 +00:00
|
|
|
.. _man-btrfs5-filesystem-features:
|
|
|
|
|
2021-10-26 22:45:24 +00:00
|
|
|
FILESYSTEM FEATURES
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
The basic set of filesystem features gets extended over time. The backward
|
|
|
|
compatibility is maintained and the features are optional, need to be
|
|
|
|
explicitly asked for so accidental use will not create incompatibilities.
|
|
|
|
|
|
|
|
There are several classes and the respective tools to manage the features:
|
|
|
|
|
|
|
|
at mkfs time only
|
|
|
|
This is namely for core structures, like the b-tree nodesize or checksum
|
2023-06-28 17:55:08 +00:00
|
|
|
algorithm, see :doc:`mkfs.btrfs` for more details.
|
2021-10-26 22:45:24 +00:00
|
|
|
|
2022-09-23 09:48:45 +00:00
|
|
|
after mkfs, on an unmounted filesystem
|
2021-10-26 22:45:24 +00:00
|
|
|
Features that may optimize internal structures or add new structures to support
|
2023-06-28 17:55:08 +00:00
|
|
|
new functionality, see :doc:`btrfstune`. The command
|
2023-04-26 23:48:47 +00:00
|
|
|
:command:`btrfs inspect-internal dump-super /dev/sdx`
|
|
|
|
will dump a superblock, you can map the value of
|
2021-10-26 22:45:24 +00:00
|
|
|
*incompat_flags* to the features listed below
|
|
|
|
|
|
|
|
after mkfs, on a mounted filesystem
|
|
|
|
The features of a filesystem (with a given UUID) are listed in
|
2023-06-28 17:55:08 +00:00
|
|
|
:file:`/sys/fs/btrfs/UUID/features/`, one file per feature. The status is stored
|
2021-10-26 22:45:24 +00:00
|
|
|
inside the file. The value *1* is for enabled and active, while *0* means the
|
|
|
|
feature was enabled at mount time but turned off afterwards.
|
|
|
|
|
|
|
|
Whether a particular feature can be turned on a mounted filesystem can be found
|
2023-06-28 17:55:08 +00:00
|
|
|
in the directory :file:`/sys/fs/btrfs/features/`, one file per feature. The value *1*
|
2021-10-26 22:45:24 +00:00
|
|
|
means the feature can be enabled.
|
|
|
|
|
2023-06-28 17:55:08 +00:00
|
|
|
List of features (see also :doc:`mkfs.btrfs` section
|
2023-06-01 18:46:06 +00:00
|
|
|
:ref:`FILESYSTEM FEATURES<man-mkfs-filesystem-features>`):
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
big_metadata
|
|
|
|
(since: 3.4)
|
|
|
|
|
|
|
|
the filesystem uses *nodesize* for metadata blocks, this can be bigger than the
|
|
|
|
page size
|
|
|
|
|
2023-04-11 02:31:06 +00:00
|
|
|
block_group_tree
|
|
|
|
(since: 6.1)
|
|
|
|
|
|
|
|
block group item representation using a dedicated b-tree, this can greatly
|
|
|
|
reduce mount time for large filesystems
|
|
|
|
|
2021-10-26 22:45:24 +00:00
|
|
|
compress_lzo
|
|
|
|
(since: 2.6.38)
|
|
|
|
|
|
|
|
the *lzo* compression has been used on the filesystem, either as a mount option
|
2023-04-26 23:48:47 +00:00
|
|
|
or via :command:`btrfs filesystem defrag`.
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
compress_zstd
|
|
|
|
(since: 4.14)
|
|
|
|
|
|
|
|
the *zstd* compression has been used on the filesystem, either as a mount option
|
2023-04-26 23:48:47 +00:00
|
|
|
or via :command:`btrfs filesystem defrag`.
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
default_subvol
|
|
|
|
(since: 2.6.34)
|
|
|
|
|
|
|
|
the default subvolume has been set on the filesystem
|
|
|
|
|
|
|
|
extended_iref
|
|
|
|
(since: 3.7)
|
|
|
|
|
|
|
|
increased hardlink limit per file in a directory to 65536, older kernels
|
|
|
|
supported a varying number of hardlinks depending on the sum of all file name
|
|
|
|
sizes that can be stored into one metadata block
|
|
|
|
|
|
|
|
free_space_tree
|
|
|
|
(since: 4.5)
|
|
|
|
|
|
|
|
free space representation using a dedicated b-tree, successor of v1 space cache
|
|
|
|
|
|
|
|
metadata_uuid
|
|
|
|
(since: 5.0)
|
|
|
|
|
|
|
|
the main filesystem UUID is the metadata_uuid, which stores the new UUID only
|
|
|
|
in the superblock while all metadata blocks still have the UUID set at mkfs
|
2023-06-28 17:55:08 +00:00
|
|
|
time, see :doc:`btrfstune` for more
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
mixed_backref
|
|
|
|
(since: 2.6.31)
|
|
|
|
|
|
|
|
the last major disk format change, improved backreferences, now default
|
|
|
|
|
|
|
|
mixed_groups
|
|
|
|
(since: 2.6.37)
|
|
|
|
|
2022-12-07 20:00:25 +00:00
|
|
|
mixed data and metadata block groups, i.e. the data and metadata are not
|
2021-10-26 22:45:24 +00:00
|
|
|
separated and occupy the same block groups, this mode is suitable for small
|
|
|
|
volumes as there are no constraints how the remaining space should be used
|
|
|
|
(compared to the split mode, where empty metadata space cannot be used for data
|
|
|
|
and vice versa)
|
|
|
|
|
|
|
|
on the other hand, the final layout is quite unpredictable and possibly highly
|
|
|
|
fragmented, which means worse performance
|
|
|
|
|
|
|
|
no_holes
|
|
|
|
(since: 3.14)
|
|
|
|
|
|
|
|
improved representation of file extents where holes are not explicitly
|
|
|
|
stored as an extent, saves a few percent of metadata if sparse files are used
|
|
|
|
|
|
|
|
raid1c34
|
|
|
|
(since: 5.5)
|
|
|
|
|
|
|
|
extended RAID1 mode with copies on 3 or 4 devices respectively
|
|
|
|
|
2024-04-24 13:35:09 +00:00
|
|
|
raid_stripe_tree
|
|
|
|
(since: 6.7)
|
|
|
|
|
|
|
|
a separate tree for tracking file extents on RAID profiles
|
|
|
|
|
2022-12-22 17:44:20 +00:00
|
|
|
RAID56
|
2021-10-26 22:45:24 +00:00
|
|
|
(since: 3.9)
|
|
|
|
|
2022-12-22 17:44:20 +00:00
|
|
|
the filesystem contains or contained a RAID56 profile of block groups
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
rmdir_subvol
|
|
|
|
(since: 4.18)
|
|
|
|
|
2024-02-16 08:37:55 +00:00
|
|
|
indicate that :manref:`rmdir(2)` syscall can delete an empty subvolume just like an
|
2021-10-26 22:45:24 +00:00
|
|
|
ordinary directory. Note that this feature only depends on the kernel version.
|
|
|
|
|
|
|
|
skinny_metadata
|
|
|
|
(since: 3.10)
|
|
|
|
|
|
|
|
reduced-size metadata for extent references, saves a few percent of metadata
|
|
|
|
|
|
|
|
send_stream_version
|
|
|
|
(since: 5.10)
|
|
|
|
|
|
|
|
number of the highest supported send stream version
|
|
|
|
|
2024-04-24 13:35:09 +00:00
|
|
|
simple_quota
|
|
|
|
(since: 6.7)
|
|
|
|
|
|
|
|
simplified quota accounting
|
|
|
|
|
2021-10-26 22:45:24 +00:00
|
|
|
supported_checksums
|
|
|
|
(since: 5.5)
|
|
|
|
|
|
|
|
list of checksum algorithms supported by the kernel module, the respective
|
|
|
|
modules or built-in implementing the algorithms need to be present to mount
|
2023-06-28 17:55:08 +00:00
|
|
|
the filesystem, see section :ref:`CHECKSUM ALGORITHMS<man-mkfs-checksum-algorithms>`.
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
supported_sectorsizes
|
|
|
|
(since: 5.13)
|
|
|
|
|
2023-04-26 23:48:47 +00:00
|
|
|
list of values that are accepted as sector sizes (:command:`mkfs.btrfs --sectorsize`) by
|
2021-10-26 22:45:24 +00:00
|
|
|
the running kernel
|
|
|
|
|
|
|
|
supported_rescue_options
|
|
|
|
(since: 5.11)
|
|
|
|
|
|
|
|
list of values for the mount option *rescue* that are supported by the running
|
2023-06-28 17:55:08 +00:00
|
|
|
kernel, see :doc:`btrfs-man5`
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
zoned
|
|
|
|
(since: 5.12)
|
|
|
|
|
|
|
|
zoned mode is allocation/write friendly to host-managed zoned devices,
|
|
|
|
allocation space is partitioned into fixed-size zones that must be updated
|
2023-06-28 17:55:08 +00:00
|
|
|
sequentially, see section :ref:`ZONED MODE<man-btrfs5-zoned-mode>`
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
SWAPFILE SUPPORT
|
2022-01-11 22:56:25 +00:00
|
|
|
----------------
|
2021-10-26 22:45:24 +00:00
|
|
|
|
2022-01-11 22:56:25 +00:00
|
|
|
.. include:: ch-swapfile.rst
|
2021-10-26 22:45:24 +00:00
|
|
|
|
2023-06-01 18:46:06 +00:00
|
|
|
.. _man-mkfs-checksum-algorithms:
|
|
|
|
|
2021-10-26 22:45:24 +00:00
|
|
|
CHECKSUM ALGORITHMS
|
|
|
|
-------------------
|
|
|
|
|
2021-12-09 19:46:42 +00:00
|
|
|
.. include:: ch-checksumming.rst
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
COMPRESSION
|
|
|
|
-----------
|
|
|
|
|
2021-12-09 19:46:42 +00:00
|
|
|
.. include:: ch-compression.rst
|
2021-10-26 22:45:24 +00:00
|
|
|
|
2023-01-06 06:43:39 +00:00
|
|
|
SYSFS INTERFACE
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. include:: ch-sysfs.rst
|
|
|
|
|
2023-06-01 18:46:06 +00:00
|
|
|
.. _man-btrfs5-fileysstem-exclusive-operations:
|
|
|
|
|
2021-10-26 22:45:24 +00:00
|
|
|
FILESYSTEM EXCLUSIVE OPERATIONS
|
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
There are several operations that affect the whole filesystem and cannot be run
|
2022-05-12 18:33:03 +00:00
|
|
|
in parallel. Attempt to start one while another is running will fail (see
|
|
|
|
exceptions below).
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
Since kernel 5.10 the currently running operation can be obtained from
|
2023-06-28 17:55:08 +00:00
|
|
|
:file:`/sys/fs/UUID/exclusive_operation` with following values and operations:
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
* balance
|
2022-05-12 18:33:03 +00:00
|
|
|
* balance paused (since 5.17)
|
2021-10-26 22:45:24 +00:00
|
|
|
* device add
|
|
|
|
* device delete
|
|
|
|
* device replace
|
|
|
|
* resize
|
|
|
|
* swapfile activate
|
|
|
|
* none
|
|
|
|
|
|
|
|
Enqueuing is supported for several btrfs subcommands so they can be started
|
|
|
|
at once and then serialized.
|
|
|
|
|
2022-05-12 18:33:03 +00:00
|
|
|
There's an exception when a paused balance allows to start a device add
|
|
|
|
operation as they don't really collide and this can be used to add more space
|
|
|
|
for the balance to finish.
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
FILESYSTEM LIMITS
|
|
|
|
-----------------
|
|
|
|
|
2022-05-12 18:35:51 +00:00
|
|
|
.. include:: ch-fs-limits.rst
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
BOOTLOADER SUPPORT
|
|
|
|
------------------
|
|
|
|
|
2022-05-12 18:27:21 +00:00
|
|
|
.. include:: ch-bootloaders.rst
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
FILE ATTRIBUTES
|
|
|
|
---------------
|
|
|
|
|
2022-01-18 20:26:07 +00:00
|
|
|
.. include:: ch-file-attributes.rst
|
2021-10-26 22:45:24 +00:00
|
|
|
|
2023-06-01 18:46:06 +00:00
|
|
|
.. _man-btrfs5-zoned-mode:
|
|
|
|
|
2021-10-26 22:45:24 +00:00
|
|
|
ZONED MODE
|
|
|
|
----------
|
|
|
|
|
2021-12-17 09:49:39 +00:00
|
|
|
.. include:: ch-zoned-intro.rst
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
CONTROL DEVICE
|
|
|
|
--------------
|
|
|
|
|
2023-06-28 17:55:08 +00:00
|
|
|
There's a character special device :file:`/dev/btrfs-control` with major and minor
|
|
|
|
numbers 10 and 234 (the device can be found under the *misc* category).
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
$ ls -l /dev/btrfs-control
|
|
|
|
crw------- 1 root root 10, 234 Jan 1 12:00 /dev/btrfs-control
|
|
|
|
|
|
|
|
The device accepts some ioctl calls that can perform following actions on the
|
|
|
|
filesystem module:
|
|
|
|
|
2022-12-07 20:00:25 +00:00
|
|
|
* scan devices for btrfs filesystem (i.e. to let multi-device filesystems mount
|
2021-10-26 22:45:24 +00:00
|
|
|
automatically) and register them with the kernel module
|
|
|
|
* similar to scan, but also wait until the device scanning process is finished
|
|
|
|
for a given filesystem
|
2023-06-28 17:55:08 +00:00
|
|
|
* get the supported features (can be also found under :file:`/sys/fs/btrfs/features`)
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
The device is created when btrfs is initialized, either as a module or a
|
|
|
|
built-in functionality and makes sense only in connection with that. Running
|
2022-12-07 20:00:25 +00:00
|
|
|
e.g. mkfs without the module loaded will not register the device and will
|
2021-10-26 22:45:24 +00:00
|
|
|
probably warn about that.
|
|
|
|
|
|
|
|
In rare cases when the module is loaded but the device is not present (most
|
|
|
|
likely accidentally deleted), it's possible to recreate it by
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
# mknod --mode=600 /dev/btrfs-control c 10 234
|
|
|
|
|
|
|
|
or (since 5.11) by a convenience command
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
# btrfs rescue create-control-device
|
|
|
|
|
|
|
|
The control device is not strictly required but the device scanning will not
|
|
|
|
work and a workaround would need to be used to mount a multi-device filesystem.
|
|
|
|
The mount option *device* can trigger the device scanning during mount, see
|
2023-04-26 23:48:47 +00:00
|
|
|
also :command:`btrfs device scan`.
|
2021-10-26 22:45:24 +00:00
|
|
|
|
2023-06-01 18:46:06 +00:00
|
|
|
.. _man-btrfs5-filesystem-with-multiple-profiles:
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
FILESYSTEM WITH MULTIPLE PROFILES
|
|
|
|
---------------------------------
|
|
|
|
|
|
|
|
It is possible that a btrfs filesystem contains multiple block group profiles
|
|
|
|
of the same type. This could happen when a profile conversion using balance
|
2023-06-28 17:55:08 +00:00
|
|
|
filters is interrupted (see :doc:`btrfs-balance`). Some
|
2023-04-26 23:48:47 +00:00
|
|
|
:command:`btrfs` commands perform
|
2021-10-26 22:45:24 +00:00
|
|
|
a test to detect this kind of condition and print a warning like this:
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
WARNING: Multiple block group profiles detected, see 'man btrfs(5)'.
|
|
|
|
WARNING: Data: single, raid1
|
|
|
|
WARNING: Metadata: single, raid1
|
|
|
|
|
2023-04-26 23:48:47 +00:00
|
|
|
The corresponding output of :command:`btrfs filesystem df` might look like:
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
WARNING: Multiple block group profiles detected, see 'man btrfs(5)'.
|
|
|
|
WARNING: Data: single, raid1
|
|
|
|
WARNING: Metadata: single, raid1
|
|
|
|
Data, RAID1: total=832.00MiB, used=0.00B
|
|
|
|
Data, single: total=1.63GiB, used=0.00B
|
|
|
|
System, single: total=4.00MiB, used=16.00KiB
|
|
|
|
Metadata, single: total=8.00MiB, used=112.00KiB
|
|
|
|
Metadata, RAID1: total=64.00MiB, used=32.00KiB
|
|
|
|
GlobalReserve, single: total=16.25MiB, used=0.00B
|
|
|
|
|
|
|
|
There's more than one line for type *Data* and *Metadata*, while the profiles
|
|
|
|
are *single* and *RAID1*.
|
|
|
|
|
|
|
|
This state of the filesystem OK but most likely needs the user/administrator to
|
|
|
|
take an action and finish the interrupted tasks. This cannot be easily done
|
|
|
|
automatically, also the user knows the expected final profiles.
|
|
|
|
|
|
|
|
In the example above, the filesystem started as a single device and *single*
|
|
|
|
block group profile. Then another device was added, followed by balance with
|
|
|
|
*convert=raid1* but for some reason hasn't finished. Restarting the balance
|
|
|
|
with *convert=raid1* will continue and end up with filesystem with all block
|
|
|
|
group profiles *RAID1*.
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
If you're familiar with balance filters, you can use
|
|
|
|
*convert=raid1,profiles=single,soft*, which will take only the unconverted
|
|
|
|
*single* profiles and convert them to *raid1*. This may speed up the conversion
|
|
|
|
as it would not try to rewrite the already convert *raid1* profiles.
|
|
|
|
|
|
|
|
Having just one profile is desired as this also clearly defines the profile of
|
|
|
|
newly allocated block groups, otherwise this depends on internal allocation
|
|
|
|
policy. When there are multiple profiles present, the order of selection is
|
2022-12-22 17:44:20 +00:00
|
|
|
RAID56, RAID10, RAID1, RAID0 as long as the device number constraints are
|
2021-10-26 22:45:24 +00:00
|
|
|
satisfied.
|
|
|
|
|
|
|
|
Commands that print the warning were chosen so they're brought to user
|
|
|
|
attention when the filesystem state is being changed in that regard. This is:
|
2023-04-26 23:48:47 +00:00
|
|
|
:command:`device add`, :command:`device delete`, :command:`balance cancel`, :command:`balance pause`. Commands
|
|
|
|
that report space usage: :command:`filesystem df`, :command:`device usage`. The command
|
|
|
|
:command:`filesystem usage` provides a line in the overall summary:
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
Multiple profiles: yes (data, metadata)
|
|
|
|
|
2023-06-01 18:46:06 +00:00
|
|
|
.. _man-btrfs5-seeding-device:
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
SEEDING DEVICE
|
|
|
|
--------------
|
|
|
|
|
2021-12-09 19:46:42 +00:00
|
|
|
.. include:: ch-seeding-device.rst
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
RAID56 STATUS AND RECOMMENDED PRACTICES
|
|
|
|
---------------------------------------
|
|
|
|
|
|
|
|
The RAID56 feature provides striping and parity over several devices, same as
|
|
|
|
the traditional RAID5/6. There are some implementation and design deficiencies
|
|
|
|
that make it unreliable for some corner cases and the feature **should not be
|
|
|
|
used in production, only for evaluation or testing**. The power failure safety
|
|
|
|
for metadata with RAID56 is not 100%.
|
|
|
|
|
|
|
|
Metadata
|
|
|
|
^^^^^^^^
|
|
|
|
|
|
|
|
Do not use *raid5* nor *raid6* for metadata. Use *raid1* or *raid1c3*
|
|
|
|
respectively.
|
|
|
|
|
|
|
|
The substitute profiles provide the same guarantees against loss of 1 or 2
|
|
|
|
devices, and in some respect can be an improvement. Recovering from one
|
|
|
|
missing device will only need to access the remaining 1st or 2nd copy, that in
|
|
|
|
general may be stored on some other devices due to the way RAID1 works on
|
|
|
|
btrfs, unlike on a striped profile (similar to *raid0*) that would need all
|
|
|
|
devices all the time.
|
|
|
|
|
2022-12-07 20:00:25 +00:00
|
|
|
The space allocation pattern and consumption is different (e.g. on N devices):
|
2021-10-26 22:45:24 +00:00
|
|
|
for *raid5* as an example, a 1GiB chunk is reserved on each device, while with
|
|
|
|
*raid1* there's each 1GiB chunk stored on 2 devices. The consumption of each
|
|
|
|
1GiB of used metadata is then *N * 1GiB* for vs *2 * 1GiB*. Using *raid1*
|
|
|
|
is also more convenient for balancing/converting to other profile due to lower
|
|
|
|
requirement on the available chunk space.
|
|
|
|
|
|
|
|
Missing/incomplete support
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
When RAID56 is on the same filesystem with different raid profiles, the space
|
2023-04-26 23:48:47 +00:00
|
|
|
reporting is inaccurate, e.g. :command:`df`, :command:`btrfs filesystem df` or
|
|
|
|
:command:`btrfs filesystem usage`. When there's only a one profile per block
|
|
|
|
group type (e.g. RAID5 for data) the reporting is accurate.
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
When scrub is started on a RAID56 filesystem, it's started on all devices that
|
|
|
|
degrade the performance. The workaround is to start it on each device
|
|
|
|
separately. Due to that the device stats may not match the actual state and
|
|
|
|
some errors might get reported multiple times.
|
|
|
|
|
2022-05-13 15:42:14 +00:00
|
|
|
The *write hole* problem. An unclean shutdown could leave a partially written
|
|
|
|
stripe in a state where the some stripe ranges and the parity are from the old
|
|
|
|
writes and some are new. The information which is which is not tracked. Write
|
|
|
|
journal is not implemented. Alternatively a full read-modify-write would make
|
|
|
|
sure that a full stripe is always written, avoiding the write hole completely,
|
|
|
|
but performance in that case turned out to be too bad for use.
|
|
|
|
|
|
|
|
The striping happens on all available devices (at the time the chunks were
|
|
|
|
allocated), so in case a new device is added it may not be utilized
|
|
|
|
immediately and would require a rebalance. A fixed configured stripe width is
|
|
|
|
not implemented.
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
|
2022-05-12 18:50:04 +00:00
|
|
|
STORAGE MODEL, HARDWARE CONSIDERATIONS
|
|
|
|
--------------------------------------
|
2021-10-26 22:45:24 +00:00
|
|
|
|
2022-05-12 18:39:29 +00:00
|
|
|
.. include:: ch-hardware-considerations.rst
|
2021-10-26 22:45:24 +00:00
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
2024-02-16 08:37:55 +00:00
|
|
|
:manref:`acl(5)`,
|
2023-06-28 17:55:08 +00:00
|
|
|
:doc:`btrfs`,
|
2024-02-16 08:37:55 +00:00
|
|
|
:manref:`chattr(1)`,
|
|
|
|
:manref:`fstrim(8)`,
|
|
|
|
:manref:`ioctl(2)`,
|
2023-06-28 17:55:08 +00:00
|
|
|
:doc:`mkfs.btrfs`,
|
2024-02-16 08:37:55 +00:00
|
|
|
:manref:`mount(8)`,
|
|
|
|
:manref:`swapon(8)`
|