Interview Prep/Linux/Logs, Limits & High-Traffic Tuning

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.

All Linux questions Roadmap: Linux

More on Logs, Limits & High-Traffic Tuning