I am trying to figure out how logrotate work regarding disk space but not able to figure it out?
Scenario:
Let say I have 2GB of the log file and free disk space is also 2 GB, does logrotate first check do we have a sufficient disk space before rotating/compressing that file
In this scenario is it going to fail as it needs 2GB of space?
OR
logrotate going to compress this file let say ~400MB as it thinks it already has sufficient space?
0 Answers