Logs rotated but disk usage did not drop. Why?
IntermediateProductionLogs, Limits & High-Traffic Tuning
Answer
The process still holds the old (renamed or deleted) file open. lsof +L1 shows deleted files still open; for renamed files, lsof -p <pid> | grep log shows it writing to app.log.1. The postrotate step is missing or failed to signal the app. Fix the config, then signal or restart the service.
More on Logs, Limits & High-Traffic Tuning
How does log management work on a modern Linux server?BeginnerWhy centralize logs instead of reading them on each server?BeginnerWrite a logrotate config for an application log.BeginnerWhat is the difference between `copytruncate` and `create` + postrotate signal?IntermediateHow often does logrotate run, and why does `maxsize` sometimes not trigger in time?IntermediateHow do you limit journald disk usage?Intermediate