Added some useful prints

This commit is contained in:
Logan G 2023-02-24 22:36:59 -07:00
parent 864fb09762
commit d4bdedb018
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -11,8 +11,11 @@ done
# Reallocate blocks that are less than 95% used
for i in ${PARTITIONS[*]}; do
echo "Balance: $i"
btrfs balance start -dusage=95 "$i" &
{
echo "Starting balance on $i"
btrfs balance start -dusage=95 "$i"
echo "Finished balance on $i"
} &
done
# Wait for balance operations to finish
@ -20,8 +23,11 @@ wait
# Scrub all partitions
for i in ${PARTITIONS[*]}; do
echo "Scrub: $i"
btrfs scrub start -B "$i" &
{
echo "Starting scrub on $i"
btrfs scrub start -B "$i"
echo "Finished scrub on $i"
} &
done
# Wait for scrub operations to finish