aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/qtci-linux-SLES-15-x86_64/01-disable-btrfs-balance.sh
blob: a0126cb24378894145e32bf4f5ea37377f27bb1e (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

set -ex

# Stops the balance job if one is running at the moment. This is a very expensive thing to run and causes major slow down.
sudo systemctl stop btrfs-balance.service

# This will disable btrfs balance job scheduling.
sudo sed -i 's/BTRFS_BALANCE_PERIOD="weekly"/BTRFS_BALANCE_PERIOD="none"/g' /etc/sysconfig/btrfsmaintenance