Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Btrfs · Filesystems

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting Btrfs in Filesystems.

First 30 seconds

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.

Operational verification

file → COW B-trees → chunks → devices

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and repair traps

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.

Platform / version applicability
Storage architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformStorage architecture and operations
Scope / prerequisiteUse it when configuring, checking or troubleshooting Btrfs in Filesystems.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • btrfs filesystem usage <mount> — allocation (data/metadata)
  • btrfs device stats <mount> — error counters
  • btrfs 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docStorage architecture and operations current

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%
Terminology layer

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.

Aliases that resolve here
btrfsb-tree filesystemlinux btrfs
Embedded reference data

Quick lookup tables

Filesystems → Btrfs filesystem map

Fast namespace, metadata, capacity, attachment and verification boundaries for Filesystems → Btrfs.

Filesystem boundaryWhat to verifyProof limit
Identity / attachmentFilesystem type, source/backing object, mount/attachment target and effective optionsPresence or mount state alone does not prove consistency or lower-layer health
Capacity / metadataData space, metadata/inodes, quotas/reservations and filesystem stateFree bytes at one layer do not prove allocation can succeed end to end
Failure boundaryA 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?