For some reason my disk size grew to over the default 32GB now my network service wont start. What's the best was to get the size back down so I can installed parted and extend it?
Just downloaded the GParted.iso mounted and did it from there easier than I thought. How can I find whats eating all the space I don't think it should be 32GB not much running on there. just portainer with maybe 2GB of apps.
https://gparted.org/liveusb.php
I'm trying to assemble useful advices for this fixed disk space scenario.
1) given a disk space maximum hit, du -h / 2>null | grep '[0-9]M' or find . -name *.tgz files are typical short-term advices.
If necessary, rm -f <files> in /var/log, tdnf clean all, uninstall unnecessary packages, etc.
configure log rotation eg. using the logrotate package (tdnf install logrotate-> see /etc/logrotate.conf)
configure log rotation for system and debug logs as well.
2) Practise hardening the system. In some sort it's space reclamation. There is a world of useful sources - see here, here and here.
Improve your builder system. Make choices - ci/cd of 3rd party tools like gparted.
Check latest security advisories (here).
3) From time to time, audit may be key, and openness to experience.
Thanks for Sharing.