Hi everyone,
I’ve been running openSUSE Slowroll for a while now, and I recently ran into a critical disk space issue on my 40GB Btrfs / partition. It seems that over time, old kernels were not being purged automatically, which gradually led to Btrfs saturation.
I’don’t know if I messed up a configuration setting or else, but zypper purge-kernels didn’t report anything to remove, even though my /usr/lib/modules was massive.
Here is what I found before manual cleanup:
sudo du -hxd1 /usr/lib | sort -hr | head -n 10
13G /usr/lib
9.7G /usr/lib/modules
Upon inspection, I had over 50 different kernel versions stored there, while only 2 were actually registered by rpm -q kernel-default.
Additionally, my logs had grown significantly without being rotated/cleaned up:
sudo du -hxd1 /var | sort -hr | head -n 5
6.3G /var
4.5G /var/log
I managed to recover the space by manually deleting the orphaned module folders and vacuuming the journal, but I wanted to report this to see if others are experiencing similar issues with kernel retention or if there’s a recommended tweak for the multiversion.kernels policy on Slowroll to prevent this “ghost” accumulation.
Has anyone else noticed their /usr/lib/modules or /var/log exploding lately?
Thanks for your insights!