action #174313
open[o3][zabbix][alert] / and /var/tmp: "Disk space is low and might be full in 7d (used > 85%)" since 2024-12-11 06:50 size:S
0%
Description
Observation¶
2024-12-11 06:50:26 Warning PROBLEM ariel.dmz-prg2.suse.org /var/tmp: Disk space is low and might be full in 7d (used > 85%) 1d 9h 40m No Application: Filesystem /var/tmp
2024-12-11 06:50:23 Warning PROBLEM ariel.dmz-prg2.suse.org /: Disk space is low and might be full in 7d (used > 85%) 1d 9h 40m No Application: Filesystem /
Suggestions¶
- we're keeping a long list of old packages in /var/cache/zypp/packages/. It goes back to february 2023
- Research if zypper can provide such options, otherwise add a custom systemd service or extend openqa-auto-update to remove older cached packages based on number and/or age
- Ensure that this frees up enough space and crosscheck the alert on zabbix again
Updated by okurz 7 days ago
- Copied to action #174316: [o3][zabbix][alert] warning about depleting storage space but no email? size:S added
Updated by okurz 6 days ago
- Related to action #40196: [monitoring] monitor internal port 9526, port 80, external port 443 accessibility of o3 and response times size:M added
Updated by gpathak 3 days ago
- Assignee set to gpathak
The /var
directory is taking up 11GiB.
gpathak@ariel:~> sudo du -ahcx /var/ | sort -hr | head
11G /var/
11G total
8.5G /var/cache
8.4G /var/cache/zypp
8.3G /var/cache/zypp/packages
7.7G /var/cache/zypp/packages/devel_openQA
5.3G /var/cache/zypp/packages/devel_openQA/x86_64
2.4G /var/cache/zypp/packages/devel_openQA/noarch
1.3G /var/log
910M /var/log/journal/06446c641307496183dfdf8dccebdceb
gpathak@ariel:~>
The /var/log
is 1.3GiB
Updated by gpathak 3 days ago
The above data and even more insights are available as charts: https://zabbix.suse.de/zabbix.php?action=charts.view&filter_hostids%5B0%5D=10923&filter_show=1&filter_set=1
Updated by tinita 2 days ago
It seems we're keeping a long list of old packages in /var/cache/zypp/packages/. It goes back to february 2023:
ls -lrth /var/cache/zypp/packages/devel_openQA/x86_64/openQA-common-*
-rw-r--r-- 1 root root 459K Feb 15 2023 /var/cache/zypp/packages/devel_openQA/x86_64/openQA-common-4.6.1676474487.945e502-lp154.5577.1.x86_64.rpm
Not sure how to configure this to a lower duration.
Updated by okurz 1 day ago
- Subject changed from [o3][zabbix][alert] / and /var/tmp: "Disk space is low and might be full in 7d (used > 85%)" since 2024-12-11 06:50 to [o3][zabbix][alert] / and /var/tmp: "Disk space is low and might be full in 7d (used > 85%)" since 2024-12-11 06:50 size:S
- Description updated (diff)
- Status changed from New to Workable
Updated by mkittler about 15 hours ago
- Status changed from Workable to In Progress
- Assignee set to mkittler
Updated by mkittler about 15 hours ago · Edited
We're keeping the packages of the following repos indefinitely:
grep -iR keeppackages=1 /etc/zypp/repos.d
/etc/zypp/repos.d/devel_openQA.repo:keeppackages=1
/etc/zypp/repos.d/devel_openQA_Leap.repo:keeppackages=1
Not sure whether zypper has a way of specifying the number of packages to keep. For now I just used `find /var/cache/zypp/packages -ipath 'devel_openqa' -mtime +365 -delete´ to delete everything older than a year.
I can setup a systemd service/timer to invoke a command like that periodically. I can also set keeppackages=0
but we probably enabled this for the sake of easier downgrades. So this is probably not a good solution.
One could also add the following to openqa-auto-update
:
if [[ $OPENQA_PACKAGE_CACHE_RETENTION ]]; then
find /var/cache/zypp/packages -type f -ipath '*devel*openQA*' -mtime "+$OPENQA_PACKAGE_CACHE_RETENTION" -delete
fi
Of course this breaks if one uses a different repository name or a different packagesdir. So it is probably not the best idea to add it to the generic openqa-auto-update
script.
Updated by openqa_review about 3 hours ago
- Due date set to 2025-01-02
Setting due date based on mean cycle time of SUSE QE Tools