aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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