aboutsummaryrefslogtreecommitdiff
path: root/src/infrastructure/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-28 11:11:29 -0300
committerEuAndreh <eu@euandre.org>2023-03-28 11:11:29 -0300
commit1e5256a7871d938383e720c82b3c36dd92f07f58 (patch)
tree2f519e64654964ccdf0101f757f16973d5077ad8 /src/infrastructure/scripts
parentmd2html.sh: Fix cat of $HEAD content (diff)
downloadtoph-1e5256a7871d938383e720c82b3c36dd92f07f58.tar.gz
toph-1e5256a7871d938383e720c82b3c36dd92f07f58.tar.xz
check.sh: Add btrfs-scrub(8) and btrfs-check(8) to routine
Diffstat (limited to 'src/infrastructure/scripts')
-rwxr-xr-xsrc/infrastructure/scripts/check.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/infrastructure/scripts/check.sh b/src/infrastructure/scripts/check.sh
index ae2abd5..5c63816 100755
--- a/src/infrastructure/scripts/check.sh
+++ b/src/infrastructure/scripts/check.sh
@@ -18,7 +18,7 @@ help() {
Run system sanity checks, such as email reachability, alarms
- reachability, etc.
+ reachability, filesystem checks, etc.
Examples:
@@ -77,3 +77,16 @@ uuid() {
for alias in abuse admin postmaster hostmaster; do
uuid | mail -s "\"$alias\" alias test from $(id -un)@$(hostname)" "$alias@$(hostname)"
done
+
+
+PARTITIONS='
+/dev/vda3
+/dev/vdb1
+/dev/vdc1
+'
+set -x
+
+for part in $PARTITIONS; do
+ btrfs scrub start -B "$part"
+ btrfs check --force -p "$part"
+done