Difference between revisions of "Btrfs Maintenance"

rrd
(rotating disks)
(rrd)
Line 86: Line 86:
== special cases ==
== special cases ==
There seem to be some cases where additional maintenance is needed.
There seem to be some cases where additional maintenance is needed.
==== ssd ====
==== SSD ====
===== Read Rate Degradation (not confirmed) =====
Btrfs is optimal for SSDs due to its CoW nature
This is not a problem of SSD's in general, but only of some rare cases. Replacing the firmware should solve the problem.
 
A possibility to test the read-speed with btrfs is to read all data (scrub). If your ssd seems to have this RRD-problem, a balance will help because it does rewrite all data to a new place. This can be done while the system is in use ! But do it only '''once''' a year !
===== Read rate degradation (unconfirmed) =====
This isn't a problem with SSDs in general, it just seems to happen in a few rare cases. Updating the firmware should then solve the problem.
One way to test the read speed with btrfs is to read out all the data (scrub). If your SSD seems to have this RRD issue, '''balancing''' will help so that all data is written to a new location. This can be done while the system is running! But please only '''once''' a year!
 
{{RootCmd|command=btrfs balance start --full-balance /}}
{{RootCmd|command=btrfs balance start --full-balance /}}
This will take a long time. You can shutdown your pc whenever you want. Dont't be surprised. the balance will restart after boot until it is finished !
This will take a long time. You can shut down your PC at any time. Do not be surprised. The "balance" will restart after booting until done!
 
If you want your data to rotate:


If you want to keep your data rotating ;-) do:
{{RootCmd|command=btrfs balance start -dlimit=10 /}}
{{RootCmd|command=btrfs balance start -dlimit=10 /}}
This will only rewrite 10 chunks. This can be used weekly if you think it is necessary.
This rewrites 10 chunks at a time. This can be used weekly if you find it necessary.


==== Rotating disks ====
==== Rotating disks ====
translator
1,001

edits