aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeikki Halmet <heikki.halmet@qt.io>2020-09-15 14:21:06 +0300
committerHeikki Halmet <heikki.halmet@qt.io>2020-09-22 14:27:22 +0300
commit11cd0f1d75c2f1a79e3d1409e69b6b58cb96e44e (patch)
treeddfaf2b0e3a5d6a38decf6b1b86ecda38009da0c
parentfdc7292c5b4de307523eac54e9264a91d4fd4f5a (diff)
Provisioning: Disable fstrim.timer
fstrim scans the filesystem and sends 'UNMAP' commands for each unused block it finds. Let's disable it so it won't cause unexpected situations. Task-number: QTQAINFRA-3919 Change-Id: I20c97441fd47728a3063ae50f87fe6347186bdbd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 031bc19ae6278a8f12ec195f8dfa14d326efb23f) Reviewed-by: Toni Saario <toni.saario@qt.io>
-rw-r--r--coin/provisioning/qtci-linux-SLES-15-x86_64/01-disable-fstrim_timer.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/coin/provisioning/qtci-linux-SLES-15-x86_64/01-disable-fstrim_timer.sh b/coin/provisioning/qtci-linux-SLES-15-x86_64/01-disable-fstrim_timer.sh
new file mode 100644
index 00000000..9fd06e72
--- /dev/null
+++ b/coin/provisioning/qtci-linux-SLES-15-x86_64/01-disable-fstrim_timer.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+set -ex
+
+# This will disable fstrim. The fstrim.timer is scheduled to activate the fstrim.service
+sudo systemctl stop fstrim.timer
+sudo systemctl disable fstrim.timer