From 11cd0f1d75c2f1a79e3d1409e69b6b58cb96e44e Mon Sep 17 00:00:00 2001 From: Heikki Halmet Date: Tue, 15 Sep 2020 14:21:06 +0300 Subject: 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 (cherry picked from commit 031bc19ae6278a8f12ec195f8dfa14d326efb23f) Reviewed-by: Toni Saario --- .../qtci-linux-SLES-15-x86_64/01-disable-fstrim_timer.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 coin/provisioning/qtci-linux-SLES-15-x86_64/01-disable-fstrim_timer.sh 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 -- cgit v1.2.3