Use it when configuring, checking or troubleshooting Btrfs in Filesystems.
Btrfs · Filesystems
Btrfs uses copy-on-write B-trees for metadata and data extents, maintains checksums, and allocates space through chunks/block groups. Logical free space, device free space and metadata/data allocation can therefore diverge.
1. Btrfs: COW, checksums, snapshots, subvolumes, RAID1/10.
2. RAID5/6 not recommended for production.
3. Metadata can fill before data — check filesystem usage.
4. Balance to rebalance chunks.
5. Scrub regularly.
file → COW B-trees → chunks → devices
Context & applicabilityCommon mistakes · platform/version boundaries
A mounted Btrfs filesystem shows current logical access, but it does not show every checksum is validated, redundant repair copies exist or allocation pressure is absent.
Suspicious evidence: checksum/device errors increase, metadata space is exhausted despite apparent free bytes, a member is missing, or snapshots are treated as backup.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
path/subvolume → Btrfs metadata trees → extent/checksum mapping → chunk/profile → device(s) → read verification
Healthy evidence: expected devices and profiles are present, data/metadata space is available, scrub/checksum state is clean and representative reads/writes succeed.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Btrfs snapshot ≠ independent backup.
- Checksum error ≠ automatic repair without another valid copy.
- df free space ≠ complete Btrfs allocation picture.
- Btrfs RAID profile ≠ traditional RAID implementation semantics in every case.
btrfs filesystem usage <mount>— allocation (data/metadata)btrfs device stats <mount>— error countersbtrfs scrub status <mount>— scrub result
ReferenceImportant terms & boundaries2 sections · depth on demand
Namespace and consistency
A mounted Btrfs filesystem shows current logical access, but it does not show every checksum is validated, redundant repair copies exist or allocation pressure is absent.
In depth
Btrfs is a copy-on-write filesystem with checksums, subvolumes, snapshots, compression, send/receive and built-in RAID profiles. Data and metadata can use different profiles (e.g. metadata raid1, data single).
btrfs filesystem usage /data # allocated vs used per profile
btrfs subvolume list /data
btrfs subvolume snapshot -r /data/@home /data/.snap/home-2026-11-04
btrfs scrub start -B /data
btrfs balance start -dusage=50 /data # compact half-empty data chunks
Btrfs RAID5/6 is still marked as not recommended for production. "No space left" with free space shown by df usually means metadata chunks are full — check btrfs filesystem usage and run a filtered balance.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Filesystems → Btrfs. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/filesystems/index.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Filesystems → Btrfs filesystem map
Fast namespace, metadata, capacity, attachment and verification boundaries for Filesystems → Btrfs.
| Filesystem boundary | What to verify | Proof limit |
|---|---|---|
| Identity / attachment | Filesystem type, source/backing object, mount/attachment target and effective options | Presence or mount state alone does not prove consistency or lower-layer health |
| Capacity / metadata | Data space, metadata/inodes, quotas/reservations and filesystem state | Free bytes at one layer do not prove allocation can succeed end to end |
| Failure boundary | A mounted Btrfs filesystem proves current logical access; it does not prove every checksum is validated, redundant repair copies exist or allocation pressure is absent. | Correlate filesystem evidence with the backing volume/path/backend before repair |
| Acceptance | Healthy evidence: expected devices and profiles are present, data/metadata space is available, scrub/checksum state is clean and representative reads/writes succeed. | Close only after the original path/workload and read-back check succeeds |