Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btrfs-progs: doc: add a warning when converting to a profile with lower #945

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion Documentation/ch-balance-filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,24 @@ convert=<profile>
Starting with kernel 4.5, the ``data`` chunks can be converted to/from the
``DUP`` profile on a single device.

.. note::
Starting with kernel 4.6, all profiles can be converted to/from ``DUP`` on
multi-device filesystems.

.. warning::
Btrfs doesn't detect bad/missing devices at runtime, thus if
there is a known failing device, or a device is deleted by
``/sys/block/<dev>/device/delete`` sysfs interface, btrfs will still
access and try to write into that failing/removed device.

In such case, one should not convert to a profile with lower
duplication (e.g. from ``RAID1`` to ``SINGLE``), as btrfs can
create new chunks on that failing/removed device, and cause
various problems.

And the proper action is to use ``btrfs replace`` or
``btrfs device remove`` to handle the failing/missing
device first. Then convert with all devices working correctly.

limit=<number>, limit=<range>
Process only given number of chunks, after all filters are applied. This can be
used to specifically target a chunk in connection with other filters (``drange``,
Expand Down