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-24 11:26:13 +0300
commit3240e1713d348599cfabd7deda19079f5629d793 (patch)
tree4ad970699b4b7f245f986314a8890767feff59b7
parent8d44e043cf8fb78511676b61ae0ef8eb7cab33f5 (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> (cherry picked from commit 11cd0f1d75c2f1a79e3d1409e69b6b58cb96e44e)
-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