Initial commit

This commit is contained in:
2024-11-04 18:39:37 -05:00
commit 5409b6d482
21 changed files with 1047 additions and 0 deletions

20
script-drives-fix-btrfs-full Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Fix the btrfs out of space error
# Copyright 2021 Bryan C. Roessler
parent="${BASH_SOURCE[0]}"
parent=${parent%/*}
[[ -f $parent/script-functions ]] && . "$parent"/script-functions || exit 1
is_root
fs=( "/mnt/array" "/mnt/backup" )
# Discard empty blocks
for f in "${fs[@]}"; do
btrfs balance start -dusage=0 "$f"
btrfs balance start -musage=0 "$f"
done
exit $?