Difference between revisions of "Btrfs"

1,637 bytes added ,  2 years ago
first text for btrfs tools
(Tips moved to Solving Problems)
(first text for btrfs tools)
Line 310: Line 310:


= Btrfs Tools =
= Btrfs Tools =
For complete info an all tools for btrfs please do an actual search at the arch wiki and at the manjaro forum for "btrfs". In the following section only a few commands are described. Especially those commands that are often misinterpreted. Commands described earlier are omitted.


===Btrfs===
== btrfs (the command)==
Be aware that some sub-commands of btrfs will not work as normal user. Other sub-commands do work but will give only partial info. So best use them as ''root'' or with ''sudo''.


===btrfsck===
==== help, version ====
this is not what you think it is 😜
'''help''' together with '''man btrfs''' or '''info btrfs''' will get you an overview over the usable options on your install. {{UserCmd|command=btrfs help}}
 
With the '''version''' of btrfs given here you can look at [https://btrfs.wiki.kernel.org/index.php/Changelog changelog].{{UserCmd|command=btrfs version}}
 
==== device ====
'''scan''' will give no visible results 😜
{{RootCmd|command=btrfs device scan}}
 
'''stats''' will give a list of errors detected in the past. This all should be 0, or you may be in trouble.
{{RootCmd|command=btrfs device stats /}}
 
What to look for in device '''usage''':
* RAID-level of Data, Metadata and System
* Unalocated:
Don't ever let ''Unalocated:'' get below 5% of your volume (or double the size you need for your next update)! If this goes too low, you will get into "out of space" trouble
{{RootCmd|command=btrfs device usage /}}
Without sudo this will give very wrong results for everything displayed. '''Dont´t use this without sudo !'''
 
 
=== btrfs filesystem df / ===
 
=== btrfs filesystem du ===
=== btrfs filesystem show ===
=== btrfs filesystem usage ===
=== btrfs scrub status ===
 
 
==btrfsck==
This is not what you may think it is 😜


== Recomendations ==
== Recomendations ==
translator
1,001

edits