mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-17 20:05:24 +00:00
btrfs-procs: docs: add warning about balance to replace failing device
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 <csnover@users.noreply.github.com> [ 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 <wqu@suse.com>
This commit is contained in:
parent
d832a32d8d
commit
18dcd2d6d0
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user