Agtivated btrfs health check for all hosts

This commit is contained in:
2023-04-16 14:55:00 +02:00
parent 59c9ee68c8
commit 63445e8030
2 changed files with 1 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
exit_code=0
for path in $(btrfs filesystem show | awk '/ path /{print $NF}')
do
echo "Checking healt for $path..."
echo "Checking health for $path..."
result=$(btrfs device stats $path)
echo "$result"
regex='\.(.*)_errs(\s*)[1-9]'