Disk space issue on some zuul nodes

Containerd increases disk space usage on zuul nodes. This PS moves containerd's runtime folders to /opt/

Change-Id: I5079c83de5cb099890b674c6259965db880fad5f
This commit is contained in:
Sergiy Markin 2023-08-15 14:17:45 +00:00
parent 840f697fd1
commit 46e6b25549
1 changed files with 13 additions and 0 deletions

View File

@ -39,6 +39,19 @@ export DEBIAN_FRONTEND=noninteractive
sudo swapoff -a
# some nodes do not have much available space mounted to /
# these nodes provide /opt with 80Gb space instead
# in order to utilize this space we will move /var and /run to /opt
df -h
sudo mkdir -p /opt/run
sudo mkdir -p /opt/var
sudo rsync -a /run/ /opt/run/
sudo rsync -a /var/ /opt/var/
sudo mount --bound /opt/run /run
sudo mount --bound /opt/var /var
df -h
echo "DefaultLimitMEMLOCK=16384" | sudo tee -a /etc/systemd/system.conf
sudo systemctl daemon-reexec