Added some useful prints
This commit is contained in:
parent
864fb09762
commit
d4bdedb018
1 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue