translator
1,001
edits
(Marked this version for translation) |
(include examples) |
||
Line 254: | Line 254: | ||
When adding devices or changing the RAID-level of your volume, it may be necessary to balance your volume. While balancing, btrfs will read ALL (or a subset of all) '''chunks''' in, and write them out again using the actual RAID-level. It will stripe these files over all available devices equally. While this happens, the volume will keep being usable, but you may see some '''heavy load''' on it. Also '''this may take a very long time''' because '''ALL data must be''' read AND '''written''' again. | When adding devices or changing the RAID-level of your volume, it may be necessary to balance your volume. While balancing, btrfs will read ALL (or a subset of all) '''chunks''' in, and write them out again using the actual RAID-level. It will stripe these files over all available devices equally. While this happens, the volume will keep being usable, but you may see some '''heavy load''' on it. Also '''this may take a very long time''' because '''ALL data must be''' read AND '''written''' again. | ||
Don´t worry about shutdown. When you shutdown your computer while the balance is running, the balance will pause. After you restart the computer the balance will restart and continue until it is finished. | Don´t worry about shutdown. When you shutdown your computer while the balance is running, the balance will pause. After you restart the computer the balance will restart and continue until it is finished. | ||
{{BoxDanger|Possible bug when using a swap file:| Never use a full-balance on a machine with a swapfile, since it will ignore +C Attributes. You may also have a look at [https://forum.manjaro.org/t/howto-enable-and-configure-hibernation-with-btrfs/51253/36] }} | |||
=== Filters === <!--T:60--> | === Filters === <!--T:60--> | ||
Because a complete balance may take '''a long time''', there is the possibility of filters in balance. When using a filter only those chunks will be balanced, that are named by the filter. | Because a complete balance may take '''a long time''', there is the possibility of filters in balance. When using a filter only those chunks will be balanced, that are named by the filter. | ||
{{ | * '''balance''' all chunks that are less than 50% full. This '''will''' take some time ! | ||
{{RootCmd|command=btrfs balance start -musage=50 -dusage=50 /}} | |||
* '''balance''' all chunks that are less than 90% full. This '''will''' take some time ! | |||
{{RootCmd|command=btrfs balance start -musage=90 -dusage=90 /}} | |||
=== Merging chunks === <!--T:61--> | === Merging chunks === <!--T:61--> |