Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 537 Bytes

btrfs-tools.md

File metadata and controls

38 lines (26 loc) · 537 Bytes

btrfs tools

check filesystem

btrfs scrub start PATH

check errors with

dmesg --follow | grep --line-buffered "checksum error at" >> checksum_errors.txt

see progress

while true; do clear; btrfs scrub status PATH; sleep 30; done

reclaim space

btrfs fi usage PATH
  • FACTOR = Used / Device size * 100
  • example: Used=4.46TiB and Device size=5.46TiB then FACTOR=81
btrfs balance start -dusage=FACTOR PATH &
  • check balance status with
btrfs balance status -v PATH