Skip to content

Commit

Permalink
btrfs-procs: docs: add warning about balance to replace failing device
Browse files Browse the repository at this point in the history
Since balance is copying the old good data/metadata into a new chunk
(which can be on the same failed device), it's not a safe way to handle
failed devices.

Signed-off-by: Colin Snover <[email protected]>
[ Add an SoB and simple commit message, remove the unnecessary
  explanation, and guide the user to use `btrfs dev replace` ]
Signed-off-by: Qu Wenruo <[email protected]>
  • Loading branch information
csnover authored and adam900710 committed Nov 4, 2024
1 parent d832a32 commit 18dcd2d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Documentation/ch-volume-management-intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,13 @@ In order to remove a device, you need to convert the profile in this case:
$ btrfs balance start -mconvert=dup -dconvert=single /mnt
$ btrfs device remove /dev/sda /mnt
.. warning::
Do not run balance to convert from a profile with more redundancy to one with
less redundancy in order to remove a failing device from a filesystem.

Balance is done by reading out the good metadata/data and write them into into a
new chunk.
Thus it's possible the new chunk is written into the failing device.

Use `btrfs device replace` instead.

0 comments on commit 18dcd2d

Please sign in to comment.