diff options
author | EuAndreh <eu@euandre.org> | 2023-03-28 11:11:29 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-28 11:11:29 -0300 |
commit | 1e5256a7871d938383e720c82b3c36dd92f07f58 (patch) | |
tree | 2f519e64654964ccdf0101f757f16973d5077ad8 /src/infrastructure/scripts | |
parent | md2html.sh: Fix cat of $HEAD content (diff) | |
download | toph-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-x | src/infrastructure/scripts/check.sh | 15 |
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 |