I've recently been struggling with disk space on one of my servers.

"df" is showing all my disk space is gone but "du" is not finding any files that would amount to filling up the disk.

Finally,, "lsof" reveals it is log files that has been rotated in a docker container but still are open (but marked deleted) 🤦‍♂️

I could restart the docker containers at a regular interval to release the deleted files...

But is there a better way to handle this?

#linux #docker #logrotation #diskusage

I am torn what to do about log rotation on a server I am trying to convert to Guix right now. log-rotation-service-type is too inflexible, and rottlog-service-type will be removed soon.

I guess I will just copy rottlog-service-type to my own channel, so that it survives the upstream removal. It will be bit annoying to diverge from Guix proper in this aspect, but do not really see other options here.

#guix #rottlog #logrotate #logrotation

Streamlined Log Management! 🔄📜

In our latest release, logs are no longer a hassle. They now rotate automatically, moving to an archive when they grow large. Archives older than a set number of days are then deleted. #LogRotation #EfficiencyBoost

@ij might be helpful to (1) check log verbosity settings to ensure you are not logging too much and that (2) any other log directories, if set, can be accessed. Lastly, that (3) log rotation is enabled, e.g. via a cronjob.
Edited to add: Spent a few minutes digesting mastodon official docs and it seems config of this is not directly documented, or I missed it. #logging #cron #cronjob #logrotation #mastodon #EatYourOwnDogFood #DogFooding

I never bothered properly setting up #logging, until now that I need to check if #fstrim is run regularly and properly.

I also had to set up #logRotation using #cron (#dcron), and I also set up #anacron (for trimming the boot partition from time to time).

#sysAdmin #linux #ssd

How To Manage Log Files Using Logrotate In Linux - OSTechNix

This guide explains what is Logrotate, how to install Logrotate and how to manage log files using Logrotate on Linux.

OSTechNix