Pcornel
Storage · Linux Storage

Btrfs

Cheat sheet · https://pcornel.dk/topic.php?topic=4007

Back to the Topic

Answer

Btrfs is a copy-on-write Linux file system with checksums, subvolumes, snapshots, compression and built-in RAID 1/10. RAID 5/6 is still not recommended for production use.

Remember

  • Btrfs RAID 5/6 is not recommended for production.
  • Free space can run out in metadata before data.
  • Snapshots are cheap but keep old data alive.

First checks

  • btrfs filesystem show — devices
  • btrfs filesystem usage <mount> — allocation
  • btrfs device stats <mount> — errors

Verify in this order

files → Btrfs → devices

Where it usually breaks

First mismatch in provider/pool → virtual/logical disk → host/guest mapping → partition/filesystem → mount/drive → workload; preserve identity/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4007

Confirmation

Confirm action

Continue?